473,656 Members | 2,777 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

need help converting C# to vb.net

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

namespace LicensedControl s {

[
LicenseProvider (typeof(Expirin gLicenseProvide r))
]
public class ExpiringLicense dLabel : Label {

public ExpiringLicense dLabel() {
LicenseManager. Validate(typeof (ExpiringLicens edLabel));
}
}
}

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

Namespace LicensedControl s
<LicenseProvide r(GetType(Expir ingLicenseProvi der))>

Public Class ExpiringLicense dLabel
Inherits Label

Public Sub New()
LicenseManager. Validate(GetTyp e(ExpiringLicen sedLabel))
End Sub
End Class
End Namespace
fails to compile on ">"
Nov 20 '05 #1
6 1213
Try this:

Namespace LicensedControl s

<LicenseProvide r(GetType(Expir ingLicenseProvi der))> _
Public Class ExpiringLicense dLabel
Inherits Label

Public Sub New()
LicenseManager. Validate(GetTyp e(ExpiringLicen sedLabel))
End Sub
End Class
End Namespace

"TJS" <no****@here.co m> wrote in message
news:u7******** *****@TK2MSFTNG P11.phx.gbl...
C# version is below
=============== =============== ==

namespace LicensedControl s {

[
LicenseProvider (typeof(Expirin gLicenseProvide r))
]
public class ExpiringLicense dLabel : Label {

public ExpiringLicense dLabel() {
LicenseManager. Validate(typeof (ExpiringLicens edLabel));
}
}
}

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

Namespace LicensedControl s
<LicenseProvide r(GetType(Expir ingLicenseProvi der))>

Public Class ExpiringLicense dLabel
Inherits Label

Public Sub New()
LicenseManager. Validate(GetTyp e(ExpiringLicen sedLabel))
End Sub
End Class
End Namespace
fails to compile on ">"

Nov 20 '05 #2
there ya go !

Namespace LicensedControl s
<LicenseProvide r(GetType(Expir ingLicenseProvi der))> _

Public Class ExpiringLicense dLabel
Inherits Label
Public Sub New()
LicenseManager. Validate(GetTyp e(ExpiringLicen sedLabel))
End Sub 'New
End Class 'ExpiringLicens edLabel
End Namespace 'LicensedContro ls
Regards - OHM
TJS wrote:
C# version is below
=============== =============== ==

namespace LicensedControl s {

[
LicenseProvider (typeof(Expirin gLicenseProvide r))
]
public class ExpiringLicense dLabel : Label {

public ExpiringLicense dLabel() {
LicenseManager. Validate(typeof (ExpiringLicens edLabel));
}
}
}

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

Namespace LicensedControl s
<LicenseProvide r(GetType(Expir ingLicenseProvi der))>

Public Class ExpiringLicense dLabel
Inherits Label

Public Sub New()
LicenseManager. Validate(GetTyp e(ExpiringLicen sedLabel))
End Sub
End Class
End Namespace
fails to compile on ">"


--
Best Regards - OHM

O_H_M{at}BTInte rnet{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.co m> wrote in message
news:u7******** *****@TK2MSFTNG P11.phx.gbl...
C# version is below
=============== =============== ==

namespace LicensedControl s {

[
LicenseProvider (typeof(Expirin gLicenseProvide r))
]
public class ExpiringLicense dLabel : Label {

public ExpiringLicense dLabel() {
LicenseManager. Validate(typeof (ExpiringLicens edLabel));
}
}
}

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

Namespace LicensedControl s
<LicenseProvide r(GetType(Expir ingLicenseProvi der))>

Public Class ExpiringLicense dLabel
Inherits Label

Public Sub New()
LicenseManager. Validate(GetTyp e(ExpiringLicen sedLabel))
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***@bellsout h.net> wrote in message
news:uq******** ******@TK2MSFTN GP11.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.co m> wrote in message
news:u7******** *****@TK2MSFTNG P11.phx.gbl...
C# version is below
=============== =============== ==

namespace LicensedControl s {

[
LicenseProvider (typeof(Expirin gLicenseProvide r))
]
public class ExpiringLicense dLabel : Label {

public ExpiringLicense dLabel() {
LicenseManager. Validate(typeof (ExpiringLicens edLabel));
}
}
}

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

Namespace LicensedControl s
<LicenseProvide r(GetType(Expir ingLicenseProvi der))>

Public Class ExpiringLicense dLabel
Inherits Label

Public Sub New()
LicenseManager. Validate(GetTyp e(ExpiringLicen sedLabel))
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/ConvertCSharp2V B.aspx>
<http://csharpconverter .claritycon.com/Default.aspx>
<http://www.ragingsmurf .com/vbcsharpconvert er.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
3186
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 box as decimal or do I just have to make another decimal variable .. So I took a guess hoping CDec would come up blue if I type it in with no squigglies on the line. But is this actually converting it to decimal. Next if so, I do not like the...
2
1438
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 experience or anyone who has any idea in creating such program. Really appreciate your help. Thank you
8
5730
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 output html files. The problem is while reading through the worddoc paragraph,the special characters are not identified. So in the xml file,it's just storing that as "?".So I couldn't able to retrive the characters in my ouput html files.
4
2953
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 could kindly point me to a place where I might get a copy, I would be grateful. I'm willing to do a trade for it.
5
2514
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 applications. I am testing an upgrade of all of the sites and have converted the main root site...although not necessarily fixed any issues. I move on instead and converted one of the virtual roots that is a seperate
27
1960
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
5440
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 learning all help would be greatly apperciated. Attribute VB_Name = "Module1" Option Explicit
2
2213
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
3232
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 is the string I get after tokenizing a bigger string. The number on the right is the number I get after the conversion.
7
5331
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 date System.out.println(string_dob); s.Info_DOB=Date.valueOf(string_dob); runs perfectly fine in the method insert() and throws up an illegal Exception in the method UPDATE.This is the error I get when I pass a date "1979-05-02"
0
8382
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8717
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8498
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8600
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5629
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1930
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1600
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.