|
|
#1 |
|
Hyperactive Member
Join Date: Aug 99
Location: Ont, Canada, Earth
Posts: 451
![]() |
Center picture in picture box (code needs polishing)
Hi,
TO TRY THE CODE: place a picturebox on a form and name it DOWN I want to use picture box as a command button in order to avoid the focus rectangle when the regular command button is down. To do that I draw edge at runtime around my picture box (see code below) The button part works well (picture box looks like the button) The only part I have trouble with is centering the picture in the picture box. I've got the code from Arron Young and it works on a picture box but when I combine it with my code to draw the edges around the picture box it doesn't center. Anyway here's the code (the last sub - CenterPicture() is the one I want to use with the rest of my code.... so far unsuccessfully. VB Code:
__________________
Thanks Tomexx. |
|
|
|
|
|
#2 |
|
Hyperactive Member
Join Date: Aug 99
Location: Ont, Canada, Earth
Posts: 451
![]() |
Change Scalemode of the picture box to 3-Pixel, appearence to flat, and BorderStyle to none
__________________
Thanks Tomexx. |
|
|
|
|
|
#3 |
|
Hyperactive Member
Join Date: Aug 99
Location: Ont, Canada, Earth
Posts: 451
![]() |
Ok, here's the project
__________________
Thanks Tomexx. |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|