Click here to Skip to main content
15,881,424 members
Home / Discussions / C#
   

C#

 
GeneralRe: Loading a form in another form like win explorer Pin
LongRange.Shooter11-Mar-03 8:55
LongRange.Shooter11-Mar-03 8:55 
GeneralRe: Loading a form in another form like win explorer Pin
John'o12-Mar-03 12:09
John'o12-Mar-03 12:09 
GeneralRe: Loading a form in another form like win explorer Pin
LongRange.Shooter13-Mar-03 4:36
LongRange.Shooter13-Mar-03 4:36 
GeneralRe: Loading a form in another form like win explorer Pin
John'o24-Mar-03 20:11
John'o24-Mar-03 20:11 
GeneralRe: Loading a form in another form like win explorer Pin
LongRange.Shooter28-Mar-03 2:49
LongRange.Shooter28-Mar-03 2:49 
Generalpopulating an input of file type textbox Pin
CucumberPickles10-Mar-03 12:24
CucumberPickles10-Mar-03 12:24 
GeneralRe: populating an input of file type textbox Pin
James T. Johnson10-Mar-03 17:59
James T. Johnson10-Mar-03 17:59 
GeneralA simple Form OK button question Pin
DionChen10-Mar-03 11:36
DionChen10-Mar-03 11:36 
Hi,

In my WinForm App, I have to show another form2. but I do have to know if the user click on OK or Cancel. therefore I assigned DialogResult property of OK and Cancel button on Form2 to OK and Cancel, respectively. It works fine and I can use Dialogresult to figure out whether the OK or Cancel button is clicked to close the Form2.

The problem comes in when I add a errorProvider1 to form2, I use it to make sure a couple of textBoxes are not empty and then SetError on ErrorProvider. Because the OK button has DialogResult.OK property set, the dialog closes before I got chance to view the error.

Is there anyway to prevent the dialog form close if I have any errors. It is so easy to do in old MFC days. Frown | :-( .

Dion
GeneralRe: A simple Form OK button question Pin
Gogou10-Mar-03 12:02
Gogou10-Mar-03 12:02 
GeneralRe: A simple Form OK button question Pin
DionChen10-Mar-03 16:48
DionChen10-Mar-03 16:48 
GeneralRe: A simple Form OK button question Pin
James T. Johnson10-Mar-03 18:07
James T. Johnson10-Mar-03 18:07 
GeneralRe: A simple Form OK button question Pin
Zek3vil11-Mar-03 7:01
Zek3vil11-Mar-03 7:01 
GeneralRe: A simple Form OK button question Pin
LongRange.Shooter11-Mar-03 7:33
LongRange.Shooter11-Mar-03 7:33 
QuestionBackground color on a TreeView checkbox? Pin
se99ts10-Mar-03 10:35
se99ts10-Mar-03 10:35 
QuestionDataSet bind to datagrid, how to flush or reject changes on Form.Closing ? Pin
Chris Richner10-Mar-03 10:25
Chris Richner10-Mar-03 10:25 
AnswerRe: DataSet bind to datagrid, how to flush or reject changes on Form.Closing ? Pin
leppie10-Mar-03 10:39
leppie10-Mar-03 10:39 
GeneralRe: DataSet bind to datagrid, how to flush or reject changes on Form.Closing ? Pin
Chris Richner10-Mar-03 22:48
Chris Richner10-Mar-03 22:48 
GeneralRe: DataSet bind to datagrid, how to flush or reject changes on Form.Closing ? Pin
ed2d11-Mar-03 21:25
ed2d11-Mar-03 21:25 
GeneralRe: DataSet bind to datagrid, how to flush or reject changes on Form.Closing ? Pin
Chris Richner12-Mar-03 5:08
Chris Richner12-Mar-03 5:08 
QuestionGet xpath of current Node? Pin
Bog10-Mar-03 10:00
Bog10-Mar-03 10:00 
AnswerRe: Get xpath of current Node? Pin
Christian Graus10-Mar-03 10:08
protectorChristian Graus10-Mar-03 10:08 
GeneralDrawing my own tab... Pin
Gogou10-Mar-03 9:35
Gogou10-Mar-03 9:35 
GeneralRe: Drawing my own tab... Pin
leppie10-Mar-03 9:50
leppie10-Mar-03 9:50 
GeneralRe: Drawing my own tab... Pin
Gogou10-Mar-03 10:12
Gogou10-Mar-03 10:12 
Question3 State Treeview checkboxes? Pin
vlusardi10-Mar-03 6:25
vlusardi10-Mar-03 6:25 

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.