473,803 Members | 4,400 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Set new item in listview visible

Hello,

I have a listview (detail) that gets filled with items using a button.
After adding some items new items are not visible in the listview because it
does not scroll automatically.
Is there a way to make new items always visible in the listview?

________ <-- ListView starts here
1
2
3
_______ <-- ListView ends here, the latest items are added but not
visible to the user...
4
5
6

--> I want something like this ...

1
2
3
_______
4
5
6
_______

.... without user interaction.

Thanks for help!
Greetings,
Tim.
Nov 16 '05 #1
2 4399
Hi Tim,

You are looking for ListView.Ensure Visible(index);
On Thu, 25 Nov 2004 18:24:11 +0100, Tim Bücker <ti************ *@web.de>
wrote:
Hello,

I have a listview (detail) that gets filled with items using a button.
After adding some items new items are not visible in the listview
because it
does not scroll automatically.
Is there a way to make new items always visible in the listview?

________ <-- ListView starts here
1
2
3
_______ <-- ListView ends here, the latest items are added but not
visible to the user...
4
5
6

--> I want something like this ...

1
2
3
_______
4
5
6
_______

... without user interaction.

Thanks for help!
Greetings,
Tim.


--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2
"Morten Wennevik" <Mo************ @hotmail.com> schrieb im Newsbeitrag
news:opsh07xfdc klbvpo@pbn_comp uter...
Hi Tim,

You are looking for ListView.Ensure Visible(index);
Hi Morten,

thanks for the fast reply and for the good news ;-)
I was just looking over to Win32...

Greetings,
Tim.
On Thu, 25 Nov 2004 18:24:11 +0100, Tim Bücker <ti************ *@web.de>

I have a listview (detail) that gets filled with items using a button.
After adding some items new items are not visible in the listview
because it
does not scroll automatically.
Is there a way to make new items always visible in the listview?

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2232
by: keith | last post by:
In a ListView control (two columns), I added a few ListView items. ListView listview=new ListView(); listview.Parent=this; listview.View=View.Details; listview.Columns.Add ("Col1",200,HorizontalAlignment.Left); listview.Columns.Add ("Col2",800,HorizontalAlignment.Left);
7
5279
by: Jax | last post by:
I understand that it's supposed to contain text, usually. But as it takes an object can you be really cheeky and put a very complex object in there instead? Would any problems come from doing that? jax
2
15275
by: Adam Klobukowski | last post by:
Hello i need to find out the last fully visible item of a Llistview. If it would be a treeview then it would be easy, I'm even thinkin of faking my treeview as listview, but maybe there is some easy way I don't see? -- Semper Fidelis Adam Klobukowski atari@gabo.pl
13
3773
by: Maheshkumar.R | last post by:
hi groups, I have placed an listview control, i want to iterate thru the control and find the clicked event items. listView2.Items.Add(fname.ToString(), i); how i can perform the iteration to find the item clicked...? and its item. thankz-- Mähésh Kumär. R
7
7221
by: txplayboy2002 | last post by:
Is there a way in vb.net to determine the number of rows that can be visible in the listview region ? Not the total # rows in the listview, but only the visible count. Also, I was wondering if there was a way to determine from a given ListViewItem, whether or not it is currently visible in the region. Thanks, Mark
1
1464
by: RonNanko | last post by:
I am facing a userinteraction issue with a listview, which is populated/updated by a background task. While the population of the listview is taking place, the user should already be able to execute actions on the already visible items. For convenience purposes, I have added a contextmenu to the listview, which contains the most commonly used commands. This works fine as long as the listview's content does not change, but the context...
4
10856
by: Pucca | last post by:
How can I tell a mouse right clicks over a listview item that's in a container panel. I only want to display a popup menu if the user right click the mouse over an item on the Listview. I don't not want to display this menu if a node selected on the listview but user right click over the empty space of the panel that contain the listview. The problem here is when I use the Listview's Click Event, I don't have ways to verify if the...
1
1796
by: Mystique | last post by:
Hello I have a ListView and a form for entering data. When the user is finished entering the data he presses AddToListView. Then there is a large object that is being filled with data that the user has entered and the object is added to the ListView. Then I call: listView1.Items.Selected = true; listView1.Select(); so the item gets autmatically selected.
1
1915
by: apondu | last post by:
Hi, This is Govadhan, i am a begginer for web services using c#.net. I have written a small web service where in i have created a listview item in the web service method and added some data to the listview item. Now i have problem. I want this listview to be passed as a return value to the calling program. can some one help me with how to achieve this.
0
9703
marktang
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...
1
10295
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
tracyyun
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...
0
9125
agi2029
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...
0
6842
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();...
0
5500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.