473,385 Members | 1,846 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,385 software developers and data experts.

ActiveX and Clsid Problem

3
Hi,

I have an classlibrary and usercontrol in it

Code

----
Expand|Select|Wrap|Line Numbers
  1. Imports System.Runtime.InteropServices
  2. <Guid("5DF83611-3DAB-46FF-9BF7-2901F1AE63B2")> _
  3. Public Class UserControl1
  4.  
  5.     Private Sub UserControl1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  6.  
  7.     End Sub
  8.  
  9.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  10.  
  11.     End Sub
  12.  
  13. End Class
----

And a Aspx Page

HTML

---
Expand|Select|Wrap|Line Numbers
  1. <body >
  2.     <form id="form1" runat="server">
  3.     <div>
  4.  
  5.         <object id="myControl1" name="myControl1" classid="mydll.dll#myddl.UserControl1"
  6.         width="250" height="200"> 
  7.         </object> 
  8.           <object id="Object1" name="myControl2" 
  9.            classid="CLSID:5DF83611-3DAB-46FF-9BF7-2901F1AE63B2" codebase="mydll.dll"
  10.         width="250" height="200"> 
  11.         </object> 
  12.  
  13.     </div>
  14.  
  15.     </form>
  16. </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.
Aug 23 '10 #1
0 980

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Pippen | last post by:
Below is a code snippet that is throwing the following error: Error Source: Microsoft DTS Package Error Description: Error Code: 0 Error Source= Microsoft VBScript runtime error Error...
4
by: joebob | last post by:
The following script if run in Internet Explorer should display a thumbview of a webpage that you point it to. To test it, replace test.htm with a valid html file. The problem I'm having is that...
3
by: vanisathish | last post by:
Hi I have a custom ActiveX Control that is working fine with ASP in IIS 5.1 on WinXP. But the same ASP page is failing in Server.CreateObject of that ActiveX Control in IIS 6.0 on Win Server...
0
by: SBK | last post by:
I am having a problem using a set of ActiveX controls I have created in Visual Basic (VB6) in C#. The controls expose their methods and properties fine, for the most part, and are most definatley...
2
by: markoueis | last post by:
I've signed my activeX control with a public key (strong name). I've set up the client machine to grant full trust to code signed with that public key. I did this using the .NET Configuration 1.1...
0
by: ariesya | last post by:
hi!!! i modified program in visual c++ that using activeX.. my problem i do know to add form at the same workspace... it is very difficult to me to learn how activex like button processing... ...
2
by: Chris | last post by:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim AESobj As Object Dim boolResult As Boolean Const HKEY_CURRENT_USER As Integer =...
0
by: s.danyal.k | last post by:
Hi All, I have made an application that loads an Adobe Acrobat file and shows it. For this I ve used Adobe ActiveX Control available in C#. Heres a sample code. I am adding the control...
0
by: Budhi Saputra Prasetya | last post by:
Hi All, I have a problem regarding embedding ActiveX into ASP .NET page. I can't make it working. No error is thrown, but what i can see from the ActiveX Area is only disabled text area. I...
0
by: sosyopat | last post by:
Hi All! I've coded activex object which is notifies user like msn style. I generated .cab file using cabarc.exe and vs setup and deployment cab file project. The activex object installed...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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...

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.