Vb.net UI

前端之家收集整理的这篇文章主要介绍了Vb.net UI前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。


Imports System.Data
Imports System.Data.sqlClient

Imports Gates.DA
Imports Gates.BL

Public Class ctrQuerybyPN

Dim _DBTrans As DBTransaction
Dim _BL As Gates.BL.Common

Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles Button1.Click
Dim connec As String = Gates.BL.clxMain.CONNECTIONSTRING
Dim reDS As New DataSet
'_DBTrans = New DBTransaction(connec)
_BL = New Common(connec)
reDS = _BL.QueryByPN(TextBox1.Text)

DataGridView1.DataSource = reDS.Tables(0)
DataGridView1.Enabled = True

End Sub End Class

原文链接:https://www.f2er.com/vb/257888.html

猜你在找的VB相关文章