Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Problem ShowDialog()???

[es] :: .NET :: Problem ShowDialog()???

[ Pregleda: 2547 | Odgovora: 5 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

VerbatimBOT
Aleksandar Dragosavac
Senior .NET Developer

Član broj: 84129
Poruke: 228
*.vdial.verat.net.



Profil

icon Problem ShowDialog()???21.02.2006. u 06:37 - pre 220 meseci
E sad imam novi problem koji ne znam da rešim u Visual C# 2005 Express Edition, a koji mi nije bio problem u Visual Studio 2003:
Imam dve forme, i ovo je kod za drugu formu:
Code:

public void Button1_Click(bla bla bla)
{
         this.setVisible(false);
         forma2.ShowDialog();
         this.setVisible(true);
}

Znači, kad se dobije DialogResult u formi 2, ona treba da se zatvori i da forma 1 opet postane vidljiva. Medjutim, forma 2 se zatvori, ali forma 1 ne postane vidljiva !!!
Ima neko ideju ?
Winners never quit, quitters never win.
 
Odgovor na temu

Oliver Klaćik
Vice President, Thunder Road Software
Inc.
Stara Pazova

Član broj: 34059
Poruke: 242
80.93.231.*

Sajt: www.thunderroadsoftware.c..


Profil

icon Re: Problem ShowDialog()???21.02.2006. u 08:59 - pre 220 meseci
A šta ti je setVisible?

Zašto ne koristiš this.Visible = true/false ?
Oliver 'FAQ' Klaćik
 
Odgovor na temu

VerbatimBOT
Aleksandar Dragosavac
Senior .NET Developer

Član broj: 84129
Poruke: 228
*.vdial.verat.net.



Profil

icon Re: Problem ShowDialog()???21.02.2006. u 18:10 - pre 220 meseci
Izvini, pomešao sam malo jezike. Pa da umesto setVisible() sam i mislio bre this.Visible=true tj. false. Al shvatio si ti mene, mojne se praviš lud ! :)
Aj bre pomagaj, budi drug !
Winners never quit, quitters never win.
 
Odgovor na temu

_Doctor_
Beograd

Član broj: 68915
Poruke: 12
*.ptt.yu.



Profil

icon Re: Problem ShowDialog()???21.02.2006. u 21:33 - pre 220 meseci
Brate sad sam probao to isto do dushe u 2005 - ici i radilo je!!!!!
Verovatno je do kompajlera jbg !!!!! Nisi lud :) To radi !!!!

pozdrav
Svet je pun budala koje misle da je svet pun budala !
 
Odgovor na temu

ntadic
bg

Član broj: 38173
Poruke: 75
194.106.174.*

ICQ: 317199697


Profil

icon Re: Problem ShowDialog()???22.02.2006. u 15:08 - pre 220 meseci
Probaj sa metodama Show() i Hide()
I tako...
 
Odgovor na temu

VerbatimBOT
Aleksandar Dragosavac
Senior .NET Developer

Član broj: 84129
Poruke: 228
213.244.197.*



Profil

icon Re: Problem ShowDialog()???22.02.2006. u 18:44 - pre 220 meseci
Izvalio sam!
Fala, fala !!!
:)
Winners never quit, quitters never win.
 
Odgovor na temu

[es] :: .NET :: Problem ShowDialog()???

[ Pregleda: 2547 | Odgovora: 5 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.