hi friends i have following code to stop resizing windows form.
lStyle = GetWindowLong(Form1.hwnd, GWL_STYLE)
lStyle = lStyle And Not WS_THICKFRAME
Call SetWindowLong(Form1.hwnd, GWL_STYLE, lStyle)
i have a image on form as background. this code i ok, but the problem is when is when i click on the title bar of the form and then drag it , there is space automatically inserted between image and border

Since this is your first post, try to make sure you use the code brackets next time you post. First things that come to mind is checking your refresh-rate, setting the image as background, reducing the size of your window/ enlarging your picture and checking all of your window properties. Post any code relative to the image.

Form Property?

Borderstyle > then choose if Fixed or Resizable

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.