PHP From VB Activex Control
Hi There. I am trying to find out how to do some really simple calling of php scripts from my activex control. I want to call a php script a bit like this: http://somesite.com/somescript.php?value=xyz and then get the result back into a variable or variables. Is there a tutorial for this simple task or can someone point me in a direction.
Many thanks
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Accessing Properties Of A ActiveX Control, Inside Other ActiveX Control
I am working with some ActiveX Control with ASP. My question is that "In ASP, how can we access properties of one ActiveX control which is wrapped inside other ActiveX control, so that threw those properties we can intract with Server Side" Please help me and reply at your earliest.
Regards,
Vivek.
Help With ActiveX Dll Project, ActiveX Exe And ActiveX Control
help. im using visual basic 6 on win 2000 pro, i am unable to create a
new activeX dll project, activeX exe and activeX control, along with
things missing from the compilation; options window . ohh and also i
cant add a user control, property page, user document. i don't know what
would be missing for me not to use these options, ,, please I need help
Raising The ActiveX Control's Event On The Click Of The ActiveX C Ontrol's Sub Form Buttton Click
Hi Friends,
I am designing one ActiveX Control with a lot of sub forms which r shown on
calling the methods or from some other events.
I want to raise few event of this ActiveX Control on the click of any button
of ActiveX control's sub form.
I want to give the user of the activex control some development control
with the help of these events.
I am not able to access the events (defined in the user control at design
time) of the activex control from the sub form of the activeX control.
Can anybody tell me how to do that.
Thnx in advance,
Naveen !!!!!
Raising The ActiveX Control's Event On The Click Of The ActiveX C Ontrol's Sub Form Buttton Click
Hi Friends,
I am designing one ActiveX Control with a lot of forms which r shown on
calling the methods or from some other events.
I want to raise few event of this ActiveX Control on the click of any button
of ActiveX control's sub form.
I want to give the user of the activex control some development controls
with the help of these events.
I am not able to access the event (defined in the user control at design
time) of the activex control from the form.
Can anybody tell me how to do that.
Thnkx in advance,
Naveen !!!!!
Control+C To Copy From Textbox Doesn't Work As ActiveX Control In IE
Hello all,
I've got a wierd problem that I'm trying to figure out. I've created an activeX control using vb 6 sp5 for use in IE 5 and higher. The control contains a textbox and does some things that aren't important to this question like getting the linecount, etc...
When I run my control from vb, a control+C allows me to copy text, however, once I build the control into a cab and then view it on a web page, control+C won't copy text.
You can easily recreate this problem by simply creating an activeX control in VB with a multiline textbox with vertical scrollbars on it. Play it from vb and a control+C works fine, build a cab and look the web page the PDW creates and the control+C won't work.
Any ideas why this is happening and if there's anyway to make it work?
Thanks for the help!
ActiveX Control / Change The Page The Control Has Loaded In.
Dear readers,
I'm trying to code a an ActiveX Control that first of all loads inside of a page, and then updates that page ( I want it to eventually auto-generate a post-style form and submit it, but that is for later ).
My real problem is that I can't access the DOM of the current page. I can change the title by using
Code:UserControl.Parent.script.document.Title = "test" so I can access the page's DOM tree. Inspired by this success I tried to insert new Element by trying what the microsoft page tells me to do http://www.microsoft.com/mind/0898/dom.asp but I can't get it to work.
Code:Set mDoc = UserControl.Parent.Script.document
Set Elem = mDoc.All("TEST")
Elem.insertAdjacentHTML "AfterEnd", "Hello world"
Can anybody please explain to me how this works ? Why can't I write elements to the tree ?
To Make An ActiveX Control Or Use The WebBrowser Control?
Hello everybody,
This is my second, er third post here. I'm excited to see such a vibrant forum on VB. I hope I can make some worthwhile contributions in the future. Let me say thanks ahead of time for taking time out to read my long explanation. It seems like I can never give any easy questions (I hope I can be proven wrong on that), so please be patient with me.
Anyway, before I start with my real dilemma and why I'm hanging on a certain-side of the tree, I thought I should strike up a talk about my core problem and why I choose my direction. I hope maybe I can get some other perspectives and maybe steer my thinking into better direction.
And, I'm using VB6.
The first problem I ran into, like many coders, is that I didn't like the ActiveX controls that I had to work with. So, make my own, right? Right. And then there was the scroll-bar. Not one, but three different scroll-bars to choose from. Great I need to use one of those...and none of them work. There is some quirky glitch with every single one of them. (Swear Words!) So I make this very nice, complicated ActiveX control. It has a vertically-growing page layout, hence I need to adjust the scrollbar for calculations. Math-no problem. But that %&$! scroll-bar acts so stupid it make my control look dumb!
Ok, I re-do this control, from the ground up. WHY!? I realized afterwards thats didn't need to do that. But, I've redesigned this control from the ground up three times now, and it still doesn't work! That was it! No more ActiveX controls where I need to use a scroll bar due to an ever-changing page layout. I've got a better idea: WebBrowser Control.
So I had a team member redo my control in XHTML 1.0 Strict, using javascript, CSS, the works. It was great. No math on resizing controls, I could style with fonts and colors, the works. I let the browser do-all-the HTML positioning work for me. AWESOME!
But, there's another problem. If I want to load a special webpage, like an MHT or an pre-defined (I mean correctly defined) web page like XHTML 1.0 strict, I can't use the Document control to change it into an XHTML 1.0 Strict. I'm stuck with whatever IE gives me. Instead I can only get my new pre-defined page two ways: from a networked URL address or a file path, meaning I have to save the file and then upload (as opposed to just injecting the browser with a pre-made string). Well, I see myself liking the browser so much, I decided to see if Mozilla's ActiveX control could have pre-injected web-pages...nope, it can't. So, I think, hmm maybe I should build an http engine where it's intention is to interface directly with the web-browser control.
Now I stop and think. I take a look back at the custom made ActiveX control and the scrollbars. Am I really going down the right path? Should I revisit the scrollbar thing again, or is there another way.
Thanks again for taking the time to read all of this. I'm really excited to hear from you all and what you might suggest.
Note: Please don't say "redo it in VB.NET" This is a MAJOR project. It's been in the development for almost 4 years now. I need to develop items with-in a a couple weeks/months time. It will take me at least a full year to recode my entire project into VB.NET; it's very integrated so I have to do the WHOLE project. I cannot really use VB.NET for my solution.
Assistance Needed: How Can I Control IE From Activex Com Or Control?
We are developing a client app that will receive an account number from a phone switch. It must be developed as a client app to use the phone switch API to get actions from the switch. The app needs to pass the number into a command field on a vendor supplied web site - which we CANNOT modify. We might be allowed to load a dll or control from the login webpage.
The vendor site screen scapes mainframe data and displays the data in Internet Explorer. IE is the company standard -- we do not support netscape, opera or any other browser.
The url does not change nor can we post data to the url. The site controls user access and navigation. We believe we can access the html and insert the account number on a command line. I believe we need to create either an Activex control or com object that we would call from the client app. The object would then set the html value and submit the request. Looking for any samples/code/advise on the feasibility of this solution!
Possible To Use ActiveX Control Within ActiveX DLL?
Is it possible to use an ActiveX control within an ActiveX DLL? I've written a control that I'm trying to wrap up into an ActiveX DLL to be used as a plugin in an application. In the code for the class module I'm trying to do....
Dim WithEvents bah as New MyActiveXControl
I always get an invalid use of New keyword error. So then I tried...
Dim WithEvents bah as MyActiveXControl
and then later in the code...
Set bah = new MyActiveXControl
and then I get the same error.
Any suggestions as to how I can do this? Heh, ideally I'd like to get an array of these activex controls within the class module. Any advice would be greatly appreciated. Thanks in advance!
ActiveX EXE And ActiveX Control
Hi,
I have an activex control, which I have referenced in my activex EXE project. I have created an object out of my activeX control using New method. But I am unable to have any events being raised from the ActiveX control.
Any clues??
Thanks in advance...
ActiveX EXE To ActiveX Control
Hello!
I've got a big Problem! I dveloped an ActiveX EXE based on a MDI Form! Now I have to to make an ActiveX Control (OCX) from the EXE. Does anybody knows how I can solve it the best way?
I really don't want to develpe it new!!! )
Thank you for every answer!
Bye
Sebastian
Removing A Control In An ActiveX Control (HELP!)
using a picture box called pCtl
the following code works just fine
Dim WithEvents CtlX As VBControlExtender
Private Sub Command1_Click()
Set ctlX= UserControl.Controls.Add("My.ActiveX", "ctlX", pCtl)
end sub
Private Sub Command2_Click()
Set ctlX= Nothing
UserControl.Controls.Remove "ctlX"
end sub
' I can click the two buttons which loads and unloads my active x control
______________________________________________
______________________________________________
' when using a combo box to do the same thing I get an error message and cannot remove the control?
Private Sub Combo1_Click()
' combo box has 2 items in its list
If Combo1.ListIndex = 0 Then
Set ctlX= UserControl.Controls.Add("My.ActiveX", "ctlX", pCtl)
Else
Set ctlX= Nothing
UserControl.Controls.Remove "ctlX"
End If
End Sub
Is There Any Activex Control Which Acts Similar To The "Tree View Control".
Is there any activex control which acts similar to the "Tree View Control".
The activex control should display the whole information in the form of
a tree(parents are encircled and a line joins the parent and the child of it that too encircled
and goes on till the leaves appear)i.e it displays the whole expanded information on the screen howmuch
ever the hierarchy may be.
ActiveX Control
Hi i want to just make the standard command button same features etc but a round button instead of a rectangle or squared one.
Unfornutaly i dont have any experience at all with ActiveX Controls but just wondering how i could fix up the normal command button to be rounded.
ActiveX Control?
I've been working on a Media Player for a long time now. I just recently switched over to DirectShow APIs for everything. My next goal is to develop an ActiveX control for Internet Explorer as a replacement for the default media player control on web pages. Unfortunately, I have no idea how to set this up. Can anyone point me in the right direction for finding this out? I'm also hoping to do the same for Firefox, but my hopes aren't high due to Firefox not having ActiveX control support (for good reason).
Cant Use Activex Control
Hello, i downloaded the latest version of tsweb client, extracted the ocx from the cab, and regsvr32'd it. I go to add it to my project with project->components->browse, and i get the following message box:
The file "c:msrdp.ocx" was not registerable as an ActiveX component.
ActiveX Control && DDE
Hopefully some can help me out with this because I spent way too much time on it and have gotten nowhere. I have to create an activeX control to send a DDE message to another VB6 application. The code for sending the DDE was initially used in another VB6 application and it worked fine. Unfortunately I have to create an ActiveX Control using VB6 to do this now. I tried using the same code but get an error message "operation not valid in an ActiveX DLL".
All I'm doing is passing a string of digits to the other VB application via DDE.
Code:
Option Explicit
Public Sub getAcct(acctnum As String)
Text1.Text = acctnum
popCM (Text1)
End Sub
Private Sub popCM(acctnum As String)
Text1.LinkTopic = "ContactManager|ContactDDE"
Text1.LinkItem = "TxtDDE"
Text1.LinkTimeout = 600 '60 seconds
Text1.LinkMode = 2
Text1.LinkPoke
AppActivate "ContactManager"
End Sub
PDF ActiveX Control For VB6.
Kudos to y'all! I'm sorry but I dont know quite where to post my inquiry so I posted it here. Anyway, as mentioned on the subject, I'm in need of a PDF control for VB6. PDF viewer to be exact. One that is royalty free and preferably below $100 . I know some o' you would say why not use the one that came with Adobe Acrobat Reader. I've tried it and it it uses up a lot of memory. It seems that it automatically loads AcroRd32.exe every time the control is used. I've found one that seems useful. The BravaActiveX.dll but it expires after one year. An' I don't want to redo my application. or reinstall them to 100 users of the application. I hope someone could help me on this...
Can't Use My VB-ActiveX Control Somewhere Else Then In VB
I have programmed an ActiveX control in VB for communication between different programs. It works fine using VB programs only. But programs which are not in VB can not even find this ActiveX control for example in the Visual C++ references. If I try to register this ActiveX control manually by entering its location, it does not work ("... must be supported by class Wizard ..."?). I can not find the name of the type library in the "ActiveX Control Test Container" or Visual C++. I have no idea what to do, please help.
Greets
Dumbiri
My First ActiveX Control
Hi all
This isthe first time I ever tried my hands on making my ownActiveX control.
I used VB Active X Interface (Add - In) for my help.
My problem is how should I proceed. Attached is the work I have doneso far.
Please suggest any tutorial on ActiveX components
Thanks
ActiveX Control
Hi,
I want to make an activex control. its like a standard textbox but i want to add 1 property to it, i.e TextType. I use a enum like that
Public Enum txtType
None = 0
IntOnly = 1
CharOnly = 2
IntCharOnly = 3
End Enum
Public TextType As txtType
After this i see a property in my new text box "TextType" on a form. but now i want that when i select none then every char can be pressed and when select IntOnly then only 0 to 9 values can be Pressed and so want. kindly tell me abt it.
Thanks
ActiveX Control... What Name For Sub ?
Hi everyone,
I am writing an ActiveXcontrol that will be an analog gauge. It will have a custom property called Angle. When used in a project, the form will pass a value to that property, and I want the code in the ActiveX itself to thn draw the needle.
But... what do I call the sub? I don't know what the controls name will be on the final form as the user can name it when he places it on a form - will have to in fact if there are multiple instances of it.
I assume the sub will be Private Sub Something_Change() as I want the code to fire every time the value of angle changes, but what?
Richard
ActiveX Control
I am currently having a problem with an ActiveX Control. I am trying to pass the User Control to a function but when I use the name of the user control it doesn't work and when I use usercontrol it tells me invalid use of base name.
If anyone could shed light on this I would appreciate it. Thanks!
Activex Control
Greetings all!
Here is my question : I created an activex control (ocx), used the package and deployment wizard (included all the files in the .cab file so they don't have to be downloaded from MS) to make and distribute the cab file to my webserver. When I hit the page IE asks if I want to load the control, I say yes, it installs the cab (I checked by going : tools=>internet options=>settings=>view objects : It lists my activex control as "installed") and draws the screen but puts a box where the control is supposed to be. I get no errors at all. If I open the webpage up in Ms Frontpage, the activex control initializes and shows properly on the screen. If I switch to "preview" mode tab the control works perfectly. What could the problem be? I have added this site (its an intranet only site) to the "trusted site" zone. I'm out of answers....??? Thanks for the help!
Robert Lewis
ActiveX Control
Is it possible to include an OCX file in the project so that I don't have to distribute it seperately? If so, how would I go about doing this?
ActiveX Control..
I made a activeX control to view on my intranet webpage, but if the user's security setting is medium to high, they can't load the unsigned activeX controller. A big problem..
Without going to Verisign etc, is there a way I can make it so it will run on the person's computer without them needing to modify the security settings? Either by code where it sets the internet options security level from a VB executable or making the control looked like it was signed? I'm trying to design the website to be easy to configure for the user since I expect to get some coworkers who are not computer savy.
Thanks.
Regarding ActiveX Control
I have made an Active X Control in Visual Basic 6 which i am using in my project extensively. The problem is I have lost the source code of the control, though i have print out of the code. There are a few changes i would like to make in the control.
I want to know that if i develop a control with the same name as the previous one (with only some functionality change which does not require any changes in the project where the control is used), then what steps should i take to ensure that the control work properly with no change in the project.
I mean can registering the control on the nodes where project is used, will suffice and work properly or what is the other way out
?
Activex Control Help
I have an activex control which i want to use multiple times in a VB
program. i'm able to use as many times i want, but whatever property of
the control i set, it gets set to all instances of the control.
Is there any way to overcome this ?? any setting or configuration
etc.... any help wud be great ..
ActiveX Control
Hello All,
I am attempting to update the Windows hosts file via our corporate start-page, since all Windows users are forced to use this, it is the most viable method. Now, I have a few different options for how to approach this: Java or ActiveX.
I have a fair deal of experience with Java, however the sandbox, even with an applet that has been signed and granted full permissions, won't allow me to edit the hosts file. (Am I missing something here?)
ActiveX? I am not familure with ActiveX at all. Can this be done using ActiveX? As previously noted, I do not mind the user being present with a dialog asking for permission.
Any suggestions are greatly appriciated!
Cheers-
NewWave
ActiveX Control
I have a OCX problem. A really simple one, I just cannot figure what I have missed.
private myControl() AS TestOCX.userControl1
Private Sub Form_Load()
Dim i As Integer
For i = 1 To 5
' set myControl(1) = new TestOCX.userControl1
Next i
End Sub
Private Sub btn1_Click()
If myarray(1) Then
myControl(1).openForm
myControl(1).setTitle "Control 1"
Else
myControl(1).killForm
End If
End Sub
If I leave the code commented in the load sub then it says that myControl(1) = Nothing. So I uncomment the line of code, then it doesn't compile.
So I check my reference's for the project.
I cannot find the TestOCX (Considering VB automatically registers it on building the OCX)
So I add it in, and it says that it already exist. So I double check it using the OLE view and it does exist.
So then I try to remove it by using:
regsvr32 /u Test.ocx
Try to add it again through the reference, it appears ticked at the bottom of the list. If you click on OK and the go back in to the reference's it is not there anymore.
What am I doing wrong? Is there something wrong with the OCX. All the OCX does is open and close a form.
Thanks in advance.
C.
ActiveX Control
i am new to visual basic.
i have just finished creating an activeX control for my web but when that page is loaded.there is only this small box appear.
can someone tell me wat went wrong or have i miss anything?
thanks a lot
i have attached the application
ActiveX Control Help
I'm currently using VB6, but am looking for a control that functions similar to what's in the .Net IDE (Toolbox, Server Explorer, etc.). The main portion I need is the ability to dock the control in hide mode, and the associated window pops out when one of the control tabs is hovered. Really I have a two part question.
Part 1: Does anyone know of a control (3rd party) that provides this type of functionality?
Part 2: If I can't find a control, I might write my own. I've written ActiveX controls before, but none quite like this. My main area of concern is that in all likelyhood, the pop-out will need to be displayed outside of the control. I haven't done this before, so guidance on how to start this would be appreciated (as well as any other possible solutions).
Thanks in advance for any assistance.
ActiveX Control
Hey Folks!
I have been using VB for quite sometime, but I have never messed with writing ActiveX controls. I have a fairly large Application that runs my retail store, and I have been using a form for common tasks like "Selecting a Customer" for various reasons. The Form uses an SQL statement to produce a recordset based on the text in a text box, and updates a list control with each keystroke. The unique thing about the arrangement is that the text search text is double wild-carded (ie WHERE Cust.CustText Like "*xxx*".... I know, no huge feat, but it is very handy for quickly narrowing a list of a couple of hundred customers.) Anyway, it would be very handy to create a control that had this functionality built into it. I need a bit of help deciding if creating an Active-X control to replace this form is practical. The control would need a label control, a list control, and a textbox control, and some properties that could be set at runtime, ie database path, and a value for Customer Number. Questions I have would include: If I have opened a Global DAO database object in the the container application, can I access its methods in the code in the ActiveX control? I would assume not, does this mean that I need to Open a Database object within the ActiveX control? If so am I creating a control that is too heavy? Currently there are over a dozen forms that call the Select Customer Form, by replacing these calls to a form with a heavy control, am I going forward or backward??
Any thoughts would be great,
Hunter
Activex Control
An activex control which is programed in vb could be used in VC?
ACTIVEX Control Help!
Okay I have given up on altering a regular or richtextbox, so here is my next problem. I want to create a new activeX control, I have drawn it using a textbox and a vertical and horizontal scroll bar. What my problem is, I don't know how to add a text property, nor do I know how to link the two scroll bars so it will "Scroll" the text, can somebody give me an example on how to do this, also if anyone has the source for the RichTextBox control Please email me with it to Phylum@home.com (is it written in VB?).
Thanx
Need Help With My ActiveX Control!
I have my control on a web page. I can't seem to get it to read in the parameters I pass to it. I use the <PARAM> tags and pass the values in, but the control doesn't get them. What event reads in the properties? I have to figure this out quick! thanks
ActiveX Control
If I have an ActiveX control window, and it has a button in it that I want to take me from this current ActiveX control to another one when clicked on, what's the code for that? I already tried to see if this works as it works with the regular "form" window at which I can simply say:
current_form.hide
destination_form.show
But with the ActiveX control, they don't have such a syntax associated with it. So how does this work with ActiveX controls?
ActiveX Control
Hi there guys!
I am just writing an ActiveX control and I have noticed something: most of the OCXs provided by other companies also have a small description of the property shown in the properties window of Visual Basic.
Do you have any idea how to do that?
Thanks!
About ActiveX Control?
I am buliding my FlatTextBox activeX control.
I want to know how to add "MouseIcon" and "ToolTipText" perporty?
Tks n b.Rgds
Freeda
OLE ActiveX Control
I have just used the OLE activeX control for the first time today..., until now I have had no use for it....
I cannot seem to be able to find out how to edit the objects inside the control
I have this program that collects data then I want the program to display the data in a exel sheet, only I cannot edit the object inside the OLE, so it is not working....
thanx in advance,
Byan
Need Help With ActiveX Control
OK here is the deal I have an ActiveX control that I need help with. Basically this activeX control came with C++ API only. I have been able to figure out most of it but I have run into a wall. What I need to know is how to make a public type. I think. Let me explain: The C++ API says the following for this call:
long OpenFile_Read(STR lpFileName, Long pMIFileInform)
typedef struct tagMIFILEINFORM{
SYSTEMTIME inittime;
DWORD dwTotalVidTime;
DWORD dwTotalAudTeim;
DWORD dwWithAudFile;
DWORD dwVidType;
DWORD dwAudType;
DWORD dwReserved1;
DWORD dwReserved2;
}MIFILEINFORM;
So lets say the ActiveX Controls Name is PLAY1
Currently if I type in: Call PLAY1.OpenFile_Read(filename.txt, 0)
I have no problems the file loads.
What I really need is the information that is in the pMIFileInform part of the call. How in world do I access it? I have tried a number of things but I just can't figure it out. I think I need to make a Public Type but I haven't been able to figure out exaclty what I needed.
Thanks in advance for helping me. For some reason I have been staring at this for so long I can't figure out what to do. Thanks Again...
Activex Control
i am developing a web based application using activex controls. i am running each control and saving it as .htm. i am storing it on webserver. Now i am making .ocx for the controls and registering it using regsvr32. Now the problem is on some win 2000 & Me all is fine. but on 98 machines the the html page is not coming. so i want to know what are all the dlls required extra for 98 machines and which have to be registered.
list of dlls i am including is as follows...
Msvbvm60.dll
OLEAUT32.DLL
OLEPRO32.DLL
ASYCFILT.DLL
STDOLE2.TLB
COMCAT.DLL
MSDBRPTR.DLL
MSDERUN.DLL
MSBIND.DLL
MSRDO20.DLL
msadco.dll
msadcf.dll
asctrls.ocx
MSHTMPGR.DLL
DAO350.DLL
crviewer.dll
xqviewer.dll
craxdrt.dll
MSFLXGRD.OCX
TABCTL32.OCX
MSMASK32.OCX
Mscomctl.ocx
Comdlg32.ocx
craxddt.dll
MSSTKPRP.DLL
eagerly waiting for ur response..
ActiveX Control - VB6
Im busy with a VB 6 program on my current system, when i try to run the program on another computer it gives me an Error Code 429: ActiveX cannot create object.
Im not sure what to look for, is there a way to determine which control it is?
Thanks
Manta
|