Click here to Skip to main content
15,878,959 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

We are trying to set a minimum size size for tool window but could not set.

If we resize the tool window our buttons and grids are misplaced, so give a idea to stop resizing a tool window(usercontrol) at minimum size
Posted

1 solution

What about setting the control's MinWidth and MinHeight properties?

 
Share this answer
 
v2
Comments
Member 11900608 11-Aug-15 5:20am    
No Its not working I need at run time
while constructor of tool window is called we need to set
default minimum size property
how can we set it?
Shmuel Zang 11-Aug-15 6:00am    
When at run time? If you create the object (of the tool) dynamically, you can set the appropriate properties on the created object.
Member 11900608 11-Aug-15 6:32am    
Using FindToolWindow we will open a existing tool window.
After opening window , i should stop re-size the window into minimum size.
tell me steps to work.
Shmuel Zang 11-Aug-15 7:20am    
So, if you want to set a minimum size for the window, you can set those properties (MinWidth, MinHeight) on the window's object.

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