Click here to Skip to main content
15,922,155 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionInsert ComboBox records into SQL table Pin
Gentry_386-Feb-14 12:34
Gentry_386-Feb-14 12:34 
AnswerRe: Insert ComboBox records into SQL table Pin
Richard Deeming7-Feb-14 1:41
mveRichard Deeming7-Feb-14 1:41 
GeneralRe: Insert ComboBox records into SQL table Pin
Gentry_387-Feb-14 10:12
Gentry_387-Feb-14 10:12 
GeneralRe: Insert ComboBox records into SQL table Pin
Richard Deeming7-Feb-14 10:48
mveRichard Deeming7-Feb-14 10:48 
GeneralRe: Insert ComboBox records into SQL table Pin
Gentry_388-Feb-14 10:06
Gentry_388-Feb-14 10:06 
QuestionSavefieldialog and Folderbrowserdialog Pin
Tsunamipudip5-Feb-14 17:51
Tsunamipudip5-Feb-14 17:51 
AnswerRe: Savefieldialog and Folderbrowserdialog Pin
Richard MacCutchan5-Feb-14 22:42
mveRichard MacCutchan5-Feb-14 22:42 
Questionexporting vb6 data from ms access to PDF using sql select query Pin
Member 102487684-Feb-14 20:39
Member 102487684-Feb-14 20:39 
AnswerRe: exporting vb6 data from ms access to PDF using sql select query Pin
Chris Quinn4-Feb-14 20:48
Chris Quinn4-Feb-14 20:48 
GeneralRe: exporting vb6 data from ms access to PDF using sql select query Pin
Member 102487684-Feb-14 21:49
Member 102487684-Feb-14 21:49 
GeneralRe: exporting vb6 data from ms access to PDF using sql select query Pin
Chris Quinn5-Feb-14 4:52
Chris Quinn5-Feb-14 4:52 
QuestionMany questions on a VB Project using DOS command. Pin
Member 105704213-Feb-14 23:20
Member 105704213-Feb-14 23:20 
AnswerRe: Many questions on a VB Project using DOS command. Pin
Richard Deeming4-Feb-14 3:01
mveRichard Deeming4-Feb-14 3:01 
GeneralRe: Many questions on a VB Project using DOS command. Pin
Member 105704214-Feb-14 5:57
Member 105704214-Feb-14 5:57 
AnswerRe: Many questions on a VB Project using DOS command. Pin
Eddy Vluggen4-Feb-14 3:01
professionalEddy Vluggen4-Feb-14 3:01 
AnswerRe: Many questions on a VB Project using DOS command. Pin
Dave Kreskowiak4-Feb-14 4:01
mveDave Kreskowiak4-Feb-14 4:01 
QuestionDataGridView that use timer in vb.net Pin
Joannou H. Fegarido3-Feb-14 14:20
Joannou H. Fegarido3-Feb-14 14:20 
Hi everybody, I had a big problem in my code using timer in DataGridView. When I load my program and starting navigate automatically using timer in DatagridView it doesn't no problem. Then, a second time around I refresh my datagridview to start again the timer. My Timer doesn't work as what it did when i first load my program to run my timer in datagridview. Any idea how to fix my problem.

I have the following code.

VB
Private Sub Timer3_Tick(sender As Object, e As EventArgs) Handles Timer3.Tick
Dim name As String
       Dim number As String


           If i < TblContactsDataGridView.Rows.Count - 1 Then 'stay within bounds
           Me.TblContactsBindingSource.MoveNext()
           i = i + 1 ' for all rows except Row0

               TblContactsDataGridView.Rows(i - 1).DefaultCellStyle.BackColor = Color.White ' restore previous highlight
               TblContactsDataGridView.Rows(i).DefaultCellStyle.BackColor = Color.Blue 'new highlight

               name = Me.TblContactsDataGridView.Rows(i).Cells(0).Value.ToString()
               number = Me.TblContactsDataGridView.Rows(i).Cells(1).Value.ToString()

               Me.TblContactsDataGridView.ClearSelection() 'optional
               Me.TblContactsDataGridView.Rows(i).DefaultCellStyle.BackColor = Color.LimeGreen 'otherwise you have to wait 5 seconds for first one



               Try
                   If objclsSMS.sendMsg(Me.port, number, txtMessage.Text) Then
                       'MessageBox.Show("Message has sent successfully");
                       Me.lblStatus.Text = "Message has sent successfully"
                       'Else
                       'MessageBox.Show("Failed to send message");
                       Me.lblStatus.Text = "Failed to send message"

                   End If
               Catch ex As Exception

               End Try

       Else
           Dim a As Integer 'to count number of contacts
           a = Me.TblContactsBindingSource.Count()
           lblStatus.Text = "Message has sent successfully to " & a & " contacts"

           Me.DbSMSDataSet.Clear()

       End If
End sub


Thanks in advance. Wink | ;)
AnswerRe: DataGridView that use timer in vb.net Pin
Eddy Vluggen4-Feb-14 7:51
professionalEddy Vluggen4-Feb-14 7:51 
GeneralRe: DataGridView that use timer in vb.net Pin
Joannou H. Fegarido5-Feb-14 19:25
Joannou H. Fegarido5-Feb-14 19:25 
GeneralRe: DataGridView that use timer in vb.net Pin
Eddy Vluggen6-Feb-14 8:20
professionalEddy Vluggen6-Feb-14 8:20 
GeneralRe: DataGridView that use timer in vb.net Pin
Joannou H. Fegarido6-Feb-14 18:16
Joannou H. Fegarido6-Feb-14 18:16 
GeneralRe: DataGridView that use timer in vb.net Pin
Eddy Vluggen8-Feb-14 0:43
professionalEddy Vluggen8-Feb-14 0:43 
AnswerRe: DataGridView that use timer in vb.net Pin
Joannou H. Fegarido9-Feb-14 13:35
Joannou H. Fegarido9-Feb-14 13:35 
GeneralRe: DataGridView that use timer in vb.net Pin
Eddy Vluggen10-Feb-14 7:17
professionalEddy Vluggen10-Feb-14 7:17 
QuestionAllowing User To Upload Image to Resources folder and Displaying in PictureBox Pin
Dan O'Riordan3-Feb-14 2:34
Dan O'Riordan3-Feb-14 2:34 

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.