473,387 Members | 1,791 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,387 software developers and data experts.

need help converting C# to vb.net

TJS
C# version is below
================================

namespace LicensedControls {

[
LicenseProvider(typeof(ExpiringLicenseProvider))
]
public class ExpiringLicensedLabel : Label {

public ExpiringLicensedLabel() {
LicenseManager.Validate(typeof(ExpiringLicensedLab el));
}
}
}

my attempt to get vb
=========================

Namespace LicensedControls
<LicenseProvider(GetType(ExpiringLicenseProvider)) >

Public Class ExpiringLicensedLabel
Inherits Label

Public Sub New()
LicenseManager.Validate(GetType(ExpiringLicensedLa bel))
End Sub
End Class
End Namespace
fails to compile on ">"
Nov 20 '05 #1
6 1208
Try this:

Namespace LicensedControls

<LicenseProvider(GetType(ExpiringLicenseProvider)) > _
Public Class ExpiringLicensedLabel
Inherits Label

Public Sub New()
LicenseManager.Validate(GetType(ExpiringLicensedLa bel))
End Sub
End Class
End Namespace

"TJS" <no****@here.com> wrote in message
news:u7*************@TK2MSFTNGP11.phx.gbl...
C# version is below
================================

namespace LicensedControls {

[
LicenseProvider(typeof(ExpiringLicenseProvider))
]
public class ExpiringLicensedLabel : Label {

public ExpiringLicensedLabel() {
LicenseManager.Validate(typeof(ExpiringLicensedLab el));
}
}
}

my attempt to get vb
=========================

Namespace LicensedControls
<LicenseProvider(GetType(ExpiringLicenseProvider)) >

Public Class ExpiringLicensedLabel
Inherits Label

Public Sub New()
LicenseManager.Validate(GetType(ExpiringLicensedLa bel))
End Sub
End Class
End Namespace
fails to compile on ">"

Nov 20 '05 #2
there ya go !

Namespace LicensedControls
<LicenseProvider(GetType(ExpiringLicenseProvider)) > _

Public Class ExpiringLicensedLabel
Inherits Label
Public Sub New()
LicenseManager.Validate(GetType(ExpiringLicensedLa bel))
End Sub 'New
End Class 'ExpiringLicensedLabel
End Namespace 'LicensedControls
Regards - OHM
TJS wrote:
C# version is below
================================

namespace LicensedControls {

[
LicenseProvider(typeof(ExpiringLicenseProvider))
]
public class ExpiringLicensedLabel : Label {

public ExpiringLicensedLabel() {
LicenseManager.Validate(typeof(ExpiringLicensedLab el));
}
}
}

my attempt to get vb
=========================

Namespace LicensedControls
<LicenseProvider(GetType(ExpiringLicenseProvider)) >

Public Class ExpiringLicensedLabel
Inherits Label

Public Sub New()
LicenseManager.Validate(GetType(ExpiringLicensedLa bel))
End Sub
End Class
End Namespace
fails to compile on ">"


--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com
Nov 20 '05 #3
Hi,

In the visual basic.net resource kit on the additional resources tab
under usefull utilities there is a visual c# to vb.net converter.

Ken
--------------------
"TJS" <no****@here.com> wrote in message
news:u7*************@TK2MSFTNGP11.phx.gbl...
C# version is below
================================

namespace LicensedControls {

[
LicenseProvider(typeof(ExpiringLicenseProvider))
]
public class ExpiringLicensedLabel : Label {

public ExpiringLicensedLabel() {
LicenseManager.Validate(typeof(ExpiringLicensedLab el));
}
}
}

my attempt to get vb
=========================

Namespace LicensedControls
<LicenseProvider(GetType(ExpiringLicenseProvider)) >

Public Class ExpiringLicensedLabel
Inherits Label

Public Sub New()
LicenseManager.Validate(GetType(ExpiringLicensedLa bel))
End Sub
End Class
End Namespace
fails to compile on ">"

Nov 20 '05 #4
TJS
thanks ,

I also found there cannot be a blank line after the line continuation
character
Nov 20 '05 #5
TJS
great idea, but download time is 30 hrs
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uq**************@TK2MSFTNGP11.phx.gbl...
Hi,

In the visual basic.net resource kit on the additional resources tab under usefull utilities there is a visual c# to vb.net converter.

Ken
--------------------
"TJS" <no****@here.com> wrote in message
news:u7*************@TK2MSFTNGP11.phx.gbl...
C# version is below
================================

namespace LicensedControls {

[
LicenseProvider(typeof(ExpiringLicenseProvider))
]
public class ExpiringLicensedLabel : Label {

public ExpiringLicensedLabel() {
LicenseManager.Validate(typeof(ExpiringLicensedLab el));
}
}
}

my attempt to get vb
=========================

Namespace LicensedControls
<LicenseProvider(GetType(ExpiringLicenseProvider)) >

Public Class ExpiringLicensedLabel
Inherits Label

Public Sub New()
LicenseManager.Validate(GetType(ExpiringLicensedLa bel))
End Sub
End Class
End Namespace
fails to compile on ">"


Nov 20 '05 #6
Cor
Hi,

I have not checked them all, but you can try
VB->C#
<http://www.remotesoft.com/>
C# -> VB .NET Converters:

<http://www.kamalpatel.net/ConvertCSharp2VB.aspx>
<http://csharpconverter.claritycon.com/Default.aspx>
<http://www.ragingsmurf.com/vbcsharpconverter.aspx>
<http://www.aspalliance.com/aldotnet/examples/translate.aspx>
http://www.gotdotnet.com/Community/U...7-979975d5957d
<http://www.remotesoft.com/>
-> "Octopus"
I hope this helps a little bit?

"
Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Newbee Adam | last post by:
I have been reading in help how I need to use decimal becuase currency does not exist like I used in vb6. I had a difficult time on google and msdn finding how or if I can take the value of text...
2
by: Megat | last post by:
I'm trying to create a conversion program, that convert a simple proprietry programming language to an international standard languange, using Visual C++. Need some help from those who has...
8
by: prabha | last post by:
Hello Everybody, I have to conert the word doc to multiple html files,according to the templates in the word doc. I had converted the word to xml.Also through Exsl ,had finished the multiple...
4
by: Jake Jessup | last post by:
A client wants me to do a conversion from Access 2.0 (yeah, I know, unreal). The problem is, she doesn't have the install disks and I haven't had a copy of 2.0 in years. If some kind should...
5
by: Robert | last post by:
I have a series of web applications (configured as separate applications) on a server. There is a main application at the root and then several virtual directories that are independant...
27
by: sam_cit | last post by:
Hi, I needed help in converting a character to the correspoding hexadecimal values, like the following example, ASCII value : ABC Hex Code Value : %41%42%43... whats the logic of conversion...
16
by: manmit.walia | last post by:
Hello All, I have tried multiple online tools to convert an VB6 (bas) file to VB.NET file and no luck. I was hoping that someone could help me covert this. I am new to the .NET world and still...
2
Mhel
by: Mhel | last post by:
Hi everyone! I need some help in Converting Infix to postfix.I need a program that would do it. Please, I really need help.
10
by: Hank Stalica | last post by:
I'm having this weird problem where my code does the following conversion from string to float: 27000000.0 -27000000.00 2973999.99 -29740000.00 2989999.13 -2989999.25 The number on the left...
7
helpwithcode
by: helpwithcode | last post by:
Hi people, I am just learning java.I have been creating a project which involves JDBC Connectivity.I find that the statements, String string_dob=text_dob.getText(); //Converting string to...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.