A few newbie questions

Hi all, 

I'm an accomplished web software engineer of 6 yrs. with 
pretty tight knowledge of asp.net, however I'm entirely 
ignorant when it comes to windows development and windows 
forms. 

There are a few basic questions which I'm sure could 
easily be answered by any win forms developer: 

1. How do you pass variable/property values between 
forms   When I fill out a form on winForm1 how do I pass 
those form values to winForm2   This is done a number of 
ways on the "stateless" web but obviously the paradigm is 
completely different in windows. 

2. How can I launch winForm2 from winForm1 and then 
immediately shut down winForm1 since I am finished with 
it  

3. Can anyone point me to some simple articles on how to 
make the DataGrid editable   How to customize column 
headers   Other advanced DataGrid topics for Win Forms  

Thank you! 

Vin 


Answer this question

A few newbie questions

  • Thams

    To lunch to the form2 make a button and write this code onclick:

    Form2 a = new Form2();
    a.Show

    You can use the fuction Hide to the form1.

    Good luck.

  • Larry Fortner

    With respect to numbers 1 and 2, are you trying to create a Wizard style application

    With respect to number 3, if you look through the Articles section of this site, you should find some good tutorials on working with the datagrid.

  • Robert Verheuvel

    Vin,

    I am a web developer too! My best advice to you is to evaluate how you want your application to look. Remember that winforms are not like the web and can have multiple page elements and events within one form.

    Jason

  • A few newbie questions