Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To 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 October 4th, 2006, 05:58 AM
Registered User
 
Join Date: Sep 2006
Location: agra, u.p., India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default OBJECT NAME AT RUNTIME

HOW WE CAN FIND ANY CURRENT OBJECT NAME IN VB6.0
e.g. any current text box i want know the name of this.

thanx

 
Old October 4th, 2006, 11:32 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Alameda, ca, USA.
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

what do you mean with "current" object? the control that has the focus?
if you are in a form, try

me.ActiveControl.name
or
Screen.ActiveForm.ActiveControl.name




Similar Threads
Thread Thread Starter Forum Replies Last Post
VBScript runtime (0x800A01A8) Object required SeanW Classic ASP Databases 8 February 21st, 2007 01:03 AM
Object generation at runtime visharad C# 2005 2 February 7th, 2007 12:49 AM
Runtime Error 424: Object needed tobian Excel VBA 4 February 20th, 2006 10:41 AM
create a Line object ,Box object in CR at Runtime? thanhnt Pro VB 6 1 May 16th, 2005 06:51 AM
runtime error '800a01a8' Object Required: 'Session footohi Classic ASP Basics 1 July 17th, 2003 06:32 PM





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