Can I create controls with static ID's?

  • Thread starter Thread starter Terry Olsen
  • Start date Start date
T

Terry Olsen

I need to create an app that has static ID's for the buttons & other
controls on the main form. Is there a way to accomplish this in VB?
 
Terry Olsen said:
I need to create an app that has static ID's for the buttons & other
controls on the main form. Is there a way to accomplish this in VB?

Which identifiers are you referring to?
 
Terry,

I am curious what you mean with your question? To be honnest, I don't
understand it.

:-)

Cor
 
The ControlID that is a hexidecimal number that you can use to interact with
the control from another application. We are doing this at work with a
piece of software designed to intercept button presses, print commands, read
& write data to textboxes. The software that we are controlling externally
never changes its ControlIDs. For example, the ControlID of the main process
button is always 0000ECD2 every time we run the program.

I need to interface with an application that I'm writing in VB the same way,
but every time I run the program, the ControlIDs are different. So it's
impossible to interface with the app if the ControlID's are not static.

An example of a ControlID is in this screenshot:
http://www.softpedia.com/screenshots//WinID_1.png It is in the middle of
the screen at the top. It is "ID: 0x0"
 
Back
Top