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. General Programming
  3. .NET (Core and Framework)
  4. Windows.Forms control in www

Windows.Forms control in www

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpjavajavascriptasp-netdotnet
6 Posts 4 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.
  • T Offline
    T Offline
    Tomas Petricek
    wrote on last edited by
    #1

    Hi, Is there any way how to insert class derived from Windows.Forms.UserControl (or Control) to Web page ? I am not talking about Asp.Net and i do not want to use it. (Asp.Net is great but i need to react to users input very fast without downloading web page again) I mean something like inserting (ActiveX conctol or Java applet) in the Web page. (I do not need to install this from web - everybody who will enter this page can have installed .Net framework and anything else). :confused: Thanks /* I'm sorry about my english but i hope you can understand this */

    N J V 3 Replies Last reply
    0
    • T Tomas Petricek

      Hi, Is there any way how to insert class derived from Windows.Forms.UserControl (or Control) to Web page ? I am not talking about Asp.Net and i do not want to use it. (Asp.Net is great but i need to react to users input very fast without downloading web page again) I mean something like inserting (ActiveX conctol or Java applet) in the Web page. (I do not need to install this from web - everybody who will enter this page can have installed .Net framework and anything else). :confused: Thanks /* I'm sorry about my english but i hope you can understand this */

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      Tomas Petricek wrote: mean something like inserting (ActiveX conctol or Java applet) in the Web page. I suppose you could either go with the Java applet X| or an ActiveX control (which I believe you would probably do in ATL). Does this help. Regardless of whether or not the end user has the .NET Framework or not, this is not required for a client if it is a web page that is being viewed. ActiveX controls download as plugins to the IE browser only. Hope this helps. :) Nick Parker
      May your glass be ever full. May the roof over your head be always strong. And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing


      1 Reply Last reply
      0
      • T Tomas Petricek

        Hi, Is there any way how to insert class derived from Windows.Forms.UserControl (or Control) to Web page ? I am not talking about Asp.Net and i do not want to use it. (Asp.Net is great but i need to react to users input very fast without downloading web page again) I mean something like inserting (ActiveX conctol or Java applet) in the Web page. (I do not need to install this from web - everybody who will enter this page can have installed .Net framework and anything else). :confused: Thanks /* I'm sorry about my english but i hope you can understand this */

        J Offline
        J Offline
        James T Johnson
        wrote on last edited by
        #3

        Yes it is possible, this code should do it (put it on your web page)

        This requires that you create a class library and put the control named myClass in it. myCtl is a client side name so you can manipulate the control with script.

        HTH,

        James
        Sig code stolen from David Wulff

        T 2 Replies Last reply
        0
        • J James T Johnson

          Yes it is possible, this code should do it (put it on your web page)

          This requires that you create a class library and put the control named myClass in it. myCtl is a client side name so you can manipulate the control with script.

          HTH,

          James
          Sig code stolen from David Wulff

          T Offline
          T Offline
          Tomas Petricek
          wrote on last edited by
          #4

          Wow ;P This is exactly what i wanted Than you :-D

          1 Reply Last reply
          0
          • J James T Johnson

            Yes it is possible, this code should do it (put it on your web page)

            This requires that you create a class library and put the control named myClass in it. myCtl is a client side name so you can manipulate the control with script.

            HTH,

            James
            Sig code stolen from David Wulff

            T Offline
            T Offline
            Tomas Petricek
            wrote on last edited by
            #5

            I like this!;P But i have another little problem with this: I don't know how to handle events of this control. i know how to change properties of this using <param>: <param name="Text" value="ButtonText"> or using JavaScript: myCtl.Text='NewBtnTex'; But i do not know if i can handle events and (if it is possible) how to do it :confused: Thank you:)

            1 Reply Last reply
            0
            • T Tomas Petricek

              Hi, Is there any way how to insert class derived from Windows.Forms.UserControl (or Control) to Web page ? I am not talking about Asp.Net and i do not want to use it. (Asp.Net is great but i need to react to users input very fast without downloading web page again) I mean something like inserting (ActiveX conctol or Java applet) in the Web page. (I do not need to install this from web - everybody who will enter this page can have installed .Net framework and anything else). :confused: Thanks /* I'm sorry about my english but i hope you can understand this */

              V Offline
              V Offline
              Victor Vogelpoel
              wrote on last edited by
              #6

              Google for "SimpleControl". Then google for "Chris Sells", because he's written a few articles on this subject (MSDN and MSDN magazine) Also look at http://www.sellsbrothers.com/wahoo[^], Make sure you know something about .Net code access security, permissions and codegroups, because you're gonna see security permission exceptions... VictorV

              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