Click here to Skip to main content
16,004,854 members
Home / Discussions / C#
   

C#

 
GeneralPage-level static members and Events Pin
DisruptedSinner24-May-05 7:05
DisruptedSinner24-May-05 7:05 
GeneralRe: Page-level static members and Events Pin
S. Senthil Kumar24-May-05 7:49
S. Senthil Kumar24-May-05 7:49 
GeneralRe: Page-level static members and Events Pin
DisruptedSinner24-May-05 8:16
DisruptedSinner24-May-05 8:16 
GeneralRe: Page-level static members and Events Pin
Luis Alonso Ramos24-May-05 9:08
Luis Alonso Ramos24-May-05 9:08 
GeneralRe: Page-level static members and Events Pin
DisruptedSinner24-May-05 9:20
DisruptedSinner24-May-05 9:20 
GeneralTImed Form Pin
fadeddata24-May-05 6:48
fadeddata24-May-05 6:48 
GeneralRe: TImed Form Pin
fadeddata24-May-05 6:50
fadeddata24-May-05 6:50 
GeneralRe: TImed Form Pin
S. Senthil Kumar24-May-05 7:46
S. Senthil Kumar24-May-05 7:46 
You need to call BeginInvoke if you accessing the form from a different thread. See this[^] article to know more about BeginInvoke. The code to do what you want will look like
private void ThreadFunc()
{
   Thread.Sleep(5000);
   infoBox.BeginInvoke(new MethodInvoker(infoBox.Close(), null);
}

This will Close on the UI thread after 5 seconds. Hopefully that'll solve your problem.

Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
GeneralRe: TImed Form Pin
Luis Alonso Ramos24-May-05 11:14
Luis Alonso Ramos24-May-05 11:14 
Generaldocument variables Pin
merlinos24-May-05 6:15
merlinos24-May-05 6:15 
QuestionHow we can pass a string variable to matlab Pin
hediii24-May-05 5:43
hediii24-May-05 5:43 
AnswerRe: How we can pass a string variable to matlab Pin
eggie524-May-05 12:42
eggie524-May-05 12:42 
AnswerRe: How we can pass a string variable to matlab Pin
hediii25-May-05 21:59
hediii25-May-05 21:59 
GeneralOPSEC SDK Pin
NitinR24-May-05 4:54
NitinR24-May-05 4:54 
GeneralRe: OPSEC SDK Pin
Judah Gabriel Himango25-May-05 4:18
sponsorJudah Gabriel Himango25-May-05 4:18 
Generalchange number color to 128 on a tif image Pin
kyfranBibax24-May-05 4:01
kyfranBibax24-May-05 4:01 
GeneralRe: change number color to 128 on a tif image Pin
kyfranBibax25-May-05 2:00
kyfranBibax25-May-05 2:00 
GeneralWMI Win32_PrintJob and windows service Pin
Member 198883924-May-05 3:58
Member 198883924-May-05 3:58 
Generalcould u tell me about Integrated Security=SSPI Pin
Trivikram Dwivedi24-May-05 3:56
Trivikram Dwivedi24-May-05 3:56 
GeneralRe: could u tell me about Integrated Security=SSPI Pin
Judah Gabriel Himango24-May-05 4:33
sponsorJudah Gabriel Himango24-May-05 4:33 
GeneralRe: could u tell me about Integrated Security=SSPI Pin
Trivikram Dwivedi25-May-05 1:05
Trivikram Dwivedi25-May-05 1:05 
Generaluninstall code Pin
Mohammad Daba'an24-May-05 3:33
Mohammad Daba'an24-May-05 3:33 
GeneralPrint Direct without Spool Pin
XamIam24-May-05 3:21
XamIam24-May-05 3:21 
GeneralRe: Print Direct without Spool Pin
Serdar YILMAZ24-May-05 3:36
Serdar YILMAZ24-May-05 3:36 
GeneralRe: Print Direct without Spool Pin
XamIam24-May-05 6:36
XamIam24-May-05 6:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.