1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Passing Data between Forms.

Discussion in 'C#' started by bouzoukicentral, May 10, 2010.

  1. bouzoukicentral

    bouzoukicentral New Member

    Hey guys im new to this forum and your help would be very much appreciated.

    Didnt know where to post so sorry.

    Here is my situation:

    I have 2 forms. Using Visual Studio.

    On Form 1 there is a populated combo box. This was done so by running a query through it and populating it with PUZ_ID values from a data set.

    On form two there is a tool strip and below is a search query.

    I need to be able to select the value i want in the combo box on form 1, and launch a button that opens form 2, which has loaded the data that i binded onto the form.

    Anyone have any ideas/code or need me to clear this up a bit more?

    So i need to run something through a query, or make something public or what?

    Your help is much appreciated.
  2. satyedra pal

    satyedra pal New Member

    In what type project you want to access as in window based or web Based.
    In window based project you will provide it as public and you can use it by using object of page
  3. DevPro

    DevPro New Member

    Pass the data as a Form (class) parameter.

    Wouldn't it be pageobject.TextBox.Text ?

Share This Page