本文介绍了来自C#的CodeSnipps转换为VB2005/2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我在您的网站上看到了一个非常好的多列组合框".
多列组合框

但是此CodeSnipps是基于C#的,我可以使用VB2010.

您能帮我将此CodeSnipps转换为VB2010吗?

Hello,

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
                           MultiColumnComboPopup(this.dataTable,
                           ref this.selectedRow,columnsToDisplay);
       popup.AfterRowSelectEvent+=
                           new AfterRowSelectEventHandler
                           (MultiColumnComboBox_AfterSelectEvent);
       popup.Location = new Point(parent.Left +
                           this.Left + 4 ,parent.Top +
                           this.Bottom + this.Height);
       popup.Show();



这必须在我的VB代码中,然后使用CodeSnipps
坎恩,我找到了弹出框.

我的代码中的姓名:
datatable = dtFeldArt
组合框中的名称:mcomFeldArt

我在一些代码翻译器上有代码,但是没有工作和翻译.


感谢您的帮助.



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

Names from my codes:
datatable=dtFeldArt
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

推荐答案




这篇关于来自C#的CodeSnipps转换为VB2005/2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 21:53