ybadragon's Profile
Reputation: 1
Apprentice
- Group:
- Members
- Active Posts:
- 32 (0.09 per day)
- Joined:
- 11-May 12
- Profile Views:
- 1,086
- Last Active:
Yesterday, 05:31 AM- Currently:
- Offline
Previous Fields
- Country:
- US
- OS Preference:
- Windows
- Favorite Browser:
- Chrome
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- Playstation
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Latest Visitors
-
tlhIn`toq 
06 Feb 2013 - 09:55 -
Celerian 
31 Jan 2013 - 19:46 -
modi123_1 
25 Jan 2013 - 11:12 -
macosxnerd101 
13 Jan 2013 - 00:02 -
lucky3 
05 Nov 2012 - 13:47 -
Atli 
16 Oct 2012 - 03:53 -
AdamSpeight2008 
27 May 2012 - 09:31
Posts I've Made
-
In Topic: Number not 0-100 display messagebox
Posted 27 Feb 2013
-
In Topic: Number not 0-100 display messagebox
Posted 27 Feb 2013
-
In Topic: Number not 0-100 display messagebox
Posted 27 Feb 2013
Quote
But in this case, i need to exclude words/letters, anything lower than 0, and anything higher than 100. its in the private sub textbox1_leave.
In this case you would first need to do Integer.TryParse(), then if that passes, do your check to see if what they have entered is between those two numbers.
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim i As Integer If Integer.TryParse(TextBox1.Text, i) Then ' see if what user entered is a number If CInt(TextBox1.Text) > 0 And CInt(TextBox1.Text) < 101 Then ' test if it's between specified values MessageBox.Show("Valid Entry") Else MessageBox.Show("Invalid Entry") End If Else MessageBox.Show("Invalid Entry") End If End Sub End Class -
In Topic: Text To Decimal is not valid? Please help
Posted 20 Feb 2013
-
In Topic: get text of the selected item in combobox
Posted 4 Feb 2013
@kristina1
Try setting a Breakpoint in the code you provided at line 3, and check the value of SelectedValue, then step through the code using the F8 key, and check the values of your other variables, to see where exactly it is failing to see an Object reference.
My Information
- Member Title:
- New D.I.C Head
- Age:
- 21 years old
- Birthday:
- June 12, 1991
- Gender:
-
- Location:
- Indiana
- Interests:
- Learning any programming languages, Magic the Gathering, Soccer
- Full Name:
- Brian Thomason
- Years Programming:
- 5
- Programming Languages:
- VB.Net, C#, Java, HTML, XHTML, SQL
Contact Information
- E-mail:
- Click here to e-mail me
|
|


Find Topics
Find Posts
View Reputation Given

|
Comments
ybadragon has no profile comments yet. Why not say hello?