Click here to Skip to main content
11,496,146 members (822 online)
The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.
See more: VB7.x VB8.0 VB9.0 C# VB.NET

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 8:31am
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.
There are various code-converters in the net. Try this, for example:
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
0 Dnyaneshwar@Pune 692
1 RyanDev 230
2 CHill60 163
3 Sascha Lefèvre 145
4 Sergey Alexandrovich Kryukov 124
0 Sergey Alexandrovich Kryukov 10,401
1 OriginalGriff 8,910
2 Sascha Lefèvre 3,899
3 Maciej Los 3,422
4 Richard Deeming 2,600

Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 25 May 2011
Copyright © CodeProject, 1999-2015
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