form.load don't exist anymore ?

P

Pascal

bonjour/hello
I have an application with several forms : form1 is loaded at first.
Man makes some staff (filling text box, clicking radiobutton) in this window
and then click nextbutton and so on from form to form.

I use theese commands to pass from Form1 to Form2 :

Form2.Activate()
Me.Hide()
Form2.Show()
But it's a little bit flickering during the construction of the form : it's
not nice to see.
Before in vb6
it was
form2.load
me.hide
form2.show
so form2 was not flickering ....

Is there another way to do that ?

What's happen really when man clicks on the red cross button in the title
bar of a window ?
under vb2005 debugging, if i click on this button on the third form : form3
closes but the debugger not... so i think the other form (form1 and 2 are
still alive in the memory ?
do i have to code with showdialog instead of show() knowing that i could go
back from form5 to form1 ?

thanks a lot for your help



http://www.scalpa.info
 
C

Cor Ligthert [MVP]

Pascal,

Of course exist the form load althouhg Load is a strange word for this.

dim frm2 as new Form2 'a form is instanced and placed(loaded) as object in
memory.
frm2.Show

I never saw it done the way you do with activate, I did not know that was
workign.

I hope this helps,

Cor
 
M

Michel Posseth [MCP]

In VB6 he would have constructed a new form
the code he shows wit the activate command would just show an already
existing one

so to reproduce the behavior he should use a form constructor ( just like
you showed him Cor )


regards

Michel Posseth [MCP]
 

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

Top