Connecting Tech Pros Worldwide Help | Site Map

Convert from C# into VB

John Smith
Guest
 
Posts: n/a
#1: Jun 20 '06

Can someone convert from C# into VB this line for me:

if (c is System.Web.UI.HtmlControls.HtmlForm)



Poornimab
Guest
 
Posts: n/a
#2: Jun 20 '06

re: Convert from C# into VB


Hi,
Here's the Vb code.
If TypeOf c Is System.Web.UI.HtmlControls.HtmlForm Then

EndIf

Thanx.
"John Smith" <john.smith@microsoft.com> wrote in message
news:PyPlg.3850$oj5.1287266@news.siol.net...[color=blue]
>
> Can someone convert from C# into VB this line for me:
>
> if (c is System.Web.UI.HtmlControls.HtmlForm)
>
>
>[/color]


Karl Seguin [MVP]
Guest
 
Posts: n/a
#3: Jun 20 '06

re: Convert from C# into VB


For future reference, you can goto:
http://www.developerfusion.co.uk/uti...sharptovb.aspx

and type in:
if (c is System.Web.UI.HtmlControls.HtmlForm)
{
}

--
http://www.openmymind.net/



"John Smith" <john.smith@microsoft.com> wrote in message
news:PyPlg.3850$oj5.1287266@news.siol.net...[color=blue]
>
> Can someone convert from C# into VB this line for me:
>
> if (c is System.Web.UI.HtmlControls.HtmlForm)
>
>
>[/color]


Juan T. Llibre
Guest
 
Posts: n/a
#4: Jun 20 '06

re: Convert from C# into VB


Poornimab already gave you the answer, but the next time you need to
translate from C# to VB.NET, you might want to save yourself some time
and use this nifty online translator :

http://www.carlosag.net/Tools/CodeTr...r/default.aspx



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"John Smith" <john.smith@microsoft.com> wrote in message
news:PyPlg.3850$oj5.1287266@news.siol.net...[color=blue]
>
> Can someone convert from C# into VB this line for me:
>
> if (c is System.Web.UI.HtmlControls.HtmlForm)
>
>
>[/color]


John Smith
Guest
 
Posts: n/a
#5: Jun 20 '06

re: Convert from C# into VB


[color=blue]
> http://www.carlosag.net/Tools/CodeTr...r/default.aspx[/color]

Cool stuff.:) Thank you, guys.


David Anton
Guest
 
Posts: n/a
#6: Jun 20 '06

re: Convert from C# into VB


That on-line converter is usually pretty good, but it fails to convert the
original poster's sample.

Our C# to VB converter (Instant VB) will convert what the on-line converters
can't.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter
Instant C++: VB to C++ converter


"Juan T. Llibre" wrote:
[color=blue]
> Poornimab already gave you the answer, but the next time you need to
> translate from C# to VB.NET, you might want to save yourself some time
> and use this nifty online translator :
>
> http://www.carlosag.net/Tools/CodeTr...r/default.aspx
>
>
>
> Juan T. Llibre, asp.net MVP
> aspnetfaq.com : http://www.aspnetfaq.com/
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en español : http://asp.net.do/foros/
> ===================================
> "John Smith" <john.smith@microsoft.com> wrote in message
> news:PyPlg.3850$oj5.1287266@news.siol.net...[color=green]
> >
> > Can someone convert from C# into VB this line for me:
> >
> > if (c is System.Web.UI.HtmlControls.HtmlForm)
> >
> >
> >[/color]
>
>
>[/color]
Juan T. Llibre
Guest
 
Posts: n/a
#7: Jun 20 '06

re: Convert from C# into VB


David, when I used it, it returned :


If (c = System.Web.UI.HtmlControls.HtmlForm) Then
End If


Is there anything else your translator returns which Carlos' doesn't return ?




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
news:3D03FEA5-B29F-410C-88D8-66F89B140E52@microsoft.com...[color=blue]
> That on-line converter is usually pretty good, but it fails to convert the
> original poster's sample.
>
> Our C# to VB converter (Instant VB) will convert what the on-line converters
> can't.
> --
> David Anton
> www.tangiblesoftwaresolutions.com
> Instant C#: VB to C# converter
> Instant VB: C# to VB converter
> Instant C++: C# to C++ converter
> Instant C++: VB to C++ converter
>
>
> "Juan T. Llibre" wrote:
>[color=green]
>> Poornimab already gave you the answer, but the next time you need to
>> translate from C# to VB.NET, you might want to save yourself some time
>> and use this nifty online translator :
>>
>> http://www.carlosag.net/Tools/CodeTr...r/default.aspx
>>
>>
>>
>> Juan T. Llibre, asp.net MVP
>> aspnetfaq.com : http://www.aspnetfaq.com/
>> asp.net faq : http://asp.net.do/faq/
>> foros de asp.net, en español : http://asp.net.do/foros/
>> ===================================
>> "John Smith" <john.smith@microsoft.com> wrote in message
>> news:PyPlg.3850$oj5.1287266@news.siol.net...[color=darkred]
>> >
>> > Can someone convert from C# into VB this line for me:
>> >
>> > if (c is System.Web.UI.HtmlControls.HtmlForm)
>> >
>> >
>> >[/color]
>>
>>
>>[/color][/color]


David Anton
Guest
 
Posts: n/a
#8: Jun 20 '06

re: Convert from C# into VB


Poornimab gave the correct translation (same as our converter).
The equivalent to the C# "x is y" in VB is "TypeOf x Is y", not "x = y".
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter
Instant C++: VB to C++ converter


"Juan T. Llibre" wrote:
[color=blue]
> David, when I used it, it returned :
>
>
> If (c = System.Web.UI.HtmlControls.HtmlForm) Then
> End If
>
>
> Is there anything else your translator returns which Carlos' doesn't return ?
>
>
>
>
> Juan T. Llibre, asp.net MVP
> aspnetfaq.com : http://www.aspnetfaq.com/
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en español : http://asp.net.do/foros/
> ===================================
> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
> news:3D03FEA5-B29F-410C-88D8-66F89B140E52@microsoft.com...[color=green]
> > That on-line converter is usually pretty good, but it fails to convert the
> > original poster's sample.
> >
> > Our C# to VB converter (Instant VB) will convert what the on-line converters
> > can't.
> > --
> > David Anton
> > www.tangiblesoftwaresolutions.com
> > Instant C#: VB to C# converter
> > Instant VB: C# to VB converter
> > Instant C++: C# to C++ converter
> > Instant C++: VB to C++ converter
> >
> >
> > "Juan T. Llibre" wrote:
> >[color=darkred]
> >> Poornimab already gave you the answer, but the next time you need to
> >> translate from C# to VB.NET, you might want to save yourself some time
> >> and use this nifty online translator :
> >>
> >> http://www.carlosag.net/Tools/CodeTr...r/default.aspx
> >>
> >>
> >>
> >> Juan T. Llibre, asp.net MVP
> >> aspnetfaq.com : http://www.aspnetfaq.com/
> >> asp.net faq : http://asp.net.do/faq/
> >> foros de asp.net, en español : http://asp.net.do/foros/
> >> ===================================
> >> "John Smith" <john.smith@microsoft.com> wrote in message
> >> news:PyPlg.3850$oj5.1287266@news.siol.net...
> >> >
> >> > Can someone convert from C# into VB this line for me:
> >> >
> >> > if (c is System.Web.UI.HtmlControls.HtmlForm)
> >> >
> >> >
> >> >
> >>
> >>
> >>[/color][/color]
>
>
>[/color]
Juan T. Llibre
Guest
 
Posts: n/a
#9: Jun 20 '06

re: Convert from C# into VB


I'll notify Carlos...



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
news:56E737EE-95C0-4710-8311-918AA8A56EDB@microsoft.com...[color=blue]
> Poornimab gave the correct translation (same as our converter).
> The equivalent to the C# "x is y" in VB is "TypeOf x Is y", not "x = y".
> --
> David Anton
> www.tangiblesoftwaresolutions.com
> Instant C#: VB to C# converter
> Instant VB: C# to VB converter
> Instant C++: C# to C++ converter
> Instant C++: VB to C++ converter
>
>
> "Juan T. Llibre" wrote:
>[color=green]
>> David, when I used it, it returned :
>>
>>
>> If (c = System.Web.UI.HtmlControls.HtmlForm) Then
>> End If
>>
>>
>> Is there anything else your translator returns which Carlos' doesn't return ?
>>
>>
>>
>>
>> Juan T. Llibre, asp.net MVP
>> aspnetfaq.com : http://www.aspnetfaq.com/
>> asp.net faq : http://asp.net.do/faq/
>> foros de asp.net, en español : http://asp.net.do/foros/
>> ===================================
>> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
>> news:3D03FEA5-B29F-410C-88D8-66F89B140E52@microsoft.com...[color=darkred]
>> > That on-line converter is usually pretty good, but it fails to convert the
>> > original poster's sample.
>> >
>> > Our C# to VB converter (Instant VB) will convert what the on-line converters
>> > can't.
>> > --
>> > David Anton
>> > www.tangiblesoftwaresolutions.com
>> > Instant C#: VB to C# converter
>> > Instant VB: C# to VB converter
>> > Instant C++: C# to C++ converter
>> > Instant C++: VB to C++ converter
>> >
>> >
>> > "Juan T. Llibre" wrote:
>> >
>> >> Poornimab already gave you the answer, but the next time you need to
>> >> translate from C# to VB.NET, you might want to save yourself some time
>> >> and use this nifty online translator :
>> >>
>> >> http://www.carlosag.net/Tools/CodeTr...r/default.aspx
>> >>
>> >>
>> >>
>> >> Juan T. Llibre, asp.net MVP
>> >> aspnetfaq.com : http://www.aspnetfaq.com/
>> >> asp.net faq : http://asp.net.do/faq/
>> >> foros de asp.net, en español : http://asp.net.do/foros/
>> >> ===================================
>> >> "John Smith" <john.smith@microsoft.com> wrote in message
>> >> news:PyPlg.3850$oj5.1287266@news.siol.net...
>> >> >
>> >> > Can someone convert from C# into VB this line for me:
>> >> >
>> >> > if (c is System.Web.UI.HtmlControls.HtmlForm)
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >>[/color]
>>
>>
>>[/color][/color]


David Anton
Guest
 
Posts: n/a
#10: Jun 20 '06

re: Convert from C# into VB


I think Carlos' converter is the best on-line converter, but there are always
going to be many issues not handled well by any of the on-line converters.
See the following for a partial list:
http://www.tangiblesoftwaresolutions...Converters.htm
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter
Instant C++: VB to C++ converter


"Juan T. Llibre" wrote:
[color=blue]
> I'll notify Carlos...
>
>
>
> Juan T. Llibre, asp.net MVP
> aspnetfaq.com : http://www.aspnetfaq.com/
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en español : http://asp.net.do/foros/
> ===================================
> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
> news:56E737EE-95C0-4710-8311-918AA8A56EDB@microsoft.com...[color=green]
> > Poornimab gave the correct translation (same as our converter).
> > The equivalent to the C# "x is y" in VB is "TypeOf x Is y", not "x = y".
> > --
> > David Anton
> > www.tangiblesoftwaresolutions.com
> > Instant C#: VB to C# converter
> > Instant VB: C# to VB converter
> > Instant C++: C# to C++ converter
> > Instant C++: VB to C++ converter
> >
> >
> > "Juan T. Llibre" wrote:
> >[color=darkred]
> >> David, when I used it, it returned :
> >>
> >>
> >> If (c = System.Web.UI.HtmlControls.HtmlForm) Then
> >> End If
> >>
> >>
> >> Is there anything else your translator returns which Carlos' doesn't return ?
> >>
> >>
> >>
> >>
> >> Juan T. Llibre, asp.net MVP
> >> aspnetfaq.com : http://www.aspnetfaq.com/
> >> asp.net faq : http://asp.net.do/faq/
> >> foros de asp.net, en español : http://asp.net.do/foros/
> >> ===================================
> >> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
> >> news:3D03FEA5-B29F-410C-88D8-66F89B140E52@microsoft.com...
> >> > That on-line converter is usually pretty good, but it fails to convert the
> >> > original poster's sample.
> >> >
> >> > Our C# to VB converter (Instant VB) will convert what the on-line converters
> >> > can't.
> >> > --
> >> > David Anton
> >> > www.tangiblesoftwaresolutions.com
> >> > Instant C#: VB to C# converter
> >> > Instant VB: C# to VB converter
> >> > Instant C++: C# to C++ converter
> >> > Instant C++: VB to C++ converter
> >> >
> >> >
> >> > "Juan T. Llibre" wrote:
> >> >
> >> >> Poornimab already gave you the answer, but the next time you need to
> >> >> translate from C# to VB.NET, you might want to save yourself some time
> >> >> and use this nifty online translator :
> >> >>
> >> >> http://www.carlosag.net/Tools/CodeTr...r/default.aspx
> >> >>
> >> >>
> >> >>
> >> >> Juan T. Llibre, asp.net MVP
> >> >> aspnetfaq.com : http://www.aspnetfaq.com/
> >> >> asp.net faq : http://asp.net.do/faq/
> >> >> foros de asp.net, en español : http://asp.net.do/foros/
> >> >> ===================================
> >> >> "John Smith" <john.smith@microsoft.com> wrote in message
> >> >> news:PyPlg.3850$oj5.1287266@news.siol.net...
> >> >> >
> >> >> > Can someone convert from C# into VB this line for me:
> >> >> >
> >> >> > if (c is System.Web.UI.HtmlControls.HtmlForm)
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>[/color][/color]
>
>
>[/color]
Karl Seguin [MVP]
Guest
 
Posts: n/a
#11: Jun 21 '06

re: Convert from C# into VB


Well:
http://www.developerfusion.co.uk/uti...sharptovb.aspx

gave the right conversion. you simply needed to add the brackets {}

Karl

--
http://www.openmymind.net/



"David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
news:96CF39FF-C137-42A4-914A-9B9A3C50AE59@microsoft.com...[color=blue]
>I think Carlos' converter is the best on-line converter, but there are
>always
> going to be many issues not handled well by any of the on-line converters.
> See the following for a partial list:
> http://www.tangiblesoftwaresolutions...Converters.htm
> --
> David Anton
> www.tangiblesoftwaresolutions.com
> Instant C#: VB to C# converter
> Instant VB: C# to VB converter
> Instant C++: C# to C++ converter
> Instant C++: VB to C++ converter
>
>
> "Juan T. Llibre" wrote:
>[color=green]
>> I'll notify Carlos...
>>
>>
>>
>> Juan T. Llibre, asp.net MVP
>> aspnetfaq.com : http://www.aspnetfaq.com/
>> asp.net faq : http://asp.net.do/faq/
>> foros de asp.net, en español : http://asp.net.do/foros/
>> ===================================
>> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
>> news:56E737EE-95C0-4710-8311-918AA8A56EDB@microsoft.com...[color=darkred]
>> > Poornimab gave the correct translation (same as our converter).
>> > The equivalent to the C# "x is y" in VB is "TypeOf x Is y", not "x =
>> > y".
>> > --
>> > David Anton
>> > www.tangiblesoftwaresolutions.com
>> > Instant C#: VB to C# converter
>> > Instant VB: C# to VB converter
>> > Instant C++: C# to C++ converter
>> > Instant C++: VB to C++ converter
>> >
>> >
>> > "Juan T. Llibre" wrote:
>> >
>> >> David, when I used it, it returned :
>> >>
>> >>
>> >> If (c = System.Web.UI.HtmlControls.HtmlForm) Then
>> >> End If
>> >>
>> >>
>> >> Is there anything else your translator returns which Carlos' doesn't
>> >> return ?
>> >>
>> >>
>> >>
>> >>
>> >> Juan T. Llibre, asp.net MVP
>> >> aspnetfaq.com : http://www.aspnetfaq.com/
>> >> asp.net faq : http://asp.net.do/faq/
>> >> foros de asp.net, en español : http://asp.net.do/foros/
>> >> ===================================
>> >> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
>> >> news:3D03FEA5-B29F-410C-88D8-66F89B140E52@microsoft.com...
>> >> > That on-line converter is usually pretty good, but it fails to
>> >> > convert the
>> >> > original poster's sample.
>> >> >
>> >> > Our C# to VB converter (Instant VB) will convert what the on-line
>> >> > converters
>> >> > can't.
>> >> > --
>> >> > David Anton
>> >> > www.tangiblesoftwaresolutions.com
>> >> > Instant C#: VB to C# converter
>> >> > Instant VB: C# to VB converter
>> >> > Instant C++: C# to C++ converter
>> >> > Instant C++: VB to C++ converter
>> >> >
>> >> >
>> >> > "Juan T. Llibre" wrote:
>> >> >
>> >> >> Poornimab already gave you the answer, but the next time you need
>> >> >> to
>> >> >> translate from C# to VB.NET, you might want to save yourself some
>> >> >> time
>> >> >> and use this nifty online translator :
>> >> >>
>> >> >> http://www.carlosag.net/Tools/CodeTr...r/default.aspx
>> >> >>
>> >> >>
>> >> >>
>> >> >> Juan T. Llibre, asp.net MVP
>> >> >> aspnetfaq.com : http://www.aspnetfaq.com/
>> >> >> asp.net faq : http://asp.net.do/faq/
>> >> >> foros de asp.net, en español : http://asp.net.do/foros/
>> >> >> ===================================
>> >> >> "John Smith" <john.smith@microsoft.com> wrote in message
>> >> >> news:PyPlg.3850$oj5.1287266@news.siol.net...
>> >> >> >
>> >> >> > Can someone convert from C# into VB this line for me:
>> >> >> >
>> >> >> > if (c is System.Web.UI.HtmlControls.HtmlForm)
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>[/color]
>>
>>
>>[/color][/color]


David Anton
Guest
 
Posts: n/a
#12: Jun 21 '06

re: Convert from C# into VB


For developerfusion, try some generics or operator overloading... it'll trip
it up every time.

The on-line converters only handle the most obvious syntax conversions.
You're in for a surprise if you use the results in your production code.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter
Instant C++: VB to C++ converter


"Karl Seguin [MVP]" wrote:
[color=blue]
> Well:
> http://www.developerfusion.co.uk/uti...sharptovb.aspx
>
> gave the right conversion. you simply needed to add the brackets {}
>
> Karl
>
> --
> http://www.openmymind.net/
>
>
>
> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
> news:96CF39FF-C137-42A4-914A-9B9A3C50AE59@microsoft.com...[color=green]
> >I think Carlos' converter is the best on-line converter, but there are
> >always
> > going to be many issues not handled well by any of the on-line converters.
> > See the following for a partial list:
> > http://www.tangiblesoftwaresolutions...Converters.htm
> > --
> > David Anton
> > www.tangiblesoftwaresolutions.com
> > Instant C#: VB to C# converter
> > Instant VB: C# to VB converter
> > Instant C++: C# to C++ converter
> > Instant C++: VB to C++ converter
> >
> >
> > "Juan T. Llibre" wrote:
> >[color=darkred]
> >> I'll notify Carlos...
> >>
> >>
> >>
> >> Juan T. Llibre, asp.net MVP
> >> aspnetfaq.com : http://www.aspnetfaq.com/
> >> asp.net faq : http://asp.net.do/faq/
> >> foros de asp.net, en español : http://asp.net.do/foros/
> >> ===================================
> >> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
> >> news:56E737EE-95C0-4710-8311-918AA8A56EDB@microsoft.com...
> >> > Poornimab gave the correct translation (same as our converter).
> >> > The equivalent to the C# "x is y" in VB is "TypeOf x Is y", not "x =
> >> > y".
> >> > --
> >> > David Anton
> >> > www.tangiblesoftwaresolutions.com
> >> > Instant C#: VB to C# converter
> >> > Instant VB: C# to VB converter
> >> > Instant C++: C# to C++ converter
> >> > Instant C++: VB to C++ converter
> >> >
> >> >
> >> > "Juan T. Llibre" wrote:
> >> >
> >> >> David, when I used it, it returned :
> >> >>
> >> >>
> >> >> If (c = System.Web.UI.HtmlControls.HtmlForm) Then
> >> >> End If
> >> >>
> >> >>
> >> >> Is there anything else your translator returns which Carlos' doesn't
> >> >> return ?
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> Juan T. Llibre, asp.net MVP
> >> >> aspnetfaq.com : http://www.aspnetfaq.com/
> >> >> asp.net faq : http://asp.net.do/faq/
> >> >> foros de asp.net, en español : http://asp.net.do/foros/
> >> >> ===================================
> >> >> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
> >> >> news:3D03FEA5-B29F-410C-88D8-66F89B140E52@microsoft.com...
> >> >> > That on-line converter is usually pretty good, but it fails to
> >> >> > convert the
> >> >> > original poster's sample.
> >> >> >
> >> >> > Our C# to VB converter (Instant VB) will convert what the on-line
> >> >> > converters
> >> >> > can't.
> >> >> > --
> >> >> > David Anton
> >> >> > www.tangiblesoftwaresolutions.com
> >> >> > Instant C#: VB to C# converter
> >> >> > Instant VB: C# to VB converter
> >> >> > Instant C++: C# to C++ converter
> >> >> > Instant C++: VB to C++ converter
> >> >> >
> >> >> >
> >> >> > "Juan T. Llibre" wrote:
> >> >> >
> >> >> >> Poornimab already gave you the answer, but the next time you need
> >> >> >> to
> >> >> >> translate from C# to VB.NET, you might want to save yourself some
> >> >> >> time
> >> >> >> and use this nifty online translator :
> >> >> >>
> >> >> >> http://www.carlosag.net/Tools/CodeTr...r/default.aspx
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> Juan T. Llibre, asp.net MVP
> >> >> >> aspnetfaq.com : http://www.aspnetfaq.com/
> >> >> >> asp.net faq : http://asp.net.do/faq/
> >> >> >> foros de asp.net, en español : http://asp.net.do/foros/
> >> >> >> ===================================
> >> >> >> "John Smith" <john.smith@microsoft.com> wrote in message
> >> >> >> news:PyPlg.3850$oj5.1287266@news.siol.net...
> >> >> >> >
> >> >> >> > Can someone convert from C# into VB this line for me:
> >> >> >> >
> >> >> >> > if (c is System.Web.UI.HtmlControls.HtmlForm)
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >>
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>[/color][/color]
>
>
>[/color]
Juan T. Llibre
Guest
 
Posts: n/a
#13: Jun 21 '06

re: Convert from C# into VB


David,

what is your opinion on the SharpDevelop built-in converters ?




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
news:9389C0D1-9780-47E3-9C9C-7FD4DF634DC4@microsoft.com...[color=blue]
> For developerfusion, try some generics or operator overloading... it'll trip
> it up every time.
>
> The on-line converters only handle the most obvious syntax conversions.
> You're in for a surprise if you use the results in your production code.
> --
> David Anton
> www.tangiblesoftwaresolutions.com
> Instant C#: VB to C# converter
> Instant VB: C# to VB converter
> Instant C++: C# to C++ converter
> Instant C++: VB to C++ converter
>
>
> "Karl Seguin [MVP]" wrote:
>[color=green]
>> Well:
>> http://www.developerfusion.co.uk/uti...sharptovb.aspx
>>
>> gave the right conversion. you simply needed to add the brackets {}
>>
>> Karl
>>
>> --
>> http://www.openmymind.net/
>>
>>
>>
>> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
>> news:96CF39FF-C137-42A4-914A-9B9A3C50AE59@microsoft.com...[color=darkred]
>> >I think Carlos' converter is the best on-line converter, but there are
>> >always
>> > going to be many issues not handled well by any of the on-line converters.
>> > See the following for a partial list:
>> > http://www.tangiblesoftwaresolutions...Converters.htm
>> > --
>> > David Anton
>> > www.tangiblesoftwaresolutions.com
>> > Instant C#: VB to C# converter
>> > Instant VB: C# to VB converter
>> > Instant C++: C# to C++ converter
>> > Instant C++: VB to C++ converter
>> >
>> >
>> > "Juan T. Llibre" wrote:
>> >
>> >> I'll notify Carlos...
>> >>
>> >>
>> >>
>> >> Juan T. Llibre, asp.net MVP
>> >> aspnetfaq.com : http://www.aspnetfaq.com/
>> >> asp.net faq : http://asp.net.do/faq/
>> >> foros de asp.net, en español : http://asp.net.do/foros/
>> >> ===================================
>> >> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
>> >> news:56E737EE-95C0-4710-8311-918AA8A56EDB@microsoft.com...
>> >> > Poornimab gave the correct translation (same as our converter).
>> >> > The equivalent to the C# "x is y" in VB is "TypeOf x Is y", not "x =
>> >> > y".
>> >> > --
>> >> > David Anton
>> >> > www.tangiblesoftwaresolutions.com
>> >> > Instant C#: VB to C# converter
>> >> > Instant VB: C# to VB converter
>> >> > Instant C++: C# to C++ converter
>> >> > Instant C++: VB to C++ converter
>> >> >
>> >> >
>> >> > "Juan T. Llibre" wrote:
>> >> >
>> >> >> David, when I used it, it returned :
>> >> >>
>> >> >>
>> >> >> If (c = System.Web.UI.HtmlControls.HtmlForm) Then
>> >> >> End If
>> >> >>
>> >> >>
>> >> >> Is there anything else your translator returns which Carlos' doesn't
>> >> >> return ?
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> Juan T. Llibre, asp.net MVP
>> >> >> aspnetfaq.com : http://www.aspnetfaq.com/
>> >> >> asp.net faq : http://asp.net.do/faq/
>> >> >> foros de asp.net, en español : http://asp.net.do/foros/
>> >> >> ===================================
>> >> >> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
>> >> >> news:3D03FEA5-B29F-410C-88D8-66F89B140E52@microsoft.com...
>> >> >> > That on-line converter is usually pretty good, but it fails to
>> >> >> > convert the
>> >> >> > original poster's sample.
>> >> >> >
>> >> >> > Our C# to VB converter (Instant VB) will convert what the on-line
>> >> >> > converters
>> >> >> > can't.
>> >> >> > --
>> >> >> > David Anton
>> >> >> > www.tangiblesoftwaresolutions.com
>> >> >> > Instant C#: VB to C# converter
>> >> >> > Instant VB: C# to VB converter
>> >> >> > Instant C++: C# to C++ converter
>> >> >> > Instant C++: VB to C++ converter
>> >> >> >
>> >> >> >
>> >> >> > "Juan T. Llibre" wrote:
>> >> >> >
>> >> >> >> Poornimab already gave you the answer, but the next time you need
>> >> >> >> to
>> >> >> >> translate from C# to VB.NET, you might want to save yourself some
>> >> >> >> time
>> >> >> >> and use this nifty online translator :
>> >> >> >>
>> >> >> >> http://www.carlosag.net/Tools/CodeTr...r/default.aspx
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> Juan T. Llibre, asp.net MVP
>> >> >> >> aspnetfaq.com : http://www.aspnetfaq.com/
>> >> >> >> asp.net faq : http://asp.net.do/faq/
>> >> >> >> foros de asp.net, en español : http://asp.net.do/foros/
>> >> >> >> ===================================
>> >> >> >> "John Smith" <john.smith@microsoft.com> wrote in message
>> >> >> >> news:PyPlg.3850$oj5.1287266@news.siol.net...
>> >> >> >> >
>> >> >> >> > Can someone convert from C# into VB this line for me:
>> >> >> >> >
>> >> >> >> > if (c is System.Web.UI.HtmlControls.HtmlForm)
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>[/color]
>>
>>
>>[/color][/color]


David Anton
Guest
 
Posts: n/a
#14: Jun 21 '06

re: Convert from C# into VB


I just tried:
void test()
{
}
and it bombed.
So... I would say that it needs a little work!
Apparently, it doesn't handle partial code snippets - i.e., you need to
enter a complete class to get it to work. Also, it translates ? to IIf,
which is incorrect (the correct conversion is an If/Else block). These two
problems were found in just 2 minutes playing around with it just now.
I don't regard this as a serious tool.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter
Instant C++: VB to C++ converter


"Juan T. Llibre" wrote:
[color=blue]
> David,
>
> what is your opinion on the SharpDevelop built-in converters ?
>
>
>
>
> Juan T. Llibre, asp.net MVP
> aspnetfaq.com : http://www.aspnetfaq.com/
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en español : http://asp.net.do/foros/
> ===================================
> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
> news:9389C0D1-9780-47E3-9C9C-7FD4DF634DC4@microsoft.com...[color=green]
> > For developerfusion, try some generics or operator overloading... it'll trip
> > it up every time.
> >
> > The on-line converters only handle the most obvious syntax conversions.
> > You're in for a surprise if you use the results in your production code.
> > --
> > David Anton
> > www.tangiblesoftwaresolutions.com
> > Instant C#: VB to C# converter
> > Instant VB: C# to VB converter
> > Instant C++: C# to C++ converter
> > Instant C++: VB to C++ converter
> >
> >
> > "Karl Seguin [MVP]" wrote:
> >[color=darkred]
> >> Well:
> >> http://www.developerfusion.co.uk/uti...sharptovb.aspx
> >>
> >> gave the right conversion. you simply needed to add the brackets {}
> >>
> >> Karl
> >>
> >> --
> >> http://www.openmymind.net/
> >>
> >>
> >>
> >> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
> >> news:96CF39FF-C137-42A4-914A-9B9A3C50AE59@microsoft.com...
> >> >I think Carlos' converter is the best on-line converter, but there are
> >> >always
> >> > going to be many issues not handled well by any of the on-line converters.
> >> > See the following for a partial list:
> >> > http://www.tangiblesoftwaresolutions...Converters.htm
> >> > --
> >> > David Anton
> >> > www.tangiblesoftwaresolutions.com
> >> > Instant C#: VB to C# converter
> >> > Instant VB: C# to VB converter
> >> > Instant C++: C# to C++ converter
> >> > Instant C++: VB to C++ converter
> >> >
> >> >
> >> > "Juan T. Llibre" wrote:
> >> >
> >> >> I'll notify Carlos...
> >> >>
> >> >>
> >> >>
> >> >> Juan T. Llibre, asp.net MVP
> >> >> aspnetfaq.com : http://www.aspnetfaq.com/
> >> >> asp.net faq : http://asp.net.do/faq/
> >> >> foros de asp.net, en español : http://asp.net.do/foros/
> >> >> ===================================
> >> >> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
> >> >> news:56E737EE-95C0-4710-8311-918AA8A56EDB@microsoft.com...
> >> >> > Poornimab gave the correct translation (same as our converter).
> >> >> > The equivalent to the C# "x is y" in VB is "TypeOf x Is y", not "x =
> >> >> > y".
> >> >> > --
> >> >> > David Anton
> >> >> > www.tangiblesoftwaresolutions.com
> >> >> > Instant C#: VB to C# converter
> >> >> > Instant VB: C# to VB converter
> >> >> > Instant C++: C# to C++ converter
> >> >> > Instant C++: VB to C++ converter
> >> >> >
> >> >> >
> >> >> > "Juan T. Llibre" wrote:
> >> >> >
> >> >> >> David, when I used it, it returned :
> >> >> >>
> >> >> >>
> >> >> >> If (c = System.Web.UI.HtmlControls.HtmlForm) Then
> >> >> >> End If
> >> >> >>
> >> >> >>
> >> >> >> Is there anything else your translator returns which Carlos' doesn't
> >> >> >> return ?
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> Juan T. Llibre, asp.net MVP
> >> >> >> aspnetfaq.com : http://www.aspnetfaq.com/
> >> >> >> asp.net faq : http://asp.net.do/faq/
> >> >> >> foros de asp.net, en español : http://asp.net.do/foros/
> >> >> >> ===================================
> >> >> >> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
> >> >> >> news:3D03FEA5-B29F-410C-88D8-66F89B140E52@microsoft.com...
> >> >> >> > That on-line converter is usually pretty good, but it fails to
> >> >> >> > convert the
> >> >> >> > original poster's sample.
> >> >> >> >
> >> >> >> > Our C# to VB converter (Instant VB) will convert what the on-line
> >> >> >> > converters
> >> >> >> > can't.
> >> >> >> > --
> >> >> >> > David Anton
> >> >> >> > www.tangiblesoftwaresolutions.com
> >> >> >> > Instant C#: VB to C# converter
> >> >> >> > Instant VB: C# to VB converter
> >> >> >> > Instant C++: C# to C++ converter
> >> >> >> > Instant C++: VB to C++ converter
> >> >> >> >
> >> >> >> >
> >> >> >> > "Juan T. Llibre" wrote:
> >> >> >> >
> >> >> >> >> Poornimab already gave you the answer, but the next time you need
> >> >> >> >> to
> >> >> >> >> translate from C# to VB.NET, you might want to save yourself some
> >> >> >> >> time
> >> >> >> >> and use this nifty online translator :
> >> >> >> >>
> >> >> >> >> http://www.carlosag.net/Tools/CodeTr...r/default.aspx
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> Juan T. Llibre, asp.net MVP
> >> >> >> >> aspnetfaq.com : http://www.aspnetfaq.com/
> >> >> >> >> asp.net faq : http://asp.net.do/faq/
> >> >> >> >> foros de asp.net, en español : http://asp.net.do/foros/
> >> >> >> >> ===================================
> >> >> >> >> "John Smith" <john.smith@microsoft.com> wrote in message
> >> >> >> >> news:PyPlg.3850$oj5.1287266@news.siol.net...
> >> >> >> >> >
> >> >> >> >> > Can someone convert from C# into VB this line for me:
> >> >> >> >> >
> >> >> >> >> > if (c is System.Web.UI.HtmlControls.HtmlForm)
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>[/color][/color]
>
>
>[/color]
David Anton
Guest
 
Posts: n/a
#15: Jun 21 '06

re: Convert from C# into VB


My other reply was a bit harsh - I'm sure that the SharpDevelop converters
are serious tools. It's just that they are intended (as are the on-line
converters) to handle just the obvious syntax conversion issues and not
subtle conversion issues, entire project conversion, asp.net embedded code
conversion, complex conditional compilation, etc.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter
Instant C++: VB to C++ converter


"Juan T. Llibre" wrote:
[color=blue]
> David,
>
> what is your opinion on the SharpDevelop built-in converters ?
>
>
>
>
> Juan T. Llibre, asp.net MVP
> aspnetfaq.com : http://www.aspnetfaq.com/
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en español : http://asp.net.do/foros/
> ===================================
> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
> news:9389C0D1-9780-47E3-9C9C-7FD4DF634DC4@microsoft.com...[color=green]
> > For developerfusion, try some generics or operator overloading... it'll trip
> > it up every time.
> >
> > The on-line converters only handle the most obvious syntax conversions.
> > You're in for a surprise if you use the results in your production code.
> > --
> > David Anton
> > www.tangiblesoftwaresolutions.com
> > Instant C#: VB to C# converter
> > Instant VB: C# to VB converter
> > Instant C++: C# to C++ converter
> > Instant C++: VB to C++ converter
> >
> >
> > "Karl Seguin [MVP]" wrote:
> >[color=darkred]
> >> Well:
> >> http://www.developerfusion.co.uk/uti...sharptovb.aspx
> >>
> >> gave the right conversion. you simply needed to add the brackets {}
> >>
> >> Karl
> >>
> >> --
> >> http://www.openmymind.net/
> >>
> >>
> >>
> >> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
> >> news:96CF39FF-C137-42A4-914A-9B9A3C50AE59@microsoft.com...
> >> >I think Carlos' converter is the best on-line converter, but there are
> >> >always
> >> > going to be many issues not handled well by any of the on-line converters.
> >> > See the following for a partial list:
> >> > http://www.tangiblesoftwaresolutions...Converters.htm
> >> > --
> >> > David Anton
> >> > www.tangiblesoftwaresolutions.com
> >> > Instant C#: VB to C# converter
> >> > Instant VB: C# to VB converter
> >> > Instant C++: C# to C++ converter
> >> > Instant C++: VB to C++ converter
> >> >
> >> >
> >> > "Juan T. Llibre" wrote:
> >> >
> >> >> I'll notify Carlos...
> >> >>
> >> >>
> >> >>
> >> >> Juan T. Llibre, asp.net MVP
> >> >> aspnetfaq.com : http://www.aspnetfaq.com/
> >> >> asp.net faq : http://asp.net.do/faq/
> >> >> foros de asp.net, en español : http://asp.net.do/foros/
> >> >> ===================================
> >> >> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
> >> >> news:56E737EE-95C0-4710-8311-918AA8A56EDB@microsoft.com...
> >> >> > Poornimab gave the correct translation (same as our converter).
> >> >> > The equivalent to the C# "x is y" in VB is "TypeOf x Is y", not "x =
> >> >> > y".
> >> >> > --
> >> >> > David Anton
> >> >> > www.tangiblesoftwaresolutions.com
> >> >> > Instant C#: VB to C# converter
> >> >> > Instant VB: C# to VB converter
> >> >> > Instant C++: C# to C++ converter
> >> >> > Instant C++: VB to C++ converter
> >> >> >
> >> >> >
> >> >> > "Juan T. Llibre" wrote:
> >> >> >
> >> >> >> David, when I used it, it returned :
> >> >> >>
> >> >> >>
> >> >> >> If (c = System.Web.UI.HtmlControls.HtmlForm) Then
> >> >> >> End If
> >> >> >>
> >> >> >>
> >> >> >> Is there anything else your translator returns which Carlos' doesn't
> >> >> >> return ?
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> Juan T. Llibre, asp.net MVP
> >> >> >> aspnetfaq.com : http://www.aspnetfaq.com/
> >> >> >> asp.net faq : http://asp.net.do/faq/
> >> >> >> foros de asp.net, en español : http://asp.net.do/foros/
> >> >> >> ===================================
> >> >> >> "David Anton" <DavidAnton@discussions.microsoft.com> wrote in message
> >> >> >> news:3D03FEA5-B29F-410C-88D8-66F89B140E52@microsoft.com...
> >> >> >> > That on-line converter is usually pretty good, but it fails to
> >> >> >> > convert the
> >> >> >> > original poster's sample.
> >> >> >> >
> >> >> >> > Our C# to VB converter (Instant VB) will convert what the on-line
> >> >> >> > converters
> >> >> >> > can't.
> >> >> >> > --
> >> >> >> > David Anton
> >> >> >> > www.tangiblesoftwaresolutions.com
> >> >> >> > Instant C#: VB to C# converter
> >> >> >> > Instant VB: C# to VB converter
> >> >> >> > Instant C++: C# to C++ converter
> >> >> >> > Instant C++: VB to C++ converter
> >> >> >> >
> >> >> >> >
> >> >> >> > "Juan T. Llibre" wrote:
> >> >> >> >
> >> >> >> >> Poornimab already gave you the answer, but the next time you need
> >> >> >> >> to
> >> >> >> >> translate from C# to VB.NET, you might want to save yourself some
> >> >> >> >> time
> >> >> >> >> and use this nifty online translator :
> >> >> >> >>
> >> >> >> >> http://www.carlosag.net/Tools/CodeTr...r/default.aspx
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> Juan T. Llibre, asp.net MVP
> >> >> >> >> aspnetfaq.com : http://www.aspnetfaq.com/
> >> >> >> >> asp.net faq : http://asp.net.do/faq/
> >> >> >> >> foros de asp.net, en español : http://asp.net.do/foros/
> >> >> >> >> ===================================
> >> >> >> >> "John Smith" <john.smith@microsoft.com> wrote in message
> >> >> >> >> news:PyPlg.3850$oj5.1287266@news.siol.net...
> >> >> >> >> >
> >> >> >> >> > Can someone convert from C# into VB this line for me:
> >> >> >> >> >
> >> >> >> >> > if (c is System.Web.UI.HtmlControls.HtmlForm)
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>[/color][/color]
>
>
>[/color]
Closed Thread