473,396 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ToolStrip

i make a tool strip
iwant to make ToggleButton as all buttons are push buttons .

How i can change this buttons from push to toggle.
Thanx at all
-------------------------------
-------------------------------
Two Beer Or not Two Beer (:D)
Jul 3 '06 #1
3 4212
Your toolbar should have a buttons collection. If you open the collection
and click on any of the buttons you'll see they have "style". Set the style
to ToggleButton.

Steve

"SemSem" <Se****@discussions.microsoft.comwrote in message
news:3A**********************************@microsof t.com...
>i make a tool strip
iwant to make ToggleButton as all buttons are push buttons .

How i can change this buttons from push to toggle.
Thanx at all
-------------------------------
-------------------------------
Two Beer Or not Two Beer (:D)

Jul 3 '06 #2

--
Islam Khalil,
"Steve Barnett" wrote:
Your toolbar should have a buttons collection. If you open the collection
and click on any of the buttons you'll see they have "style". Set the style
to ToggleButton.

Steve

i found only displaystyle property .
idont find style
iam using VS2005 if that help.

Steve you help me alot of time
thank u very mauch.

Jul 4 '06 #3
I'm sorry, my mistake, I was thinking of the normal toolbar, not the
toolstrip.

You can control the "pressed" state of a toolstrip button by controlling
it's "checked" state. If you set checked to true, the button appears pressed
down. Set it to unchecked and it appears normal. You can test the current
state in your program via the CheckedState property.

Steve

"SemSem" <Se****@discussions.microsoft.comwrote in message
news:0C**********************************@microsof t.com...
>
--
Islam Khalil,
"Steve Barnett" wrote:
>Your toolbar should have a buttons collection. If you open the collection
and click on any of the buttons you'll see they have "style". Set the
style
to ToggleButton.

Steve

i found only displaystyle property .
idont find style
iam using VS2005 if that help.

Steve you help me alot of time
thank u very mauch.

Jul 4 '06 #4

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

Similar topics

2
by: Fredrik Melin | last post by:
2005 RTM: Have a form, quite a few control, (full form of stuff, tab pages, buttons, labels, text-controls etc) Selecting controls, going in and out between code/design view is a little bit...
0
by: gene kelley | last post by:
I'm migrating/rewriting one of my VB6 apps to VB2005. In the process, I'm trying to avoid using third party activex controls used in the VB6 project. One of the third party controls in the VB6...
1
by: Alex Clark | last post by:
Hi all, I'm using the ToolStrip in .NET 2.0, and I can't seem to find a way to change the size of it. What I want is a toolbar the size of the IE toolbar, preferably with text below images if...
0
by: Jon Davis | last post by:
I'm taking the items from a menustrip of a control and moving them to the parent form's menustrip: private void TakeMenus(AdminControl ac) { foreach (Control c in ac.Controls) { if (c is...
0
by: Anand Ganesh | last post by:
Hello Everybody, I am using the ToolStrip Control in .NET 2.0. I am also using a ToolStripContainer Control. I want to know how to retain the position of the ToolStrip Control in the...
0
by: Martijn Mulder | last post by:
The ToolStrip on top of my form is to small. I want to increase its height. Simply setting the Height-property doesn't change the height, though. So I tried to place the ToolStrip in a...
6
by: Mike | last post by:
I have a program that is crashing on some machines (at a client of ours). I have determined that it goes down on this line of code: ToolStrip x = new ToolStrip(); I created a simple test app...
1
by: Tom P. | last post by:
It's kind of hard to explain (so if you need more just ask) and any help would be greatly appreciated. I am writing a side-by-side file manager. On each side I have a DropDownButton that holds...
2
by: daveL | last post by:
Hi I have a Toolstrip on a Window with 5 buttons i want to send this to a application static fucnction to enable / disable the buttons based on User rights When i send Window.controls to the...
1
by: priyamtheone | last post by:
In C# 2005 (.Net 2.0), while working with a toolstrip, if its TabStop property is set to TRUE and there are two comboboxes and a button in the toolstrip, why doesn't the button get any focus when the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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,...
0
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...
0
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
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,...

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.