Click here to Skip to main content
15,914,780 members
Home / Discussions / C#
   

C#

 
GeneralRe: web link manipulation Pin
ProEnggSoft11-Mar-12 0:26
ProEnggSoft11-Mar-12 0:26 
GeneralRe: web link manipulation Pin
Richard MacCutchan11-Mar-12 0:31
mveRichard MacCutchan11-Mar-12 0:31 
AnswerRe: web link manipulation Pin
L Viljoen10-Mar-12 21:41
professionalL Viljoen10-Mar-12 21:41 
QuestionReload Form1 when Form2 ShowDialog like? Pin
nhanlaptrinh10-Mar-12 17:14
nhanlaptrinh10-Mar-12 17:14 
AnswerRe: Reload Form1 when Form2 ShowDialog like? Pin
Ravi Bhavnani10-Mar-12 17:36
professionalRavi Bhavnani10-Mar-12 17:36 
GeneralRe: Reload Form1 when Form2 ShowDialog like? Pin
nhanlaptrinh10-Mar-12 17:42
nhanlaptrinh10-Mar-12 17:42 
AnswerRe: Reload Form1 when Form2 ShowDialog like? Pin
Luc Pattyn10-Mar-12 18:07
sitebuilderLuc Pattyn10-Mar-12 18:07 
GeneralRe: Reload Form1 when Form2 ShowDialog like? Pin
OriginalGriff11-Mar-12 0:35
mveOriginalGriff11-Mar-12 0:35 
The "proper" way to do this is to provide two buttons in Form2, and set their properties appropriately.

The "OK" button has the DialogResult set to Dialogresult.OK
The "Cancel" button has the DialogResult set to Dialogresult.Cancel
The Form has its AcceptButton property set to the OK button, and is CancelButton set to the Cancel Button.

The framework will then handle the buttons without any event handlers being necessary.
These properties can be set at design time.

In fact, I use a OK/Cancel button so often, I have made a VS Template to create it automatically - there is a Tip here which describes how to do it: Create Visual Studio forms for items you frequently use[^]
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

QuestionNeed Help Getting Info From One Class & Displaying In Program.Cs Pin
Scud0210-Mar-12 11:51
Scud0210-Mar-12 11:51 
AnswerRe: Need Help Getting Info From One Class & Displaying In Program.Cs Pin
RobCroll10-Mar-12 13:56
RobCroll10-Mar-12 13:56 
QuestionSalary Dellema Pin
L Viljoen10-Mar-12 11:29
professionalL Viljoen10-Mar-12 11:29 
AnswerRe: Salary Dellema Pin
Richard Andrew x6410-Mar-12 14:22
professionalRichard Andrew x6410-Mar-12 14:22 
AnswerRe: Salary Dellema Pin
Abhinav S10-Mar-12 18:22
Abhinav S10-Mar-12 18:22 
AnswerRe: Salary Dellema Pin
Richard MacCutchan10-Mar-12 23:48
mveRichard MacCutchan10-Mar-12 23:48 
GeneralRe: Salary Dellema Pin
L Viljoen11-Mar-12 2:06
professionalL Viljoen11-Mar-12 2:06 
GeneralRe: Salary Dellema Pin
Richard MacCutchan11-Mar-12 2:44
mveRichard MacCutchan11-Mar-12 2:44 
GeneralRe: Salary Dellema Pin
L Viljoen11-Mar-12 6:55
professionalL Viljoen11-Mar-12 6:55 
GeneralRe: Salary Dellema Pin
jschell12-Mar-12 8:58
jschell12-Mar-12 8:58 
Questionask button group Pin
Brillian Kharisma10-Mar-12 6:14
Brillian Kharisma10-Mar-12 6:14 
AnswerRe: ask button group Pin
Ravi Bhavnani10-Mar-12 7:14
professionalRavi Bhavnani10-Mar-12 7:14 
Questionlisting information from list of Panel controls Pin
Danzy8310-Mar-12 2:35
Danzy8310-Mar-12 2:35 
AnswerRe: listing information from list of Panel controls Pin
Ravi Bhavnani10-Mar-12 4:34
professionalRavi Bhavnani10-Mar-12 4:34 
GeneralRe: listing information from list of Panel controls Pin
Danzy8310-Mar-12 4:38
Danzy8310-Mar-12 4:38 
AnswerRe: listing information from list of Panel controls Pin
Luc Pattyn10-Mar-12 4:58
sitebuilderLuc Pattyn10-Mar-12 4:58 
GeneralRe: listing information from list of Panel controls Pin
Danzy8310-Mar-12 5:08
Danzy8310-Mar-12 5:08 

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.