Select File, New, Project from the main menu in Visual Studio. To get things started, create the new project and add a new form. Toillustrate communication from one form to another, Form2 will also havea button, and it will change the caption of Form1 whenever it isclicked. Form1, which will be shown automatically when the project runs, willcreate and display an instance of Form2 when you click a button. I will create a new Windows application that contains two forms. ![]() I will start with a very simple example to illustratethe concept. Theresult of this change is that you need a reference to a particular instance of aform to be able to use it. This is not a majortechnical problem programmers (including VB6 programmers) have been workingwithout default instances of non-form classes for a very long time, but it is abig change if you are used to building Windows applications using VB6. NETthe removal of default form instances. The previous section described a major change in the forms model from VB6 toVB. ![]() ![]() Learn More Buy Working with Multiple Forms in VB. Visual Basic 2015 in 24 Hours, Sams Teach Yourself
0 Comments
Leave a Reply. |