moving between forms

  • Thread starter Thread starter gordon
  • Start date Start date
G

gordon

Hi,

This will hopefully be an easy question for everyone apart from me.

I am building an app for my pocket pc - how can I move from one form to
another with a click of a button control.

thanks

doug
 
Hi Gordon,

In the code of the click event of that button, you will have to create an
instance of the form you want to display and then display the form.

The sytax for VB.NET would look like this...
\\\
Private Sub cmdButtonn_Click(ByVal eventSender As System.Object, ByVal
eventArgs As System.EventArgs) Handles cmdButton.Click

'If you want to hide the instance of the current form
Me.Hide

'Create an instance of the form you want to show and display it
Dim Newfrm as New <form name>
Newfrm.Show()
End Sub
\\\

Here is a link to a good article that talks about dealing w/ multiple forms.
http://www.devcity.net/Articles/94/1/multipleforms.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Moving Router 2
Access DB on a pocket PC 2
Access YTD - Form 0
hello everyone! 2
Move controls at runtime 10
How move between forms in Windows app? 2
Excel Move or Copy Stopped Working? 0
Excel Columns moving up and down on their own in a worksheet. What Goes? 2

Back
Top