Home All Groups Group Topic Archive Search About
Author
25 Jan 2006 7:54 PM
Brian Henry
Using controlpaint i can draw an arrorw pointing to the right like this
ControlPaint.DrawMenuGlyph(e.Graphics, New Rectangle(0, 0,
e.Item.Bounds.Width, e.Item.Bounds.Height), MenuGlyph.Arrow)



but i need to draw that same arrorw pointing down for a dropdown menu type
situation... anyone know any quick easy ways to do this? thanks!

Author
25 Jan 2006 8:10 PM
Ken Halter
"Brian Henry" <nospam@nospam.com> wrote in message
news:%23AEx5keIGHA.2036@TK2MSFTNGP14.phx.gbl...
>
> but i need to draw that same arrorw pointing down for a dropdown menu type
> situation... anyone know any quick easy ways to do this? thanks!
>

fwiw, MS uses the Marlett font for combobox's and similar controls....

In VB6 (sorry... that's what I know <g>), this'll make a command button look
like the dropdown button on a combobox (except for the larger arrow). Use
the Character Map utility to find the characters (or their character codes)
'=========
Private Sub Form_Load()
   With Command1
      With .Font
         .Name = "Marlett"
         .Size = 12
         .Bold = True
      End With
      .Caption = "u"
   End With
End Sub
'=========

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
Author
26 Jan 2006 2:41 AM
Toff McGowen
Why cant you just rotate the canvas 90 degrees using the code your already
using?

tm

Show quoteHide quote
"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in message
news:%23$FesteIGHA.3460@TK2MSFTNGP12.phx.gbl...
> "Brian Henry" <nospam@nospam.com> wrote in message
> news:%23AEx5keIGHA.2036@TK2MSFTNGP14.phx.gbl...
> >
> > but i need to draw that same arrorw pointing down for a dropdown menu
type
> > situation... anyone know any quick easy ways to do this? thanks!
> >
>
> fwiw, MS uses the Marlett font for combobox's and similar controls....
>
> In VB6 (sorry... that's what I know <g>), this'll make a command button
look
> like the dropdown button on a combobox (except for the larger arrow). Use
> the Character Map utility to find the characters (or their character
codes)
> '=========
> Private Sub Form_Load()
>    With Command1
>       With .Font
>          .Name = "Marlett"
>          .Size = 12
>          .Bold = True
>       End With
>       .Caption = "u"
>    End With
> End Sub
> '=========
>
> --
> Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
> Please keep all discussions in the groups..
>
>
Author
26 Jan 2006 11:02 AM
Herfried K. Wagner [MVP]
"Toff McGowen" <t*@toff.com> schrieb:
> Why cant you just rotate the canvas 90 degrees using the code your already
> using?

ACK.  You may want to try 'Graphics.RotateTransform'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
27 Jan 2006 9:13 PM
Brian Henry
thanks! didn't know that was available

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:uMo6BgmIGHA.1032@TK2MSFTNGP11.phx.gbl...
> "Toff McGowen" <t*@toff.com> schrieb:
>> Why cant you just rotate the canvas 90 degrees using the code your
>> already
>> using?
>
> ACK.  You may want to try 'Graphics.RotateTransform'.
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>