Help writing an activeX control.
Hey all,
Most of my programming experience has been in Java and I have very little experience programming in VB so be easy on me :) I'm a Senior CS major at the U of A and I'm looking for help writing an activeX control that can be run from a web browser with the users permission.
The program would simply go to Start - Run in Windows and run an executable already located on the machine. I've been told that VB is the best place to start writing activeX controls but I'm not really sure where to start. Is there anyone that could give me some sample code or point me to some previously written threads that would help me out? Any other advice is also greatly appreciated. Thank you!
Re: Help writing an activeX control.
Welcome to the Forums.
You will find more answers on your tpic by running a Forums Search: http://vbforums.com/search.php
To run an executable from the run dialog like that it only need to have an entry in the environmental variables list.
Re: Help writing an activeX control.
Thank you for the response. I looked through some topics and was able to come up with something very simple but it's not quite working.
I created a new ActiveX control by creating a new project and selecting ActiveX control. Then I added the following code below. IE comes up and prompts me to accept the ActiveX control, I say ok and nothing happens. What have I done wrong?
Private Sub Project1()
System.Diagnostics.Process.Start ("C:\Open.txt")
End Sub
Re: Help writing an activeX control.
The code you have is VB.NET code and not VB 6 code. ;)
This will open the txt file in notepad using vb 6.
Code:
Shell "notepad.exe C:\open.txt"