473,729 Members | 2,376 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Right Align Menu Shortcuts

Hi, how do you make all shortcut keys (Ctrl+V,Ctrl+C) aligned to the
right like in Internet Explorer or any MS applications?

What I'm doing now to align them all to the right is to add spaces but
this is an ugly solution because some wont line up properly.

Thanks,
Henry
Nov 21 '05 #1
4 2382
Not all MS apps have right aligned shortcuts. Outlook express has the same
appearance as your dotnet menus.
to right align the shortcut Text you'll have to ownerdraw the menuitems.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Henry C. Wu" <he***********@ gmail.com> wrote in message
news:44******** *************** ***@posting.goo gle.com...
Hi, how do you make all shortcut keys (Ctrl+V,Ctrl+C) aligned to the
right like in Internet Explorer or any MS applications?

What I'm doing now to align them all to the right is to add spaces but
this is an ugly solution because some wont line up properly.

Thanks,
Henry

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.782 / Virus Database: 528 - Release Date: 22/10/2004
Nov 21 '05 #2
Not all MS apps have right aligned shortcuts. Outlook express has the same
appearance as your dotnet menus.
to right align the shortcut Text you'll have to ownerdraw the menuitems.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Henry C. Wu" <he***********@ gmail.com> wrote in message
news:44******** *************** ***@posting.goo gle.com...
Hi, how do you make all shortcut keys (Ctrl+V,Ctrl+C) aligned to the
right like in Internet Explorer or any MS applications?

What I'm doing now to align them all to the right is to add spaces but
this is an ugly solution because some wont line up properly.

Thanks,
Henry

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.782 / Virus Database: 528 - Release Date: 22/10/2004
Nov 21 '05 #3
"Henry C. Wu" <he***********@ gmail.com> schrieb:
Hi, how do you make all shortcut keys (Ctrl+V,Ctrl+C) aligned to the
right like in Internet Explorer or any MS applications?


That's the default for .NET menu items too. Set the menu item's 'Shortcut'
property to the shortcut you want and make sure its 'ShowShortcut' property
is set to 'True'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #4
"Henry C. Wu" <he***********@ gmail.com> schrieb:
Hi, how do you make all shortcut keys (Ctrl+V,Ctrl+C) aligned to the
right like in Internet Explorer or any MS applications?


That's the default for .NET menu items too. Set the menu item's 'Shortcut'
property to the shortcut you want and make sure its 'ShowShortcut' property
is set to 'True'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #5

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

Similar topics

4
14187
by: Aaron Queenan | last post by:
How can I use the designer to add a context menu to a class which inherits from a control, e.g. treeview, without adding the context menu to a form? For example, to add a context menu with "Select All" and "Clear Selection" to a checked list box? Thanks, Aaron Queenan.
0
277
by: Henry C. Wu | last post by:
Hi, how do you make all shortcut keys (Ctrl+V,Ctrl+C) aligned to the right like in Internet Explorer or any MS applications? What I'm doing now to align them all to the right is to add spaces but this is an ugly solution because some wont line up properly. Thanks, Henry
1
2688
by: rsteph | last post by:
I've got a page with a menu div that is 1066px wide by 150px high. And then I have some images that are 150px by 150px for the menu items. I put the images in a table that is set to 150x150px with a 1px border around the table, and around each cell in the table. For some reason though, a space is appearing inside the table, below the images. I've made the menu div background color red, so that it is obvious what's happened. I've also resized...
1
5548
by: bogdan | last post by:
Hi, I have a div to provide a background image for a menu. I'd like to position the menu on the right side but I can't seem to find a right way of doing it. The only way the menu will move to the right if I set text-align=right in the div. The problem is that menu items are then also aligned on right side. Not only that but this alignment works only in IE. Could someone please let me know how to right-align the menu?
0
8761
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
9426
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
9281
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
9142
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
8148
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4525
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
4795
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2680
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2163
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.