Click here to Skip to main content
15,919,028 members
Home / Discussions / C#
   

C#

 
GeneralRe: Copying NOT Moving a Directory!!!! Pin
jesus4u13-Mar-03 1:49
jesus4u13-Mar-03 1:49 
QuestionSimple Regular Expression question ? Pin
Jonathan de Halleux11-Mar-03 1:02
Jonathan de Halleux11-Mar-03 1:02 
AnswerRe: Simple Regular Expression question ? Pin
Jeff J11-Mar-03 8:30
Jeff J11-Mar-03 8:30 
GeneralLoading a form in another form like win explorer Pin
John'o10-Mar-03 15:46
John'o10-Mar-03 15:46 
GeneralRe: Loading a form in another form like win explorer Pin
James T. Johnson10-Mar-03 18:18
James T. Johnson10-Mar-03 18:18 
GeneralRe: Loading a form in another form like win explorer Pin
Stephane Rodriguez.11-Mar-03 0:59
Stephane Rodriguez.11-Mar-03 0:59 
GeneralRe: Loading a form in another form like win explorer Pin
leppie11-Mar-03 8:37
leppie11-Mar-03 8:37 
GeneralRe: Loading a form in another form like win explorer Pin
Arun Bhalla17-Mar-03 17:04
Arun Bhalla17-Mar-03 17:04 
GeneralRe: Loading a form in another form like win explorer Pin
James T. Johnson17-Mar-03 18:00
James T. Johnson17-Mar-03 18:00 
GeneralRe: Loading a form in another form like win explorer Pin
Arun Bhalla17-Mar-03 18:16
Arun Bhalla17-Mar-03 18:16 
GeneralRe: Loading a form in another form like win explorer Pin
foxms13-Apr-03 4:29
foxms13-Apr-03 4:29 
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 

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.