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. Display Form

Display Form

Scheduled Pinned Locked Moved Visual Basic
csharpsaleshelpquestion
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.
  • C Offline
    C Offline
    contact ajo
    wrote on last edited by
    #1

    I have created a project in vb.net which contains three forms named Form1, Form2, Form3. In runtime i will read form name based on customer input from a table. but this is in string format, like strFormToDisplay = "Form2", how can i show this form from this string, form2 is already included in project, but i can't create a form object using this string can u pls help me regards ajo

    M 1 Reply Last reply
    0
    • C contact ajo

      I have created a project in vb.net which contains three forms named Form1, Form2, Form3. In runtime i will read form name based on customer input from a table. but this is in string format, like strFormToDisplay = "Form2", how can i show this form from this string, form2 is already included in project, but i can't create a form object using this string can u pls help me regards ajo

      M Offline
      M Offline
      mr_12345
      wrote on last edited by
      #2

      You have 2 choices: select case FormToDisplay case "Form1" dim form as new Form1 case "Form2" dim form as new From2 case "Form3" dim form as new Form3 end case form.Show or Look at using reflection. Mike Lasseter

      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