By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,625 Members | 1,274 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,625 IT Pros & Developers. It's quick & easy.

form.load don't exist anymore ?

P: n/a
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
Jun 5 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"Pascal" <sc*********@wanadoo.rf> schreef in bericht
news:44***********************@news.orange.fr...
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

Jun 5 '06 #2

P: n/a

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]
"Cor Ligthert [MVP]" <no************@planet.nl> schreef in bericht
news:%2****************@TK2MSFTNGP04.phx.gbl...
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

"Pascal" <sc*********@wanadoo.rf> schreef in bericht
news:44***********************@news.orange.fr...
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


Jun 5 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.