Click here to Skip to main content
16,010,650 members
Home / Discussions / C#
   

C#

 
GeneralRe: Create when you need it - best practices Pin
Judah Gabriel Himango2-Feb-05 9:59
sponsorJudah Gabriel Himango2-Feb-05 9:59 
GeneralMail Encoding using MailMessage Pin
[DAve]2-Feb-05 8:16
[DAve]2-Feb-05 8:16 
QuestionSystem.Exception: CFCC is an invalid expression???? Pin
Member 15229922-Feb-05 8:08
Member 15229922-Feb-05 8:08 
GeneralSettings Window Height Pin
Guinness4Strength2-Feb-05 8:06
Guinness4Strength2-Feb-05 8:06 
GeneralRe: Settings Window Height Pin
Robert Rohde2-Feb-05 8:22
Robert Rohde2-Feb-05 8:22 
GeneralRe: Settings Window Height Pin
Guinness4Strength2-Feb-05 8:29
Guinness4Strength2-Feb-05 8:29 
GeneralCustom MessageBox Buttons Pin
JMichael24682-Feb-05 6:47
JMichael24682-Feb-05 6:47 
GeneralRe: Custom MessageBox Buttons Pin
Robert Rohde2-Feb-05 9:02
Robert Rohde2-Feb-05 9:02 
Calling ShowDialog of your MessageBoxForm will always show it modally and wait until the MessageBox is closed. As your MessageBox will have more result types than DialogResult can offer you will have to make your own enumeration and create a property where you can read the result form after the MessageBox is closed, e.g.:
MyMessageBox mmb = new MyMessageBox();
mmb.ShowDialog();
switch (mmb.Result) {
   case MyMessageBoxResult.Yes:
      //do something
   case MyMessageBoxResult.YesAll:
      //do even more
   ...
}

To make the handling like the one of the original MessageBox just declare a static function in your MessageBox class which returns the result.
GeneralExposing class library to COM Pin
Rein Petersen2-Feb-05 6:32
Rein Petersen2-Feb-05 6:32 
GeneralRe: Exposing class library to COM Pin
Judah Gabriel Himango2-Feb-05 8:34
sponsorJudah Gabriel Himango2-Feb-05 8:34 
GeneralConverting int / long to byte[] Pin
Tristan Rhodes2-Feb-05 4:22
Tristan Rhodes2-Feb-05 4:22 
GeneralRe: Converting int / long to byte[] Pin
Some Idiot2-Feb-05 4:39
Some Idiot2-Feb-05 4:39 
GeneralRe: Converting int / long to byte[] Pin
Tristan Rhodes2-Feb-05 6:27
Tristan Rhodes2-Feb-05 6:27 
GeneralCalling Functions in Other Forms. Pin
Dwayner792-Feb-05 4:17
Dwayner792-Feb-05 4:17 
GeneralRe: Calling Functions in Other Forms. Pin
Michael Potter2-Feb-05 4:57
Michael Potter2-Feb-05 4:57 
GeneralRe: Calling Functions in Other Forms. Pin
Dwayner792-Feb-05 6:25
Dwayner792-Feb-05 6:25 
GeneralRe: Calling Functions in Other Forms. Pin
Michael Potter2-Feb-05 7:32
Michael Potter2-Feb-05 7:32 
GeneralRe: Calling Functions in Other Forms. Pin
Dwayner792-Feb-05 8:10
Dwayner792-Feb-05 8:10 
GeneralRe: Calling Functions in Other Forms. Pin
Michael Potter2-Feb-05 10:08
Michael Potter2-Feb-05 10:08 
GeneralRe: Calling Functions in Other Forms. Pin
Dwayner792-Feb-05 11:19
Dwayner792-Feb-05 11:19 
GeneralRe: Calling Functions in Other Forms. Pin
Michael Potter2-Feb-05 11:36
Michael Potter2-Feb-05 11:36 
GeneralRe: Calling Functions in Other Forms. Pin
Dwayner793-Feb-05 1:37
Dwayner793-Feb-05 1:37 
GeneralRe: Calling Functions in Other Forms. Pin
Robert Rohde2-Feb-05 8:44
Robert Rohde2-Feb-05 8:44 
GeneralRe: Calling Functions in Other Forms. Pin
Dwayner792-Feb-05 11:21
Dwayner792-Feb-05 11:21 
GeneralImpersonation Pin
Esmo20002-Feb-05 4:12
Esmo20002-Feb-05 4:12 

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.