Click here to Skip to main content
15,920,632 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to split one dataset into two datatable??? Pin
star_platinum24-Feb-09 17:16
star_platinum24-Feb-09 17:16 
AnswerRe: How to split one dataset into two datatable??? Pin
Dave Kreskowiak24-Feb-09 18:03
mveDave Kreskowiak24-Feb-09 18:03 
GeneralRe: How to split one dataset into two datatable??? Pin
star_platinum24-Feb-09 19:10
star_platinum24-Feb-09 19:10 
GeneralRe: How to split one dataset into two datatable??? Pin
Mycroft Holmes24-Feb-09 20:43
professionalMycroft Holmes24-Feb-09 20:43 
GeneralRe: How to split one dataset into two datatable??? Pin
Jon_Boy25-Feb-09 8:25
Jon_Boy25-Feb-09 8:25 
Questionneed help with backcolor command [modified] Pin
hugblue24-Feb-09 16:24
hugblue24-Feb-09 16:24 
AnswerRe: need help with backcolor command Pin
ABitSmart24-Feb-09 17:25
ABitSmart24-Feb-09 17:25 
AnswerRe: need help with backcolor command Pin
Dave Kreskowiak24-Feb-09 17:56
mveDave Kreskowiak24-Feb-09 17:56 
I can barely read this, and frankly, poorly written.

The reason why you don't see the updates is because your code is blocking the WM_PAINT messages being sent to your controls so they can repaint themselves according to the new Text and BackColor properties. When you make a change to a control, you do not see the change until the UI thread (which is running more of your code) gets a chance to process any pending messages in your applications message pump. This includes getting around to processing WM_PAINT messages triggered by the changes you made to your controls, pt1 and TextBoxY.

To get around this and keep your UI thread available, you would normally move all of your processing code to a background thread and raise events or use some other communication scheme to tell the UI thread how to updates the controls. But, seeing as how your pretty much a beginner at writing code, this concept may be way beyond your coding abilities for now.


A guide to posting questions on CodeProject[^]



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




GeneralRe: need help with backcolor command Pin
hugblue25-Feb-09 0:54
hugblue25-Feb-09 0:54 
GeneralRe: need help with backcolor command Pin
Dave Kreskowiak25-Feb-09 1:38
mveDave Kreskowiak25-Feb-09 1:38 
GeneralRe: need help with backcolor command Pin
hugblue25-Feb-09 2:09
hugblue25-Feb-09 2:09 
GeneralRe: need help with backcolor command Pin
Dave Kreskowiak25-Feb-09 4:44
mveDave Kreskowiak25-Feb-09 4:44 
GeneralRe: need help with backcolor command Pin
hugblue25-Feb-09 6:51
hugblue25-Feb-09 6:51 
QuestionHow to Create a setup of Window project Pin
Jagz W24-Feb-09 15:42
professionalJagz W24-Feb-09 15:42 
AnswerRe: How to Create a setup of Window project Pin
ABitSmart24-Feb-09 17:05
ABitSmart24-Feb-09 17:05 
QuestionNeed help converting CRC32 function in C to VB Pin
harans24-Feb-09 11:26
harans24-Feb-09 11:26 
AnswerRe: Need help converting CRC32 function in C to VB Pin
riced25-Feb-09 7:04
riced25-Feb-09 7:04 
QuestionHow can I redraw the form with the controls new backcolor value? Pin
JUNEYT24-Feb-09 10:57
JUNEYT24-Feb-09 10:57 
AnswerRe: How can I redraw the form with the controls new backcolor value? Pin
Dave Kreskowiak24-Feb-09 12:48
mveDave Kreskowiak24-Feb-09 12:48 
Questioninvalid operation excpetion Pin
captainmogo24-Feb-09 5:30
captainmogo24-Feb-09 5:30 
Questiongenerating thumbnails from a list of image files *.jpg *. gif etc... Pin
syba24-Feb-09 4:57
syba24-Feb-09 4:57 
AnswerRe: generating thumbnails from a list of image files *.jpg *. gif etc... Pin
Dave Kreskowiak24-Feb-09 17:59
mveDave Kreskowiak24-Feb-09 17:59 
GeneralRe: generating thumbnails from a list of image files *.jpg *. gif etc... Pin
syba24-Feb-09 18:05
syba24-Feb-09 18:05 
GeneralRe: generating thumbnails from a list of image files *.jpg *. gif etc... Pin
Dave Kreskowiak25-Feb-09 1:33
mveDave Kreskowiak25-Feb-09 1:33 
Questionprinting xml in ie Pin
Stephen Lintott24-Feb-09 3:38
Stephen Lintott24-Feb-09 3:38 

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.