Click here to Skip to main content
15,924,507 members
Home / Discussions / C#
   

C#

 
AnswerRe: Deleting Excel menus Pin
Paul Conrad21-Jul-06 7:05
professionalPaul Conrad21-Jul-06 7:05 
QuestionInteractive Services in .NET 2.0 Pin
Waqas Nasir13-Jul-06 2:08
Waqas Nasir13-Jul-06 2:08 
AnswerRe: Interactive Services in .NET 2.0 Pin
Dave Kreskowiak13-Jul-06 6:56
mveDave Kreskowiak13-Jul-06 6:56 
QuestionGet a Label Caption from anotehr process! Pin
suguimoto13-Jul-06 1:50
suguimoto13-Jul-06 1:50 
AnswerRe: Get a Label Caption from anotehr process! Pin
Dave Kreskowiak13-Jul-06 6:53
mveDave Kreskowiak13-Jul-06 6:53 
GeneralRe: Get a Label Caption from anotehr process! Pin
suguimoto13-Jul-06 20:15
suguimoto13-Jul-06 20:15 
Questionwant create Custom control just like MessageBox Pin
indiaone13-Jul-06 1:26
indiaone13-Jul-06 1:26 
AnswerRe: want create Custom control just like MessageBox Pin
Roger Alsing13-Jul-06 1:38
Roger Alsing13-Jul-06 1:38 
Messagebox is not a control , its a dialog window that is invoked by a static method.

you can create something similair by doing:


public static class MyMessageBox
{
    public static MyOwnDialogResult Show(string title,string message,.whatever params you want.)
    {
       MyOwnMessageBoxForm form = new MyOwnMessageBoxForm ();
       form.Text = title;
       form.lblMessage.Text = message;
       ... setup icons etc.

       form.ShowDialog();
       MyOwnDialogResult  result = form.GetMyOwnDialogResult;

       return result;  
    }
}


this way you can make your own messagebox return the kind of result you want yourself.


it is also possible by doing a bit of win32 hacking to display the "real" messagebox and alter things in it.
but I dont see much reason to do so, its easier to roll your own and you can easier adapt it to your own needs.

//Roger

http://www.puzzleframework.com
GeneralRe: want create Custom control just like MessageBox Pin
indiaone13-Jul-06 1:47
indiaone13-Jul-06 1:47 
AnswerRe: want create Custom control just like MessageBox Pin
Ravi Bhavnani13-Jul-06 2:45
professionalRavi Bhavnani13-Jul-06 2:45 
QuestionCommand, Immediate window Pin
SysJey13-Jul-06 1:24
SysJey13-Jul-06 1:24 
AnswerRe: Command, Immediate window Pin
Ed.Poore15-Jul-06 12:59
Ed.Poore15-Jul-06 12:59 
QuestionWhats the best method to read the text value out of a specific XML element Pin
Red_Wizard_Shot_The_Food13-Jul-06 1:14
Red_Wizard_Shot_The_Food13-Jul-06 1:14 
AnswerRe: Whats the best method to read the text value out of a specific XML element Pin
stancrm13-Jul-06 1:32
stancrm13-Jul-06 1:32 
GeneralRe: Whats the best method to read the text value out of a specific XML element Pin
Red_Wizard_Shot_The_Food13-Jul-06 1:40
Red_Wizard_Shot_The_Food13-Jul-06 1:40 
GeneralRe: Whats the best method to read the text value out of a specific XML element Pin
stancrm13-Jul-06 1:49
stancrm13-Jul-06 1:49 
AnswerRe: Whats the best method to read the text value out of a specific XML element Pin
J4amieC13-Jul-06 2:36
J4amieC13-Jul-06 2:36 
GeneralRe: Whats the best method to read the text value out of a specific XML element Pin
Red_Wizard_Shot_The_Food13-Jul-06 1:40
Red_Wizard_Shot_The_Food13-Jul-06 1:40 
QuestionNeed Suggestion about handling of screen updates Pin
Rashid.Mahmood13-Jul-06 1:11
Rashid.Mahmood13-Jul-06 1:11 
AnswerRe: Need Suggestion about handling of screen updates Pin
Ed.Poore15-Jul-06 13:01
Ed.Poore15-Jul-06 13:01 
GeneralRe: Need Suggestion about handling of screen updates Pin
Rashid.Mahmood16-Jul-06 20:46
Rashid.Mahmood16-Jul-06 20:46 
GeneralRe: Need Suggestion about handling of screen updates Pin
Ed.Poore16-Jul-06 21:23
Ed.Poore16-Jul-06 21:23 
QuestionProblem with reading char from log file Pin
Yanshof13-Jul-06 1:02
Yanshof13-Jul-06 1:02 
AnswerRe: Problem with reading char from log file Pin
stancrm13-Jul-06 1:13
stancrm13-Jul-06 1:13 
GeneralThat exactly what i do - and its not working. Pin
Yanshof13-Jul-06 2:30
Yanshof13-Jul-06 2:30 

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.