R Ram Apr 7, 2004 #1 I have a code module with main as subroutine name. How to launch a Windows form from here. Thanks, Ram
I have a code module with main as subroutine name. How to launch a Windows form from here. Thanks, Ram
R Rob Windsor [MVP] Apr 7, 2004 #2 Here's the code you need. In .NET you need to use Application.Run to ensure the form stays alive after the Sub Main completes Public Sub Main() Dim frm as New Form1() Application.Run(frm) End Sub
Here's the code you need. In .NET you need to use Application.Run to ensure the form stays alive after the Sub Main completes Public Sub Main() Dim frm as New Form1() Application.Run(frm) End Sub
R Ram Apr 7, 2004 #3 THANKS Rob Windsor said: Here's the code you need. In .NET you need to use Application.Run to ensure the form stays alive after the Sub Main completes Public Sub Main() Dim frm as New Form1() Application.Run(frm) End Sub -- Rob Windsor [MVP-VB] G6 Consulting Toronto, Canada Ram said: I have a code module with main as subroutine name. How to launch a Windows form from here. Thanks, Ram Click to expand... Click to expand...
THANKS Rob Windsor said: Here's the code you need. In .NET you need to use Application.Run to ensure the form stays alive after the Sub Main completes Public Sub Main() Dim frm as New Form1() Application.Run(frm) End Sub -- Rob Windsor [MVP-VB] G6 Consulting Toronto, Canada Ram said: I have a code module with main as subroutine name. How to launch a Windows form from here. Thanks, Ram Click to expand... Click to expand...