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. Visual Basic
  4. How to pass a parameter to windows application form the way we can do in a web form

How to pass a parameter to windows application form the way we can do in a web form

Scheduled Pinned Locked Moved Visual Basic
csharptutorial
4 Posts 4 Posters 1 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.
  • N Offline
    N Offline
    Naglaa Saeed
    wrote on last edited by
    #1

    I'm using vb.net application form My form requests user to enter ID in text area to retreive some data for printing I want to know is it possible to pass this ID as a paramter when I call the web application form without requesting user to submit it I mean that I will send user link of the application form with the ID as a parameter just as we do in a web form.

    D V M 3 Replies Last reply
    0
    • N Naglaa Saeed

      I'm using vb.net application form My form requests user to enter ID in text area to retreive some data for printing I want to know is it possible to pass this ID as a paramter when I call the web application form without requesting user to submit it I mean that I will send user link of the application form with the ID as a parameter just as we do in a web form.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Naglaa Saeed wrote:

      I mean that I will send user link of the application form

      Your question doesn't make sense. There's no such thing. You cannot instantiate, or call, a windows form from a URL, at least, not in the way you're implying. Are you asking how to call a windows form from a web form?? Or, forgetting the web analogy, are you asking how to pass a username to a login form and execute the code on the login form, without the user typing the information into the form??

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      1 Reply Last reply
      0
      • N Naglaa Saeed

        I'm using vb.net application form My form requests user to enter ID in text area to retreive some data for printing I want to know is it possible to pass this ID as a paramter when I call the web application form without requesting user to submit it I mean that I will send user link of the application form with the ID as a parameter just as we do in a web form.

        V Offline
        V Offline
        vaghelabhavesh
        wrote on last edited by
        #3

        You can use Parametrized constructor or Property if you want to pass a parameter from one Form to another.

        Naglaa Saeed wrote:

        I will send user link of the application form with the ID

        In this case, you can use start your application with commandline argument. In main method check the argument and set the value accordingly.

        1 Reply Last reply
        0
        • N Naglaa Saeed

          I'm using vb.net application form My form requests user to enter ID in text area to retreive some data for printing I want to know is it possible to pass this ID as a paramter when I call the web application form without requesting user to submit it I mean that I will send user link of the application form with the ID as a parameter just as we do in a web form.

          M Offline
          M Offline
          MohammadAmiry
          wrote on last edited by
          #4

          If I have understood you correctly, you might use commandline parameters to run your application, or as mentioned by crudeCodeYogi, by using parametrized constructors.

          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