how to sedn data between two form

  • Thread starter Thread starter QT
  • Start date Start date
Q

QT

Dear Sirs,

I want to send user name when I was openning another form in VB net. I try
to find solution but no success. How can I do that?
 
Windows or Web app?

In a Windows app, simply create a property in one of the forms and you can
then set it using:

FormWithProperty.PropertyName = value

or retrieve using

Dim output As String = FormWithProperty.PropertyName

With a web app, you are dealing with stateless commmunication, which means:

1. Storing in session (generally not the best)
2. Using the Request collection (when submitted to another page)
3. Purposefully setting the value in the querystring of a link to that page

Etc., ad nauseum. It gets even easier in the next version (Whidbey).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
 
Back
Top