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. sharing the control

sharing the control

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

    Sir/Madam, Can i share my contol (textbox) - which is placed in the form - with other foms Thanks and Regads Pankaj

    N M 2 Replies Last reply
    0
    • A amaneet

      Sir/Madam, Can i share my contol (textbox) - which is placed in the form - with other foms Thanks and Regads Pankaj

      N Offline
      N Offline
      Navneet Hegde
      wrote on last edited by
      #2

      Yes , Remember form is Public Class, so you can get the values of textbox

      Develop2Program & Program2Develop

      1 Reply Last reply
      0
      • A amaneet

        Sir/Madam, Can i share my contol (textbox) - which is placed in the form - with other foms Thanks and Regads Pankaj

        M Offline
        M Offline
        manni_n
        wrote on last edited by
        #3

        well you can do this thing by making a public member object look at this in form one under a button clicking event dim myform as new form2 myform.yourpublicmember= textbox1.text in form two in form load event Public YourPublicMember As String Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Label1.Text = YourPublicMember End Sub

        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