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.
OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...