First I feel very sorry that my English is very poor.So
Please Don't be boring.
I have asked this question here once ,but no one could
give me answer,and the problem still bothers me.
I use a ListView Control in my programs.You know that we
always need a scroll bar in this contorl.But All I need is
the vertical scroll bar.I don't want the control display
horizontal scroll bar to Users,but how to do this?
Or ,if someone can help me to prevent the Users from
Resizing the width of the columns,it will be OK,too.
If you wish to help me,please write down your text in
simple English ,Thank you very much.
Best Regards. Menu Chen 18 1496
i didn't test this but normally you can set the vertical scroll bar to true
and the horizontal scrollbar to false
to prvent users from resizing you can have a look at the resizing property
hope it helps
eric
"Menu Chen" <an*******@discussions.microsoft.com> wrote in message
news:09****************************@phx.gbl... First I feel very sorry that my English is very poor.So Please Don't be boring.
I have asked this question here once ,but no one could give me answer,and the problem still bothers me.
I use a ListView Control in my programs.You know that we always need a scroll bar in this contorl.But All I need is the vertical scroll bar.I don't want the control display horizontal scroll bar to Users,but how to do this? Or ,if someone can help me to prevent the Users from Resizing the width of the columns,it will be OK,too.
If you wish to help me,please write down your text in simple English ,Thank you very much. Best Regards. Menu Chen
Hi Menu Chen,
When you look in the documentation from the listview and you go for columns
the reference is always for to the columnheader. I never could find any
documentation for the columns from a listview other than the columnheader. I
never tried it, but there exist also listview1.columns(n).width.
I saw that you know enough of VB.net in the other threads from this
newsgroup to try it for yourself if this can do something for you.
And you don't have to excuse yourself for your English. I think it is more
than good enough to communicate in this International newsgroup.
Welcome to this newsgroup
Cor
* "Menu Chen" <an*******@discussions.microsoft.com> scripsit: I use a ListView Control in my programs.You know that we always need a scroll bar in this contorl.But All I need is the vertical scroll bar.I don't want the control display horizontal scroll bar to Users,but how to do this?
On my computer the horizontal scrollbar is only visible if there are
items outside the horizontal visible area.
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
<http://www.plig.net/nnq/nquote.html>
* "EricJ" <ericRéMo**@ThiSomnipack.be> scripsit: i didn't test this but normally you can set the vertical scroll bar to true and the horizontal scrollbar to false to prvent users from resizing you can have a look at the resizing property
Where to do that?
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
<http://www.plig.net/nnq/nquote.html>
Hi Herfried, * "Menu Chen" <an*******@discussions.microsoft.com> scripsit: I use a ListView Control in my programs.You know that we always need a scroll bar in this contorl.But All I need is the vertical scroll bar.I don't want the control display horizontal scroll bar to Users,but how to do this?
On my computer the horizontal scrollbar is only visible if there are items outside the horizontal visible area.
When you have problems with that, you can use the solution that Menu Chen
did give you. Or ,if someone can help me to prevent the Users from Resizing the width of the columns,it will be OK,too.
I hope this helps a little bit,
Cor
* "Cor" <no*@non.com> scripsit: I use a ListView Control in my programs.You know that we always need a scroll bar in this contorl.But All I need is the vertical scroll bar.I don't want the control display horizontal scroll bar to Users,but how to do this?
On my computer the horizontal scrollbar is only visible if there are items outside the horizontal visible area.
When you have problems with that, you can use the solution that Menu Chen did give you.
?!?
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
<http://www.plig.net/nnq/nquote.html>
hmm sorry i was talking about a listbox (my mistake)
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bo*************@ID-208219.news.uni-berlin.de... * "EricJ" <ericRéMo**@ThiSomnipack.be> scripsit: i didn't test this but normally you can set the vertical scroll bar to
true and the horizontal scrollbar to false to prvent users from resizing you can have a look at the resizing
property Where to do that?
-- Herfried K. Wagner MVP · VB Classic, VB.NET <http://www.mvps.org/dotnet>
<http://www.plig.net/nnq/nquote.html>
Herfried, On my computer the horizontal scrollbar is only visible if there are items outside the horizontal visible area.
Chen did knew that already, (you deleted the quote about that I did send
you)
Are you telling what weather it is in Wien also in this newsgroup?
:-)
Cor
* "EricJ" <ericRéMo**@ThiSomnipack.be> scripsit: hmm sorry i was talking about a listbox (my mistake)
No problem. Maybe I was missing something.
;-)
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
<http://www.plig.net/nnq/nquote.html>
* "Cor" <no*@non.com> scripsit: On my computer the horizontal scrollbar is only visible if there are items outside the horizontal visible area.
Chen did knew that already, (you deleted the quote about that I did send you)
Chen didn't know that. I don't understand what the quote of the
question has to do with the solution.
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
<http://www.plig.net/nnq/nquote.html>
Herfried,
The sun is shining here, Or ,if someone can help me to prevent the Users from Resizing the width of the columns,it will be
Why did you think he wrote that?
Because he did not know that the scroll bar was there when the columns
became to width?
Cor
* "Cor" <no*@non.com> scripsit: The sun is shining here,
Or ,if someone can help me to prevent the Users from Resizing the width of the columns,it will be
Why did you think he wrote that?
I thought that this was an other (separate) question.
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
<http://www.plig.net/nnq/nquote.html>
I saw you writed to Herfried to say that I have got the
answer of my own question .But ,I am sorry to say that I
still don't know how to slove that problem.
As you say ,yes I can control the width of a comblum.But
that is not all.Cause the User of my programs always
change the widths manualy,and this will cause the
horizontal scroll bar to be shown.In other words,if there
were some solution can prevent the Users from modifying
the widths manualy,it would be Ok either.
Thanks a lot for helping me .
Best Regards
Hi Menu,
Herfried was not given you an answer, he said that the horizontal scroll bar
came visible when the columns became to wide to fit on the screen. I said
that is what Menu knows already.
I thought you understand it, when you can control the size of the columns
and you did ask that (I am not absolute sure of it works), you can on a
click and all other events from the user always put it back to the right
size. It looks maybe as elastic but the user get it never wider.
I hope I did make it clearer?
Cor I saw you writed to Herfried to say that I have got the answer of my own question .But ,I am sorry to say that I still don't know how to slove that problem. As you say ,yes I can control the width of a comblum.But that is not all.Cause the User of my programs always change the widths manualy,and this will cause the horizontal scroll bar to be shown.In other words,if there were some solution can prevent the Users from modifying the widths manualy,it would be Ok either. Thanks a lot for helping me . Best Regards
I see ,and I have tried your method before.
But ,I found that resize the width of the column was not
any type of events of ListView controls.And it seems that
this resizing event didn't belong to anyting.Even if I use
Spy++ I cann't recognize its event either.
Woulud you test it for me,thanks .
Best Regards. -----Original Message----- Hi Menu,
Herfried was not given you an answer, he said that the
horizontal scroll barcame visible when the columns became to wide to fit on
the screen. I saidthat is what Menu knows already.
I thought you understand it, when you can control the
size of the columnsand you did ask that (I am not absolute sure of it
works), you can on aclick and all other events from the user always put it
back to the rightsize. It looks maybe as elastic but the user get it never
wider. I hope I did make it clearer?
Cor
I saw you writed to Herfried to say that I have got the answer of my own question .But ,I am sorry to say that I still don't know how to slove that problem. As you say ,yes I can control the width of a comblum.But that is not all.Cause the User of my programs always change the widths manualy,and this will cause the horizontal scroll bar to be shown.In other words,if
there were some solution can prevent the Users from modifying the widths manualy,it would be Ok either. Thanks a lot for helping me . Best Regards
.
Hi Menu Chen,
Did you try the mouse up from the listview?
Cor
Yes I try
I have tried all the event of mouse and keyboard
But ,It still doesn't work. -----Original Message----- Hi Menu Chen,
Did you try the mouse up from the listview?
Cor
.
Hi Menu,
I never said it was nice.
And I cannot find an event that is fired when the mouse is in the column
header either,
This is the most nearby solution I can find.
\\\\
Private Sub ListView1_MouseHover _
(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles ListView1.MouseHover
ListView1.Columns(0).Width = 50
ListView1.Columns(1).Width = 50
ListView1.Columns(2).Width = 50
ListView1.Columns(3).Width = 50
ListView1.Width = 205
End Sub
////
But I hope this helps a little bit?
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Aaron Queenan |
last post by:
Is there any way to know whether the OnItemCheck is being called in response
to a user action (mouse or keyboard) as opposed to the form loading?
I have a class which derives from...
|
by: Art Guerra |
last post by:
Any tips or information would be most appreciated! Here is my scenario
simplified:
I have a main application form (Form1) and on that form is a listView
control. On a separate form (Form2), the...
|
by: Nick |
last post by:
Hi there,
I'm trying to implement drag-drop for my listview control in large icon
view mode. Unfortunately the order of the items gets completely messed up
upon inserting the item back into the...
|
by: J L |
last post by:
When I fill a listview, I resize the columns to fit the data. I need
to know if the data will fit vertically or if there will be a vertical
scroll bar. I need to know this so I can allow for it on...
|
by: Josef Brunner |
last post by:
Hi,
I have a problem using two ListView controls on one and the same form:
Problem: The second ListView is never focused. No matter where I "click" non
of the items within the ListView is...
|
by: Chris |
last post by:
Hi all,
I posted the following in microsoft.public.dotnet.framework.windowsforms
but it seems that group has little traffic.
Hi all,
I have a listview box which is populated from methods of...
|
by: mrshrinkray |
last post by:
Are there any know bugs with the ListView in .NET 2? I'm having
problems with an application that takes 15 seconds in 1.1, and now
takes over a minute. The code in question uses:
listViewItem =...
|
by: firefox |
last post by:
Hola Foro!, tengo una rutina que permite agregar varios elementos o
items de una sola vez en un ListView. Lo que sucede es que en el
momento que se añaden los items al ListView se pone todo blanco,...
|
by: XiScO |
last post by:
Hi!
sometime ago, a friend show me that in BC++ you could add an objet to each
element of a listview. Now I wnat to know if it is possible to do this on
VB.net 2005.
I've a collection of objects...
|
by: Rich Raffenetti |
last post by:
I have a form with a listview control and a textbox. When I change focus
from the listview to the textbox, the highlighted item on the listview loses
the highlight. That is not the behavior I...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
|
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,...
| |