Click here to Skip to main content
15,905,504 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Number of items added to a listbox Pin
Dave Kreskowiak8-May-09 7:28
mveDave Kreskowiak8-May-09 7:28 
GeneralRe: Number of items added to a listbox Pin
EliottA8-May-09 7:32
EliottA8-May-09 7:32 
GeneralQuestion about Invalidate() for VB.Net Pin
Adam Loudermilk8-May-09 4:50
Adam Loudermilk8-May-09 4:50 
GeneralRe: Question about Invalidate() for VB.Net Pin
Diego Moita8-May-09 4:54
Diego Moita8-May-09 4:54 
GeneralRe: Question about Invalidate() for VB.Net Pin
Adam Loudermilk8-May-09 5:01
Adam Loudermilk8-May-09 5:01 
GeneralRe: Question about Invalidate() for VB.Net Pin
Mycroft Holmes8-May-09 17:43
professionalMycroft Holmes8-May-09 17:43 
GeneralRe: Question about Invalidate() for VB.Net Pin
Luc Pattyn8-May-09 5:11
sitebuilderLuc Pattyn8-May-09 5:11 
GeneralRe: Question about Invalidate() for VB.Net Pin
Adam Loudermilk11-May-09 9:38
Adam Loudermilk11-May-09 9:38 
I don't know how much you need (honestly I didn't think that any would be required to understand the problem). I've copied the timer tick() routine.

Private Sub ClockTimer_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles ClockTimer.Tick
        Me.Invalidate()
        HourHand.Position = System.DateTime.Now.Hour
        MinuteHand.Position = System.DateTime.Now.Minute
        SecondHand.Position = System.DateTime.Now.Second
        Application.DoEvents()
    End Sub


When the program first starts to run the clock will tick about five times. Then it will pause for about 3 seconds, tick one more time and then it stops. I know that it is something that XP is doing, but I'm unsure of how to force it. I've also changed the styles of the form:

Me.SetStyle(ControlStyles.UserPaint Or ControlStyles.FixedHeight Or ControlStyles.FixedWidth Or _
                    ControlStyles.SupportsTransparentBackColor, True)


If someone has any idea what this might be I would appreciate you letting me know.

Thanks
GeneralRe: Question about Invalidate() for VB.Net Pin
Luc Pattyn11-May-09 9:54
sitebuilderLuc Pattyn11-May-09 9:54 
GeneralRe: Question about Invalidate() for VB.Net Pin
Adam Loudermilk11-May-09 11:20
Adam Loudermilk11-May-09 11:20 
GeneralRe: Question about Invalidate() for VB.Net Pin
Luc Pattyn11-May-09 11:39
sitebuilderLuc Pattyn11-May-09 11:39 
GeneralRe: Question about Invalidate() for VB.Net Pin
Adam Loudermilk11-May-09 12:14
Adam Loudermilk11-May-09 12:14 
GeneralRe: Question about Invalidate() for VB.Net Pin
Luc Pattyn11-May-09 12:40
sitebuilderLuc Pattyn11-May-09 12:40 
GeneralRe: Question about Invalidate() for VB.Net Pin
Zaegra9-May-09 3:57
Zaegra9-May-09 3:57 
GeneralRe: Question about Invalidate() for VB.Net Pin
Adam Loudermilk11-May-09 9:41
Adam Loudermilk11-May-09 9:41 
QuestionVBA, Excel and Charts Pin
zaccari58-May-09 4:40
zaccari58-May-09 4:40 
QuestionVB.net DirectShowLib -> capture still image Pin
Member 45001778-May-09 1:50
Member 45001778-May-09 1:50 
AnswerRe: VB.net DirectShowLib -> capture still image Pin
Dave Kreskowiak8-May-09 4:16
mveDave Kreskowiak8-May-09 4:16 
AnswerRe: VB.net DirectShowLib -> capture still image Pin
vungocvinh9-Jan-11 15:09
vungocvinh9-Jan-11 15:09 
Questionconnection string for Oracle8 database Pin
parkash_C8-May-09 1:31
parkash_C8-May-09 1:31 
AnswerRe: connection string for Oracle8 database Pin
Luc Pattyn8-May-09 2:35
sitebuilderLuc Pattyn8-May-09 2:35 
GeneralRe: connection string for Oracle8 database Pin
parkash_C8-May-09 2:53
parkash_C8-May-09 2:53 
GeneralGoogle Pin
Luc Pattyn8-May-09 3:16
sitebuilderLuc Pattyn8-May-09 3:16 
AnswerRe: connection string for Oracle8 database Pin
Rajesh Anuhya8-May-09 3:29
professionalRajesh Anuhya8-May-09 3:29 
QuestionHow to interface BW vb.net and Tally? Pin
JC.KaNNaN7-May-09 23:59
JC.KaNNaN7-May-09 23:59 

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.