Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
AnswerRe: c# Pin
Dalek Dave8-Mar-11 22:28
professionalDalek Dave8-Mar-11 22:28 
AnswerRe: c# Pin
OriginalGriff8-Mar-11 23:46
mveOriginalGriff8-Mar-11 23:46 
GeneralRe: c# Pin
Eddy Vluggen9-Mar-11 0:21
professionalEddy Vluggen9-Mar-11 0:21 
GeneralRe: c# Pin
musefan9-Mar-11 4:19
musefan9-Mar-11 4:19 
GeneralRe: c# Pin
Eddy Vluggen9-Mar-11 8:33
professionalEddy Vluggen9-Mar-11 8:33 
GeneralRe: c# Pin
_Erik_9-Mar-11 3:54
_Erik_9-Mar-11 3:54 
AnswerRe: c# Pin
RaviRanjanKr9-Mar-11 16:52
professionalRaviRanjanKr9-Mar-11 16:52 
QuestionMaking a generic progress form Pin
Etienne_1238-Mar-11 19:30
Etienne_1238-Mar-11 19:30 
Hi
I created a form that acts as a progress indicator, including a progressbar and some labels etc. In the constructor of the progress form I register the delegate on the form that calls the progress form like so:
public ProgressForm()
{
SomeUserControl._updateProgressbarDelegate =
        new SomeUserControl.UpdateProgressbarDelegate(this.UpdateProgress);
}


This approach however needs to be made more generic so that it can be called from various other UserControls and forms. I`m not sure what the best aproach would be to do this. I tried passing the calling form/usercontrol through to the constructor when creating an instance of the progress form, but how would I then know that updateProgressbarDelegate is actually a delegate in the form/usercontrol I just passed through? If I do something like this:

public ProgressForm(UserControl callingControl)
{
   //do something with callingControl
}


..then updateProgressbarDelegate will obviously not show up in intellisense when typing callingControl. because it doesn't know of what type callingControl is.

Could anyone please provide some help or hints?
AnswerRe: Making a generic progress form Pin
Robert Rohde8-Mar-11 21:00
Robert Rohde8-Mar-11 21:00 
AnswerRe: Making a generic progress form Pin
_Erik_9-Mar-11 2:32
_Erik_9-Mar-11 2:32 
AnswerRe: Making a generic progress form Pin
RaviRanjanKr9-Mar-11 17:14
professionalRaviRanjanKr9-Mar-11 17:14 
GeneralRe: Making a generic progress form Pin
Etienne_1239-Mar-11 19:48
Etienne_1239-Mar-11 19:48 
QuestionLINQ to SQL - join and where: Is it performed in Database? Or load the dataset into memory before operation actually is performed? Pin
devvvy8-Mar-11 15:32
devvvy8-Mar-11 15:32 
AnswerRe: LINQ to SQL - join and where: Is it performed in Database? Or load the dataset into memory before operation actually is performed? Pin
Andy Brummer8-Mar-11 16:10
sitebuilderAndy Brummer8-Mar-11 16:10 
GeneralRe: LINQ to SQL - join and where: Is it performed in Database? Or load the dataset into memory before operation actually is performed? Pin
devvvy9-Mar-11 2:22
devvvy9-Mar-11 2:22 
QuestionTrying to write to a microchip, looking for guidance Pin
turbosupramk38-Mar-11 14:09
turbosupramk38-Mar-11 14:09 
AnswerRe: Trying to write to a microchip, looking for guidance Pin
Dan Mos9-Mar-11 0:33
Dan Mos9-Mar-11 0:33 
GeneralRe: Trying to write to a microchip, looking for guidance Pin
turbosupramk310-Mar-11 5:59
turbosupramk310-Mar-11 5:59 
GeneralRe: Trying to write to a microchip, looking for guidance Pin
Dan Mos11-Mar-11 6:05
Dan Mos11-Mar-11 6:05 
QuestionApplication directories for Form App? Pin
grmihel28-Mar-11 4:02
grmihel28-Mar-11 4:02 
AnswerRe: Application directories for Form App? Pin
Groulien8-Mar-11 4:20
Groulien8-Mar-11 4:20 
AnswerRe: Application directories for Form App? Pin
Dalek Dave8-Mar-11 5:41
professionalDalek Dave8-Mar-11 5:41 
GeneralRe: Application directories for Form App? Pin
fjdiewornncalwe8-Mar-11 5:58
professionalfjdiewornncalwe8-Mar-11 5:58 
AnswerRe: Application directories for Form App? Pin
Pete O'Hanlon8-Mar-11 6:40
mvePete O'Hanlon8-Mar-11 6:40 
GeneralRe: Application directories for Form App? Pin
grmihel29-Mar-11 22:10
grmihel29-Mar-11 22:10 

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.