how to click "close" button on vb.net form without firing Textbox's Lostfoucs() event
[Problem Description] Once click "close" button on vb.net form Textbox's Lostfoucs() event is fired.[Resolve] ...Handles Textbox.Validating ...cmdClose.CausesValidation=False [@more@]
DataGridView with multiple table
Display columns from two tables in one DataGridViewThere're two ways.One way is to use SQL( join ) one DataTable, one DataAdapter. set "DataGridView.dataSource = DataTable". It's OK It's very easy,but disadvantage is that you can not use "dataAdapter.update"The other way is to use JoinView http://support.microsoft.com/Default.aspx?scid=kb;en-us;325682 two DataTables, two DataAdapters, one JoinView The only drawback is that if you change the data of DataTable, the J
strName = rs.Fields()
以前在VB6中strName = rs.Fields()但在VB.NET中是运行不过的strName = rs.Fields().value[@more@]