Click here to Skip to main content
15,936,119 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need a multiline listview Windows Forms control Pin
hammackj3-Jan-04 21:55
hammackj3-Jan-04 21:55 
GeneralRe: Need a multiline listview Windows Forms control Pin
Roman R.4-Jan-04 5:49
Roman R.4-Jan-04 5:49 
GeneralRe: Need a multiline listview Windows Forms control Pin
hammackj4-Jan-04 10:49
hammackj4-Jan-04 10:49 
GeneralCustom MessageBox buttons Pin
Broken God3-Jan-04 6:24
Broken God3-Jan-04 6:24 
GeneralRe: Custom MessageBox buttons Pin
Colin Angus Mackay3-Jan-04 6:51
Colin Angus Mackay3-Jan-04 6:51 
GeneralRe: Custom MessageBox buttons Pin
jconwell3-Jan-04 18:05
jconwell3-Jan-04 18:05 
GeneralUsing Word with C# Pin
Stephane David3-Jan-04 5:43
Stephane David3-Jan-04 5:43 
GeneralRe: Using Word with C# Pin
Heath Stewart3-Jan-04 8:03
protectorHeath Stewart3-Jan-04 8:03 
The form is probably closing because you're not handling the exception like you should be. Users should never see an exception thrown but should see a nice little error message without your app crashing.

As far as the COMException, I'm betting the problem is where param values should be an empty variant but you're passing a reference to false. This is not the same in the world of COM. Instead, try the following:
object empty = Missing.Value;
Anywhere you need to pass an empty argument, pass a ref to empty (or whatever you call it).

Also, .NET naming conventions recommend that you don't use the hungarian notation, like putting "C" before a class name. Just consider how all the classes you use in the .NET Base Class Library (BCL) are named, as well as the methods, properties, etc. Using the same conventions is important, because anyone using your library or extending your application - and that's any language that targets the CLR like C#, VB.NET, MC++, COBOL.NET, and many others - should be consistent to avoid confusion and other hastles.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Using Word with C# Pin
Stephane David3-Jan-04 9:58
Stephane David3-Jan-04 9:58 
GeneralRe: Using Word with C# Pin
Nick Parker3-Jan-04 10:05
protectorNick Parker3-Jan-04 10:05 
GeneralRe: Using Word with C# Pin
Stephane David3-Jan-04 10:16
Stephane David3-Jan-04 10:16 
GeneralRe: Using Word with C# Pin
Heath Stewart3-Jan-04 10:58
protectorHeath Stewart3-Jan-04 10:58 
GeneralRe: Using Word with C# Pin
Stephane David3-Jan-04 19:00
Stephane David3-Jan-04 19:00 
GeneralRe: Using Word with C# Pin
Heath Stewart3-Jan-04 19:02
protectorHeath Stewart3-Jan-04 19:02 
GeneralRe: Using Word with C# Pin
Stephane David3-Jan-04 19:40
Stephane David3-Jan-04 19:40 
GeneralRe: Using Word with C# Pin
Heath Stewart3-Jan-04 19:42
protectorHeath Stewart3-Jan-04 19:42 
GeneralRe: Using Word with C# Pin
Stephane David3-Jan-04 19:49
Stephane David3-Jan-04 19:49 
GeneralRe: Using Word with C# Pin
Stephane David8-Jan-04 11:04
Stephane David8-Jan-04 11:04 
GeneralDisabled toolbar images Pin
richjm3-Jan-04 2:47
richjm3-Jan-04 2:47 
GeneralRe: Disabled toolbar images Pin
Heath Stewart3-Jan-04 7:38
protectorHeath Stewart3-Jan-04 7:38 
Questionstart menu? Pin
warelord3-Jan-04 0:22
warelord3-Jan-04 0:22 
AnswerRe: start menu? Pin
leppie3-Jan-04 1:37
leppie3-Jan-04 1:37 
AnswerRe: start menu? Pin
Jan R Hansen3-Jan-04 1:37
Jan R Hansen3-Jan-04 1:37 
AnswerRe: start menu? Pin
Steve McLenithan3-Jan-04 6:50
Steve McLenithan3-Jan-04 6:50 
AnswerRe: start menu? Pin
Heath Stewart3-Jan-04 7:21
protectorHeath Stewart3-Jan-04 7:21 

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.