Quantcast
Channel: Visual COBOL Knowledge Base
Viewing all articles
Browse latest Browse all 214

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

$
0
0
Current Revision posted to Visual COBOL Knowledge Base by Kim.Hoskin on 4/5/2016 10:35:40 AM

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.


Viewing all articles
Browse latest Browse all 214

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>