Can I create controls with static ID's?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Terry Olsen

    #1

    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 ***
  • Herfried K. Wagner [MVP]

    #2
    Re: Can I create controls with static ID's?

    "Terry Olsen" <tolsen64@hotma il.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/>

    Comment

    • Cor Ligthert [MVP]

      #3
      Re: Can I create controls with static ID's?

      Terry,

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

      :-)

      Cor

      "Terry Olsen" <tolsen64@hotma il.comschreef in bericht
      news:en38bhI6GH A.3644@TK2MSFTN GP03.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 ***

      Comment

      • Terry Olsen

        #4
        Re: Can I create controls with static ID's?

        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]" <hirf-spam-me-here@gmx.atwrot e in message
        news:ObSI01M6GH A.4608@TK2MSFTN GP03.phx.gbl...
        "Terry Olsen" <tolsen64@hotma il.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/>

        Comment

        • rowe_newsgroups

          #5
          Re: Can I create controls with static ID's?

          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]" <hirf-spam-me-here@gmx.atwrot e in message
          news:ObSI01M6GH A.4608@TK2MSFTN GP03.phx.gbl...
          "Terry Olsen" <tolsen64@hotma il.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/>

          Comment

          Working...