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. Acess Form Controls

Acess Form Controls

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

    Hi all: I Have 2 controls in Form1 (TextBox1 and Command1). TextBox1.Text = "111" Then I have a class (myClass.vb) that inherits Form1 This class as a: Sub ChangeText() dim objForm1 as New Form1 objForm1.TextBox1.Text = "222" End Text When I click on Command1 i want to go to the ChangeText() in the other class and change TextBox1.Text Sub Command1_OnClick dim objmyClass as New myClass objmyClass.ChangeText() End Sub But it doesn't work :(( How can I change TextBox1 properties or other Control properties that are in Form1.vb from a sub that is in myClass.vb? Thanx in advance. Bruno

    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