Click here to Skip to main content
15,883,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all i have created mobile application , my application contains 2 forms, if i click button it should open
secound form and close first form

when i do this my entire application closting .. so i created module do this to do

Module Module1
Private Sub main()
Dim k As New Form1
Application.Run(k)
End Sub
End Module

even if i create module same thing happening so expert please tell me how to do this
Posted
Comments
Ed Nutting 19-Apr-12 13:54pm    
Try putting a try-catch block round the code in your module and get whatever exception may be occurring - this is the only thing I can think may be causing your problem is a fatal error. Please update your question using the Improve Question link (bottom right of question) to detail any errors.

Thanks,
Ed
Steve Maier 19-Apr-12 16:24pm    
Is this for WP7, or an earlier version? What does the code look like for the launching of the new window?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900