如何使用visual studio(VB.NET)将DBGRID32.OCX添加到工具箱? [英] How do I have visual studio (VB.NET) to add DBGRID32.OCX to tool box?

查看:175
本文介绍了如何使用visual studio(VB.NET)将DBGRID32.OCX添加到工具箱?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将VB6.0转换为VB.NET。构建正常,但调试停止在MYFORM.SHOWDIALOG()超时并停止视觉工作室。



我尝试过:



我无法控制DBGRID32.OCX出现在工具箱中。我从VB6.0代码复制控件设置,从表单中删除控件并重新转换为VB.NET现在无法获取控件添加到表单。使用MS ACCESS和ADO进行记录集操作。我尝试将DBGRID32.OCX添加/注册到系统库,并且通常的Add Control或Reference找不到要添加到工具箱的控件。

I converted VB6.0 to VB.NET. Build ok but debug stops at MYFORM.SHOWDIALOG() timing out and stopping visual studio.

What I have tried:

I cannot get control DBGRID32.OCX to appear in tool box. I copied control settings from VB6.0 code, deleted control from form and reconverted to VB.NET Now cannot get control to add to form. Using MS ACCESS and ADO for recordset operations. I tried adding/registering DBGRID32.OCX to system libraries and usual Add Control or Reference does not find control to add to the tool box.

推荐答案

OCX用于VB6,不是VB.NET。 .NET有自己的数据网格。



编辑:这是 Youtube Tutorials [ ^ ]将指向正确的方向。
OCXs are for VB6, not VB.NET. .NET has its own datagrid.

Here is a link to Youtube Tutorials[^] that will point you in the right direction.


这篇关于如何使用visual studio(VB.NET)将DBGRID32.OCX添加到工具箱?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆