Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9001279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:24:54+00:00 2026-06-16T00:24:54+00:00

I want to push toolstripbutton down in my code and I can’t seem to

  • 0

I want to push toolstripbutton down in my code and I can’t seem to be able to do that. I know on Delphi RAD Studio or XE, you can do the following and cause the button to be pressed.

ToolStripButton1.Down := true;

The only ToolStripButton property I see that comes close to “down” is checked true or false. If I do set it to true, it only highlights the toolstripbutton not press it down.

Here is how the button looks when I put my mouse on it and click:

enter image description here

You can clearly see that the Zoom In button is down.

Here is how the button looks when I try to do the samething through my code by setting CheckOnClick true and Checked true.

enter image description here

In this image, the only thing you can see is the blue box around it. I suppose if I had used just the text on the button, you will see that the whole button filled with blue color to show that it was pressed.

enter image description here

I also have toolstrip button in my other program which acts the same way but I had to use imagelist control to switch between pressed or down or checked verses not pressed or down or checked.

So, is there a way to press the ToolStripButton programmatically in Delphi Prism or C#?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:24:55+00:00Added an answer on June 16, 2026 at 12:24 am

    Set the ToolStripButton.CheckOnClick property to True. (It’s found in the Behavior section of the Items Collection Editor.)

    This makes clicking it just like toggling the Down property in a Delphi TSpeedButton (making it flat or depressed), and if ToolStripButton1.Checked is the equivalent of if SpeedButton1.Down in Delphi.

    To set up the test, I did the following:

    • Created a new Winforms application
    • Dropped a ToolStrip onto the new MainForm
    • Added four ToolStripButton items and gave them images to make them easier to see.
    • Set the CheckOnClick property to True for each of them
    • Set the Checked property of toolStripButton1 to True;
    • Added the code below to toolStripButton1.Click

      method MainForm.toolStripButton1_Click(sender: System.Object; e: System.EventArgs);
      begin
      toolStripButton2.Checked := not toolStripButton2.Checked;
      toolStripButton4.Checked := toolStripButton2.Checked;
      end;

    Running the app (initial startup, toolStripButton1 checked and the others unchecked):

    One button down

    The first button is clearly down, and the rest are up.

    After clicking toolStripButton1 once:

    Two buttons down

    The first button is now up (unchecked) and the second and fourth are down (checked). (I should pay more attention to the consistency in sizing if I do successive images in future posts.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use push notification in my app.i want to know that do
i want to know that when we want to use push notification service.From where
I have a project that I want to push to a Mercurial repository on
I want to push key and value in array , but I can't $con
I have a form that I want to push behind all other windows when
I have a github repo that I want to push to a heroku node.
I've checked in some changes to my local repository that I want to push,
We want to push data from a server to clients but can only use
I want to push my code to a repo, but before doing so I
I have a DataTable that I want to push to the DB. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.