Results 1 to 2 of 2

Thread: how to pass value

  1. #1

    Thread Starter
    Fanatic Member karthikeyan's Avatar
    Join Date
    Oct 2005
    Location
    inside .net
    Posts
    919

    how to pass value

    hi ,i have two form in my project. in that first screen i have three textboxes for
    user id
    password
    Data Source

    if i fill that and click that submit button this details has to be sit in the connection string which is in the next form
    the folowing thing is in the second form:
    conn = New OracleConnection("User Id = ; password = ; Data Source = ")
    conn.Open()

    now u can see if i give that user id,password,datasource in the first screen this details has to come to second form and fill in the appropriate place.so please tell me how to do?give me coding for that.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: how to pass value

    Read the first tutorial link in my signature (all three parts). It is essential reading and will explain how to treat forms as objects and pass data between them.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width