473,623 Members | 2,453 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to make usercontrol as activex and make it cab file for the browsers

36 New Member
hi experts....

i need ur help again...

i am creating a usercontrol that fetch images from webservice and show in a picture box.. (This is my Activex control as i say). and build it. now i have created a setup. named as viewercontrol. then i created a cab project and add viewercontrol in the project output.. and also add a inf file. also.
and buid the cab project.
my inf file

[Setup Hooks]
hook1=hook1

[hook1]
run=msiexec.exe /i %EXTRACT_DIR%\v iewercontrol.ms i

[version]
signature="$CHI CAGO$"
AdvancedINF=2.0

[Add.Code]
setup.exe=setup .exe
[setup.exe]
file-win32-x86=thiscab
clsid={58EC4F8B-2189-424d-B3F6-0100C1779877}

when i use this in html/aspx page .. by using <object tag>.
and deploy to server and browse it . it display a yellow bar on top saying to install activex. an d when i clicked it .. it show a messgebox with two button INSTALL AND NOT INSTALL with unknown publisher warnig. and when i clicked on install .. some procees took place for 4 -5 sec. and a red cross bar came inspite of control..
but if i manully run the installation by coping the cab file in the system ..it works fine..
now i am asking where i am wrong in this process. what sholfdi do.. is any thing wrong in my inf.. or pls tell me the write way to do this..


thanks in advance.. please help me out
Dec 24 '08 #1
1 3951
Frinavale
9,735 Recognized Expert Moderator Expert
@sandeepdhankar1 0
You need to specify authoring details. ActiveX controls are not trusted because they are able to access the user's operating system from the internet. You therefore need to design a secure ActiveX control in order to mark it as "safe". Look into how to do this....a great place to start is this article.

-Frinny
Jan 9 '09 #2

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

Similar topics

0
1660
by: Mairhtin O'Feannag | last post by:
I have done a make, and a make install on the 4.3.6 version, using /usr/local/etc/php as the directory I make from. However, no matter what I do, I do not see a php4lib.so that has been created. The documentation I recieved (an IBM source) says that the following has to be added to the httpd.conf file : LoadModule php4_modulelib/apache/libphp4.so .. .. ..
1
297
by: Dev | last post by:
Hello, We have (old) softwares that can only use non ActiveX DLLs. They are written in C today. I want to write the new DLLs with VB.NET, but they still have to be used with these old softs. Is it possible to make a non-ActiveX DLL with VB.NET ? If yes, how ? How can I test it ? is it possible to test it with VB6 ?
1
2343
by: Dave | last post by:
hi, I am creating a usercontrol in .net that inherits from the panel control. I want to display it in the component tray -- like the timer control -- and not on the form. thanks, dave
0
1376
by: Frank | last post by:
I am attempting to convert an asp file to a asp.net file using C#. The original file has an ActiveX control which is contained in a cab file. The cab file contains the .ocx file which connects to a socket and transfers client info to a server, as well as several .dlls The cab file also references another cab file which contains files to install on the client machine in case they do not have VBRuntime6 installed on their machine.
1
5158
by: Frank | last post by:
Short Version of Question: Can anyone provide an example of how I should embed the ActiveX and license, and then use it in a function?
1
1278
by: the intelligence xml file | last post by:
How can i make the intelligence xml file for a .net assembly? Thanks in advance!
3
4070
by: ritulranjan | last post by:
Hi, I am new to Javacript, so please forgive any trivial queries made. I want to use functions in an .ocx file, in a web page. The web page uses the <objecttag to embed the ActiveX object, and the ActiveX object is such that, only one instance of the object can be instantiated, so i can't call the ActiveXObject() function, while the ActiveX object is embedded in the web page.
3
2734
by: ndoe | last post by:
how to make a paragraph from file to file like this e.g data.txt i want eat some pizza with
2
1636
by: ruhi17 | last post by:
Hello... I want to make a spring config file with the help of a schema file. plz help me out....
0
8165
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8670
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8326
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7150
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5561
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4074
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4164
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1778
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1473
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.