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. WPF
  4. Pass parameters

Pass parameters

Scheduled Pinned Locked Moved WPF
csharpwcfquestion
4 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.
  • M Offline
    M Offline
    mehrdadov
    wrote on last edited by
    #1

    Dear friends I want to pass a Form object through wcf as parameter but I can't. Is it possible to do that? Thanks

    Agh

    P 1 Reply Last reply
    0
    • M mehrdadov

      Dear friends I want to pass a Form object through wcf as parameter but I can't. Is it possible to do that? Thanks

      Agh

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      You can, but why would you want to do that? Surely the thing you're interested in is the data that the form contains; in which case, that is what you should be passing.

      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

      As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

      My blog | My articles | MoXAML PowerToys | Onyx

      M 1 Reply Last reply
      0
      • P Pete OHanlon

        You can, but why would you want to do that? Surely the thing you're interested in is the data that the form contains; in which case, that is what you should be passing.

        "WPF has many lovers. It's a veritable porn star!" - Josh Smith

        As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

        My blog | My articles | MoXAML PowerToys | Onyx

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

        I need it because I don't know what is my form and it dynamically changes in server and I want to get it in client and show it. but when I set my parameter as Form object and use svcutil,It shows error and cannot create client code.

        Agh

        K 1 Reply Last reply
        0
        • M mehrdadov

          I need it because I don't know what is my form and it dynamically changes in server and I want to get it in client and show it. but when I set my parameter as Form object and use svcutil,It shows error and cannot create client code.

          Agh

          K Offline
          K Offline
          Kevin McFarlane
          wrote on last edited by
          #4

          mehrdadov wrote:

          I don't know what is my form and it dynamically changes in server

          Are you saying that the server code instructs the client which form it should display? If so you should return some data which you can use as a key to determine which form to display.

          Kevin

          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