473,499 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

drawing down arrow

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!
Jan 25 '06 #1
4 2911
"Brian Henry" <no****@nospam.com> wrote in message
news:%2****************@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..
Jan 25 '06 #2
Why cant you just rotate the canvas 90 degrees using the code your already
using?

tm

"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
"Brian Henry" <no****@nospam.com> wrote in message
news:%2****************@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..

Jan 26 '06 #3
"Toff McGowen" <tm@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/>

Jan 26 '06 #4
thanks! didn't know that was available

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uM**************@TK2MSFTNGP11.phx.gbl...
"Toff McGowen" <tm@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/>

Jan 27 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
8183
by: John M | last post by:
Hi, I have a form which I would like to keep in 'FormView', but which displays rows each containing records. Generally the data will be added/updated by moving between fields, but I would also...
10
1463
by: Ivan V via DotNetMonster.com | last post by:
Hi All: How can I activate the spacebar to pull down the combobox? For instance, once the tab stopped at the combobox, suppose i can use dnarrow or F4 to pull down the combobox to make...
10
7155
by: Bob | last post by:
Hello: I'm tring to make the down arrow act as a tab key and the up arrow act as like (-TAB.). I have this for the down arrow but nothing happens. Protected Overrides Function...
0
1726
by: SurajPrabhu | last post by:
Hi All, I am tying to build a ASP.net 2.0 based web page which displays a Analog Guage ( 0 to 180 degrees) with an Arrow in the middle. The application accepts the Percentage as input from a...
2
6579
by: alphatommy_at_hotmail_dot_com | last post by:
Hi, I am using DrawEllipse and DrawLine to draw a rough network diagram. Are there better/easier ways to do that? Also, how would one draw an arrow? thanks.
0
1761
by: cmrhema | last post by:
Hello I am using ASP.net 2.0 with VC# 2005. I have populated a listbox as below and when I click on the value on the list box I display out the related values. All works fine. But I have one...
2
6021
by: uhdam | last post by:
HI.. I need to link 2 JTree's using an arrow. For the line i used separator. But i couldnt draw an arrow. Can somebody help with this. Either help me draw the arrow mark alone or the entire arrow....
1
2538
by: uhdam | last post by:
HI.. I need to link 2 JTree's using an arrow. I couldnt draw an arrow. Can somebody help with this. Please help me draw the arrow. (---->). These JTree's are in MDI Application. I Need to link...
14
6009
by: DanicaDear | last post by:
I have a QTY field and an ITEM field. User inputs a number into the QTY field, then tabs over the the next field and there's a down arrow on the right hand side of the field that you click to choose...
0
7128
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7006
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7385
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5467
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1425
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
661
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
294
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.