Library sample chapters
ActiveX controls
Introduction
This is a sample chapter from Programming Visual Basic 6.0
ActiveX controls are the descendants of the first OCX controls that appeared when Visual Basic 4 was released. While they retain the same file extension, they're very different beneath the surface. The original OCX controls included a lot of low-level functionality (and consequently had to support many COM interfaces), and therefore were heavy and relatively slow. The new ActiveX controls were specifically redesigned to be embedded in HTML pages and delegate much of their functionality to their container, be it Microsoft Internet Explorer, a Visual Basic form, or any other ActiveX-compliant environment. Thanks to this different approach, ActiveX controls are generally slimmer than old OCXs, download faster, and load in memory more rapidly.
Related articles
Related discussion
-
how do you hide all in VB6
by CapnJack (1 replies)
-
Problem with Input File
by novavb6 (3 replies)
-
How to produce a txt file with a table??
by novavb6 (1 replies)
-
VB6 compatability from XP to Vista
by bronx (1 replies)
-
Fully justify code
by fresh (0 replies)
I also looking for the control for years, but still can't get a good one, some control only make a form transparent instead of a control like picturebox, some control only copy the picture of background under it, isn't real transparent. some controls have transparent background but the transparent area is a hole that you can click controls behind it in z-order. I ever tried the following code in a form:
Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Global Const GWL_EXSTYLE = (-20)
Global Const WS_EX_TRANSPARENT = &H20&
add a textbox on the form and a picturebox named picturebox1 over it, in form_load event add this code:
SetWindowLong picturebox1.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
the problems are, only when content of textbox change(by code), the picturebox was changed to transparent, second, when then picturebox resized, the picturebox was changed back to white.usually.
dear sir, if you have got a ideal method to make this control, would you please send me a copy? thank a lot.
i want to create a transperent picturebox behind it i will put internet control / webbrowser.
user will able to see the webpage and unable to click on web page ,
and he would not be able to select text / image .
is it possible to create such a activx picture box . i need it urgently . please reply.as soon as possible
In .NET it is possible to show properties to users of comoponents during runtime. Is there a method to show PropertyPages during Runtime of a VB 6.0 ActiveX control?
Thanks
In .NET it is possible to show properties to users of comoponents during runtime. Is there a method to show PropertyPages during Runtime of a VB 6.0 ActiveX control?
Thanks
Does anyone know how can I convert a *.vbp (visual basic project) into an activex control to use it on a Web Page?
Is it possible to digitally sign an already packaged Active X control or does the code have to be signed.
I want to sign MsRdpClient so we can use it on our intranet without changing IE security settings in the GPO.
Thanks
Hi
very thanx from givig imediate reply.
I have a property page for ActiveX control & if i right click on that control in client design view its show popup menu & in that option is property after clicking it shows the property page what ever i made But the same proprprty page I wan tto display at run time . cos i m developing active control like Rational Rose. so that user ca draw the flow digram & at that time (run time) user can be able to change the property at run time its Background , style etc so it is possible to show the property page at run time
Plz comments
Thanx
Regards
Mahesh
Hi
I want to show the property page at run time for a activeX control so that user can change the backgroun color & style of drawing .
any buddy knows how to show ?
plz comment
Thanx
Regards
adadf
Deep and clear. It was just I was looking for. Great! Thank you.
This thread is for discussions of ActiveX controls.