Help with Using Windows Forms Controls in Internet Explorer .net 2.0
-
Hi, I am stuck I cant find a simple example of Using Windows Forms Controls in Internet Explorer written in VB.net 2.0, i want to build a bulk emailer that will run in a web-browser on the client side that will get the email addresses and email message to send from the previous asp.net webpage, like an activex control but cant find anything in wriiten vb.net and all the C# things I have found are overly complicated and dont covert to vb too well. Anyone who could point me in the right direction would be greatly appreciated I have spent 2 days searching the net and cant find anything of any use. Thanks i advance
-
Hi, I am stuck I cant find a simple example of Using Windows Forms Controls in Internet Explorer written in VB.net 2.0, i want to build a bulk emailer that will run in a web-browser on the client side that will get the email addresses and email message to send from the previous asp.net webpage, like an activex control but cant find anything in wriiten vb.net and all the C# things I have found are overly complicated and dont covert to vb too well. Anyone who could point me in the right direction would be greatly appreciated I have spent 2 days searching the net and cant find anything of any use. Thanks i advance
GDMFSOB wrote:
and all the C# things I have found are overly complicated and dont covert to vb too well.
Odds are they are as complex as they need to be. 100% you can convert them to VB and they will work fine. To use windows forms controls, you need to write a browser plug in, you can't just add them to a web form like you do a web control. And it will mean your users will need to have .NET installed.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
GDMFSOB wrote:
and all the C# things I have found are overly complicated and dont covert to vb too well.
Odds are they are as complex as they need to be. 100% you can convert them to VB and they will work fine. To use windows forms controls, you need to write a browser plug in, you can't just add them to a web form like you do a web control. And it will mean your users will need to have .NET installed.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
Thanks for the reply, you said : "you need to write a browser plug in", this is completely new tech to me I am used to writing iether a standalone app or a asp.net webpage, not mixing the two and dont know where to start, i just tried writin a user conotrl, compling and then added this <object width="430" height="352" classid="OCTBulkMailer.dll#UserControl"></object> but all I get a a blank looking image place holder, LOL I know I must sound a bit like a retard but its like showing me a car and handing me the keys but I dont know what a car is or what it does.
-
GDMFSOB wrote:
and all the C# things I have found are overly complicated and dont covert to vb too well.
Odds are they are as complex as they need to be. 100% you can convert them to VB and they will work fine. To use windows forms controls, you need to write a browser plug in, you can't just add them to a web form like you do a web control. And it will mean your users will need to have .NET installed.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
I have a related question. I am sure VB 6 has ActiveX Control support. But my generic queries are: 1) Compared to developing in VC++ or MFC, wouldn't this mean by dependency on VB Components. I have a weak doubt that controls made out VB need VB Runtime Library or something like that (Pardon me for my bad memory that I could not recall) 2) Wouldn't there be any pitfalls having a control engineering out of VB compared to a control from MFC?
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
I have a related question. I am sure VB 6 has ActiveX Control support. But my generic queries are: 1) Compared to developing in VC++ or MFC, wouldn't this mean by dependency on VB Components. I have a weak doubt that controls made out VB need VB Runtime Library or something like that (Pardon me for my bad memory that I could not recall) 2) Wouldn't there be any pitfalls having a control engineering out of VB compared to a control from MFC?
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinsonwell my understanding is that ActiveX has been discontiued in .net and using windows forms controls is supposed to be the way to do it, but if I am going to run into problems with running on non windows system this will not be good, so anybody who know please give your input last thing I want to do is build this thing and it doesnt work accross the bourd, what about using the .net framework on the server to run the app on non windows systems?
-
Thanks for the reply, you said : "you need to write a browser plug in", this is completely new tech to me I am used to writing iether a standalone app or a asp.net webpage, not mixing the two and dont know where to start, i just tried writin a user conotrl, compling and then added this <object width="430" height="352" classid="OCTBulkMailer.dll#UserControl"></object> but all I get a a blank looking image place holder, LOL I know I must sound a bit like a retard but its like showing me a car and handing me the keys but I dont know what a car is or what it does.
To be honest, I've never written a control to be consumed by .NET, because it's a little user hostile, IMO. http://msdn.microsoft.com/msdnmag/issues/02/01/UserCtrl/[^] looks like what you need.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
I have a related question. I am sure VB 6 has ActiveX Control support. But my generic queries are: 1) Compared to developing in VC++ or MFC, wouldn't this mean by dependency on VB Components. I have a weak doubt that controls made out VB need VB Runtime Library or something like that (Pardon me for my bad memory that I could not recall) 2) Wouldn't there be any pitfalls having a control engineering out of VB compared to a control from MFC?
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis LevinsonYes, I work on a site which has a VB ActiveX control, and users need first to download the VB runtime before they can use it.
Vasudevan Deepak K wrote:
Wouldn't there be any pitfalls having a control engineering out of VB compared to a control from MFC?
Only that VB sucks :-)
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
well my understanding is that ActiveX has been discontiued in .net and using windows forms controls is supposed to be the way to do it, but if I am going to run into problems with running on non windows system this will not be good, so anybody who know please give your input last thing I want to do is build this thing and it doesnt work accross the bourd, what about using the .net framework on the server to run the app on non windows systems?
GDMFSOB wrote:
ActiveX has been discontiued in .net and using windows forms controls is supposed to be the way to do it
They can not do that outright. Not everyone would be capable or interested to download a huge bloated 23 MB runtime to view a little control.
GDMFSOB wrote:
with running on non windows system
This question itself should not come into this discussion. Since both the solutions we are trying to focus on (Windows Forms Vs ActiveX) are only for Windows Internet Explorer. Other browsers on Windows as well other platforms may be totally ignorant of these technologies. And regarding my query to Graus, my only apprehension was whether a control through MFC VC++ and VB would be identical or any pitfalls would be there? Without any preconcieved notions and prejudices, if we are trying to get a cross-platform cross-browser solution, I feel that we have to take the Java Applet route. There might be a vote down of this view. But I would appreciate, if some one votes down also clarifies and illuminates the arena.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
well my understanding is that ActiveX has been discontiued in .net and using windows forms controls is supposed to be the way to do it, but if I am going to run into problems with running on non windows system this will not be good, so anybody who know please give your input last thing I want to do is build this thing and it doesnt work accross the bourd, what about using the .net framework on the server to run the app on non windows systems?
You can actually create ActiveX controls in .NET, ActiveX is just COM. But, there's no point, that I can see.
GDMFSOB wrote:
but if I am going to run into problems with running on non windows system this will not be good
By definition, a windows forms control is not going to run outside of a windows machine.
GDMFSOB wrote:
what about using the .net framework on the server to run the app on non windows systems?
Not possible - the control is not running on the server. Your server has .NET by default, if the pages are ASP.NET, but the client needs it also to run a .NET control locally.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Yes, I work on a site which has a VB ActiveX control, and users need first to download the VB runtime before they can use it.
Vasudevan Deepak K wrote:
Wouldn't there be any pitfalls having a control engineering out of VB compared to a control from MFC?
Only that VB sucks :-)
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
Thank you. That was a good eye-opener.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
To be honest, I've never written a control to be consumed by .NET, because it's a little user hostile, IMO. http://msdn.microsoft.com/msdnmag/issues/02/01/UserCtrl/[^] looks like what you need.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Hi, I am stuck I cant find a simple example of Using Windows Forms Controls in Internet Explorer written in VB.net 2.0, i want to build a bulk emailer that will run in a web-browser on the client side that will get the email addresses and email message to send from the previous asp.net webpage, like an activex control but cant find anything in wriiten vb.net and all the C# things I have found are overly complicated and dont covert to vb too well. Anyone who could point me in the right direction would be greatly appreciated I have spent 2 days searching the net and cant find anything of any use. Thanks i advance