Click here to Skip to main content
15,896,063 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionchatting in lan Pin
pekhaleyogesh11-Jun-08 3:59
pekhaleyogesh11-Jun-08 3:59 
AnswerRe: chatting in lan Pin
John Ad11-Jun-08 4:16
John Ad11-Jun-08 4:16 
AnswerRe: chatting in lan Pin
~Khatri Mitesh~11-Jun-08 4:26
~Khatri Mitesh~11-Jun-08 4:26 
QuestionTranslating .rdlc reports Pin
FvanLog11-Jun-08 3:15
FvanLog11-Jun-08 3:15 
QuestionReports help - new to VS2008 Standard Pin
penguin500011-Jun-08 2:10
penguin500011-Jun-08 2:10 
QuestionCheck box getting unchecked while sorting column in datagridview Pin
hisuman10011-Jun-08 1:18
hisuman10011-Jun-08 1:18 
AnswerRe: Check box getting unchecked while sorting column in datagridview Pin
C1AllenS11-Jun-08 5:08
C1AllenS11-Jun-08 5:08 
GeneralRe: Check box getting unchecked while sorting column in datagridview Pin
hisuman10013-Jun-08 0:45
hisuman10013-Jun-08 0:45 
Imports System
Imports System.Data.SqlClient
Public Class Form1
Dim str As String
Dim con As SqlConnection
Dim da As SqlDataAdapter
Dim ds As New DataSet
Dim dt As DataTable
Dim dv As DataView
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
str = "Integrated Security=SSPI; User Id=sa;Initial Catalog=MAS08; Data Source = suman"
con = New SqlConnection(str)
con.Open()
str = "select * from unitmaster"
da = New SqlDataAdapter(str, con)
da.Fill(ds, "unitmaster")
dt = ds.Tables(0)
dv = New DataView(dt)
Dim colCheckbox As New DataGridViewCheckBoxColumn()
' Size the column width so it is wide enough to display the header
colCheckbox.AutoSizeMode = DataGridViewAutoSizeColumnMode.ColumnHeader
colCheckbox.ThreeState = False
colCheckbox.TrueValue = 1
colCheckbox.FalseValue = 0
colCheckbox.IndeterminateValue = System.DBNull.Value
colCheckbox.DataPropertyName = "Checkbox"
colCheckbox.HeaderText = "Checkbox"
colCheckbox.Name = "Checkbox"
'colCheckbox.ReadOnly = True
dgv.Columns.Add(colCheckbox)
dgv.DataSource = dv
End Sub
End Class
QuestionVBA (Excel) filter by date Pin
progDes11-Jun-08 0:13
progDes11-Jun-08 0:13 
AnswerRe: VBA (Excel) filter by date [modified] Pin
~Khatri Mitesh~11-Jun-08 0:57
~Khatri Mitesh~11-Jun-08 0:57 
GeneralRe: VBA (Excel) filter by date Pin
progDes11-Jun-08 1:06
progDes11-Jun-08 1:06 
Questionshowing animated waiting form Pin
Tom Deketelaere10-Jun-08 23:04
professionalTom Deketelaere10-Jun-08 23:04 
Questionhandling connection object exception Pin
vermaratan10-Jun-08 22:21
vermaratan10-Jun-08 22:21 
AnswerRe: handling connection object exception Pin
Colin Angus Mackay11-Jun-08 0:47
Colin Angus Mackay11-Jun-08 0:47 
GeneralRe: handling connection object exception Pin
vermaratan11-Jun-08 0:59
vermaratan11-Jun-08 0:59 
AnswerRe: handling connection object exception Pin
Ashfield11-Jun-08 3:17
Ashfield11-Jun-08 3:17 
QuestionIs there any field limitaion in Structure (VB.NET) Pin
Michael Sync10-Jun-08 21:10
Michael Sync10-Jun-08 21:10 
AnswerRe: Is there any field limitaion in Structure (VB.NET) Pin
Chinners10-Jun-08 22:41
Chinners10-Jun-08 22:41 
GeneralRe: Is there any field limitaion in Structure (VB.NET) Pin
Michael Sync10-Jun-08 23:23
Michael Sync10-Jun-08 23:23 
GeneralRe: Is there any field limitaion in Structure (VB.NET) Pin
Chinners10-Jun-08 23:56
Chinners10-Jun-08 23:56 
GeneralRe: Is there any field limitaion in Structure (VB.NET) Pin
Michael Sync11-Jun-08 4:52
Michael Sync11-Jun-08 4:52 
GeneralRe: Is there any field limitaion in Structure (VB.NET) Pin
Chinners11-Jun-08 5:31
Chinners11-Jun-08 5:31 
GeneralRe: Is there any field limitaion in Structure (VB.NET) Pin
Michael Sync11-Jun-08 15:57
Michael Sync11-Jun-08 15:57 
AnswerRe: Is there any field limitaion in Structure (VB.NET) Pin
Colin Angus Mackay10-Jun-08 23:03
Colin Angus Mackay10-Jun-08 23:03 
AnswerRe: Is there any field limitaion in Structure (VB.NET) [more] Pin
Colin Angus Mackay10-Jun-08 23:05
Colin Angus Mackay10-Jun-08 23:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.