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. JavaScript
  4. embed javascript code in c#

embed javascript code in c#

Scheduled Pinned Locked Moved JavaScript
csharpjavascript
7 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.
  • M Offline
    M Offline
    mrx100
    wrote on last edited by
    #1

    please i want to embed javascript code in c# windows form application & i use web browser control to display page what should i do & thanks

    L A Z 3 Replies Last reply
    0
    • M mrx100

      please i want to embed javascript code in c# windows form application & i use web browser control to display page what should i do & thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      mrx100 wrote:

      i want to embed javascript code in c# windows
      form application

      You cannot do that, and why would you want to.

      Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness

      M 1 Reply Last reply
      0
      • L Lost User

        mrx100 wrote:

        i want to embed javascript code in c# windows
        form application

        You cannot do that, and why would you want to.

        Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness

        M Offline
        M Offline
        mrx100
        wrote on last edited by
        #3

        i want to use google api v3 javascript code i want this javascript code : var myLatlng = new google.maps.LatLng(30.050144, 31.240042); take latitude & longitude from my windows form application i can show page in webbrowser control but it's static

        L 1 Reply Last reply
        0
        • M mrx100

          i want to use google api v3 javascript code i want this javascript code : var myLatlng = new google.maps.LatLng(30.050144, 31.240042); take latitude & longitude from my windows form application i can show page in webbrowser control but it's static

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Like I said, you can't.

          Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness

          1 Reply Last reply
          0
          • M mrx100

            please i want to embed javascript code in c# windows form application & i use web browser control to display page what should i do & thanks

            A Offline
            A Offline
            avatar23
            wrote on last edited by
            #5

            Let me get this straight: you want to select lat an lon in your windows form and the using the GoogleMaps api open a webpage in your browser (probably google.maps) centered on that location? Because if you do, my friend there is no way to do it. Javascript works inside the browser. Why dont you make a web app on a local web server (e.g apach on your system and create the form in there using html or php. then sent the selected data by query string. If you want sent me some pseudocode for what you want to do and i see what i can offer.

            They call me BPIS (Beastly Powerfull Immensly Stupid) and i let them.

            1 Reply Last reply
            0
            • M mrx100

              please i want to embed javascript code in c# windows form application & i use web browser control to display page what should i do & thanks

              Z Offline
              Z Offline
              ZurdoDev
              wrote on last edited by
              #6

              I don't use the webbrowser control but it is my understanding it works just like IE, so you build a webpage that does what you want, deploy it with your windows app and then load the page into the webbrowser control. So, what part are you having trouble with?

              There are only 10 types of people in the world, those who understand binary and those who don't.

              M 1 Reply Last reply
              0
              • Z ZurdoDev

                I don't use the webbrowser control but it is my understanding it works just like IE, so you build a webpage that does what you want, deploy it with your windows app and then load the page into the webbrowser control. So, what part are you having trouble with?

                There are only 10 types of people in the world, those who understand binary and those who don't.

                M Offline
                M Offline
                mrx100
                wrote on last edited by
                #7

                thanks ryanb31 for answer but iam already solve this problem using webbrowser control :)

                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