ActiveX and Clsid Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kurkcu
    New Member
    • Mar 2010
    • 3

    ActiveX and Clsid Problem

    Hi,

    I have an classlibrary and usercontrol in it

    Code

    ----
    Code:
    Imports System.Runtime.InteropServices
    <Guid("5DF83611-3DAB-46FF-9BF7-2901F1AE63B2")> _
    Public Class UserControl1
    
        Private Sub UserControl1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
        End Sub
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    
        End Sub
    
    End Class
    ----

    And a Aspx Page

    HTML

    ---
    Code:
    <body >
        <form id="form1" runat="server">
        <div>
           
            <object id="myControl1" name="myControl1" classid="mydll.dll#myddl.UserControl1"
            width="250" height="200"> 
            </object> 
              <object id="Object1" name="myControl2" 
               classid="CLSID:5DF83611-3DAB-46FF-9BF7-2901F1AE63B2" codebase="mydll.dll"
            width="250" height="200"> 
            </object> 
       
        </div>
       
        </form>
    </body>
    ----

    Question :

    First Object works fine and displays button.

    Second object doesn't appear. Only X.

    I've get guid /Classid from assemblyinfo.

    When i create cab file it doesn't display either. I think same reason.

    Regards.
    Last edited by Frinavale; Aug 25 '10, 06:41 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.
Working...