The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: good quality 19" rack screws?


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: OT: bit of VB help anyone?


  • To: <ukha_d@xxxxxxx>
  • Subject: RE: OT: bit of VB help anyone?
  • From: "James Hoye" <james.hoye@xxxxxxx>
  • Date: Mon, 18 Jun 2001 13:02:48 +0100
  • Delivered-to: rich@xxxxxxx
  • Delivered-to: mailing list ukha_d@xxxxxxx
  • Mailing-list: list ukha_d@xxxxxxx; contact ukha_d-owner@xxxxxxx
  • Reply-to: ukha_d@xxxxxxx

This email was delivered to you by The Free Internet,
a Business Online Group company. http://www.thefreeinternet.net
---------------------------------------------------------------
> > Trouble is, I can't figure out what syntax to use in the
> > "click" event on
> > the first listbox to make the clicked directory become the
> > path of the 2nd
> > listbox...
>
> What you want (assuming Dir1 is your first and Dir2 is your second)
is:-
>
> Dir2.Path=Dir1.list(Dir1.listindex)
>
> Obviously if you also wanted to change Dir1's path to the clicked
folder
> without using a double click,
>
> Dir1.Path=Dir1.list(Dir1.listindex)
>
> Note - setting the path via code will make the change event fire.

Alternatively if you're feeling really brave, use the treeview and listview
controls.... (assuming you're using VB5+).  That way you can make it look
much more like Explorer.  If you only want to open a file, then there's
also
the common dialogs which do pretty much everything for you.

James H




____________________________________
Automated Home UK
http://www.automatedhome.co.uk
____________________________________

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/




Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.