Click here to Skip to main content
16,005,473 members
Home / Discussions / C#
   

C#

 
Generalmemory Pin
ahmed mohamed abdelhameed11-Jul-04 12:51
ahmed mohamed abdelhameed11-Jul-04 12:51 
GeneralCAS Questions Pin
J. Dunlap11-Jul-04 12:43
J. Dunlap11-Jul-04 12:43 
GeneralKilling Off Spam with C# Pin
LZ-AT-WORK11-Jul-04 11:21
LZ-AT-WORK11-Jul-04 11:21 
QuestionSetting User Permissions? Pin
wakkerjack11-Jul-04 10:41
wakkerjack11-Jul-04 10:41 
AnswerRe: Setting User Permissions? Pin
LongRange.Shooter12-Jul-04 5:36
LongRange.Shooter12-Jul-04 5:36 
GeneralRe: Setting User Permissions? Pin
wakkerjack20-Jul-04 0:49
wakkerjack20-Jul-04 0:49 
GeneralRe: Setting User Permissions? Pin
LongRange.Shooter20-Jul-04 2:50
LongRange.Shooter20-Jul-04 2:50 
GeneralUsing Model Dialog in C# Pin
ilmian11-Jul-04 10:25
ilmian11-Jul-04 10:25 
Hi,
I am using two model dialog boxes named "StartUp" and "AddNewItem" from the main Form named "Form1" with the following code

frmStartUp = new StartUp();
frmStartUp.ShowDialog();

if (frmStartUp.DialogResult == DialogResult.OK)
{
// Doing Something
frmStartUp.Dispose();
}
else if(frmStartUp.DialogResult == DialogResult.Cancel)
{
frmStartUp.Dispose();
}


same is the code for the second dialog box (AddNewItem).

When i click on the Cancal button of the second dialog box it gives the following excpetion


An unhandled exception of type 'System.Runtime.InteropServices.SEHException' occurred in system.windows.forms.dll

Additional information: External component has thrown an exception.

whereas clicking the cancal button of the first dialog box (StartUp) does not give any exception.

what the problem with it.

Thanks in Advance


Omar Rehman
GeneralRe: Using Model Dialog in C# Pin
DougW4811-Jul-04 12:52
DougW4811-Jul-04 12:52 
GeneralImage Measurements Pin
Rais Hafidz11-Jul-04 9:41
Rais Hafidz11-Jul-04 9:41 
GeneralRe: Image Measurements Pin
Christian Graus11-Jul-04 11:45
protectorChristian Graus11-Jul-04 11:45 
GeneralRe: Image Measurements Pin
Rais Hafidz11-Jul-04 14:12
Rais Hafidz11-Jul-04 14:12 
GeneralRe: Image Measurements Pin
Christian Graus11-Jul-04 14:15
protectorChristian Graus11-Jul-04 14:15 
GeneralRe: Image Measurements Pin
Rais Hafidz11-Jul-04 15:09
Rais Hafidz11-Jul-04 15:09 
GeneralRe: Image Measurements Pin
Rais Hafidz12-Jul-04 15:37
Rais Hafidz12-Jul-04 15:37 
GeneralRe: Image Measurements Pin
Christian Graus12-Jul-04 15:41
protectorChristian Graus12-Jul-04 15:41 
GeneralRe: Image Measurements Pin
Rais Hafidz12-Jul-04 16:55
Rais Hafidz12-Jul-04 16:55 
GeneralCreating a Preferences/Settings dialog. Pin
Marlun11-Jul-04 8:02
Marlun11-Jul-04 8:02 
GeneralRe: Creating a Preferences/Settings dialog. Pin
Roman Rodov11-Jul-04 20:31
Roman Rodov11-Jul-04 20:31 
Generalgdi+ problem Pin
kendao11-Jul-04 6:42
kendao11-Jul-04 6:42 
GeneralRe: gdi+ problem Pin
Name Removed11-Jul-04 10:53
Name Removed11-Jul-04 10:53 
GeneralRe: gdi+ problem Pin
Jay Shankar11-Jul-04 18:57
Jay Shankar11-Jul-04 18:57 
GeneralC# WinSock Control Pin
Axonn Echysttas11-Jul-04 6:31
Axonn Echysttas11-Jul-04 6:31 
Generalwindows folder properties Pin
Hugo Hallman11-Jul-04 2:39
Hugo Hallman11-Jul-04 2:39 
Generalconfig file in console app to store connection string help Pin
mtbjr11-Jul-04 1:17
mtbjr11-Jul-04 1:17 

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.