Click here to Skip to main content
16,004,974 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionstring Pin
WhiteGirl2331-May-07 2:39
WhiteGirl2331-May-07 2:39 
AnswerRe: string Pin
Christian Graus31-May-07 2:46
protectorChristian Graus31-May-07 2:46 
AnswerRe: string Pin
shally_7931-May-07 2:47
shally_7931-May-07 2:47 
GeneralRe: string Pin
WhiteGirl2331-May-07 3:38
WhiteGirl2331-May-07 3:38 
GeneralRe: string Pin
Guffa31-May-07 5:25
Guffa31-May-07 5:25 
QuestionTransfer Cursor via Enter Key Input Pin
Duane in Japan31-May-07 2:19
Duane in Japan31-May-07 2:19 
AnswerRe: Transfer Cursor via Enter Key Input Pin
Marcus J. Smith31-May-07 2:47
professionalMarcus J. Smith31-May-07 2:47 
GeneralRe: Transfer Cursor via Enter Key Input Pin
Duane in Japan31-May-07 13:15
Duane in Japan31-May-07 13:15 
Thanks for your assistance, sorry, I am still a bit new to naming conventions, I have been sticking to the default names so I am not sure what to insert into your code. This includes the Form Load line of code also please. I have set the TAB index up to what I believe is by your instructions. Here is a piece of what I am working with. Where do I insert your code and how do I name the events.


Private Sub TextBox5_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles TextBox5.Validating
Dim Box2 As Double = 0
Dim Box5 As Double = 0
If TextBox5.Text.Length = 0 Then
'http://msdn2.microsoft.com/en-us/library/139z2azd.aspx, MsgBox
MsgBox("A 'B1' value is required.", MsgBoxStyle.Exclamation)
e.Cancel = True
ElseIf Not IsNumeric(TextBox5.Text) Then
MsgBox("This 'B1' value is not numeric.", MsgBoxStyle.Exclamation)
e.Cancel = True
'http://msdn2.microsoft.com/en-us/library/system.windows.forms.checkbox.checked(VS.80).aspx, CheckBox
ElseIf CheckBox2.Checked Then
e.Cancel = False
Else
Box2 = CDbl(TextBox2.Text)
Box5 = CDbl(TextBox5.Text)
TextBox3.Text = CStr(Box5 + 1)
TextBox4.Text = CStr(Box2 - Box5)
End If
If Box5 <= 0 Then
MsgBox("Your 'B1' value must be greater than zero.", MsgBoxStyle.Exclamation)
ElseIf e.Cancel = True Then
End If
TextBox35.Clear()
TextBox36.Clear()
TextBox37.Clear()
TextBox38.Clear()
TextBox39.Clear()
End Sub

Private Sub CheckBox2_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles CheckBox2.Validating
TextBox35.Text = TextBox5.Text
TextBox36.Focus()
End Sub


If needed right now, I would like to hit the enter key and go from textbox5 to checkbox2.


Duane in Japan
GeneralRe: Transfer Cursor via Enter Key Input Pin
Marcus J. Smith1-Jun-07 1:31
professionalMarcus J. Smith1-Jun-07 1:31 
GeneralRe: Transfer Cursor via Enter Key Input Pin
Duane in Japan3-Jun-07 4:12
Duane in Japan3-Jun-07 4:12 
QuestionDataGridView columns reorder themselves when I open the designer Pin
Marcus J. Smith31-May-07 1:41
professionalMarcus J. Smith31-May-07 1:41 
AnswerRe: DataGridView columns reorder themselves when I open the designer Pin
shally_7931-May-07 2:59
shally_7931-May-07 2:59 
QuestionGroup by/sum average Pin
cstrader23231-May-07 1:32
cstrader23231-May-07 1:32 
AnswerRe: Group by/sum average Pin
Guffa31-May-07 1:44
Guffa31-May-07 1:44 
GeneralRe: Group by/sum average Pin
cstrader23231-May-07 3:05
cstrader23231-May-07 3:05 
GeneralRe: Group by/sum average Pin
Guffa31-May-07 5:48
Guffa31-May-07 5:48 
GeneralRe: Group by/sum average Pin
cstrader23231-May-07 11:38
cstrader23231-May-07 11:38 
AnswerRe: Group by/sum average Pin
Guffa31-May-07 22:07
Guffa31-May-07 22:07 
Questionpls help... another question.... Pin
moomoooomoo31-May-07 1:28
moomoooomoo31-May-07 1:28 
AnswerRe: pls help... another question.... Pin
Rupesh Kumar Swami31-May-07 1:34
Rupesh Kumar Swami31-May-07 1:34 
GeneralRe: pls help... another question.... Pin
moomoooomoo31-May-07 1:43
moomoooomoo31-May-07 1:43 
GeneralRe: pls help... another question.... Pin
Rupesh Kumar Swami31-May-07 2:56
Rupesh Kumar Swami31-May-07 2:56 
GeneralRe: pls help... another question.... Pin
Guffa31-May-07 2:03
Guffa31-May-07 2:03 
GeneralRe: pls help... another question.... Pin
moomoooomoo31-May-07 2:13
moomoooomoo31-May-07 2:13 
GeneralRe: pls help... another question.... Pin
Marcus J. Smith31-May-07 2:48
professionalMarcus J. Smith31-May-07 2:48 

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.