[Gambas-user] Only One Active Form at same time

David Villalobos Cambronero david_villalobos_c at ...43...
Fri Feb 22 13:23:52 CET 2008


You can use Form.Visible = TRUE/FALSE so it will be never closed

or use the gb.form.mdi

slds

David

----- Original Message ----
From: Nx GT-R BOY <nxgtrturbo at ...626...>
To: gambas-user at lists.sourceforge.net
Sent: Thursday, February 21, 2008 8:18:00 PM
Subject: [Gambas-user] Only One Active Form at same time


 
Hi, 
I 
was 
wondering 
how 
to 
have 
only 
one 
form 
opened, 
I 
mean, 
If 
I 
have 
a
button1 
inside 
a 
form1 
I 
want 
to 
close 
form1 
and 
open 
form2, 
instead 
of 
have
2 
opened 
windows.

The 
problem 
is 
that 
I 
found 
a 
way 
to 
do 
it 
but 
works 
only 
with 
a 
few 
forms,
I 
really 
don't 
know 
what 
is 
wrong 
in 
other 
forms.

The 
code 
is 
as 
simple 
as:
Me.close(TRUE)
Form2.show

I 
don't 
know 
if 
thats 
the 
way 
to 
do 
it, 
but 
works 
in 
a 
few 
forms.

Is 
there 
a 
"good" 
way 
to 
do 
it, 
working 
in 
all 
forms?

Thanks 
in 
advance
-- 
Nx 
GT-R
-------------------------------------------------------------------------
This 
SF.net 
email 
is 
sponsored 
by: 
Microsoft
Defy 
all 
challenges. 
Microsoft(R) 
Visual 
Studio 
2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gambas-user 
mailing 
list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user






      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 



More information about the User mailing list