Visual C#

  • Thread starter Thread starter Hs.
  • Start date Start date
H

Hs.

Hi All..

I am having small Visual C# code i enter 2 Number and
Asking the user to find there sum..

if he/she enter the correct Answer then an "OK*" word
will be written in the same form and a new Number will be
Intered
, but if not a "Wong*" will be wrotten..

*** the word are written as a Lable


the problem ... is I wont the word to be written in the
form for few second and then dissabear.

thank
 
You can use Thread.Sleep but then nothing will respond for a moment. You
also can use a Timer object to notify you in a couple of seconds and then
change the text back.

Greetz,
-- Rob.
 
Hi ..

Try this code on the click of some button X...

System.Drawing.Graphics m_FrmGrp;
System.Drawing.Brush m_BrObj;

m_FrmGrp = this.CreateGraphics();
m_BrObj = new SolidBrush(System.Drawing.Color.Blue);

m_FrmGrp.DrawString("Hai...HS ",new Font("Times New
Roman",10),m_BrObj,100,100,null);

//Sleeps for 1 Sec.
System.Threading.Thread.Sleep(1000);
this.Refresh();


Justine
 
Back
Top