Aligning Buttons on form picture
Aligning Buttons on form picture
Hi, Although the attached isnt a complicated example, I have been using tranparent imageboxes with no picture and the mousedown event to trigger to cover "buttons" which are part of the picture in the Form.picture property. This gives complete freedom in the design of the user interface, not limited to standard button shapes, and no mysterious grey boxes when the mouse id over them.
In VB, when you included a picture on the form it appears at design time, you don't have to wait until run time to see it, so lining up buttons etc was easy to achieve. Is there some way to be able to se ethe picture on the form at the same time I am placing other components ?
Thanks in Anticipation.
- Attachments
-
- Work Screen 2 800x480.png (693.54 KiB) Viewed 1707 times
- BruceSteers
- Posts: 1607
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: Aligning Buttons on form picture
No.
A PictureBox control will show the image at design but not Form.Picture property
A PictureBox control will show the image at design but not Form.Picture property
If at first you don't succeed , try doing something differently.
BruceS
BruceS
- cogier
- Site Admin
- Posts: 1129
- Joined: Wednesday 21st September 2016 2:22pm
- Location: Guernsey, Channel Islands
Re: Aligning Buttons on form picture
I have to agree with Bruce here. There might be another way to look at this. If you put your image in a PictureBox a Mouse_Down event can be checked to establish if a click was made in a particular location. See program attached.
- BruceSteers
- Posts: 1607
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: Aligning Buttons on form picture
Or get on the mailing list and ask Benoit if Form.Picture property could show in the IDE.
It may be a simple task for him.
It may be a simple task for him.
If at first you don't succeed , try doing something differently.
BruceS
BruceS
Re: Aligning Buttons on form picture
Thanks All - Bruce, I didn't know it was an option to approach the great man himself ! Just wait until I really get going !