Click here to Skip to main content
15,908,909 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
No to everything except; Yes, I'm painting everything in the paint handler, and the program's memory is steady around 41,000K.

The application is just eye candy. It doesn't do anything special except look and act like an analog clock that sits on the desktop.

When I said "the loop is still running" I was referring to the timer. The timer was still ticking and the Me.Invalidate() function was still being called, but nothing was happening.

I've actually come up with a solution that seems to be working. Originally I was painting everything to the form. I inserted a picture box and am painting on that now. So now the paint handler has PicBox.Invalidate() instead of Me.Invalidate(). It's been running for about ten minutes without freezing up.

Adding the picture box seems to be the answer to the problem, but I'm still curious why it was not working before. Is there something that Microsoft built into the operating system that keeps the form from painting itself too many times?

Thanks for all your help Luc,
Adam
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 
AnswerRe: How to interface BW vb.net and Tally? Pin
Anubhava Dimri8-May-09 0:32
Anubhava Dimri8-May-09 0:32 
AnswerRe: How to interface BW vb.net and Tally? Pin
Dave Kreskowiak8-May-09 0:45
mveDave Kreskowiak8-May-09 0:45 
QuestionHow to Create MySQL database and Restore in VB 6.0 Pin
Willington7-May-09 22:17
Willington7-May-09 22:17 
AnswerRe: How to Create MySQL database and Restore in VB 6.0 Pin
Noctris8-May-09 0:08
Noctris8-May-09 0:08 

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.