Click here to Skip to main content
15,917,991 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionThrading with gui? Pin
EnigmaRulez13-Mar-07 4:39
EnigmaRulez13-Mar-07 4:39 
Hello, i have created a new thread to do some heavy stuff, it takes about 1-2 minute to be done, when the thread ends i want it to notify and change something in the gui, i cant access the gui from another thread so i tried creating a new delgate and invoke it, still it didnt manage to show changes in the gui... any idea?

i tried something like this:

protected btn_click(object sender, EventArgs e)

{

Thread t = new Thread(new ThreadStart(HeavyStuff))

t.start();

}

delegate void CleanGui();

void HeavyStuff()

{

// heavy stuff here

CleanGui p = CleaningGuiHere;

p.invoke();

}

void CleaningGuiHere()

{

}


AnswerRe: Thrading with gui? Pin
Eduard Keilholz13-Mar-07 6:53
Eduard Keilholz13-Mar-07 6:53 
AnswerRe: Thrading with gui? Pin
Sandeep Akhare13-Mar-07 6:57
Sandeep Akhare13-Mar-07 6:57 
GeneralRe: Thrading with gui? Pin
EnigmaRulez13-Mar-07 12:44
EnigmaRulez13-Mar-07 12:44 
QuestionRemove CSS class in C# Pin
digsy_13-Mar-07 3:54
digsy_13-Mar-07 3:54 
AnswerRe: Remove CSS class in C# Pin
Sandeep Akhare13-Mar-07 6:25
Sandeep Akhare13-Mar-07 6:25 
GeneralRe: Remove CSS class in C# Pin
digsy_13-Mar-07 6:34
digsy_13-Mar-07 6:34 
QuestionHow to Edit The SOAP Header in Visual Studio.NET Pin
w13RTH70Lo13-Mar-07 3:27
w13RTH70Lo13-Mar-07 3:27 
QuestionResizing Picture box in StrechImage mode and Gradiant problem!!!??? Pin
Narenge13-Mar-07 2:46
Narenge13-Mar-07 2:46 
QuestionWebservice object parameters from seperate assembly Pin
bradz1513-Mar-07 2:32
bradz1513-Mar-07 2:32 
AnswerRe: Webservice object parameters from seperate assembly Pin
Paddy Boyd13-Mar-07 4:34
Paddy Boyd13-Mar-07 4:34 
GeneralRe: Webservice object parameters from seperate assembly Pin
bradz1513-Mar-07 5:49
bradz1513-Mar-07 5:49 
Questionhow to get text from captcha image Pin
uday_kiran13-Mar-07 2:19
uday_kiran13-Mar-07 2:19 
AnswerRe: how to get text from captcha image Pin
badgrs13-Mar-07 2:46
badgrs13-Mar-07 2:46 
AnswerRe: how to get text from captcha image Pin
Sandeep Akhare13-Mar-07 2:56
Sandeep Akhare13-Mar-07 2:56 
QuestionI need your Opinion about this matter Pin
blitz2bleach13-Mar-07 2:17
blitz2bleach13-Mar-07 2:17 
AnswerRe: I need your Opinion about this matter Pin
Guffa13-Mar-07 7:08
Guffa13-Mar-07 7:08 
QuestionFormView Pin
Tyrone_whitey13-Mar-07 2:05
Tyrone_whitey13-Mar-07 2:05 
QuestionWhat is the point of using .NET data sources? Pin
DaveRRR13-Mar-07 1:56
DaveRRR13-Mar-07 1:56 
AnswerRe: What is the point of using .NET data sources? Pin
kubben13-Mar-07 3:06
kubben13-Mar-07 3:06 
QuestionResizing table Pin
Jeeva Mary Varghese13-Mar-07 1:44
Jeeva Mary Varghese13-Mar-07 1:44 
AnswerRe: Resizing table Pin
mareers13-Mar-07 1:55
mareers13-Mar-07 1:55 
QuestionHow to pass parameters to Sub Report from Main Report ? Pin
prakash_21013-Mar-07 1:34
prakash_21013-Mar-07 1:34 
QuestionImagebuttons Pin
nclauder13-Mar-07 1:32
nclauder13-Mar-07 1:32 
QuestionExtracting web page using ASP Pin
Imthu13-Mar-07 1:27
Imthu13-Mar-07 1:27 

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.