Click here to Skip to main content
15,921,179 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionPre and Post build steps Pin
PaulPrice29-Jun-06 1:07
PaulPrice29-Jun-06 1:07 
AnswerRe: Pre and Post build steps Pin
Duncan Edwards Jones29-Jun-06 1:26
professionalDuncan Edwards Jones29-Jun-06 1:26 
AnswerRe: Pre and Post build steps Pin
Kevin McFarlane30-Jun-06 0:22
Kevin McFarlane30-Jun-06 0:22 
Question[2005] HTTP:POST form emulation - don't even know where to start? Pin
Duncan Edwards Jones28-Jun-06 23:53
professionalDuncan Edwards Jones28-Jun-06 23:53 
QuestionMscomm and draw chart Pin
codeadair28-Jun-06 22:44
codeadair28-Jun-06 22:44 
AnswerRe: Mscomm and draw chart Pin
Dave Kreskowiak29-Jun-06 1:49
mveDave Kreskowiak29-Jun-06 1:49 
GeneralRe: Mscomm and draw chart [modified] Pin
codeadair29-Jun-06 15:06
codeadair29-Jun-06 15:06 
GeneralRe: Mscomm and draw chart Pin
Dave Kreskowiak29-Jun-06 16:39
mveDave Kreskowiak29-Jun-06 16:39 
First, you're doing some drawing in a Timer event. Don't! Any drawing you do to the screen should be done only in the Paint event.

Second, you're using a Timer out of the ToolBox?? This passes its Timer Tick as an event, which is routed through the app's message pump. This means that other events can pile up VERY rapidly before the Timer Tick event, such as moving the form. Using an event based Timer isn't really a good idea.

Also, 100ms doesn't leave your code very much time to do anything. Painting can take an eternity (>100ms) if not done correctly.

While you're collecting data, draw to a Bitmap. Then you don't have to worry about painting, and repainting, old data continously. You paint your data once on the Bitmap and it'll be persisted between Paint events.


Dave Kreskowiak
Microsoft MVP - Visual Basic

GeneralRe: Mscomm and draw chart Pin
codeadair29-Jun-06 18:09
codeadair29-Jun-06 18:09 
GeneralRe: Mscomm and draw chart Pin
Dave Kreskowiak30-Jun-06 0:50
mveDave Kreskowiak30-Jun-06 0:50 
GeneralRe: Mscomm and draw chart Pin
codeadair30-Jun-06 1:06
codeadair30-Jun-06 1:06 
GeneralRe: Mscomm and draw chart [modified] Pin
Dave Kreskowiak30-Jun-06 3:51
mveDave Kreskowiak30-Jun-06 3:51 
GeneralRe: Mscomm and draw chart Pin
codeadair3-Jul-06 2:07
codeadair3-Jul-06 2:07 
GeneralRe: Mscomm and draw chart Pin
Dave Kreskowiak3-Jul-06 17:32
mveDave Kreskowiak3-Jul-06 17:32 
GeneralRe: Mscomm and draw chart [modified] Pin
codeadair3-Jul-06 17:41
codeadair3-Jul-06 17:41 
GeneralRe: Mscomm and draw chart Pin
Dave Kreskowiak4-Jul-06 5:49
mveDave Kreskowiak4-Jul-06 5:49 
GeneralRe: Mscomm and draw chart Pin
codeadair4-Jul-06 14:54
codeadair4-Jul-06 14:54 
QuestionError when installing in a XP machine Pin
Arunag28-Jun-06 22:41
Arunag28-Jun-06 22:41 
AnswerRe: Error when installing in a XP machine Pin
fredy66628-Jun-06 23:42
fredy66628-Jun-06 23:42 
GeneralRe: Error when installing in a XP machine Pin
Arunag29-Jun-06 0:20
Arunag29-Jun-06 0:20 
GeneralRe: Error when installing in a XP machine Pin
fredy66629-Jun-06 0:29
fredy66629-Jun-06 0:29 
AnswerRe: Error when installing in a XP machine Pin
Mekong River29-Jun-06 0:34
Mekong River29-Jun-06 0:34 
GeneralRe: Error when installing in a XP machine Pin
Arunag1-Jul-06 0:18
Arunag1-Jul-06 0:18 
GeneralRe: Error when installing in a XP machine Pin
Mekong River1-Jul-06 5:19
Mekong River1-Jul-06 5:19 
AnswerRe: Error when installing in a XP machine Pin
Dave Kreskowiak29-Jun-06 1:45
mveDave Kreskowiak29-Jun-06 1:45 

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.