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. Convert String DataType To Form Object

Convert String DataType To Form Object

Scheduled Pinned Locked Moved Visual Basic
question
3 Posts 3 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.
  • F Offline
    F Offline
    faravani
    wrote on last edited by
    #1

    I have a combobox that all my formname such as form1,form2,... listed that. i want when i select a formname from combobox the component of selected form list in listbox such as button1,textbox1,.... but when i choose a formname from combobox because it is a string havenot form property such as control,enabled,... how can convert selectitem in combobox from string to form??

    C A 2 Replies Last reply
    0
    • F faravani

      I have a combobox that all my formname such as form1,form2,... listed that. i want when i select a formname from combobox the component of selected form list in listbox such as button1,textbox1,.... but when i choose a formname from combobox because it is a string havenot form property such as control,enabled,... how can convert selectitem in combobox from string to form??

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      you cannot convert a string to a form, I would hope that is obvious. You could make the tag of the item the form that your string refers to, and then grab it from there, or build a map of strings to forms.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      1 Reply Last reply
      0
      • F faravani

        I have a combobox that all my formname such as form1,form2,... listed that. i want when i select a formname from combobox the component of selected form list in listbox such as button1,textbox1,.... but when i choose a formname from combobox because it is a string havenot form property such as control,enabled,... how can convert selectitem in combobox from string to form??

        A Offline
        A Offline
        Anoop Brijmohun
        wrote on last edited by
        #3

        Hi, You Can try This.... http://www.vbforums.com/showthread.php?t=538427[^] http://www.programmersheaven.com/mb/VBNET/217962/217962/how-to-convert-string-type-to-control-type--/[^] hope this helps Anoop Brijmohun

        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