PC Review


Reply
Thread Tools Rate Thread

Convert from C# to VB

 
 
João Santa Bárbara
Guest
Posts: n/a
 
      22nd Aug 2004
how can i convert this

public NumPointsPropertyDescriptor(PointsPropertyTab owner) :
base("NumPoints", new Attribute[]{CategoryAttribute.Data,
RefreshPropertiesAttribute.All})
{
this.owner = owner;
}

to VB.NET

thks
JSB


 
Reply With Quote
 
 
 
 
David Browne
Guest
Posts: n/a
 
      22nd Aug 2004

"João Santa Bárbara" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> how can i convert this
>
> public NumPointsPropertyDescriptor(PointsPropertyTab owner) :
> base("NumPoints", new Attribute[]{CategoryAttribute.Data,
> RefreshPropertiesAttribute.All})
> {
> this.owner = owner;
> }
>
> to VB.NET
>


The is a call to a superclass constructor. In VB use MyBase.New

public sub new(owner as PointsPropertyTab)
MyBase.New("NumPoints", new Attribute()
{CategoryAttribute.Data,RefreshPropertiesAttribure.All})
me.owner = owner
end sub


David


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      22nd Aug 2004
* "João Santa Bárbara" <(E-Mail Removed)> scripsit:
> public NumPointsPropertyDescriptor(PointsPropertyTab owner) :
> base("NumPoints", new Attribute[]{CategoryAttribute.Data,
> RefreshPropertiesAttribute.All})
> {
> this.owner = owner;
> }
>
> to VB.NET


In addition to the other reply, take a look at the converters available
for converting C# code to VB.NET:

C# -> VB.NET Converters:

<URL:http://www.aspalliance.com/aldotnet/examples/translate.aspx>
<URL:http://www.kamalpatel.net/ConvertCSharp2VB.aspx>
<URL:http://csharpconverter.claritycon.com/>
<URL:http://www.ragingsmurf.com/vbcsharpconverter.aspx>
<URL:http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=c622348b-18a9-47d6-8687-979975d5957d>

<URL:http://www.remotesoft.com/>
-> "Octopus"

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Columns of Sensitive Information, and then convert back... =?Utf-8?B?V2lsbGlhbSBFbGVyZGluZw==?= Microsoft Excel Programming 1 12th Oct 2006 09:37 PM
IsNumeric: Convert.ToInt32 vs. Convert.ToInt64 sck10 Microsoft ASP .NET 4 3rd Sep 2006 10:40 PM
Convert file to binary, send it over the network, and convert it b =?Utf-8?B?Q2hld2ll?= Microsoft Dot NET 0 9th Sep 2005 06:04 PM
Convert file to binary, send it over the network, and convert it b =?Utf-8?B?Q2hld2ll?= Microsoft Dot NET Framework 1 9th Sep 2005 06:01 PM
convert decimal number to time : convert 1,59 (minutes, dec) to m =?Utf-8?B?YWdlbmRhOTUzMw==?= Microsoft Excel Misc 8 20th Jan 2005 10:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:40 AM.