No, i have like a "form - winform, window" that i have created in c#. In the first window that opens i have a button, if you click the button, then "this.hide" and i want to open the other winform-window.
Form2 frm2 = new Form2();
if (frm2.ShowDialog() == DialogResult.Cancel)
/* here you can return values from form2 back to form1 if Form2 DialogResult is DialogResult.Ok but make sure that your accept button's Dialog Result is set to DialogResult.Ok or force dialogresult.OK if certain conditions are meet by this.DialogResult = DialogResult.OK
I know this goes more past the question but if not answered now will be a question in the future hope this was helpful.*/
I have made a class, in the class i have made this code:
static void main(string args)
I want to open the class if someone press the button3.... ?
When someone opens the class, they will see a cind of cmd windows... inside my application. I need the code for button3.
No a class is not a visual Control... by adding : Form after class name makes it a form , : UserControl Makes it a usercontrol but a class by itself as Maven has said it is a collection of Methods and Propertys.