Click here to Skip to main content
15,887,776 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHELP Create web service step by step tutorial Pin
kendo1730-Oct-07 5:55
kendo1730-Oct-07 5:55 
AnswerRe: HELP Create web service step by step tutorial Pin
Dave Kreskowiak31-Oct-07 5:25
mveDave Kreskowiak31-Oct-07 5:25 
GeneralRe: HELP Create web service step by step tutorial Pin
kendo1731-Oct-07 10:19
kendo1731-Oct-07 10:19 
QuestionOpening A Text File InTo A DataGrid Pin
FreakNikon30-Oct-07 5:04
FreakNikon30-Oct-07 5:04 
AnswerRe: Opening A Text File InTo A DataGrid Pin
Dave Kreskowiak30-Oct-07 5:48
mveDave Kreskowiak30-Oct-07 5:48 
AnswerRe: Opening A Text File InTo A DataGrid Pin
C1AllenS30-Oct-07 5:51
C1AllenS30-Oct-07 5:51 
Questionhow to use double buffer in vb 2005? Pin
jiuhu30-Oct-07 4:40
jiuhu30-Oct-07 4:40 
AnswerRe: how to use double buffer in vb 2005? Pin
Dave Kreskowiak30-Oct-07 5:18
mveDave Kreskowiak30-Oct-07 5:18 
You have to put your drawing code in the Paint event of your form. Anywhere else and you're pretty much wasting your time.

The form gets invalidated, meaning that it needs to repaint itself. There are several things that can cause a repaint, such as dragging another window acrossed your form, or calling the form's Invalidate method. This forces Windows to schedule a repaint of your form.

You might want to setup a Timer on your form, setting it for say 100 milliseconds (one tenth of a second). Handle it's Tick event, and in your handler, update the new position of your object, then call the form's Invalidate method.

A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: how to use double buffer in vb 2005? Pin
jiuhu30-Oct-07 5:31
jiuhu30-Oct-07 5:31 
GeneralRe: how to use double buffer in vb 2005? Pin
Dave Kreskowiak30-Oct-07 5:45
mveDave Kreskowiak30-Oct-07 5:45 
GeneralRe: how to use double buffer in vb 2005? Pin
jiuhu30-Oct-07 11:59
jiuhu30-Oct-07 11:59 
QuestionThreading ? [modified] Pin
tim63730-Oct-07 2:58
tim63730-Oct-07 2:58 
AnswerRe: Threading ? Pin
Abhijit Jana30-Oct-07 3:20
professionalAbhijit Jana30-Oct-07 3:20 
GeneralRe: Threading ? Pin
tim63730-Oct-07 3:55
tim63730-Oct-07 3:55 
GeneralRe: Threading ? Pin
Abhijit Jana30-Oct-07 4:13
professionalAbhijit Jana30-Oct-07 4:13 
AnswerRe: Threading ? Pin
svanwass31-Oct-07 5:35
svanwass31-Oct-07 5:35 
QuestionGetting database names with windows authentication Pin
dptalt30-Oct-07 2:58
dptalt30-Oct-07 2:58 
AnswerRe: Getting database names with windows authentication Pin
Abhijit Jana30-Oct-07 3:31
professionalAbhijit Jana30-Oct-07 3:31 
GeneralRe: Getting database names with windows authentication Pin
dptalt5-Nov-07 4:38
dptalt5-Nov-07 4:38 
Questionshowing a modal form at a location Pin
aransiola30-Oct-07 2:39
aransiola30-Oct-07 2:39 
AnswerRe: showing a modal form at a location Pin
Tom Deketelaere30-Oct-07 2:48
professionalTom Deketelaere30-Oct-07 2:48 
AnswerRe: showing a modal form at a location Pin
nlarson1130-Oct-07 5:08
nlarson1130-Oct-07 5:08 
QuestionDateTimePicker Pin
nishkarsh_k29-Oct-07 22:56
nishkarsh_k29-Oct-07 22:56 
AnswerRe: DateTimePicker Pin
Christian Graus29-Oct-07 23:13
protectorChristian Graus29-Oct-07 23:13 
AnswerRe: DateTimePicker Pin
visualhint30-Oct-07 3:00
visualhint30-Oct-07 3:00 

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.