Hi,
Is it possible to change and save the width of a listview column at runtime?
I mean: if the user changes the width of a column and close the application,
The column will have this width the next time he opens the application.
Thanks. 3 6422
lv.Columns(0).W idth() = -1
in any event your using to modify the label
"touf" <to******@hotma il.com> wrote in message
news:Ol******** ******@tk2msftn gp13.phx.gbl... Hi, Is it possible to change and save the width of a listview column at
runtime? I mean: if the user changes the width of a column and close the
application, The column will have this width the next time he opens the application.
Thanks.
Posted the wrong window.
Anyway, setting the column width property to -1 will set the width to the
widest. For loading up, put this in the On Load event for the form.
"One Handed Man [ OHM ]" <te************ *************** @BTOpenworld.co m>
wrote in message news:O7******** *******@tk2msft ngp13.phx.gbl.. . lv.Columns(0).W idth() = -1
in any event your using to modify the label
"touf" <to******@hotma il.com> wrote in message news:Ol******** ******@tk2msftn gp13.phx.gbl... Hi, Is it possible to change and save the width of a listview column at runtime? I mean: if the user changes the width of a column and close the application, The column will have this width the next time he opens the application.
Thanks.
Thanks.
But the user needs to specify by himself the width...
"One Handed Man [ OHM ]" <te************ *************** @BTOpenworld.co m>
wrote in message news:#$******** ******@TK2MSFTN GP10.phx.gbl... Posted the wrong window.
Anyway, setting the column width property to -1 will set the width to the widest. For loading up, put this in the On Load event for the form. "One Handed Man [ OHM ]" <te************ *************** @BTOpenworld.co m> wrote in message news:O7******** *******@tk2msft ngp13.phx.gbl.. . lv.Columns(0).W idth() = -1
in any event your using to modify the label
"touf" <to******@hotma il.com> wrote in message news:Ol******** ******@tk2msftn gp13.phx.gbl... Hi, Is it possible to change and save the width of a listview column at runtime? I mean: if the user changes the width of a column and close the application, The column will have this width the next time he opens the
application. Thanks.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: keith |
last post by:
In a ListView control, each column can be resized by
default. I don't know how to change the decault.
In VS.NET IDE, Task List looks like a ListView control
that lists error messages when compiling. The columns up
to Description are resizable, other not.
I am wondering if I can set some columns fixed and other
resizable.
|
by: Bob Rock |
last post by:
Hello,
is there a way to first know when a listview displays horizontal
and/or vertical scroll bar (maybe an event is fired???) and then to
resize the listview to make them disappear??? How much to resize the
listview??? ... in other words how much pixels do scroll bars
occupy??? Is it possible to discover the scroll bars size
dinamically???
Thx.
|
by: Chad Miller |
last post by:
Why doesn't the listview columns resize automatically after the first time
the listview is populated.
Or if you run the sub twice.
Private Sub LoadLV
lvProjects.SuspendLayout()
lvProjects.Clear()
lvProjects.View = View.Details
lvProjects.FullRowSelect = True
lvProjects.Columns.Add("Id", -1, HorizontalAlignment.Left)
|
by: Richard Markus |
last post by:
How can I detect in code when a user has resized a column
in a listview control?
Thanks for the help!
Richard
|
by: Rob Richardson |
last post by:
Greetings!
I have a form with a listview, a menu, and a few text boxes, labels and
command buttons. I want to resize the listview when the form is resized to
that the widths of the spaces between the borders of the listview and the
borders of the form remain constant. I am finding this to be unexpectedly
hard. For one thing, I initialized some values in the form's Load event,
and I'm doing the control resizing in the form's Resize...
| |
by: John Kraft |
last post by:
I have a listview control that I want the columns of to remain a
proportional size filling the listview completely. In the listview's
Resize method, I calculate the new sizes and all looks fine.
Sometimes, but not always though, scrollbars appear. The scroll bar
has nowhere to scroll (because the columns fit the listview's size
perfectly), and if you click on the scrollbars, they disappear. Anyone
know what's causing the bars to appear...
|
by: John Devlon |
last post by:
Hi,
Does anyone know how to get a value of a second column of a selected item
in Listview.
I've create a listview and added this code
Listview.Items.Clear()
Listview.Columns.Clear()
Listview.View = View.Details
|
by: Jerry |
last post by:
Hi
I have a data grid view that I have AllowUserToResizeColumns = True but at
runtime, the user cannot resize columns.
Is there something I am missing? Is there a conflict with the ability to
sort columns?
Thanks
|
by: JR |
last post by:
Hi I use this code to bloc the resize from columnheaders. the problem is
that all or non columns are blockt. I want to choice with column is fixt
What must I add/change
Jan
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |