N
Newbro
I have this program running on PDA compact framework in which it will receive
paint message from server's networkstream and updates the client's screen by
drawing on this custom 'Draw' userControl.
Now on the PDA this 'Draw' userControl has a size of 480 x 320.
This control is added to a panel with autoscroll set to true. Since the PDA
screen has a size of 320 x 240, scroll will always be visible and show the
left top sectionof the userControl.
The program can receive paint message and update the PDA screen just fine by
drawing on this userControl, however at some point if the draw point if
outside of the current clientRectangle, I want to scroll this point before
drawing on the userControl. However I'm not sure how to do that. Since
clientRectangle can only be read, I've tried us this.Bounds or similar
functions but doesn't seem to do the job.
Any ideas would be great, Thanks in advanced
paint message from server's networkstream and updates the client's screen by
drawing on this custom 'Draw' userControl.
Now on the PDA this 'Draw' userControl has a size of 480 x 320.
This control is added to a panel with autoscroll set to true. Since the PDA
screen has a size of 320 x 240, scroll will always be visible and show the
left top sectionof the userControl.
The program can receive paint message and update the PDA screen just fine by
drawing on this userControl, however at some point if the draw point if
outside of the current clientRectangle, I want to scroll this point before
drawing on the userControl. However I'm not sure how to do that. Since
clientRectangle can only be read, I've tried us this.Bounds or similar
functions but doesn't seem to do the job.
Any ideas would be great, Thanks in advanced