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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:43:51+00:00 2026-06-09T00:43:51+00:00

this sounds like a really simple question but could easily have a very complicated

  • 0

this sounds like a really simple question but could easily have a very complicated answer knowing listviews but I basically just want it so that the column width inside a list view will expand as I expand the application window, essentially the same way as anchoring the listView itself?

If I’m not being clear please comment and I’ll try explaining better.

My only guess at the moment would be setting the columns to have percentage widths that relate to the listview’s size?

Thanks

  • 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-09T00:43:53+00:00Added an answer on June 9, 2026 at 12:43 am

    yes you can do this by modifying the columns with when the form is resized. You will need to anchor the ListView on the form to start with:

    Private Sub Form1_Resize(sender As Object, e As System.EventArgs) Handles Me.Resize
        With ListView1
            .Columns(0).Width = CInt(.Width * 0.2) 'set column width to be 20% of controls width
            .Columns(1).Width = CInt(.Width * 0.5) 'set column width to be 50% of controls width
        End With
    End Sub
    

    Be careful though that you don’t end up with column widths that total more than 100% due to rounding as this may give undesirable results

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

Sidebar

Related Questions

This sounds like a really simple question, but I am new to PHP. If
Okay, Now admittedly this sounds like a silly question; But, I actually have a
Unfortunately, the answer to this question isn't quite as simple as it sounds... but
This sounds really simple but it's like an onion - lots of layers as
This sounds like a problem many others have posted about, but there's a nuance
I know this sounds like a dumb question but I need to ask this.
This may sounds like a stupid question but can't find anything on google, probably
This sounds like a stupid question, but thought I would post anyway... I am
I am sorry if this is a really simple question but I am really
I know this sounds like a really, really simple use case and I'm hoping

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.