How to call a second windows form from a first Windows form in a .NET Framework Application

0 Likes
over 5 years ago

Problem:

How to call a second windows form from a first Windows form in a .NET framework application.

Resolution:

Assuming the Visual COBOL for Visual Studio .NET framework windows form application, has a second form called Form2 - call this Form2 Window by using code as follows:

declare myform2 as type call2ndform.Form2 = new call2ndform.Form2

invoke myForm2::Show() 


This declares a new object called myform2 which then can use the inherited properties and methods.

In this case, the Show() method which opens the Windows Form.

Comment List
Anonymous
Related Discussions
Recommended