Click here to Skip to main content
15,890,438 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
AnswerRe: Allowing User To Upload Image to Resources folder and Displaying in PictureBox Pin
Richard MacCutchan3-Feb-14 3:03
mveRichard MacCutchan3-Feb-14 3:03 
GeneralRe: Allowing User To Upload Image to Resources folder and Displaying in PictureBox Pin
Dan O'Riordan3-Feb-14 3:17
Dan O'Riordan3-Feb-14 3:17 
GeneralRe: Allowing User To Upload Image to Resources folder and Displaying in PictureBox Pin
Richard MacCutchan3-Feb-14 8:17
mveRichard MacCutchan3-Feb-14 8:17 
AnswerRe: Allowing User To Upload Image to Resources folder and Displaying in PictureBox Pin
Dave Kreskowiak3-Feb-14 4:37
mveDave Kreskowiak3-Feb-14 4:37 
GeneralRe: Allowing User To Upload Image to Resources folder and Displaying in PictureBox Pin
Dan O'Riordan3-Feb-14 17:24
Dan O'Riordan3-Feb-14 17:24 
GeneralRe: Allowing User To Upload Image to Resources folder and Displaying in PictureBox Pin
Dave Kreskowiak3-Feb-14 18:14
mveDave Kreskowiak3-Feb-14 18:14 
GeneralRe: Allowing User To Upload Image to Resources folder and Displaying in PictureBox Pin
Dan O'Riordan3-Feb-14 18:21
Dan O'Riordan3-Feb-14 18:21 
GeneralRe: Allowing User To Upload Image to Resources folder and Displaying in PictureBox Pin
Dan O'Riordan4-Feb-14 2:04
Dan O'Riordan4-Feb-14 2:04 
GeneralRe: Allowing User To Upload Image to Resources folder and Displaying in PictureBox Pin
Dave Kreskowiak4-Feb-14 3:56
mveDave Kreskowiak4-Feb-14 3:56 

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.