hi
why should i use application.run method
it does not work...Code:Public Sub Main()
Dim frm As New Frm_Logon()
frm.Show()
End Sub
if i add Application.Run()
works fine...
why is it so....
Printable View
hi
why should i use application.run method
it does not work...Code:Public Sub Main()
Dim frm As New Frm_Logon()
frm.Show()
End Sub
if i add Application.Run()
works fine...
why is it so....
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....Quote:
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
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..
Are you trying to delete the exe file while the program is running ??