Code for changing font through menu selection like "Arial"????
buzzykerbox
0
Light Poster
Recommended Answers
Jump to PostTextBox1.Font = New System.Drawing.Font("Arial", 10)
Jump to PostMaybe use a Try / Catch block:
Try guess = Convert.ToInt32(txtGuess.Text) Catch Ex as Exception MessageBox.Show("Invalid Input") End Try
I think that is the right format - I am not near the right computer to attempt. When you start a "Try" block much of the code generates …
Jump to PostGot to try it - this works.
Try guess = Convert.ToInt32(textbox1.Text) Catch ex As Exception MsgBox("Invalid Input - not an integer") End Try
All 10 Replies
Ken VB
0
Newbie Poster
buzzykerbox
0
Light Poster
Ken VB
0
Newbie Poster
Ken VB
0
Newbie Poster
buzzykerbox
0
Light Poster
Ken VB
0
Newbie Poster
Ken VB
0
Newbie Poster
apegram
302
LINQ!
Team Colleague
Ken VB
0
Newbie Poster
apegram
302
LINQ!
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.