2 Replies - 753 Views - Last Post: 06 October 2009 - 07:38 AM Rate Topic: -----

#1 hiteshwagh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 06-October 09

how to share same variable in different form

Posted 06 October 2009 - 04:56 AM

how to share same variable in different form
Is This A Good Question/Topic? 0
  • +

Replies To: how to share same variable in different form

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6058
  • View blog
  • Posts: 23,496
  • Joined: 23-August 08

Re: how to share same variable in different form

Posted 06 October 2009 - 05:10 AM

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: :code:

Thanks.
Was This Post Helpful? 0
  • +
  • -

#3 magius96  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 71
  • View blog
  • Posts: 774
  • Joined: 15-April 09

Re: how to share same variable in different form

Posted 06 October 2009 - 07:38 AM

You've got several options. You can either make your variable globally public, or you can pass the variable byref to the other form's constructor.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1