Results 1 to 4 of 4

Thread: Debugging User Controls

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    San Diego - California
    Posts
    251

    Wink

    I have created a user control and I am having difficulties when debugging.

    Firstly it always launches in the web broswer and not in the test project.

    Then if I try to shut the usercontrol down using VB the pc crashes as it does not run the UserControl_Terminate function.

    I would like to debug the control in the VB environment using a test project ( with one form containing the control). Is there any simple documentation on this.

    Any hints and tips would be appreciated.


  2. #2
    Addicted Member c@lle's Avatar
    Join Date
    Oct 1999
    Location
    Belgium
    Posts
    179
    i think you have created a 'active X' control!?

    Right click on your project window, then choose add|user control.

    Select a user control and create it.

    And yes, sometimes vb crashes. So be sure to save before you run your project!

    hth

  3. #3
    Fanatic Member faisalkm's Avatar
    Join Date
    Oct 2000
    Location
    Germany
    Posts
    752

    Exclamation Hi may be this help u

    Hi,

    I hope u r creating an Activex Control and u want to debug it. The way is like this.

    1. Add a standard exe project to ur existing project.
    2. Making this project as the startup project.
    3. Add a new form to this project
    3. To debug the activex control close the design window of the activex control and take the Standard Exe project and add this control to ur form
    4. Write to code to test ur activex


    Faisal
    Faisal Muhammed
    Homepage:I Started making it in 1994 ...Still Under Construction
    Using

    Visual Basic 6.0 Enterprise SP5
    Embedded Visual Basic 3.0
    SQL Server 2000
    Windows 2000 Proff
    Delphi 6.0


    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    San Diego - California
    Posts
    251
    Thanks I am sure this imformation is a great help.

    I am tied of the crashing so I have created a normal standard.exe and will later convert it to a usercontrol. Whe it is "bug" free.

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