c# - Moving form made of PictureBox -


I have a picture box that goes from one end to another. I do not have any FormBorderStyle set but when I I run the app so I can not take it anywhere

Is there a code that will help me solve this problem? I tried WndProc but did not work for me.

Hold mouse mouse, mouse down and mouseup events in your form MouseDown event, store relative mouse position Do and set a flag, move the form using the previously stored position and reset the flag.

Comments

Popular posts from this blog

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -

jasper reports - How to center align barcode using jasperreports and barcode4j -

django - CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False -