Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

refreshing form on vb


  • Please log in to reply

#1
Gamer2bn

Gamer2bn

    Member

  • Member
  • PipPip
  • 48 posts
I am currently in the process of making a game for the purpose of learning to use vb. I have encountered a problem tho. I declare something as a variable in General Statements and then use it through that one form to change things on the form but when i tell it to change a varible the things affected by the varible stay how they were when the form was first loaded how can i tell the form to change the values depending on the changed variable... also can i have the varible affect other forms?
  • 0

Advertisements


#2
skate_punk_21

skate_punk_21

    Malware Removal Expert

  • Retired Staff
  • 1,049 posts
there is a refresh command but its never worked for me (makes me think im using it wrong) lol my only solution for that was to unload / reload the form - which yes is a pain in the [bleep].

anywho your second question I CAN! answer! lol
if you want a variable to affect a different form than that which your viewing, you need to refer to it by the form its on...
EX.
public varchange as boolean

Private Sub Command1_click()
if varchange = true then
form2.label1.caption = "Varible is true"
end sub
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP