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

All messages appearing at once

P: n/a
I wrote a program and when i click the button i want the lines that i
want print in an order

my code is like this
public void btn_clicked(object ob, EventArgs e)
{
this.btn.Visible = false;
this.txt1.Text = "Waiting For Username and
Password....\n\n";//this //This line writes on my progrram and
then wait until query complete
if (sorgu(this.text1.Text, this.text2.Text))
{
if (client())
{
if (sylcontrol())
{
if (uobasic())
{
if (proccescheck())
{
this.txt1.Text += "Ultima Online Calistiriliyor.// This
line is..\n"; //This line must be written after theese functions
completed
uocfg();
}
else
{
txt1.Text += "Yasakli Bir Program Bulundu....\n";
this.Close();
}

}
else
{
txt1.Text += "Dosya Bulunamadi....\n";
this.Close();
}
}
else
{
txt1.Text += "Sunucu Baglantisinda Hata Olustu....\n";
this.Close();
}
}
else
{
txt1.Text += "Yama Guncellemede Hata Olustu....\n";
this.Close();
}
}
else
{
txt1.Text += "Kullanici Adi veya Sifre Hatali....\n";
this.Close();
}
}
but in my program it waits until everythin has done than all messages
appering at once
how can i fix that?
Thanks
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
The screen only refreshes at the next idle point. So while your code is
running, no redraws will take place unless you explicitly specify you want
it to do so.

Try calling txt1.Refresh() after every call to txt1.Text

"Dakkar" <da****@sylveria.gen-dot-tr.no-spam.invalid> wrote in message
news:42**********@127.0.0.1...
I wrote a program and when i click the button i want the lines that i
want print in an order

my code is like this
public void btn_clicked(object ob, EventArgs e)
{
this.btn.Visible = false;
this.txt1.Text = "Waiting For Username and
Password....\n\n";//this //This line writes on my progrram and
then wait until query complete
if (sorgu(this.text1.Text, this.text2.Text))
{
if (client())
{
if (sylcontrol())
{
if (uobasic())
{
if (proccescheck())
{
this.txt1.Text += "Ultima Online Calistiriliyor.// This
line is..\n"; //This line must be written after theese functions
completed
uocfg();
}
else
{
txt1.Text += "Yasakli Bir Program Bulundu....\n";
this.Close();
}

}
else
{
txt1.Text += "Dosya Bulunamadi....\n";
this.Close();
}
}
else
{
txt1.Text += "Sunucu Baglantisinda Hata Olustu....\n";
this.Close();
}
}
else
{
txt1.Text += "Yama Guncellemede Hata Olustu....\n";
this.Close();
}
}
else
{
txt1.Text += "Kullanici Adi veya Sifre Hatali....\n";
this.Close();
}
}
but in my program it waits until everythin has done than all messages
appering at once
how can i fix that?
Thanks
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Nov 16 '05 #2

P: n/a
I tried txt1.Refresh()
but it didnt work.It still appearing at once
Dan Basswrote: The screen only refreshes at the next idle point. So while your code
is running, no redraws will take place unless you explicitly specify you want it to do so.

Try calling txt1.Refresh() after every call to txt1.Text

"Dakkar" <da****@sylveria.gen-dot-tr.no-spam.invalid> wrote in message news:42**********@127.0.0.1...
I wrote a program and when i click the button i want the lines that i want print in an order

my code is like this
public void btn_clicked(object ob, EventArgs e)
{
this.btn.Visible = false;
this.txt1.Text = "Waiting For Username and
Password....\n\n";//this //This line writes on my progrram and
then wait until query complete
if (sorgu(this.text1.Text, this.text2.Text))
{
if (client())
{
if (sylcontrol())
{
if (uobasic())
{
if (proccescheck())
{
this.txt1.Text += "Ultima Online Calistiriliyor.// This
line is..\n"; //This line must be written after theese functions
completed
uocfg();
}
else
{
txt1.Text += "Yasakli Bir Program Bulundu....\n";
this.Close();
}

}
else
{
txt1.Text += "Dosya Bulunamadi....\n";
this.Close();
}
}
else
{
txt1.Text += "Sunucu Baglantisinda Hata Olustu....\n";
this.Close();
}
}
else
{
txt1.Text += "Yama Guncellemede Hata Olustu....\n";
this.Close();
}
}
else
{
txt1.Text += "Kullanici Adi veya Sifre Hatali....\n";
this.Close();
}
}
but in my program it waits until everythin has done than all messages appering at once
how can i fix that?
Thanks
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com[/quote:fc11a04301]

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.