Click here to Skip to main content
16,015,504 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: load images in list without stopping execution Pin
nlarson1115-Jan-07 7:37
nlarson1115-Jan-07 7:37 
QuestionChange the Panel Control to a Button Pin
charchabil0315-Jan-07 2:28
charchabil0315-Jan-07 2:28 
AnswerRe: Change the Panel Control to a Button Pin
Dave Kreskowiak15-Jan-07 5:44
mveDave Kreskowiak15-Jan-07 5:44 
GeneralRe: Change the Panel Control to a Button Pin
charchabil0316-Jan-07 6:32
charchabil0316-Jan-07 6:32 
GeneralRe: Change the Panel Control to a Button Pin
Dave Kreskowiak16-Jan-07 12:14
mveDave Kreskowiak16-Jan-07 12:14 
GeneralRe: Change the Panel Control to a Button Pin
charchabil0328-Jan-07 23:13
charchabil0328-Jan-07 23:13 
QuestionBinding controls to columns with default values Pin
MatthysDT15-Jan-07 0:47
MatthysDT15-Jan-07 0:47 
AnswerRe: Binding controls to columns with default values Pin
Kschuler15-Jan-07 9:39
Kschuler15-Jan-07 9:39 
Before you add a new row to your DataTable control you should set the .DefaultValue of each column in that DataTable. Personally, I always set my DefaultValues to an empty string if it is a text column, and a zero if it a numeric column. To do this, I use this method in my global module:

Public Sub SetDefaultValues(ByRef dt As DataTable)<br />
    For Each colColumn As DataColumn In dt.Columns<br />
        Select Case colColumn.DataType.FullName<br />
            Case "System.String"<br />
                colColumn.DefaultValue = String.Empty<br />
            Case "System.Decimal"<br />
                colColumn.DefaultValue = 0<br />
        End Select<br />
    Next<br />
End Sub


Hope this helps.
QuestionGet username and password Pin
Socheat.Net14-Jan-07 23:29
Socheat.Net14-Jan-07 23:29 
AnswerRe: Get username and password Pin
Christian Graus14-Jan-07 23:57
protectorChristian Graus14-Jan-07 23:57 
GeneralRe: Get username and password Pin
Socheat.Net16-Jan-07 0:05
Socheat.Net16-Jan-07 0:05 
GeneralRe: Get username and password Pin
Christian Graus16-Jan-07 0:52
protectorChristian Graus16-Jan-07 0:52 
QuestionCodeDom Pin
Akhilesh Yadav14-Jan-07 23:22
Akhilesh Yadav14-Jan-07 23:22 
QuestionDataGridview Pin
Socheat.Net14-Jan-07 23:09
Socheat.Net14-Jan-07 23:09 
AnswerRe: DataGridview Pin
priya_p23314-Jan-07 23:18
priya_p23314-Jan-07 23:18 
GeneralRe: DataGridview Pin
Socheat.Net14-Jan-07 23:23
Socheat.Net14-Jan-07 23:23 
AnswerRe: DataGridview Pin
priya_p23315-Jan-07 1:26
priya_p23315-Jan-07 1:26 
GeneralRe: DataGridview Pin
Rahithi15-Jan-07 15:30
Rahithi15-Jan-07 15:30 
QuestionExcel connection Pin
Socheat.Net14-Jan-07 23:07
Socheat.Net14-Jan-07 23:07 
AnswerRe: Excel connection Pin
the.bombardier15-Jan-07 21:49
the.bombardier15-Jan-07 21:49 
GeneralRe: Excel connection Pin
Socheat.Net15-Jan-07 23:56
Socheat.Net15-Jan-07 23:56 
QuestionJavascript Help [modified] Pin
Navneet Hegde14-Jan-07 23:02
Navneet Hegde14-Jan-07 23:02 
AnswerRe: Javascript Help Pin
Christian Graus14-Jan-07 23:58
protectorChristian Graus14-Jan-07 23:58 
Questiondata retrive from database Pin
Pradip Kishore14-Jan-07 22:58
Pradip Kishore14-Jan-07 22:58 
QuestionASCII Text file generation Pin
him_mca14-Jan-07 22:57
him_mca14-Jan-07 22:57 

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.