开发者

using property of a class in another [closed]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜