Click here to Skip to main content
16,020,459 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hashtable Pin
afronaut8-Nov-02 9:52
afronaut8-Nov-02 9:52 
GeneralRe: Hashtable Pin
leppie8-Nov-02 12:48
leppie8-Nov-02 12:48 
GeneralRe: Hashtable Pin
John Fisher8-Nov-02 11:05
John Fisher8-Nov-02 11:05 
QuestionCan someone verify these assumptions on dialog boxes? Pin
LongRange.Shooter8-Nov-02 6:35
LongRange.Shooter8-Nov-02 6:35 
AnswerRe: Can someone verify these assumptions on dialog boxes? Pin
Daaron8-Nov-02 6:44
Daaron8-Nov-02 6:44 
GeneralRe: Can someone verify these assumptions on dialog boxes? Pin
LongRange.Shooter8-Nov-02 6:48
LongRange.Shooter8-Nov-02 6:48 
AnswerRe: Can someone verify these assumptions on dialog boxes? Pin
Richard Deeming8-Nov-02 6:53
mveRichard Deeming8-Nov-02 6:53 
AnswerRe: Can someone verify these assumptions on dialog boxes? Pin
James T. Johnson8-Nov-02 7:07
James T. Johnson8-Nov-02 7:07 
If you are just asking for confirmation you can use the MessageBox class to display a message box (MsgBox in VB6).

If you need the user to input something (something beyond clicking a button) then you'll have to use the approach you have now.

[edit]
Sample code would probably help you Smile | :)

MessageBox.Show("Are you sure you want to do this?", 
    "Are you sure?", 
    MessageBoxButtons.YesNo
);


The Show method returns a DialogResult like you are already using.
[/edit]

James

- out of order -
GeneralTransparency Pin
MrEyes8-Nov-02 6:14
MrEyes8-Nov-02 6:14 
GeneralRe: Transparency Pin
Paul Watson8-Nov-02 6:45
sitebuilderPaul Watson8-Nov-02 6:45 
GeneralRe: Transparency Pin
Andrew Lewis8-Nov-02 8:50
Andrew Lewis8-Nov-02 8:50 
GeneralRe: Transparency Pin
Paul Watson9-Nov-02 5:38
sitebuilderPaul Watson9-Nov-02 5:38 
Generalwin2k can show transparency too ... Pin
Karavaev Denis9-Nov-02 5:33
Karavaev Denis9-Nov-02 5:33 
GeneralRe: win2k can show transparency too ... Pin
Paul Watson9-Nov-02 5:38
sitebuilderPaul Watson9-Nov-02 5:38 
GeneralRe: Transparency Pin
MrEyes11-Nov-02 1:52
MrEyes11-Nov-02 1:52 
GeneralRe: Transparency Pin
Paul Watson11-Nov-02 2:11
sitebuilderPaul Watson11-Nov-02 2:11 
GeneralRe: Transparency Pin
MrEyes11-Nov-02 3:35
MrEyes11-Nov-02 3:35 
GeneralRe: Transparency Pin
MrEyes11-Nov-02 4:03
MrEyes11-Nov-02 4:03 
GeneralRe: How do i find if user clik "ok" on my Modal Dialog? Pin
perlmunger8-Nov-02 4:24
perlmunger8-Nov-02 4:24 
GeneralRecomended Data Store... Pin
Steve McLenithan8-Nov-02 2:32
Steve McLenithan8-Nov-02 2:32 
GeneralRe: Recomended Data Store... Pin
perlmunger8-Nov-02 5:20
perlmunger8-Nov-02 5:20 
GeneralRe: Recomended Data Store... Pin
Paul Watson8-Nov-02 6:54
sitebuilderPaul Watson8-Nov-02 6:54 
GeneralRe: Recomended Data Store... Pin
Steve McLenithan8-Nov-02 12:00
Steve McLenithan8-Nov-02 12:00 
GeneralNeed Help!!! C# Interfaces and C++ Classes Pin
Chris Powers8-Nov-02 1:51
Chris Powers8-Nov-02 1:51 
QuestionHow do i find if user clik "ok" on my Modal Dialog? Pin
Karavaev Denis8-Nov-02 0:54
Karavaev Denis8-Nov-02 0:54 

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.