Hello Jan,
Thanks for your interest firstly...
1) As I don't do a comparison on types this won't work.
2) Automatic converters converts this line as it is but .gettype is not
exposed in VB.Net although it's so in C#.
Any other suggestion?
Özden
"Jan Tielens" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 1) you can use typeof(MainComponent) instead of GetType(MainComponent)
>
> 2) Automatic conversion from C# to VB.NET
> http://www.kamalpatel.net/ConvertCSharp2VB.aspx
>
> --
> Greetz,
> Jan
> __________________________________
> Read my weblog: http://weblogs.asp.net/jan
> "Özden Irmak" <(E-Mail Removed)> schreef in bericht
> news:%(E-Mail Removed)...
> > Hello,
> >
> > This code line works on C# :
> >
> > MainComponent.gettype()
> >
> > where Maincomponent is a type of IComponent but I couldn't convert it
to
> > VB.Net. This way generates a warning in the designer as "Type
> > 'MainComponent' is not defined." :
> >
> > GetType(MainComponent)
> >
> > Any Suggestion?
> >
> > Also, does anybody know a guide (website,etc.) which will help me on my
> work
> > to convert some code from C# to VB.Net?
> >
> > Thanks in advance...
> >
> > Özden
> >
> >
>
>