Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have seen interfaces on the web before, where a windows looking form loads in like an active x control or a java applet.

 

If I have a windows based data entry form, is there a way to make this into some sort of control that can be displayed on a web page?

 

How do I go about doing this or where do I start?

 

Even if it isnt that fast loading, it would be very nice to have the ability to do this. I have seen this before but Im not quite sure if they used java applets or some other form. Any information on this subject is greatly appreciated. thanks very much.

 

-JBD

Posted

I thought Terminal Services, PC Anywhere are just the tools to remote control PC? Is it related to 'active x control displayed on asp.net page'?

 

Active X control or Java Applet is client controls, because it is independent which not running in web server but browser. So it is nothing to do with server site language like ASP.NET, php or others...

 

Condition to run Active X required client using "Internet Explorer". And Java Applet can run on both IE or Netscape.

 

To start it, first you need Visual Basic to write your ActiveX control or Java to write your Java Applet, deployment is quite easy, you can simply got it from Internet or books.

  • Moderators
Posted

I think that's what Joey was asking... "If I have a windows based data entry form, is there a way to make this into some sort of control that can be displayed on a web page?"

 

I assume that he wants to control it remotely.

Visit...Bassic Software
Posted (edited)

No, I mean to have an applet form instead of an asp.net or html type form. I have seen them before, like a window will pop up, and a data form that uses java will appear and you can update data with no postbacks etc, it works like a windows form but appears in a web browser....you know, like a java applet : ) I thought that you used to be able to like embed active x controls into web pages no? I am just wondering if there is a way to make one of those with vs.net?

 

thanks.

Edited by joeybagadonutz
Posted

As what I said, there is nothing to do with ASP.NET, you can use Java Applet as long as there is web page (html, asp, aspx, jsp...), or ActiveX as long as user using Internet Explorer browser.

 

Use HTML "<OBJECT>" tag to embed it

Posted (edited)

an active X control is simply an OCX that's registered on the server on which your web page resides.

 

The easiest way to create one is to the MFC Active X control wizard in VC++ .Net (or VC++ 6.0).

 

But you want this to be a dialog? This requires a little tweaking...

 

read this, it starts off assuming you've just created a blank project like the one i suggested above.

http://www.codeguru.com/activex/dialogctrl.shtml

 

from here you can add controls to your dialog like a windows form.

 

Once this is working, you need to create a seperate client application containing the control.

 

Lemme know if you need any help.

 

Oh, one last thing, ActiveX controls are good, powerful etc, but the restriction lies in the access (or lack of) that the client instance of the web browser allows. Active X controls can contain viruses, etc, and so security is tight... something else to play with and consider in all this, it may mean something like a pop up box appearing to say that the user is about to run your control.

 

Dan.

Edited by dunesand
Posted
I will rather suggest you use VB6 to create your ActiveX rather than VS.NET. Because the client required .NET Framework installed in his PC before he can use your ActiveX
Posted
Because the client required .NET Framework installed in his PC before he can use your ActiveX

 

No they don't. An active X control never uses the .Net IL, and so even if create with VS.Net, the control is compiled to machine code. It's the same as creating an MFC app in VS.Net, no .Net framework required. :)

Posted

a Windows Form control is a .Net DLL (i think it's a DLL file?) that contains a .Net control.

 

an Active X control is an OLE based, front end enabled (ie. message pump is included) COM object that is compiled to machine code.

 

VS.Net can create an active X control, but it's the same way in which VS 6 creates a control. It's only through native (unmanaged) VC++ though, VB.Net cannot create unmanaged code. It's the MFC Active X module from the C++ templates.

 

.Net's move forward is to really put Active X behind them, it's not really going to be supported much in the future apparently.

  • 2 years later...
Posted

VB Runtime

 

Hello, I readed the entire Post, and I need to create an ActiveX control, I don't know VC++ I just programmed with VB, so, can I create a VB 6.0 ActiveX control but my question is, if I created with VB6 my client will need to have the VBRuntime DLL to use my ActiveX control on Internet Explorer ?

 

 

Thanks

 

MIKE

Mikecrosoft.Net

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...