473,395 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Can I determine the name of current control in VBA

MLH
Looking to use something to determine
name of control with focus in A97 app.

Is there something like Screen.currentcontrol.Name?
Sep 13 '06 #1
3 12931
MLH

Screen.ActiveControl.Name

HTH

Jeff

MLH wrote:
Looking to use something to determine
name of control with focus in A97 app.

Is there something like Screen.currentcontrol.Name?
Sep 13 '06 #2
jb********@aol.com wrote in news:1158155224.406145.199240
@i42g2000cwa.googlegroups.com:
MLH

Screen.ActiveControl.Name

HTH

Jeff

MLH wrote:
>Looking to use something to determine
name of control with focus in A97 app.

Is there something like Screen.currentcontrol.Name?
Is there something like Help File?
How about Object Browser?

Has anyone ever explained their use to MLH?

--
Lyle Fairfield
Sep 13 '06 #3
Lyle,
I think you're looking at:-
Dim MLH As User
Set MLH = New User

With MLH
If .CantRemember Or .DontKnow Then
.PostToNewsGroup
Else
.PostToNewsGroupAnyWay
End If
End With
Whereas what you want is:-
Dim NewMLH As Programmer
Set NewMLH = New Programmer

With NewMLH
If .CantRemember Or .DontKnow Then
If .LookInHelpFile = Fail Then
If .LookInGoogle = Fail Then
.PostToNewsGroup
End If
End If
End If
End With

Set NewMLH = Nothing

Note the importance of tearing down the programmer object which you can't do
with the User object, this of course causes a memory leak the consequences
of which are shown in the code above.

--

Terry Kreft
"Lyle Fairfield" <ly***********@aim.comwrote in message
news:Xn*********************************@216.221.8 1.119...
jb********@aol.com wrote in news:1158155224.406145.199240
@i42g2000cwa.googlegroups.com:
MLH

Screen.ActiveControl.Name

HTH

Jeff

MLH wrote:
Looking to use something to determine
name of control with focus in A97 app.

Is there something like Screen.currentcontrol.Name?

Is there something like Help File?
How about Object Browser?

Has anyone ever explained their use to MLH?

--
Lyle Fairfield

Sep 13 '06 #4

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

Similar topics

18
by: Christopher W. Douglas | last post by:
I am writing a VB.NET application in Visual Studio 2003. I have written a method that handles several events, such as closing a form and changing the visible status of a form. I have some code...
7
by: Spencer | last post by:
Is it possible with a SQL query against a system table to determine what the database name or instance name is that you are logged into? We are on DB2 8.1.6. Spencer
3
by: M Shafaat | last post by:
Hi! I want to write C# code by which I can determine the name of an object and/or variable at run-time. VS design windows does it when you drag a control onto your form. It uses the name of the...
3
by: Jordan | last post by:
I am dynamically inserting an html <input> tag as text (equivalent of an image button) into a page via a Literal control. Something like this gets inserted: <input type="image"...
6
by: Andrea V.F. | last post by:
How can I determine the control under the mouse cursor when a user muves the mouse?? For example if the user moves the cursor over a textbox i would receive the name of that textbox without using...
7
by: Doru Roman | last post by:
Hi, What is the fastest way to evaluate manually the result in this case: int a, b, c; a = 255; b = 122; c = a & b; The only way I know is transforming each number into the binary value...
3
by: Developer in California | last post by:
I am working on developing a generic Web framework using Master Pages in ASP.NET 2.0. What I have done is created a PageRenderer class which has a public method which will retrieve the path of the...
8
by: Ole | last post by:
If I define a class and create a instant of it like e.g.: UserClass instantName = new UserClass(); how do I then determine the defined name "instantName" in the UserClass e.g. in a method (or...
9
by: Michael.Suarez | last post by:
void RaiseMyObjectsClickEvent(string btn_name) { //Raise btn_name.Click } Could someone please help me fill in the rest? Thanks,
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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...

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.