|
-
Apr 1st, 2003, 06:14 AM
#1
Thread Starter
Fanatic Member
Application.Run method.....?
hi
why should i use application.run method
Code:
Public Sub Main()
Dim frm As New Frm_Logon()
frm.Show()
End Sub
it does not work...
if i add Application.Run()
works fine...
why is it so....
-
Apr 1st, 2003, 07:28 AM
#2
Sleep mode
Re: Application.Run method.....?
Why ? Because every proj in .NET Environment must have at least either inherited Form class or a Main Method which called Application.Run .
This code runs without Application.Run which requires to show your form modally .
VB Code:
Module Module1
Public Sub Main()
Dim frm As New Form()
frm.ShowDialog()
End Sub
End Module
-
Apr 1st, 2003, 07:43 AM
#3
Thread Starter
Fanatic Member
Re: Re: Application.Run method.....?
Originally posted by Pirate
Why ? Because every proj in .NET Environment must have at least either inherited Form class or a Main Method which called Application.Run .
This code runs without Application.Run which requires to show your form modally .
VB Code:
Module Module1
Public Sub Main()
Dim frm As New Form()
frm.ShowDialog()
End Sub
End Module
thanks a lot for the info....
as i am a new to this
when i execute my app and it get error it is giving some error like cannot copy the exe to bin folder.. i think the application is still in memory when i try to delete from the bin folder i am not able to....
i am using application.exit other wise works fine..
-
Apr 1st, 2003, 07:53 AM
#4
Sleep mode
Re: Re: Re: Application.Run method.....?
Are you trying to delete the exe file while the program is running ??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|