Click here to Skip to main content
15,914,013 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I find a file associated icon? Pin
Lars Fisker19-Aug-03 10:48
Lars Fisker19-Aug-03 10:48 
QuestionTrapping the enter key? Pin
BoozeBomb19-Aug-03 8:57
BoozeBomb19-Aug-03 8:57 
AnswerRe: Trapping the enter key? Pin
Heath Stewart19-Aug-03 9:14
protectorHeath Stewart19-Aug-03 9:14 
GeneralRe: Trapping the enter key? Pin
BoozeBomb19-Aug-03 9:25
BoozeBomb19-Aug-03 9:25 
Generalasync delegates Pin
devvvy19-Aug-03 8:32
devvvy19-Aug-03 8:32 
GeneralRe: async delegates Pin
Heath Stewart19-Aug-03 9:26
protectorHeath Stewart19-Aug-03 9:26 
Generalsending mail with attachments Pin
Sprinkle19-Aug-03 7:57
Sprinkle19-Aug-03 7:57 
GeneralRe: sending mail with attachments Pin
Heath Stewart19-Aug-03 9:53
protectorHeath Stewart19-Aug-03 9:53 
Are you sure the path exists that you want to code? You should use File.Exists() before attaching it to be sure. Passing a string you typed and a string that you got from another call are not different to the application and the CLR whatsoever! Seriously - the CLR sees the same thing - it's a System.String.

Also, this doesn't use Outlook, but a simple SMTP mailer. If you use Outlook, you open a can of worms because then you must start interoping a lot of things, thereby bloating the application. You must also make sure that the user has a specific version of Outlook on their system, or make sure your app can handle different Outlook and Office API versions. If all you need to do is send mail, just stick with the simple SMTP mailer.

If you still want the Outlook functionality in your app, the .NET Framework SDK has several examples with Word and MSDN has many examples in VB.NET and C# (primarily VB.NET, unfortunately, but remember that all languages targeting the CLR use the SAME class library so most stuff is the same - just syntax is different).

 

-----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-----
QuestionDetermining radio button choice...??? Pin
vlusardi19-Aug-03 7:33
vlusardi19-Aug-03 7:33 
AnswerRe: Determining radio button choice...??? Pin
Heath Stewart19-Aug-03 9:56
protectorHeath Stewart19-Aug-03 9:56 
GeneralGIS in C# Pin
laphijia19-Aug-03 7:07
laphijia19-Aug-03 7:07 
GeneralUsing ActiveX control in C# Pin
Big Trev19-Aug-03 6:43
Big Trev19-Aug-03 6:43 
GeneralRe: Using ActiveX control in C# Pin
Stephane Rodriguez.19-Aug-03 8:45
Stephane Rodriguez.19-Aug-03 8:45 
GeneralRe: Using ActiveX control in C# Pin
Heath Stewart19-Aug-03 10:03
protectorHeath Stewart19-Aug-03 10:03 
GeneralRe: Using ActiveX control in C# Pin
Big Trev19-Aug-03 21:32
Big Trev19-Aug-03 21:32 
GeneralRe: Using ActiveX control in C# Pin
Heath Stewart20-Aug-03 2:26
protectorHeath Stewart20-Aug-03 2:26 
GeneralRe: Using ActiveX control in C# Pin
Big Trev20-Aug-03 2:44
Big Trev20-Aug-03 2:44 
GeneralMicrosoft Word automation Pin
Radoslav Bielik19-Aug-03 6:35
Radoslav Bielik19-Aug-03 6:35 
GeneralRe: Microsoft Word automation Pin
Stephane Rodriguez.19-Aug-03 6:42
Stephane Rodriguez.19-Aug-03 6:42 
GeneralRe: Microsoft Word automation Pin
Radoslav Bielik19-Aug-03 7:16
Radoslav Bielik19-Aug-03 7:16 
GeneralAdd a progressbar to a statusbar... Pin
BoozeBomb19-Aug-03 4:18
BoozeBomb19-Aug-03 4:18 
GeneralRe: Add a progressbar to a statusbar... Pin
Heath Stewart19-Aug-03 10:04
protectorHeath Stewart19-Aug-03 10:04 
Questionany "smarter" to convert char[] to byte[]? Pin
zecodela19-Aug-03 0:32
zecodela19-Aug-03 0:32 
AnswerRe: any "smarter" to convert char[] to byte[]? Pin
Venkatraman19-Aug-03 2:24
Venkatraman19-Aug-03 2:24 
GeneralRe: any "smarter" to convert char[] to byte[]? Pin
Heath Stewart19-Aug-03 10:07
protectorHeath Stewart19-Aug-03 10:07 

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.