Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Picturebox Woes

Status
Not open for further replies.

TyGwyn

Programmer
Oct 5, 2005
31
GB
I have got two picture boxes on a form, I create a barcode image as a file and load it into picbox_1, I then rotate this image by 90deg and put the result in picbox_2 (.pset) , so far so good, as soon as the form loses focus the rotated barcode displayed in picbox_2 disapears, I am printing the form out using me.print, the original barcode prints fine but the rotated picture defaults to blank or a picture I loaded at design time.

Can anyone offer a much needed answer as to why this happens and what would cure it?

Thanks Desperately Adam
 
Set the Autoredraw property to true.


Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
Tried that, all I get now is a black box where the barcode used to be displayed. The backcolour is set to white and the fill to transparent, my form shows the barcode but it does not print, yet there is no problem with picbox_1.

Adam
 
Rather than using pset take a look at this thread thread222-535523.


Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
Thanks very helpfull, after rotating my image I was refreshing the form, problem solved by just refreshing the picbox as well as setting the autodraw.

forever indebted.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top