473,626 Members | 3,443 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.Dr awMenuGlyph(e.G raphics, New Rectangle(0, 0,
e.Item.Bounds.W idth, e.Item.Bounds.H eight), 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 2928
"Brian Henry" <no****@nospam. com> wrote in message
news:%2******** ********@TK2MSF TNGP14.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_Hotm ail.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
"Brian Henry" <no****@nospam. com> wrote in message
news:%2******** ********@TK2MSF TNGP14.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.Rotat eTransform'.

--
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******** ******@TK2MSFTN GP11.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.Rotat eTransform'.

--
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
8211
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 like the down arrow to move down a record and the up arrow move up a record etc. Darned if I can see how, despite searching through the help - both Access and Visual basic. Thanks in advance
10
1490
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 selection, but instead of these 2 keys, I want to use spacebar, can I do that? Best rgds, Ivan Vong
10
7169
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 ProcessDialogKey(ByVal keyData As Keys) As Boolean MyBase.ProcessDialogKey(keyData)
0
1742
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 text box and then generates an image which shows a Arrow pointer dipicting that percentage on the Arc (or guage). I am dynamically generating the arcs and the pointer using Draw Pie ( and
2
6586
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
1774
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 problem. Now i "CLICK" on a particular value on a listbox and display the results. What i need is to scroll down using up and down arrow(because there are many items in the list box). But my up and down arrow does not move in the list box.I am using...
2
6031
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. These JTree's are in MDI Application. I Need to link two JTree using an arrow And the JTree's are in an MDI Application not a normal JFrame. I need to do this in JavaSwing. I dont want to use applet. Thanks in Advance.
1
2545
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 two JTree using an arrow And the JTree's are in an MDI Application not a normal JFrame. I need to do this in JavaSwing. I dont want to use applet. Urgent Please help.
14
6033
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 the correct item from the drop box. The combination of the QTY and the ITEM is the primary key (two primary keys). When I tab over to the ITEM field and press the down arrow, a message box pops up telling me that a primary key field can't be null...
0
8268
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8202
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8707
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8641
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8510
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5575
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4093
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4202
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2628
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 we have to send another system

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.