开发者

using property of a class in another [closed]

开发者 https://www.devze.com 2023-01-26 20:44 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its c开发者_StackOverflowurrent
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its c开发者_StackOverflowurrent form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

i have a simple question.how can i use property of a class in another class in ?i have a picturebox in a class and i want to use the picture in picturebox in another class.how can i do it?thanks.


(edit: this answer relates to when the question referred to tabs)

Unless I have misunderstood the question, a couple of options:

  • have two separate instances of the PictureBox and associated image
  • sneakily re-position the PictureBox when the tab index changes (small saving on resources)
0

精彩评论

暂无评论...
验证码 换一张
取 消