English 中文(简体)
全球不动产应用
原标题:Global Property for MDI application

我刚刚完成了一项MDI申请。 但是,现在我试图创造我能够创造的财产,并且通过一切儿童形式来维持这种财产。 关于家长形式,我有以下法典。

Private userrole As String

Public Property userrole() As String
    Get
        Return userrole
    End Get
    Set(ByVal value As String)
        userrole = value
    End Set
End Property

但是,我可以将财产从任何其他形式中划出。 I m相对较新。 NET以前的数据已经进入,但管理层希望能够将访问数据移至......。 NET

最佳回答

引人说,这是拼写上的一个简单错误。 用户role vs werrole。

Using the above method I can call form1.userrole.ToString and get the value of the variable. form1.userrole() = sets it.

I told you I was new. ;) Thanks for letting me be a part of this forum.

问题回答

暂无回答




相关问题
How can I edit a mutable property in Objective C?

I am trying to edit a mutable array from a property and can t seem to directly make it work. Consider the following code that seems to work, but seems also very inefficient; I have to copy the whole ...

Implicit conversion from void to XmlDocument

Probably a stupid question, but I m quite new to the whole "get-and-set-property"-kind of programming; I keep getting a compiling-error on this part of my code; private string _File = "Session.xml"; ...

Property binding across controls in WPF

I have two UserControls that I want to display in a Window. The value of the property "SelectedItem" of the first UserControl should be set to the second UserControl s "SelectedItem" property. How do ...

@staticmethod with @property

I want Stats.singleton.twitter_count += 1 and I thought I could do class Stats: singleton_object = None @property @staticmethod def singleton(): if Stats.singleton_object: ...

热门标签