From: Phil Hunt on
I prefer command button too. But getting a picture on it and making it fit
nicely is not something I want to do. As I said in the beginning, being able
to stretch the image is the main reason I go this route.

"MikeD" <nobody(a)nowhere.edu> wrote in message
news:%235nQtmcqKHA.1800(a)TK2MSFTNGP02.phx.gbl...
> Pretty much ANY control that's not invisible at runtime has a Click event.
> That doesn't mean you should use Image controls in place of checkboxes or
> option buttons or any other control as a rule. David's point has merit.
> And no, I personally don't think using an Image control or PictureBox as a
> substitute for a command button is widespread. Has it been done and can
> you do it? Sure. But keep in mind that if you want this Image control to
> mimic a command button, you're probably not going to be able to do it
> precisely. That's not to say you can't do it to your satisfaction.
>
> --
> Mike
>
>
> "Phil Hunt" <aaa(a)aaa.com> wrote in message
> news:#8P8pXcqKHA.4236(a)TK2MSFTNGP02.phx.gbl...
>> Image control comes with Click event. I suspect this unintended use is
>> guite widespread
>>
>>
>> "David Kaye" <sfdavidkaye2(a)yahoo.com> wrote in message
>> news:hkscij$vm8$1(a)news.eternal-september.org...
>>> "Phil Hunt" <aaa(a)aaa.com> wrote:
>>>>I have a image box I use as a command button, because I can easily
>>>>stretch
>>>>it. It works well except it provides no visual clue on clicking. Does
>>>>anyone
>>>>have suggestion ? Thanks
>>>
>>> The more you use controls for unintended functions the more confusing
>>> they
>>> become to users. I'd stick with using command buttons if you're going
>>> to show
>>> visual cues.
>>>
>>
>>


From: C. Kevin Provance on
And look up the API DrawFocusRect

--
2025
If you do not believe in time travel,
your beliefs are about to be tempered.

http://www.facebook.com/group.php?gid=43606237254
"Karl E. Peterson" <karl(a)exmvps.org> wrote in message
news:O6HtZbbqKHA.1936(a)TK2MSFTNGP06.phx.gbl...
| Phil Hunt wrote:
| > I have a image box I use as a command button, because I can easily
stretch
| > it. It works well except it provides no visual clue on clicking. Does
anyone
| > have suggestion ? Thanks
|
| Flip images on MouseDown/MouseUp.
|
| --
| .NET: It's About Trust!
| http://vfred.mvps.org
|
|


From: David Kaye on
"MikeD" <nobody(a)nowhere.edu> wrote:

>Sure, you want your app to look good, but not at the
>expense of being intuitive and functional, which IMO is far more important
>than appearance.

I can't tell you how many applications I've discarded because the interfaces
were so awful that it was too hard to figure out how they worked.

Unfortunately, some of them are so bad, yet so widely deployed, that people
manage to make money giving classes in how to use them. QuickBooks comes to
mind. Even for an experienced user it's a mess to navigate.

From: duke on
On Feb 9, 11:32 am, "Phil Hunt" <a...(a)aaa.com> wrote:
> I have a image box I use as a command button, because I can easily stretch
> it. It works well except it provides no visual clue on clicking. Does anyone
> have suggestion ? Thanks

On mousedown event borderstyle = 0
on mouseup event borderstyle = 1
From: Phil Hunt on
Duke,
Thanks. Simple and very effective. Personally I like the visual better than
the lame button click.
FYI, I use
img.BorderStyle = img.BorderStyle Xor 0
on both up and down event, for the most deiscerning eye.


"duke" <nospama(a)3web.net> wrote in message
news:dd0885fd-7a18-4cc0-b20b-e03628282fd5(a)z17g2000yqh.googlegroups.com...
On Feb 9, 11:32 am, "Phil Hunt" <a...(a)aaa.com> wrote:
> I have a image box I use as a command button, because I can easily stretch
> it. It works well except it provides no visual clue on clicking. Does
> anyone
> have suggestion ? Thanks

On mousedown event borderstyle = 0
on mouseup event borderstyle = 1