Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB in a browser 1

Status
Not open for further replies.

robdon

Programmer
May 21, 2001
252
ES
Hi,

I have used VB a bit to create different forms etc, but I was wondering, is it possible to put a VB Form on a website or page.

A bit like a JavaApplet.

If this is possible, could someone point me to a good web site or book (or just any pointers on how to do it).

Thanks for any help,

Rob Donovan
 
Well you could with some doing create a (massive) active x project, which can be placed on sites. Brad,
Hey! email me any time! Bradsvb@yahoo.com
 
Yep, I have figured out that it needs to be a OCX, but any pointers on how to include that in the web page (ie the HTML to load up an OXC)

Or should I find a HTML forum for that question?

Thanks,

Rob D
 
I would goto a html forum:

but it is something, like this

<embed src = &quot;bob.ocx&quot;>

Thats not it exactly, but its close.
Brad,
Hey! email me any time! Bradsvb@yahoo.com
 
The easiest way to do this is to use the Package and Deplyment wizard to create an Internet Package. Once you have done this, you will find a short HTML page in the Package folder that contains the necessary magic HTML to invoke your control. The sysntax is a LITTLE more complex than Brad suggests (here's an example from one of my own programs):
[tt]
<OBJECT ID=&quot;ctlPersonalRemedy&quot;
CLASSID=&quot;CLSID:BE2E5057-36D9-11D4-AC13-00600863FA8B&quot;
CODEBASE=&quot;PersonallRemedy.CAB#version=1,2,0,4&quot;>
</OBJECT>
[/tt]
Note that an OCX displayed via a webbrowser in this way normally needs to be digitally signed, so you may need to ensure that you have the necessary tools to do this (part of INetSDK), which are downloadable from the MS website.
 
A massive OCX is not really the solution.
Check out ActiveX Documents when creating a new project.
This is what they were designed for.


Hope this helps

Steve
 
Erm - ActiveX documents do produce an OCX. They just hide the fact from you.
 
Actually I'm being misleading. Sorry. There are essential differences between an Active X Document and the the OCX solution. My point, however, is that the argument that a massive OCX is not really the answer ignores the fact that, with Active X documents, you get a massive DLL or EXE server instead.

So the question of whether you use control or an Active X document comes down to what sort of behaviours/functionality you require. There are plenty of web pages that describe the difference. One example is that you can't (theoretically) mix HTML and an Active X Document on a page

 
I have vb 6 enterprise but I am only seeing 2 options of packages dependent file and standard set up. How do I get internet package option?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top