Groups | Blog | Home
all groups > vb.net > march 2004 >

vb.net : convert code


Lubos Hrasko
3/19/2004 10:24:24 PM
I think that this C# code is trying to do something like this:

Namespace NewControls

Public Class ExComboBox
Inherits System.Windows.Forms.ComboBox

Protected Overrides Sub OnKeyPress(ByVal e As
System.Windows.Forms.KeyPressEventArgs)
MyBase.OnKeyPress(e)
End Sub

End Class

End Namespace

Cheers,
Lubos

[quoted text, click to view]

klesjezot NO[at]SPAM hotmail-dot-com.no-spam.invalid
3/19/2004 11:09:34 PM
Can somebody help me to convert this code to VB.NET?


namespace New.Controls
{

public class ExComboBox : System.Windows.Forms.ComboBox
{

public new event KeyPressEventHandler KeyPress;
public ExComboBox()
{
// hookup events
this.KeyPress += new KeyPressEventHandler(this.OnKeyPress);
}
private void OnKeyPress(object sender, KeyPressEventArgs e)
{
base.OnKeyPress(e);
}

}
}




Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
hirf-spam-me-here NO[at]SPAM gmx.at
3/20/2004 1:48:20 PM
* klesjezot@hotmail-dot-com.no-spam.invalid (Henk) scripsit:
[quoted text, click to view]

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"

--
Herfried K. Wagner [MVP]
AddThis Social Bookmark Button