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

Visual Basic

 
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 
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 
Your code would be better written as:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Dim i As Integer
    i = Val(Me.txtErrMsg.Text)
    If i = 4 Then
        Me.txtErrMsg.Text = "Now throwing Exception"
    Else
        Me.txtErrMsg.Text = "Normal"
    End If
End Sub


Exceptions are expensive. They take many clock cycles as the runtime has to figure out how to back out of what ever it was doing.


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 
GeneralRe: Send mail from Default mail Client Pin
jzonthemtn8-Aug-08 2:07
jzonthemtn8-Aug-08 2: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.