473,372 Members | 1,204 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

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
14 1781
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Lauren Quantrell | last post by:
I have a stored procedure using Convert where the exact same Convert string works in the SELECT portion of the procedure but fails in the WHERE portion. The entire SP is listed below....
1
by: Logan X via .NET 247 | last post by:
It's official....Convert blows. I ran a number of tests converting a double to an integer usingboth Convert & CType. I *ASSUMED* that CType would piggy-back ontop of Convert, and that performance...
4
by: Eric Lilja | last post by:
Hello, I've made a templated class Option (a child of the abstract base class OptionBase) that stores an option name (in the form someoption=) and the value belonging to that option. The value is...
7
by: whatluo | last post by:
Hi, all I'm now working on a program which will convert dec number to hex and oct and bin respectively, I've checked the clc but with no luck, so can anybody give me a hit how to make this done...
3
by: Convert TextBox.Text to Int32 Problem | last post by:
Need a little help here. I saw some related posts, so here goes... I have some textboxes which are designed for the user to enter a integer value. In "old school C" we just used the atoi function...
7
by: patang | last post by:
I want to convert amount to words. Is there any funciton available? Example: $230.30 Two Hundred Thirty Dollars and 30/100
4
by: Edwin Knoppert | last post by:
In my code i use the text from a textbox and convert it to a double value. I was using Convert.ToDouble() but i'm used to convert comma to dot. This way i can assure the text is correct. However...
1
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in...
6
by: Ken Fine | last post by:
This is a basic question. What is the difference between casting and using the Convert.ToXXX methods, from the standpoint of the compiler, in terms of performance, and in other ways? e.g. ...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.