Click here to Skip to main content
15,891,941 members
Home / Discussions / C#
   

C#

 
AnswerRe: Windows Desktop Sharing as service... Pin
Michel Godfroid20-Apr-10 3:57
Michel Godfroid20-Apr-10 3:57 
GeneralRe: Windows Desktop Sharing as service... Pin
Jacob Dixon20-Apr-10 4:23
Jacob Dixon20-Apr-10 4:23 
GeneralRe: Windows Desktop Sharing as service... Pin
Michel Godfroid20-Apr-10 6:33
Michel Godfroid20-Apr-10 6:33 
QuestionWM_PAINT message in textbox Pin
thomus0720-Apr-10 3:02
thomus0720-Apr-10 3:02 
AnswerRe: WM_PAINT message in textbox Pin
Luc Pattyn20-Apr-10 3:38
sitebuilderLuc Pattyn20-Apr-10 3:38 
GeneralRe: WM_PAINT message in textbox Pin
thomus0720-Apr-10 3:46
thomus0720-Apr-10 3:46 
Questionhow can i show progress in Progress bar on MDI form from child form Pin
wasifmuneer19-Apr-10 21:58
wasifmuneer19-Apr-10 21:58 
AnswerRe: how can i show progress in Progress bar on MDI form from child form Pin
Anindya Chatterjee20-Apr-10 0:09
Anindya Chatterjee20-Apr-10 0:09 
Follow some simple steps:

1. Make the progressBar internal so that child form can access it.
2. Now access the progress bar like (child.MdiParent as ParentForm).progressBar.
3. Make sure you have a synchronization mechanism is on place so that at a time only one child form can access the proressbar.

[where child is the Child Form, ParentForm is the class name of the MDI form and progressBar is the control in MDI form.]

Or,

if you do not want to expose the control as internal then create some event in Child Form like

public event EventHandler<ProgressChangedEventArgs> ProgressChanged;


Then subscribe this event in parent form like

child.ProgressChanged += Child_ProgressChanged;


void Child_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
 // put your code here
}


and then call the event from child form like

if(ProgressChanged != null)
   ProgressChanged(this, new ProgressChangedEventArgs(progressPercentage, null));


AnswerRe: how can i show progress in Progress bar on MDI form from child form Pin
StM0n20-Apr-10 1:05
StM0n20-Apr-10 1:05 
AnswerRe: how can i show progress in Progress bar on MDI form from child form Pin
wasifmuneer20-Apr-10 20:35
wasifmuneer20-Apr-10 20:35 
QuestionJPEG deinterlacing Pin
Chesnokov Yuriy19-Apr-10 21:13
professionalChesnokov Yuriy19-Apr-10 21:13 
QuestionRe: JPEG deinterlacing Pin
Chesnokov Yuriy19-Apr-10 22:16
professionalChesnokov Yuriy19-Apr-10 22:16 
QuestionExporting Datagridview Headers to excel Pin
ZiggyNet19-Apr-10 20:33
ZiggyNet19-Apr-10 20:33 
AnswerRe: Exporting Datagridview Headers to excel Pin
Mycroft Holmes19-Apr-10 22:40
professionalMycroft Holmes19-Apr-10 22:40 
RantRe: Exporting Datagridview Headers to excel Pin
ZiggyNet20-Apr-10 3:46
ZiggyNet20-Apr-10 3:46 
GeneralRe: Exporting Datagridview Headers to excel Pin
Mycroft Holmes20-Apr-10 12:25
professionalMycroft Holmes20-Apr-10 12:25 
QuestionWhy the form be changed? [modified][Solved] Pin
yu-jian19-Apr-10 20:21
yu-jian19-Apr-10 20:21 
QuestionRe: Why the form be changed? Pin
Michel Godfroid19-Apr-10 20:37
Michel Godfroid19-Apr-10 20:37 
AnswerRe: Why the form be changed? Pin
Mycroft Holmes19-Apr-10 22:42
professionalMycroft Holmes19-Apr-10 22:42 
GeneralRe: Why the form be changed? Pin
yu-jian20-Apr-10 6:58
yu-jian20-Apr-10 6:58 
QuestionBlock a method execution Pin
Hum Dum19-Apr-10 18:59
Hum Dum19-Apr-10 18:59 
QuestionRe: Block a method execution Pin
Michel Godfroid19-Apr-10 19:41
Michel Godfroid19-Apr-10 19:41 
AnswerRe: Block a method execution Pin
Hum Dum19-Apr-10 20:00
Hum Dum19-Apr-10 20:00 
QuestionRe: Block a method execution Pin
Michel Godfroid19-Apr-10 20:23
Michel Godfroid19-Apr-10 20:23 
GeneralRe: Block a method execution Pin
Luc Pattyn20-Apr-10 1:11
sitebuilderLuc Pattyn20-Apr-10 1:11 

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.