Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
D

djones1941

@djones1941
About
Posts
4
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Interger overflow exception
    D djones1941

    Thanks that helped alot and now I can finish the project that i was working on. Thanks for the Help Dave

    Visual Basic help question

  • Interger overflow exception
    D djones1941

    How do I turn on the integer overflow checking to On, so that I can get a System.OverflowException exception thrown. 'Declare FirstNum and SecondNum variables Dim FirstNum, SecondNum As Short Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click End End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Assign text box values to variables Try FirstNum = TextBox1.Text SecondNum = TextBox2.Text Catch When Err.Number = 6 'Overflow error MsgBox("Out of calculators peramiters") Catch When Err.Number = 11 'Division by zero error MsgBox("Can't divide by zero") End Try 'Determine checked button and calculate If RadioButton1.Checked = True Then TextBox3.Text = FirstNum + SecondNum End If If RadioButton2.Checked = True Then TextBox3.Text = FirstNum - SecondNum End If If RadioButton3.Checked = True Then TextBox3.Text = FirstNum * SecondNum End If If RadioButton4.Checked = True Then TextBox3.Text = FirstNum / SecondNum End If End Sub End Class Thanks for the Help Dave

    Visual Basic help question

  • [Message Deleted]
    D djones1941

    Sorry it is a short just got in a hurry and misstyped it. Thanks for letting me know Thanks for the Help Dave

    Visual Basic

  • [Message Deleted]
    D djones1941

    [Message Deleted]

    Visual Basic
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups