public ref class Regex public ref class Regex : System::Runtime::Serialization::ISerializable public class Regex public class Regex : System.Runtime.Serialization.ISerializable [System.Serializable] public class Regex : System.Runtime.Serialization.ISerializable type Regex = class type Regex = class interface ISerializable [<System.Serializable>] type Regex = class interface ISerializable Public C
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form2.Show() End Sub としたら、 Form2.Show()の行で、 非共有メンバを参照するには、オブジェクト参照が必要です。 というエラーが出るのですが、具体的にどうすればいいのでしょうか? Public Class Form2 このForm2は「型」(定義)です。 使う場合は「オブジェクト」(物)にする(インスタンス化)必要があります。 New について調べてみてください。 逆に「共有メンバ」は「型.メンバ」で呼び出すことができます。 これについてはSharedを調べてください。 2007年3月11日日曜日 23:58 このご質問は、VB8 より前のバージ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く