Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I can not move control (button,label, textbox , ....) in winform in c#(when I design my form)
I can move them by keyboard but cannot move by mouse.
I dont know what setting of vc has been changed.
this problem is in all myproject and a setting of visual is chenged.
Posted
Comments
Sergey Alexandrovich Kryukov 24-Jul-14 0:46am    
Not really a development question. Are you using Visual Studio? Then it is about using of Visual Studio and possible defect in it and/or its settings. Did you try to re-install it?
By the way, you should not move your control. You should better dock everything adjust location using parent Padding.
—SA
sahar11 24-Jul-14 1:05am    
I use Visual Studio(winform application). I add some component to toolbox. I use this component in my projects and dont re_install it.

1 solution

Probably, it's just a glitch in Visual Studio - if you can't move controls at design time with the mouse, but you can with the keyboard it means they aren't docked to anywhere or contained within other controls.

So shut down VS and restart it - glitches like this often go away that way!
 
Share this answer
 
Comments
sahar11 24-Jul-14 1:43am    
shut down VS means that close it or by other way???
OriginalGriff 24-Jul-14 1:56am    
Yes - close all instances and give it a few seconds to unload all components before restarting it.

If this fixes it, but the problem comes back then you need to look at what you did in the run up to the problem occurring. (But I still haven't sussed out why the text editor will stop showing changes but applies then to the source file from time to time...) :laugh:
sahar11 24-Jul-14 2:48am    
I close it and then restart but ot fixed the problem
even I resest all setting of visual studio, but no thing change.
OriginalGriff 24-Jul-14 4:41am    
OK - close it, open a new instance and create a new project.
Do you get the same problem?

And how exactly did you reset the VS settings?
sahar11 25-Jul-14 7:15am    
I close it,then open and create new project. but I get the same problem.
for reset setting: toole menu -> import and export setting -> reset all setting

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900