Results 1 to 6 of 6

Thread: [RESOLVED] What is the class ID for a textbox

Threaded View

  1. #1

    Thread Starter
    Lively Member blaff's Avatar
    Join Date
    Nov 2002
    Location
    Germany
    Posts
    69

    Unhappy [RESOLVED] What is the class ID for a textbox

    Hello,

    hopefully somebody can help me with this:

    I'm creating a form on wich I dynamically create controls.

    Background:

    With my app a user can execute an sql-statement on several sql-servers at once.

    After the processing he will get a form with the results.

    On the form is Tab-Control (TabOne from ComponentOne). I can dynamically create tabs with this control and attach other controls to this tabs.

    I want to create a text-box showing the results. But my problem is: I don't know the class-iD of a textbox. Right now I'm using:

    Code:
        Dim rt As Object
    
        Set rt = Controls.Add("Forms.TextBox.1", "rt" & x)
    This works fine for me. But the created control is not the same as a textbox I create during design-time in VB. I think the Forms.TextBox.1 comes with office and I can't make sure that my customers have office installed (and if yes in which version).

    I tried to use Spy++ to find out the class-ID, but it says "ThunderTextBox" which is not a valid Class-ID.
    I searched the registry without luck. I tried to use the OLE/COM Object view from VS6, but I can't find the right classID!

    Any Ideas
    Last edited by blaff; Dec 5th, 2002 at 11:18 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width