This site is no longer active and is available for archival purposes only. Registration and login is disabled.

eVB Newbie


eVB Newbie

Postby kr0n » Jun 13, 2002 @ 7:04pm

kr0n
 


Postby fzammetti » Jun 13, 2002 @ 7:10pm

Try doing this:

form1.hide
form2.show

What's happening with your code I think is that your showing the second form, but doing form1.end is quickly passing focus back to form1. You need to hide the first form, then show the second (there is also a difference between hiding a form and closing or destroying it, you could do some things with that fact as well).
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby kr0n » Jun 13, 2002 @ 7:18pm

that made things even freakier.
i run it, form1 loads, i click on cmdForm, form1 hides, and the text box for form2 shows up, but in the programs folder (the one with the large icons it was running in the background) and then form1 reappears. and also how do i actually close a form?

and i was using form1.hide, not form1.end just a typo when i posted
kr0n
 


Postby fzammetti » Jun 13, 2002 @ 7:29pm

Here, give this a try:



That I think does what you were asking for. Let me know if you have trouble with it.

With regard to how to exit a form, I'm a bit rusty in VB, but I think it's Unload <formname>.
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby kr0n » Jun 13, 2002 @ 7:40pm

kr0n
 


I didn't know...

Postby fzammetti » Jun 13, 2002 @ 7:55pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum