473,806 Members | 2,332 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to create a toolbar button at the right edge of the tool bar ?

Hi:

My application use tabbed interface, i need a close button at the
right edge of the tool bar, is it possible ?

Thanks
JCVoon
Nov 21 '05 #1
4 2468
JC,

Did you try faking it draging a button on that toolbar in the rigth topmost
positions and set in that the anchor properties to Top and Right?

I hope that helps?

Cor
Nov 21 '05 #2
Cor:
Did you try faking it draging a button on that toolbar in the rigth topmost
positions and set in that the anchor properties to Top and Right?


Thanks for the reply, the button has a focus rect, which make the
interface not consistence,cur rently i'm using radioButon and set its
Apprerance=Butt on and AutoCheck=False , because my toolbar
Apprerance=Flat , so i set the radioButton FlatStyle=Popup , but it
still has a gray border around the radioButton, do u know how to
remove the gray border ?

I also has a problem on the Anchor property when set to Top and Right,
in my inherited form the button will move out of position.

Cheers
JCVoon
Nov 21 '05 #3
JC,

I have not a direct answer for you, but did you know that a label has as
well a click event.

Cor
Nov 21 '05 #4
"JC Voon" <jc*******@yaho o.com> schrieb:
My application use tabbed interface, i need a close button at the
right edge of the tool bar, is it possible ?


Add the main toolbar, set 'Dock' to 'None', reposition it and anchor it on
the top, left, and right edges. Then add a 2nd toolbar, don't dock it and
anchor it on the top and right edge. Add the button and place it
accordingly.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #5

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

Similar topics

0
1540
by: Alfred Taylor | last post by:
Is it possible to dock a toolbar to bottom and have the toolbar buttons right aligned? I searched google and newsgroups and didn't find a similar question. Right now I've manually sized my toolbar and put it as close to the right edge as possible. Pretty ghetto-rigged if you ask me. -A
3
4949
by: perspolis | last post by:
hi dears Can I have a toolbar with different button sizes???
0
953
by: RedHedToo | last post by:
I've been tasked to create a tool for a 3rd party application. I must create a toolbar that is to be added to that application and when a button is pressed, a popup window with functionality is to display. My problem is that I have no idea how to create a Toolbar that is to be added to an existing application. The idea is to create a dll using VC++ 6.0, import that dll into the application and the toolbar then be available to the user. ...
1
1195
by: JC Voon | last post by:
Hi: My base form has a menu bar and tool bar, the menu bar have File | Open, Close, Exit Menu Item and the tool bar has a exit button. Problem 1: I inherite a child form from this base form, and add additional menu item and tool bar button, i re-arange the toolbar button so that the exit button sit on last position, every thing look nice, but once i
7
2944
by: Mitchell Vincent | last post by:
I've been trying to get a standard toolbar to play nice with some nice icons that I have. When I put them on a button or anything they look perfect, but through an imagelist and on a toolbar they all have this blue aura around them. I assume that is from the transparency, but I don't understand why almost any other control displays them properly.. There really is no replacement for the toolbar (without paying!), so I hope someone can tell...
2
1280
by: Mitchell Vincent | last post by:
I've been trying to get a standard toolbar to play nice with some nice icons that I have. When I put them on a button or anything they look perfect, but through an imagelist and on a toolbar they all have this blue aura around them. I assume that is from the transparency, but I don't understand why almost any other control displays them properly.. There really is no replacement for the toolbar (without paying!), so I hope someone can tell...
0
968
by: harishdixit1 | last post by:
Hello friends I m creating an ATL DLL which will attached a toolbar in IE. I implemented XP style & it is working fine means controls now have XP Style. On my toolbar i have Button menus. But after XP style these buttons have been shifted somewhat bottom of the toolbar. means they r not fitting as previous toolbar buttons. Usaually toolabr button top edge is start from the top of the toolbar
27
3802
by: max | last post by:
Hello, I am a newbye, and I'm trying to write a simple application. I have five tables with three columns; all tables are identical; I need to change some data in the first table and let VB updates the same data in all other four tables in the right places. I know it would be possible by using the ForeignKeyConstraint object. I have created the tables using the DataSet Visual Tool and I know it doesn't create any ForeignKeyConstraint obj....
0
9719
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
9597
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
10618
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...
1
10371
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10110
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...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3850
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
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.