Click here to Skip to main content
15,887,746 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionsoliworks image Pin
bhargava240925-Jun-09 2:04
bhargava240925-Jun-09 2:04 
AnswerRe: soliworks image Pin
Jon_Boy25-Jun-09 2:26
Jon_Boy25-Jun-09 2:26 
QuestionGDI+ problem? Pin
O.G.I.25-Jun-09 0:59
O.G.I.25-Jun-09 0:59 
AnswerRe: GDI+ problem? Pin
Thomas Krojer25-Jun-09 1:07
Thomas Krojer25-Jun-09 1:07 
AnswerRe: GDI+ problem? Pin
Dave Kreskowiak25-Jun-09 4:12
mveDave Kreskowiak25-Jun-09 4:12 
AnswerRe: GDI+ problem? Pin
O.G.I.25-Jun-09 4:20
O.G.I.25-Jun-09 4:20 
GeneralRe: GDI+ problem? Pin
Jon_Boy25-Jun-09 4:30
Jon_Boy25-Jun-09 4:30 
GeneralRe: GDI+ problem? [modified] Pin
Luc Pattyn25-Jun-09 4:36
sitebuilderLuc Pattyn25-Jun-09 4:36 
Hi,

I don't see where the image's fileformat would be relevant, assuming you load the images into memory once (hence outside your drawing methods), which turns them into uncompressed bitmaps anyway, e.g. using Bitmap bm=Bitmap.FromFile(filepath); or something similar with FromSream. (example is C# syntax!).

PS: I strongly object to your code swallowing exceptions; if you (think you) need a try-catch, then do something useful with the exception, e.g. display it's Exception.ToString().

[ADDED]And if there is a very specific exception that you rightfully want to ignore, add a catch for that specific exception and insert a comment as to why it is OK to ignore it; then leave the more general catch out, or put some code in it.
[/ADDED]

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.

modified on Thursday, June 25, 2009 10:44 AM

Questiontree view node click event Pin
bhargava240925-Jun-09 0:11
bhargava240925-Jun-09 0:11 
AnswerRe: tree view node click event Pin
dan!sh 25-Jun-09 1:11
professional dan!sh 25-Jun-09 1:11 
GeneralRe: tree view node click event Pin
bhargava240925-Jun-09 1:16
bhargava240925-Jun-09 1:16 
GeneralRe: tree view node click event Pin
Jon_Boy25-Jun-09 1:39
Jon_Boy25-Jun-09 1:39 
GeneralRe: tree view node click event Pin
bhargava240925-Jun-09 1:59
bhargava240925-Jun-09 1:59 
GeneralRe: tree view node click event Pin
bhargava240925-Jun-09 2:00
bhargava240925-Jun-09 2:00 
GeneralRe: tree view node click event Pin
Jon_Boy25-Jun-09 2:08
Jon_Boy25-Jun-09 2:08 
GeneralRe: tree view node click event Pin
bhargava240925-Jun-09 2:27
bhargava240925-Jun-09 2:27 
GeneralRe: tree view node click event Pin
dan!sh 25-Jun-09 1:59
professional dan!sh 25-Jun-09 1:59 
QuestionLink dialog (Hyperlink) Pin
jinxster24-Jun-09 15:37
professionaljinxster24-Jun-09 15:37 
AnswerRe: Link dialog (Hyperlink) Pin
Christian Graus24-Jun-09 16:20
protectorChristian Graus24-Jun-09 16:20 
GeneralRe: Link dialog (Hyperlink) Pin
jinxster24-Jun-09 19:05
professionaljinxster24-Jun-09 19:05 
QuestionUse same DLL instance accross separate applications Pin
jwhite638824-Jun-09 11:42
jwhite638824-Jun-09 11:42 
AnswerRe: Use same DLL instance accross separate applications Pin
Christian Graus24-Jun-09 15:12
protectorChristian Graus24-Jun-09 15:12 
GeneralRe: Use same DLL instance accross separate applications Pin
Jon_Boy25-Jun-09 1:29
Jon_Boy25-Jun-09 1:29 
QuestionGetting pixel colors in VB.NET Pin
vidguy24-Jun-09 5:23
vidguy24-Jun-09 5:23 
AnswerRe: Getting pixel colors in VB.NET Pin
0x3c024-Jun-09 5:38
0x3c024-Jun-09 5:38 

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.