all groups > vb.net controls > september 2004 >
You're in the

vb.net controls

group:

Command button with down arrow?


Command button with down arrow? Bill
9/26/2004 10:59:55 AM
vb.net controls:
Can anyone tell me if there is a term for the control that looks like a
command button with a droplist arrow on the right side? The arrow works like
a droplist that lets the user change the caption on the command button. In
Outlook 2003, I believe the New Contact dialog has one for entering
addresses for Home/Business/etc.

I would like to make use of such a control in my application, and I'm not
sure how to search for it.

Thanks,

Bill

Re: Command button with down arrow? Randy Birch
9/26/2004 12:41:22 PM
In outlook XP this is just a command button with a down arrow, showing a
popupmenu at that point. Nothing fancy there, but not a control per se. I
have a couple of demos that you might be able to tweak to do this easily ..
see http://vbnet.mvps.org/code/menu/wpmnubuttons.htm

--


Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/


[quoted text, click to view]
: Can anyone tell me if there is a term for the control that looks like a
: command button with a droplist arrow on the right side? The arrow works
like
: a droplist that lets the user change the caption on the command button.
In
: Outlook 2003, I believe the New Contact dialog has one for entering
: addresses for Home/Business/etc.
:
: I would like to make use of such a control in my application, and I'm not
: sure how to search for it.
:
: Thanks,
:
: Bill
:
:
Re: Command button with down arrow? Jeff Johnson [MVP: VB]
9/27/2004 3:52:07 PM

[quoted text, click to view]

Please specify the version of VB you are using. You have crossposted this
question to both "classic" and .NET groups. Normally this is not a good
thing.

Re: Command button with down arrow? Bill
9/27/2004 7:43:28 PM
[quoted text, click to view]

Actually, we are currently using VB6 at our company and we're experimenting
with VB.net.

Many of the groups I follow seem to prefer crossposting instead of
multi-posting, but I see people get dinged for either.

Re: Command button with down arrow? Jeff Johnson [MVP: VB]
9/27/2004 10:16:00 PM

[quoted text, click to view]

Multiposting is NEVER a good thing (and some people are way too tight-assed
about crossposting), but VB6 and VB.NET are different enough that you're
really asking two separate questions, so posting each question in the
relevant group(s) would be proper in this instance.

For example, if someone does a search in the .NET groups for this topic and
comes across Randy's reply, he might head out to that site only to be
disappointed that the given solution is not for .NET (although it could be
adapted). I just know how many red herrings I've personally followed from
newsgroup searches and I like to try to spare others that "fate."

Re: Command button with down arrow? Jeff Johnson [MVP: VB]
9/27/2004 10:42:44 PM

[quoted text, click to view]

You know, I just read this closer and realized you're just asking for the
NAME of that control. I thought you were asking how to implement one from
scratch. In VB6 it's called a ButtonMenu and it can only exist in a toolbar.
In .NET it's a ToolBarButton with its DropDownMenu property set.

Okay, ignore that part. I just read FURTHER and we're back to the standard
button with an arrow. For VB6, do what Randy said. For .NET, check out this
thread where I asked the question myself:
http://www.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=OmbaYLvUEHA.3944%40tk2msftngp13.phx.gbl&rnum=2&prev=/groups%3Fas_q%3Dbutton%2520arrow%26safe%3Dimages%26ie%3DUTF-8%26as_ugroup%3Dmicrosoft.public.dotnet.*%26as_uauthors%3DJeff%2520Johnson%26lr%3D%26hl%3Den.
(Took me forever to find that; I was looking in the wrong group.)

Re: Command button with down arrow? google NO[at]SPAM easycolorthemes.com
9/28/2004 3:26:54 AM
You can find a control (my command button) for VB here: www.namtuk.com
You can purchase the source code, good deal and good button.

Bart


[quoted text, click to view]
Re: Command button with down arrow? Bill Le May
9/28/2004 7:57:20 AM
"Jeff Johnson [MVP: VB]" <i.get@enough.spam> wrote...

[quoted text, click to view]

OK, thanks. I will look into both implementations.

Bill

Re: Command button with down arrow? Bill Le May
9/28/2004 7:57:54 AM
Thanks, Randy.

[quoted text, click to view]

AddThis Social Bookmark Button