Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account

refreshing form on vb

  • Please log in to reply




  • 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




    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...
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