Click here to Skip to main content
15,899,314 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionScroll a panel manually Pin
Dillipb21-Jun-07 19:29
Dillipb21-Jun-07 19:29 
AnswerRe: Scroll a panel manually Pin
Manas Bhardwaj22-Jun-07 5:24
professionalManas Bhardwaj22-Jun-07 5:24 
AnswerRe: Scroll a panel manually Pin
Vasudevan Deepak Kumar22-Jun-07 5:30
Vasudevan Deepak Kumar22-Jun-07 5:30 
QuestionC#/VS2005 Event fired on Network Activity Pin
xcguy8721-Jun-07 7:16
xcguy8721-Jun-07 7:16 
AnswerRe: C#/VS2005 Event fired on Network Activity Pin
Dave Kreskowiak21-Jun-07 7:48
mveDave Kreskowiak21-Jun-07 7:48 
GeneralRe: C#/VS2005 Event fired on Network Activity Pin
xcguy8710-Jul-07 9:10
xcguy8710-Jul-07 9:10 
GeneralRe: C#/VS2005 Event fired on Network Activity Pin
Dave Kreskowiak10-Jul-07 9:18
mveDave Kreskowiak10-Jul-07 9:18 
QuestionHow to customize BackgroundWorker Pin
sro11621-Jun-07 5:21
sro11621-Jun-07 5:21 
I want to use the class BackgroundWorker in a project I'm working on but I want to eliminate the need for the client to cast the arguments in some of the methods and events. So I want to derive a class from BackgroundWorker. I'm not sure how to implement this and I want to ask for some advice.

I know that I need to modify the following:

RunWorkerAsync
DoWork:
DoWorkEventArgs
RunWorkerCompleted
RunWorkerCompletedEventArgs

I understand that I can cast any reference object and pass it into RunWorkerAsync and then unbox it inside the the thread from DoWorkEventArgs.Argument since it returns an object but I want to hide that from the user. Instead, I want the custom class available in the Argument property. I want to be able to do the same thing for the RunWorkerCompleted event. I want RunWorkerCompletedEventArgs.Argument to return the custom class.

I know I will need to derive new EventArg classes but how do I get the data to/from the thread? Should I override the OnDoWork and OnRunWorkerCompleted methods to handle all of the casting in the background or do I create new event handlers, events and helper functions or is the solution a combination of the two? Any help will be appreciated.

Thanks

Steve

AnswerRe: How to customize BackgroundWorker Pin
Scott Dorman22-Jun-07 7:29
professionalScott Dorman22-Jun-07 7:29 
Questioncreating XmlNode tree without XmlDocument Pin
invictus321-Jun-07 5:12
invictus321-Jun-07 5:12 
AnswerRe: creating XmlNode tree without XmlDocument Pin
PIEBALDconsult21-Jun-07 11:19
mvePIEBALDconsult21-Jun-07 11:19 
QuestionServiceHost for WCF-Service Pin
marbou21-Jun-07 3:19
marbou21-Jun-07 3:19 
Questionwindow serevice and disk quota (Please help). [modified] Pin
goblins20-Jun-07 18:48
goblins20-Jun-07 18:48 
AnswerRe: window serevice and disk quota (Please help). Pin
originSH21-Jun-07 0:02
originSH21-Jun-07 0:02 
GeneralRe: window serevice and disk quota (Please help). Pin
goblins21-Jun-07 0:52
goblins21-Jun-07 0:52 
GeneralRe: window serevice and disk quota (Please help). Pin
Dave Kreskowiak21-Jun-07 2:09
mveDave Kreskowiak21-Jun-07 2:09 
GeneralRe: window serevice and disk quota (Please help). Pin
goblins21-Jun-07 14:09
goblins21-Jun-07 14:09 
QuestionDisabling Ctrl + F4 and Ctrl + F6 in MDI app Pin
MrAndrew20-Jun-07 4:38
MrAndrew20-Jun-07 4:38 
AnswerRe: Disabling Ctrl + F4 and Ctrl + F6 in MDI app Pin
Luc Pattyn20-Jun-07 4:49
sitebuilderLuc Pattyn20-Jun-07 4:49 
GeneralRe: Disabling Ctrl + F4 and Ctrl + F6 in MDI app Pin
MrAndrew20-Jun-07 5:51
MrAndrew20-Jun-07 5:51 
AnswerRe: Disabling Ctrl + F4 and Ctrl + F6 in MDI app Pin
Craster20-Jun-07 5:53
Craster20-Jun-07 5:53 
GeneralRe: Disabling Ctrl + F4 and Ctrl + F6 in MDI app Pin
MrAndrew20-Jun-07 6:05
MrAndrew20-Jun-07 6:05 
AnswerRe: Disabling Ctrl + F4 and Ctrl + F6 in MDI app Pin
MrAndrew20-Jun-07 7:08
MrAndrew20-Jun-07 7:08 
AnswerRe: Disabling Ctrl + F4 and Ctrl + F6 in MDI app Pin
Vasudevan Deepak Kumar22-Jun-07 5:29
Vasudevan Deepak Kumar22-Jun-07 5:29 
GeneralRe: Disabling Ctrl + F4 and Ctrl + F6 in MDI app Pin
MrAndrew23-Jun-07 4:37
MrAndrew23-Jun-07 4:37 

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.