🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.vbasic
Article #92260

Re: List View vb6

#92260
From: InDesign Scripts
Date: Fri, 21 Oct 2005 08:01
28 lines
1816 bytes
Użytkownik "janusz" <b_janusz@op.pl> napisał w wiadomości
news:dj7t3t$ded$1@atlantis.news.tpi.pl...
> Witam
> Mam prosbe jak sterowac ListView aby przy dodawaniu nowych
> pozycji w sytuacji kiedy lista pozycji wychodzi poza wysokosc kontrolki
> byl widoczny ostatni wiersz listview
> polecenia
> ListView1.ListItems(ListView1.ListItems.Count).Selected = True
> ListView1.SelectedItem = ListView1.ListItems(ListView1.ListItems.Count)
> nie zalatwiaja sprawy

a to nie wystarczy ??

EnsureVisible Method

Ensures a specified ListItem or Node object is visible. If necessary, this
method expands Node objects and scrolls the TreeView control. The method
only scrolls the ListView control.

Syntax

object.EnsureVisible

Use the EnsureVisible method when you want a particular Node or ListItem
object, which might be hidden deep in a TreeView or ListView control, to be
visible.

robin
Technical Details
Message-ID: <djae9a.1cg.1@indesign.scripts>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <dj7t3t$ded$1@atlantis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: "InDesign Scripts" <indesignscripts@gazeta.pl>
Newsgroups: pl.comp.lang.vbasic
Subject: Re: List View vb6
Date: Fri, 21 Oct 2005 10:01:14 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 30
Message-ID: <djae9a.1cg.1@indesign.scripts>
References: <dj7t3t$ded$1@atlantis.news.tpi.pl>
NNTP-Posting-Host: amw25.neoplus.adsl.tpnet.pl
X-Trace: inews.gazeta.pl 1129881745 17126 83.26.78.25 (21 Oct 2005 08:02:25 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Fri, 21 Oct 2005 08:02:25 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-User: indesignscripts
User-Agent: Hamster/2.0.0.1
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit