Click here to Skip to main content
15,914,222 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Adding image in HTML Email Pin
nitin_ion10-Aug-08 17:15
nitin_ion10-Aug-08 17:15 
QuestionHow I can find instance from hWnd Pin
manisghouri7-Aug-08 15:04
manisghouri7-Aug-08 15:04 
AnswerRe: How I can find instance from hWnd Pin
rprateek7-Aug-08 15:32
rprateek7-Aug-08 15:32 
GeneralRe: How I can find instance from hWnd Pin
manisghouri7-Aug-08 15:47
manisghouri7-Aug-08 15:47 
GeneralRe: How I can find instance from hWnd Pin
nlarson118-Aug-08 17:27
nlarson118-Aug-08 17:27 
QuestionHow can i send my cursor to catch even there is no error Pin
rprateek7-Aug-08 14:40
rprateek7-Aug-08 14:40 
AnswerRe: How can i send my cursor to catch even there is no error Pin
rprateek7-Aug-08 18:15
rprateek7-Aug-08 18:15 
GeneralRe: How can i send my cursor to catch even there is no error Pin
Colin Angus Mackay7-Aug-08 21:35
Colin Angus Mackay7-Aug-08 21:35 
That isn't actually a good answer. You are using the exception handling system to modify regular program flow rather than respond to exceptional events. Exceptions are very expensive to handle and should not be used unless the thing throwing the exception is a very unusual case that you don't expect to happen, but need to handle if it does.

You also say in your blog post that "in the catch part you can do all your garbage collection and closing the instances." That is a very bad idea. It means you have to write the code twice, once for the good cases where everything works, and once for the bad cases, where things don't work out. What you should be really doing is creating a Finally block so that the resrouces get cleaned up regardless of whether the method ended well, or not.


AnswerRe: How can i send my cursor to catch even there is no error Pin
Colin Angus Mackay7-Aug-08 23:23
Colin Angus Mackay7-Aug-08 23:23 
QuestionGame Loop Pin
Krisztian Brizs7-Aug-08 11:44
Krisztian Brizs7-Aug-08 11:44 
AnswerRe: Game Loop Pin
Mycroft Holmes7-Aug-08 12:36
professionalMycroft Holmes7-Aug-08 12:36 
GeneralRe: Game Loop Pin
astanton19788-Aug-08 6:56
astanton19788-Aug-08 6:56 
QuestionVB.NET [modified] Pin
salam ellayan7-Aug-08 11:08
salam ellayan7-Aug-08 11:08 
AnswerRe: VB.NET Pin
Colin Angus Mackay7-Aug-08 21:37
Colin Angus Mackay7-Aug-08 21:37 
GeneralRe: VB.NET Pin
salam ellayan8-Aug-08 3:53
salam ellayan8-Aug-08 3:53 
QuestionQuestions about System.IndexOutOfRangeException: There is no row at position 0. Error Pin
Rafone7-Aug-08 9:33
Rafone7-Aug-08 9:33 
AnswerRe: Questions about System.IndexOutOfRangeException: There is no row at position 0. Error Pin
nlarson117-Aug-08 10:26
nlarson117-Aug-08 10:26 
GeneralRe: Questions about System.IndexOutOfRangeException: There is no row at position 0. Error Pin
astanton19788-Aug-08 6:58
astanton19788-Aug-08 6:58 
GeneralRe: Questions about System.IndexOutOfRangeException: There is no row at position 0. Error Pin
Rafone8-Aug-08 11:26
Rafone8-Aug-08 11:26 
Questionproblem with the souce code of paypal by Alexandr Golovanov Pin
snehasish7-Aug-08 2:54
snehasish7-Aug-08 2:54 
AnswerRe: problem with the souce code of paypal by Alexandr Golovanov Pin
jzonthemtn7-Aug-08 6:58
jzonthemtn7-Aug-08 6:58 
AnswerRe: problem with the souce code of paypal by Alexandr Golovanov Pin
Paul Conrad7-Aug-08 7:14
professionalPaul Conrad7-Aug-08 7:14 
QuestionSend mail from Default mail Client Pin
Sun Rays7-Aug-08 2:02
Sun Rays7-Aug-08 2:02 
AnswerRe: Send mail from Default mail Client Pin
jzonthemtn7-Aug-08 2:43
jzonthemtn7-Aug-08 2:43 
GeneralRe: Send mail from Default mail Client Pin
Sun Rays7-Aug-08 18:24
Sun Rays7-Aug-08 18:24 

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.