|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
drawing down arrowUsing 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! "Brian Henry" <nospam@nospam.com> wrote in message fwiw, MS uses the Marlett font for combobox's and similar controls....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! > 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.. 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.. > > "Toff McGowen" <t*@toff.com> schrieb: ACK. You may want to try 'Graphics.RotateTransform'.> Why cant you just rotate the canvas 90 degrees using the code your already > using? -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> 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/> |
|||||||||||||||||||||||