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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:35:35+00:00 2026-06-17T04:35:35+00:00

I have the application look like it stops the width at 50, but if

  • 0

I have the application look like it stops the width at 50, but if the mouse is dragged further on and then let up, the width will be below:

private void ListView1_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
{
    if (e.ColumnIndex ==0 & e.NewWidth <50)
    {
        e.Cancel = true;
    }
}

I cannot work out how to force the ColumnWidthChanged width to 50 if the changed width = < 50. I don’t need to fix the column widths, as information will vary in length, but force a minimum width.

Any suggestions?

  • 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-17T04:35:36+00:00Added an answer on June 17, 2026 at 4:35 am

    If you want to change the Width after the user has finished dragging the column separator you can do this

    private const int _minimumColumnWidth = 50;
    
    private void ListView1_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
    {
         if (ListView1.Columns[e.ColumnIndex].Width < _minimumColumnWidth)
         {
              ListView1.Columns[e.ColumnIndex].Width = _minimumColumnWidth;
         }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to create extend a Java Swing application to have a look
I currently have an application that look like a book: several pages, and 2
I have seen config files(yes, text files) for various console applications that look like
I'm trying to have my application read through a text file and look for
I'm currently using Look&Feel for my application. I have a few problems: 1. When
I need to create a plug-in that updates an application. Look, I have a
I have the scenario like this, My environment is .Net2.0, VS 2008, Web Application
I am using editable combobox for my application. Combobox have default behavior like If
Hi we are building an application that will have the possibility to register scheduled
I have searched through Google, SO and Android developers but I need some further

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.