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 972987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:12:44+00:00 2026-05-16T03:12:44+00:00

I have added a tool strip to my form. In this tool strip i

  • 0

I have added a tool strip to my form. In this tool strip i had some buttons with the help of add toolstrip button. These buttons are by default of the size 22, 20. But i want to change the size of the button to 25, 50. I made changes in designer by changing the size property but it is not reflected in my form. Even if i change the height of the tool strip, it is not getting changed. Any help with that?

  • 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-05-16T03:12:45+00:00Added an answer on May 16, 2026 at 3:12 am

    If you change AutoSize property of ToolStripButton to false, you’ll be able to change the width of button.

    If you change AutoSize property of ToolStrip to false, you’ll be able to change its height and the ToolStripButton will change its height automatically to fit into the tool strip.

    EDIT:
    If you want to increase not only size of the button, but also the size of the button image, you must either use the bigger image, or you can try to resize the original one. Then you must also change toolstrip’s ImageScalingSize property. Try to use the following code:

    //change the dimensions of button itself
    toolStrip1.AutoSize = false; toolStrip1.Height = 50;
    toolStripButton1.AutoSize = false; toolStripButton1.Width = 50;
    
    //resize the image of the button to the new size
    int sourceWidth = toolStripButton1.Image.Width;
    int sourceHeight = toolStripButton1.Image.Height;
    Bitmap b = new Bitmap(40, 40);
    using (Graphics g = Graphics.FromImage((Image)b))
    {
       g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
       g.DrawImage(toolStripButton1.Image, 0, 0, 40, 40);
    }
    Image myResizedImg = (Image)b;
    
    //put the resized image back to the button and change toolstrip's ImageScalingSize property 
    toolStripButton1.Image = myResizedImg;
    toolStrip1.ImageScalingSize = new Size(40, 40);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have added a bar button item in my tool bar and I implemented
I have form with 4 buttons and Image. For all these controls i have
I have added a tool bar and I am adding a button to that
I have added an extra field Specification in Catalog->Product->Data tab. This text is stored
I have added a checker to ensure that all fields in a form have
I have created a Foundation Tool in Xcode, and want to use some functions
I have been adding items to tool strip by programming but the issue is
I have just changed some toolbars from Q3ToolBars (with QToolButtons explicitly added to them)
I have set up a ToolStrip in my C# WinForms project and have added
Ok, so this is somewhat confusing, so bear with me. I have a toolStrip

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.