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
  1. Home
  2. General Programming
  3. Visual Basic
  4. Rad btn select case

Rad btn select case

Scheduled Pinned Locked Moved Visual Basic
questioncsharphelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jaydeanster
    wrote on last edited by
    #1

    Can someone help, I'm having a brain fart (new to vb.net)? Have a form with multiple radio buttons. When a user selects a radio button, then clicks submit, a form based on the selection will open. What is the simplest 'select case' code to do this? Thanks :)

    J 1 Reply Last reply
    0
    • J Jaydeanster

      Can someone help, I'm having a brain fart (new to vb.net)? Have a form with multiple radio buttons. When a user selects a radio button, then clicks submit, a form based on the selection will open. What is the simplest 'select case' code to do this? Thanks :)

      J Offline
      J Offline
      Just Greeky Creek
      wrote on last edited by
      #2

      i think in that situtaion u cannot use SElect Case, ElseIf more efficent if RadioButton1.Checked then 'Open Form1 dim _frm as new Form1 Form1.ShowDialog ElseIf RadioButton2.Checked then 'Open Form2 ElseIf RadioButton3.Checked then 'Open Form3 Else RadioButton4.Checked then 'Open Form4 End If

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

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