Help needed converting C# attribute to VB.Net

  • Thread starter Thread starter Rob Panosh
  • Start date Start date
R

Rob Panosh

Hello,

I have the following attribute that is coded in C# and need to convert to
VB.Net:

[DefaultChildType(typeof(TabPageExt))]

I tried this:
<DefaultChildType( Type.GetType("myTabPageExt"))>

and get the following syntax error: "Constant Expression is required"

Any help would be appreciated.

Thanks,
Rob Panosh
 
Hello,

Rob Panosh said:
I have the following attribute that is coded in C# and need
to convert to VB.Net:

[DefaultChildType(typeof(TabPageExt))]

I tried this:
<DefaultChildType( Type.GetType("myTabPageExt"))>

and get the following syntax error: "Constant Expression is
required"

\\\
<DefaultChildType(GetType(MyTabPageExt))>
///

HTH,
Herfried K. Wagner
 
Herfried,

Thanks ... worked perfectly ...

Rob

Herfried K. Wagner said:
Hello,

Rob Panosh said:
I have the following attribute that is coded in C# and need
to convert to VB.Net:

[DefaultChildType(typeof(TabPageExt))]

I tried this:
<DefaultChildType( Type.GetType("myTabPageExt"))>

and get the following syntax error: "Constant Expression is
required"

\\\
<DefaultChildType(GetType(MyTabPageExt))>
///

HTH,
Herfried K. Wagner
 
Back
Top