VB.net小技巧——使用DataGridView显示EXECL表格内容 直接上代码 Private Sub Button24_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button24.ClickDim fileDialog As OpenFileDialog New OpenFileDialog()fileDialog.InitialDirectory My.…
运行效果: 程序代码: Private Sub Command1_Click() Unload Me End Sub Private Sub Form_Click() Me.Text1.Top 0 Me.backcolor vbCyan End Sub 程序小结: 1、在测试代码时,可以将不用的代码先注释,便于之后在使用&…