473,513 Members | 2,319 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

All messages appearing at once

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
2 1166
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5031
by: Will Stuyvesant | last post by:
Add your funny or surprising Python error messages to this thread. A requirement is that you should also show (minimal) code that produces the message. Put the code below, so people can think...
6
1426
by: Tony Williams | last post by:
When a user deletes a record from a table which has a link to another table two messages appear.One that asks the user to confirm they want to delete the record and another that involves the...
0
998
by: Nhmiller | last post by:
test - looks like messages for last 5 hours not appearing Neil Cat Paintings At Carol Wilson Gallery http://www.carolwilsongallery.com
0
1181
by: BL | last post by:
Hi all, I've got a number of sub-folders in my Outlook Express Inbox. I've also set up a number of message rules to make sure that email from particular individuals/organisations are moved to...
0
7269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7394
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7559
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5701
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4756
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3248
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.