Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello everyone I want to load a form in a a panel when i click a button
but what i get is a part of my form cause it was too zoomed in

What I have tried:

panel4.Controls.Clear();

            Morphology myForm = new Morphology();
            myForm.TopLevel = false;
            myForm.AutoScroll = true;
            panel4.Controls.Add(myForm);
            myForm.FormBorderStyle = FormBorderStyle.None;
            myForm.Show();
Posted
Updated 24-Mar-21 23:08pm
Comments
Richard MacCutchan 31-Jul-18 4:24am    
Zoom it out.
Maha Osman 31-Jul-18 4:46am    
I am designing a project for a client so it's not applicable to ask them to zoom it out , or do you mean do it in code ?
Richard MacCutchan 31-Jul-18 5:27am    
Do it in code, obviously.
Maha Osman 31-Jul-18 8:59am    
I searched on the internet and found nothing like zooming out a form in a panel
and i tried to look for suggested options and criteria about the form there is nothing like (form.zoomout) or such a thing
Richard MacCutchan 31-Jul-18 9:00am    
Forget the internet for a while and try to do some proper analysis of your problem. How is the form being displayed, what other features are being used to display it etc.?

The Solution is to change The AutoScaleMode to None. It should work
 
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