Click here to Skip to main content
15,918,211 members
Home / Discussions / C#
   

C#

 
GeneralRe: bypassing the button event Pin
ameto13-Mar-05 23:37
ameto13-Mar-05 23:37 
GeneralRe: bypassing the button event Pin
Christian Wikander13-Mar-05 23:46
Christian Wikander13-Mar-05 23:46 
GeneralRe: bypassing the button event Pin
maheshfour14-Mar-05 0:05
maheshfour14-Mar-05 0:05 
GeneralRe: bypassing the button event Pin
mav.northwind14-Mar-05 0:17
mav.northwind14-Mar-05 0:17 
GeneralRe: bypassing the button event Pin
maheshfour14-Mar-05 0:28
maheshfour14-Mar-05 0:28 
GeneralRe: bypassing the button event Pin
mav.northwind14-Mar-05 0:53
mav.northwind14-Mar-05 0:53 
GeneralRe: bypassing the button event Pin
Pushkar Pathak15-Mar-05 19:22
Pushkar Pathak15-Mar-05 19:22 
GeneralRe: bypassing the button event Pin
Pushkar Pathak15-Mar-05 19:14
Pushkar Pathak15-Mar-05 19:14 
U can overcome this by many ways

firstly make checks in the main form after the dialog result returned OK and if the validity check fails showdialog the input form again

otherwise to keep the main form free from the validity check mechanism
check in the button click event ... since a modal dialog is not destroyed until disposed raise a flag that says "Wrong INput" and let main form check this flag and show the main form again .....

or set the dialog result for the form and the button to none and set the dialogresult for the form in the event if the check is alright so that clicking the button doesnt close the form but u do programitically when reqd and that the main for sees only the dialog result for the form .. take a look at this

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskretrievingdialoginformation.asp[^]


Pushkar Pathak
QuestionHow can I embed my application to .NET environment? Pin
Anonymous13-Mar-05 20:09
Anonymous13-Mar-05 20:09 
Generalbypassing the button evet Pin
maheshfour13-Mar-05 20:09
maheshfour13-Mar-05 20:09 
GeneralDelete multi row in datagrid Pin
joy_priyank13-Mar-05 19:18
joy_priyank13-Mar-05 19:18 
GeneralRe: Delete multi row in datagrid Pin
J4amieC13-Mar-05 22:29
J4amieC13-Mar-05 22:29 
GeneralRe: Delete multi row in datagrid Pin
joy_priyank13-Mar-05 23:36
joy_priyank13-Mar-05 23:36 
Generalcurve fitting Pin
bwagz13-Mar-05 13:05
bwagz13-Mar-05 13:05 
GeneralRe: curve fitting Pin
Sean Cundiff13-Mar-05 14:02
Sean Cundiff13-Mar-05 14:02 
GeneralA RichTextBox-related question Pin
Ratty_oTO13-Mar-05 12:49
Ratty_oTO13-Mar-05 12:49 
GeneralDataGrid Pin
Bahadir Cambel13-Mar-05 10:52
Bahadir Cambel13-Mar-05 10:52 
GeneralRe: DataGrid Pin
Kodanda Pani13-Mar-05 18:03
Kodanda Pani13-Mar-05 18:03 
GeneralRe: DataGrid Pin
Bahadir Cambel13-Mar-05 19:54
Bahadir Cambel13-Mar-05 19:54 
GeneralRe: DataGrid Pin
Bahadir Cambel13-Mar-05 20:58
Bahadir Cambel13-Mar-05 20:58 
GeneralRe: DataGrid Pin
Kodanda Pani13-Mar-05 23:12
Kodanda Pani13-Mar-05 23:12 
GeneralCalendars Pin
Beringer13-Mar-05 10:37
Beringer13-Mar-05 10:37 
Questionhow to customize a print doc in c# Pin
dipesh patel13-Mar-05 9:58
dipesh patel13-Mar-05 9:58 
QuestionExcel automation again :) Appending images? Pin
zaubara13-Mar-05 9:49
zaubara13-Mar-05 9:49 
AnswerRe: Excel automation again :) Appending images? Pin
Anonymous14-Mar-05 0:14
Anonymous14-Mar-05 0:14 

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.