Darren Dick
D.Dick at uws.edu.au
Wed Jul 20 21:05:25 CDT 2005
Michael Excellent Many thanks - I think the Autodraw = true is the answer It is at least on my Dev machine I'll try it out at the clients machine today Many many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, July 21, 2005 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BIT OT: Any VB Gurus out there? Darren, Have you set AutoRedraw = True? If not, and using a blt method, try Picture1.Refresh. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "Darren Dick" <D.Dick at uws.edu.au> To: "Access Developers discussion and problem solving" <accessd at databaseadvisors.com> Sent: Wednesday, July 20, 2005 8:35 PM Subject: [AccessD] BIT OT: Any VB Gurus out there? > Hi Team > Working on VB code. > Code works fine in 98/ME (Shudder) but there are visual issues and > errors in 2000 or XP > > The code 'draws' lines/coordinates into a Picture Box We have managed > to get the code to kinda work in XP by changing A few integers to > longs. > Names are - > "frm_Control" for the VB Form > "ssTab" for the Tab Control > "Picture1" for the picture Box > > But here's the thing > > In 98/ME the drawing is done and you see the lines after clicking a > button. Lovely. > With the modified code in XP the code draws the lines but you don't > see 'em. > But if you click on a Tab then come back to the PictureBox in question > then you see the lines. > > So how do I refresh the contents of a picture box in VB? > > Frm_Control.Picture1.Requery Doesn't work - I get Compile Error > Method or Data member not found > > So...any suggestions on how to 'redraw' or 'refresh' or 'requery' this > thing with out changing tabs. > BTW - There is very little code in the TabChange code. It has nothing > to do with repainting etc. > > Many thanks > > Darren > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com