I am trying to track the event when the form is maximized. which event it is ?
The second problem is my slpitcontainer when you maximize it does not resize it only remains in its initial position. how do you make it become interactive ?
Hi Bouzid,
You can use the Form's SizeChanged event and the WindowState property to determine when the form is maximized.
By default, controls on a form do not resize with the form. You can use the Anchor or Dock properties to have this happen automatically. If you need to perform custom sizing that won't be handled by these properties, you can do that in the form's SizeChanged handler.
Please let me know if there is anything further that I can do to help.
Thank you, I have tried to dock and anchor at all the sides it still does not work. I have a dock manager is there anything in the dock manager you suggest I should change in order to allow the one of my two grids to maximize ?
I was not able to make use of the designer file because there are quite a few event declarations which refer to methods that are implemented in a different file.
Attached is the designer, the problem is when I maximize the window the split between the ugridpupEvent grid and Rtestat , Optstats grids, do not move to the right to allow the ugridpupEvent grid to show all the table. Instead it remains in the same place whether I maximize or normal size load form.
Screen shots will probably not help at all. Designer code might help. A sample project which conclusively demonstrates the issue will help most and is the fastest way to get a solution to your problem.
Can screen shots be enough for you. or you want the designer file ?
If you provide us with a sample that demonstrates the problem we will be able to determine very quickly what you need to do to fix it.