Wrox Programmer Forums
Visual Basic 2008 Essentials If you are new to Visual Basic programming with version 2008, this is the place to start your questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2008 Essentials section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 17th, 2008, 03:09 PM
Registered User
Join Date: Jun 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default windows


i'm kinda new to vb and i was wondering if it was possible to make a listbox with all active windows included?

Old June 18th, 2008, 09:52 AM
Friend of Wrox
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts

Wow. “Windows” is a pretty broad topic! (The purpose of the subject line is to attract those who are interested in the realm of your problem...)
Another tip (if I may): It would be better to use normal capitalization in posts (“VB” not “vb,” “I'm” not “i'm,” etc.) It makes your posts easier to read, allowing more focus on what you’re saying, without having to surmount how you’re saying it.

There is an API, something like “EnumerateWindows” which gives you all of the windows that are open, tat is, that exist. (BTW: There’s never more than 1 active window...)

Having obtained the windows (you receive the contents of their title bar), you can then use the method of adding lines to a listbox with those data.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows dave_dc BOOK: Professional Multicore Programming: Design and Implementation for C++ ISBN: 978-0-470-28962-4 2 September 14th, 2013 07:35 AM
C# and windows smee C# 2005 2 February 20th, 2007 07:16 AM
Accessing Windows service from a windows app sajid08 C# 1 October 6th, 2006 10:25 AM
Windows Service hunghung General .NET 3 January 20th, 2005 01:43 PM
Windows 98 OCX control issues vs Windows XP benoyraj VB How-To 0 May 5th, 2004 08:10 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.