Click here to Skip to main content
13,152,063 members (35,975 online)
Rate this:
Please Sign up or sign in to vote.

I have see on your website a very good "Multi Column ComboBox".
Multi Column ComboBox

but this CodeSnipps on C# and I work with VB2010.

Can you help me this CodeSnipps to translate to VB2010:

protected override void OnDropDown(System.EventArgs e){
   Form parent = this.FindForm();
   if(this.dataTable != null || this.dataRows!= null){
       MultiColumnComboPopup popup = new
                           ref this.selectedRow,columnsToDisplay);
                           new AfterRowSelectEventHandler
       popup.Location = new Point(parent.Left +
                           this.Left + 4 ,parent.Top +
                           this.Bottom + this.Height);

This must in my VB Code, then with the CodeSnipps
kann I locate the popupbox.

Names from my codes:
Name from the combobox: mcomFeldArt

I have the Code on a few code-translater, but there are not working und translate.

Thank you for your help
Posted 24-May-11 7:31am
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Is there some reason why it has to be converted? Unless you're working in an Express version of Visual Studio, you should be able to mix languages in your project.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

There are various code-converters in the net. Try this, for example:
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

There is not such thing as 2005 code. Visual Studio 2005 supports .NET Framework v.2.0; the versions of 2008 and 2010 are multi-platform; Visual Studio 2010 supports Frameworks up to v.4.0.
The code in v.2.0 it fully compatible with v.4.0; C# v.4 if fully backward-compatible with C# v.2. (in the .NET library you may get some obsolete warnings, it would be good to replace obsolete library components).

Visual Studio 2010 will also accept solution and project file of older version and will suggest you automatic conversion. You really don't need to worry about a thing.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170924.2 | Last Updated 25 May 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100