关于ListView再次 [英] About ListView Again

查看:68
本文介绍了关于ListView再次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先我很遗憾我的英语很差。所以

请不要无聊。


我在这里问过这个问题曾经,但没人可以给我答案,问题仍然困扰着我。


我在我的程序中使用ListView控件。你知道我们

在这个控件中总是需要一个滚动条。但我需要的是

垂直滚动条。我不想要控制显示

水平滚动条到用户,但怎么做?

或者,如果有人可以帮我阻止用户

调整列的宽度,它也会好的。

如果你想帮助我,请写下你的文字

简单的英文,非常感谢。

最诚挚的问候。菜单陈

解决方案

我没有测试过这个但通常你可以将垂直滚动条设置为true

和水平滚动条错误

来防止用户调整大小你可以看一下调整大小的属性


希望它有帮助


eric


" Menu Chen" <一个******* @ discussions.microsoft.com>在消息中写道

news:09 **************************** @ phx.gbl ... < blockquote class =post_quotes>首先我很遗憾我的英语非常差。所以请不要无聊。

我这里曾问过这个问题,但没有一个人可以给我答案,问题仍然困扰着我。

我在我的程序中使用ListView控件。你知道我们在这个控件中总是需要一个滚动条。但我只需要是垂直滚动条。我不想让控制显示器向用户显示水平滚动条,但如何做到这一点?
或者,如果有人可以提供帮助我要阻止用户
调整列的宽度,也可以。

如果你想帮助我,请在简单的文字中写下你的文字英文,非常感谢。
最诚挚的问候。菜单陈



你好Chen菜单,


当你查看listview的文档时然后你去专栏

引用总是用于列标题。我从来没有找到任何

文档的列表视图以外的列。我没有尝试过它,但是还存在listview1.columns(n).width。


我看到你知道的VB.net已经足够了来自这个

新闻组的其他主题,如果能为你做点什么就可以自己试一试。


你不必为自己找借口英语。我认为这比国际新闻组的沟通要好得多。


欢迎来到这个新闻组


Cor


*Menu Chen <一个******* @ discussions.microsoft.com> scripsit:

我在我的程序中使用了ListView控件。你知道我们在这个控件中总是需要一个滚动条。但我需要的只是
垂直滚动条。我不希望控制显示器向用户显示水平滚动条,但是怎么做?




在我的电脑上只能看到水平滚动条如果在水平可见区域外有

项目。


-

Herfried K. Wagner

MVP·VB Classic,VB.NET

< http://www.mvps.org/dotnet>


< http:// www.plig.net/nnq/nquote.html>


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

解决方案

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>


这篇关于关于ListView再次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆