Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi i have created a database application in Visual Studio.I have set windows property to maximize. When i open it for first time it comes in full screen mode but after when i click any button all windows go back to small window mode. What to do?

What I have tried:

I have use the MDI forms also.
Posted
Updated 25-Sep-18 20:26pm
Comments
RossMW 25-Sep-18 23:02pm    
There not a lot of details for us to go on, but if you are using mdi then the child windows will be the same window state for all child mdi forms. Try stepping thru your code on a button click to see if other code is being run which is setting or changing the windowsstate.
Prabhjo 30-Sep-18 18:22pm    
Hi i am new to this field. I have actually set the main form's window property true for ismdiContainer. Also set window state to maximize and MinimumBox property to False. And i have set the window state for all forms as maximum and Minimum Box property to false. Still it is showing the same problem. First all forms appear in full size mode but when i click on any button to show data all forms go back to minimize state.
RossMW 30-Sep-18 20:29pm    
This goes against everything the normal operation of how mdicontainers should work.

Can you add or show the code you have for the form to display the data. if you are creating a form via code it will also need to be set according the solution provided.
Maciej Los 26-Sep-18 2:20am    
Change window state for each mdi form to maximized and check out what will happen...
Prabhjo 30-Sep-18 18:18pm    
Hi i tried setting all forms to set maximize but its again same issue.

1 solution

Please, read my comment to your question. To get more details, please see: c# - Maximize MDI child form[^]
 
Share this answer
 

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