473,395 Members | 2,795 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 create controls with static ID's?

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?

*** Sent via Developersdex http://www.developersdex.com ***
Oct 5 '06 #1
4 1146
"Terry Olsen" <to******@hotmail.comschrieb:
>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?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Oct 5 '06 #2
Terry,

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

:-)

Cor

"Terry Olsen" <to******@hotmail.comschreef in bericht
news:en**************@TK2MSFTNGP03.phx.gbl...
>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?

*** Sent via Developersdex http://www.developersdex.com ***

Oct 6 '06 #3
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"
"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:Ob**************@TK2MSFTNGP03.phx.gbl...
"Terry Olsen" <to******@hotmail.comschrieb:
>>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?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Oct 6 '06 #4
Why not subclass the controls and add your own property?

Thanks,

Seth Rowe
Terry Olsen wrote:
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"
"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:Ob**************@TK2MSFTNGP03.phx.gbl...
"Terry Olsen" <to******@hotmail.comschrieb:
>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?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Oct 6 '06 #5

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

Similar topics

7
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
3
by: Kiyomi | last post by:
Hello, I create a Table1 dynamically at run time, and at the same time, I would like to create LinkButton controls, also dynamically, and insert them into each line in my Table1. I would...
3
by: Kiyomi | last post by:
Hello, I create a Table1 dynamically at run time, and at the same time, I would like to create LinkButton controls, also dynamically, and insert them into each line in my Table1. I would...
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.