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. change child form control property at runtime using vb.net 2003

change child form control property at runtime using vb.net 2003

Scheduled Pinned Locked Moved Visual Basic
csharphelp
4 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.
  • D Offline
    D Offline
    d_smit
    wrote on last edited by
    #1

    Hello All, In my application i have to change child form text and label's visible property to false based on some condition like: In my application MDI form is a startup screen and written the following code if bvar = false then dim frm as new frmchild frm.label1.visible=false frm.text="Hello" end if Presently i have written it in module because it has to be included in either a class or module as per requirement. But, whenever i execute my application, the label still remains visible and also form text remains the same. I am using dot net 2003. anyone who knows, Please help at the earliest how properties can be changed at runtime. Please provide some code if possible. Thanks .

    P 1 Reply Last reply
    0
    • D d_smit

      Hello All, In my application i have to change child form text and label's visible property to false based on some condition like: In my application MDI form is a startup screen and written the following code if bvar = false then dim frm as new frmchild frm.label1.visible=false frm.text="Hello" end if Presently i have written it in module because it has to be included in either a class or module as per requirement. But, whenever i execute my application, the label still remains visible and also form text remains the same. I am using dot net 2003. anyone who knows, Please help at the earliest how properties can be changed at runtime. Please provide some code if possible. Thanks .

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      Pass the Form object to module when you call the Module.

      Parwej Ahamad g.parwez@gmail.com

      D 1 Reply Last reply
      0
      • P Parwej Ahamad

        Pass the Form object to module when you call the Module.

        Parwej Ahamad g.parwez@gmail.com

        D Offline
        D Offline
        d_smit
        wrote on last edited by
        #3

        I have to change multiple child forms label property with a single call. is it possible. I am calling the procedure in MDI load event. In the single procedure, I have created instances of multiple child forms. Am i doing nothing wrong. the same code executes in vb.net 2005 , so how it can be done in vb.net 2003

        P 1 Reply Last reply
        0
        • D d_smit

          I have to change multiple child forms label property with a single call. is it possible. I am calling the procedure in MDI load event. In the single procedure, I have created instances of multiple child forms. Am i doing nothing wrong. the same code executes in vb.net 2005 , so how it can be done in vb.net 2003

          P Offline
          P Offline
          Parwej Ahamad
          wrote on last edited by
          #4

          Hi you need to hold the all object of the form. So Create the all form object out of the mdi form load method and call module and pass each form object to the module. Or if got any error messages then post here.

          Parwej Ahamad g.parwez@gmail.com

          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