467,173 Members | 1,356 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,173 developers. It's quick & easy.

Convert from C# into VB


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

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

Jun 20 '06 #1
  • viewed: 1597
Share:
14 Replies
Hi,
Here's the Vb code.
If TypeOf c Is System.Web.UI.HtmlControls.HtmlForm Then

EndIf

Thanx.
"John Smith" <jo********@microsoft.com> wrote in message
news:Py********************@news.siol.net...

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

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

Jun 20 '06 #2
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" <jo********@microsoft.com> wrote in message
news:Py********************@news.siol.net...

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

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

Jun 20 '06 #3
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" <jo********@microsoft.com> wrote in message
news:Py********************@news.siol.net...

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

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

Jun 20 '06 #4
http://www.carlosag.net/Tools/CodeTr...r/default.aspx


Cool stuff.:) Thank you, guys.
Jun 20 '06 #5
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" <jo********@microsoft.com> wrote in message
news:Py********************@news.siol.net...

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

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


Jun 20 '06 #6
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" <Da********@discussions.microsoft.com> wrote in message
news:3D**********************************@microsof t.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" <jo********@microsoft.com> wrote in message
news:Py********************@news.siol.net...
>
> Can someone convert from C# into VB this line for me:
>
> if (c is System.Web.UI.HtmlControls.HtmlForm)
>
>
>


Jun 20 '06 #7
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" <Da********@discussions.microsoft.com> wrote in message
news:3D**********************************@microsof t.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" <jo********@microsoft.com> wrote in message
news:Py********************@news.siol.net...
>
> Can someone convert from C# into VB this line for me:
>
> if (c is System.Web.UI.HtmlControls.HtmlForm)
>
>
>


Jun 20 '06 #8
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" <Da********@discussions.microsoft.com> wrote in message
news:56**********************************@microsof t.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" <Da********@discussions.microsoft.com> wrote in message
news:3D**********************************@microsof t.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" <jo********@microsoft.com> wrote in message
>> news:Py********************@news.siol.net...
>> >
>> > Can someone convert from C# into VB this line for me:
>> >
>> > if (c is System.Web.UI.HtmlControls.HtmlForm)
>> >
>> >
>> >
>>
>>
>>


Jun 20 '06 #9
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" <Da********@discussions.microsoft.com> wrote in message
news:56**********************************@microsof t.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" <Da********@discussions.microsoft.com> wrote in message
news:3D**********************************@microsof t.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" <jo********@microsoft.com> wrote in message
>> news:Py********************@news.siol.net...
>> >
>> > Can someone convert from C# into VB this line for me:
>> >
>> > if (c is System.Web.UI.HtmlControls.HtmlForm)
>> >
>> >
>> >
>>
>>
>>


Jun 20 '06 #10
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" <Da********@discussions.microsoft.com> wrote in message
news:96**********************************@microsof t.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" <Da********@discussions.microsoft.com> wrote in message
news:56**********************************@microsof t.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" <Da********@discussions.microsoft.com> wrote in message
>> news:3D**********************************@microsof t.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" <jo********@microsoft.com> wrote in message
>> >> news:Py********************@news.siol.net...
>> >> >
>> >> > Can someone convert from C# into VB this line for me:
>> >> >
>> >> > if (c is System.Web.UI.HtmlControls.HtmlForm)
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>


Jun 21 '06 #11
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:
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" <Da********@discussions.microsoft.com> wrote in message
news:96**********************************@microsof t.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" <Da********@discussions.microsoft.com> wrote in message
news:56**********************************@microsof t.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" <Da********@discussions.microsoft.com> wrote in message
>> news:3D**********************************@microsof t.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" <jo********@microsoft.com> wrote in message
>> >> news:Py********************@news.siol.net...
>> >> >
>> >> > Can someone convert from C# into VB this line for me:
>> >> >
>> >> > if (c is System.Web.UI.HtmlControls.HtmlForm)
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>


Jun 21 '06 #12
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" <Da********@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
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:
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" <Da********@discussions.microsoft.com> wrote in message
news:96**********************************@microsof t.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" <Da********@discussions.microsoft.com> wrote in message
>> news:56**********************************@microsof t.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" <Da********@discussions.microsoft.com> wrote in message
>> >> news:3D**********************************@microsof t.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" <jo********@microsoft.com> wrote in message
>> >> >> news:Py********************@news.siol.net...
>> >> >> >
>> >> >> > Can someone convert from C# into VB this line for me:
>> >> >> >
>> >> >> > if (c is System.Web.UI.HtmlControls.HtmlForm)
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>
>>
>>


Jun 21 '06 #13
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:
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" <Da********@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
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:
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" <Da********@discussions.microsoft.com> wrote in message
news:96**********************************@microsof t.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" <Da********@discussions.microsoft.com> wrote in message
>> news:56**********************************@microsof t.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" <Da********@discussions.microsoft.com> wrote in message
>> >> news:3D**********************************@microsof t.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" <jo********@microsoft.com> wrote in message
>> >> >> news:Py********************@news.siol.net...
>> >> >> >
>> >> >> > Can someone convert from C# into VB this line for me:
>> >> >> >
>> >> >> > if (c is System.Web.UI.HtmlControls.HtmlForm)
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>
>>
>>


Jun 21 '06 #14
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:
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" <Da********@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
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:
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" <Da********@discussions.microsoft.com> wrote in message
news:96**********************************@microsof t.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" <Da********@discussions.microsoft.com> wrote in message
>> news:56**********************************@microsof t.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" <Da********@discussions.microsoft.com> wrote in message
>> >> news:3D**********************************@microsof t.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" <jo********@microsoft.com> wrote in message
>> >> >> news:Py********************@news.siol.net...
>> >> >> >
>> >> >> > Can someone convert from C# into VB this line for me:
>> >> >> >
>> >> >> > if (c is System.Web.UI.HtmlControls.HtmlForm)
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>
>>
>>


Jun 21 '06 #15

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

19 posts views Thread by Lauren Quantrell | last post: by
1 post views Thread by Logan X via .NET 247 | last post: by
3 posts views Thread by Convert TextBox.Text to Int32 Problem | last post: by
7 posts views Thread by patang | last post: by
4 posts views Thread by Edwin Knoppert | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.