Click here to Skip to main content
15,885,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I used control .i used it for Title bar .it has all functionality as Title bar but when I put in “form” and make “Formborderstyle “ make “none” and put “control Title Bar On form “ When I make maximize “control Title Bar” of The Form is hides the “Task bar” .so what can I do for it .
----
Ankur:
A better translation/explanation. I hope it makes more sense.

I used a control for title bar. It has all functionality as title bar but when I put that on form and make FormBorderStyle: none and maximize the form, it hides the task bar. How can avoid hiding of taskbar.
Posted
Updated 14-May-10 0:26am
v6

1 solution

In your maximize even handler, you have to add code that calculates the maximum possible size the form can be (taking into consideration the size AND POSITION of the taskbar.

You can do that using pInvoke to get the system metrics which contains the size and position of the task bar.
 
Share this answer
 
Comments
raj641 14-May-10 8:23am    
its best sir but can u give the code of it sir
#realJSOP 15-May-10 10:06am    
Actually, it's best if you work it out yourself. Everything you need to do what I descried is available on google. Being a programmer is as much about being able to find the answer as it is implementing it.

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