I am trying to incorporate images into my buttons, but am having some difficulty doing so. I have included a solution that with more details. Please see there.
Thanks,
Chad :duck:
Printable View
I am trying to incorporate images into my buttons, but am having some difficulty doing so. I have included a solution that with more details. Please see there.
Thanks,
Chad :duck:
Most people here are not going to blindly download a zip file. Tell us what the problem is, paste in relevant code as needed, and you will get better results.
Please describe your problem here so we can help you quicker.
1: Add a Button (Button1) to your form
2: Add an ImageList (ImageList1) to your form
3: Change the ImageList property of Button1 to ImageList1
4: Change the ImageIndex property of Button1 to 0
5: Change the ImageAlign property of Button1 to MiddleLeft
6: Change the TextAlign property of Button1 to MiddleRight
Then add this code:
vb Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If Button1.ImageIndex <> 0 Then Button1.ImageIndex = 0 Else Button1.ImageIndex = -1 End If End Sub
Next time, as others have said, write your question in the forum, not in a project in a TextBox. That's like me writing my reply in Lotus Notes and asking you to download the file to see the answer.
Cheers
:) I remember the first time I saw a Lotus product, Lotus 1-2-3 it was. I remember thinking it's as if their dev team sat down and said, 'lets do the complete opposite to Excel, even if it makes no sense at all and we end up with the most badly designed piece of software ever.' Truely awful.
It also came out FAR before Excel, and was probably the first truly successful spreadsheet software that made Lotus a major player at the time. It was closely copied by Quattro Pro, thereby triggering a lawsuit from Lotus, which was not resolved until after Excel had come out and totally won the market.
Not sure which version I saw, it would have been 12+ years ago now, whichever one it was, it looked like it had been drawn with crayons by school kids.
Not disputing how popular it was, what it did for spreadsheets as a whole, or stating that I like Excel (I don't, I hate the way it tries to be clever and fails miserably)
:)
Is there anyway to modify the opacity of image list items?
Not that I know of, but then I've never tried or searched to be able to do that. Maybe someone else can help you. Or try asking your new question in a new post.
Cheers