4
Answers

disable minimize/maximize and restore button on mdi child form. But need Close button to be active.

Vinaya

Vinaya

15y
15.2k
1
I want to disable the min/max/restore button of my mdichild form. For that I have set MaximizeBox=false and MinimizeBox=false, borderstyle=resizable and my form opens in Normal state. Now the problem is minimize button is disabled but it shows a restore button, i want this restore button also to be disabled. Any way to do this? i don't want to use controlbox = false because i still need the close button.
Answers (4)
0
Kirtan Patel
NA 35k 2.8m 15y
Suppose you haveing Project A and Project B

then in Solution Explorer Right Click Project A and >>> Add Reference >> Project Tab >> select Project and Click ok
 





then you can call Another Project's Form like below Code

here i m calling Application19 's form in Load Event of Application18 Form1

 private void Form1_Load(object sender, EventArgs e)

        {

            WindowsFormsApplication19.Form1 f1 = new WindowsFormsApplication19.Form1();

            f1.Show();

        }


check "Do you like this answer" of it helpes you :)


Accepted
0
jinge
NA 2.4k 23.5k 15y

Hello guy,
 
If you want to see the form in Design time, just double click the Form node in the solution explorer.
 
If you want to show the form in runtime, then you can instantiate a new instance of that form, and invoke Show or ShowDialog method of that object to open this form
 
Let me know if it helps.
0
naura pax
NA 1.9k 64.8k 15y

hi,
You'll first have to add reference of the new project in your existing project by right clicking on existing window project in solution explorer and selecting add reference.
Then you can just call formName.Show/ShowDialog method, but don't forget to use namespace of new project.