joeybagadonutz Posted November 29, 2003 Posted November 29, 2003 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 Quote
Moderators Robby Posted November 29, 2003 Moderators Posted November 29, 2003 That's done through tools like Terminal Services, PC Anywhere or Cytrix. To build your own would be quite a task. Quote Visit...Bassic Software
bungpeng Posted December 1, 2003 Posted December 1, 2003 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. Quote
Moderators Robby Posted December 1, 2003 Moderators Posted December 1, 2003 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. Quote Visit...Bassic Software
joeybagadonutz Posted December 1, 2003 Author Posted December 1, 2003 (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 December 1, 2003 by joeybagadonutz Quote
bungpeng Posted December 2, 2003 Posted December 2, 2003 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 Quote
joeybagadonutz Posted December 2, 2003 Author Posted December 2, 2003 Okay cool, so my question now is, how do I make the active x object? Can I make one from a vs.net windows form project? One that I can embedd into a web page? Thanks. Quote
dunesand Posted December 2, 2003 Posted December 2, 2003 (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 December 2, 2003 by dunesand Quote
bungpeng Posted December 3, 2003 Posted December 3, 2003 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 Quote
dunesand Posted December 3, 2003 Posted December 3, 2003 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. :) Quote
bungpeng Posted December 4, 2003 Posted December 4, 2003 Are you sure? Are you using "Window Control Library" in VS.NET? Because we did test it before, if you are sure, maybe I need to test it again... Quote
*Gurus* Derek Stone Posted December 4, 2003 *Gurus* Posted December 4, 2003 Hosting a Windows Forms control in Internet Explorer is different than hosting an ActiveX component in Internet Explorer. They are two separate technologies that should not be confused with one another. The former requires the .NET Framework to be installed on the client, the latter does not. Quote Posting Guidelines
bungpeng Posted December 4, 2003 Posted December 4, 2003 Do you mean "Hosting a Windows Forms control" is not ActiveX? so my question is, can VS.NET create a ActiveX control? what project type should I use? Quote
dunesand Posted December 4, 2003 Posted December 4, 2003 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. Quote
joeybagadonutz Posted December 9, 2003 Author Posted December 9, 2003 Yes, thanks very much, extremely helpful, I will post if I run into any problems, thanks :) Quote
Mikecrosoft Posted September 13, 2006 Posted September 13, 2006 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 Quote Mikecrosoft.Net
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.