Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Help with Using Windows Forms Controls in Internet Explorer .net 2.0

Help with Using Windows Forms Controls in Internet Explorer .net 2.0

Scheduled Pinned Locked Moved ASP.NET
csharphelpasp-netwinforms
12 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GDMFSOB
    wrote on last edited by
    #1

    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

    C G 2 Replies Last reply
    0
    • G GDMFSOB

      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

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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 )

      G V 2 Replies Last reply
      0
      • C Christian Graus

        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 )

        G Offline
        G Offline
        GDMFSOB
        wrote on last edited by
        #3

        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.

        C 1 Reply Last reply
        0
        • C Christian Graus

          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 )

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          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

          G C 2 Replies Last reply
          0
          • V Vasudevan Deepak Kumar

            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

            G Offline
            G Offline
            GDMFSOB
            wrote on last edited by
            #5

            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?

            C V 2 Replies Last reply
            0
            • G GDMFSOB

              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.

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              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 )

              G 1 Reply Last reply
              0
              • V Vasudevan Deepak Kumar

                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

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                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 )

                V 1 Reply Last reply
                0
                • G GDMFSOB

                  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?

                  V Offline
                  V Offline
                  Vasudevan Deepak Kumar
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  • G GDMFSOB

                    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?

                    C Offline
                    C Offline
                    Christian Graus
                    wrote on last edited by
                    #9

                    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 )

                    1 Reply Last reply
                    0
                    • C Christian Graus

                      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 )

                      V Offline
                      V Offline
                      Vasudevan Deepak Kumar
                      wrote on last edited by
                      #10

                      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

                      1 Reply Last reply
                      0
                      • C Christian Graus

                        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 )

                        G Offline
                        G Offline
                        GDMFSOB
                        wrote on last edited by
                        #11

                        Hi Thanks Christian, I saw that article already and but its in old .net and needed to be converted the converted version does not work so it looks like this stuff has not be covered on .net 2 yet i will carry on looking thanks for your input so far

                        1 Reply Last reply
                        0
                        • G GDMFSOB

                          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

                          G Offline
                          G Offline
                          GDMFSOB
                          wrote on last edited by
                          #12

                          Hi tahnsk for everyones input, I finally found something that made sence and worked sure it was written in C# but managed to sort it have a look here http://aspnet.4guysfromrolla.com/articles/052604-1.aspx[^]

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups