locked
Como pasar de datos de una forma de windows a otra RRS feed

  • Question

  • Estoy programando una forma de windows para captura de datos y necesito actualizar en otra forma de windows con los datos de la primera forma. Es decir de form1 tengo areas de texto, que deseo poner en la forma2. La pregunta es ¿Cual es como mando los datos a la forma1 a la forma2.
    ITIC Luis Carlos Lugo
    • Moved by Liliane Teng Thursday, May 12, 2011 10:02 AM (From:Visual Basic General)
    Thursday, May 5, 2011 11:52 PM

Answers

  • Luis Carlos,

    As Renee so friendly wrote is this an English language forum, that does not mean all visitors have as the native language English but they use that language here to communicate as good as we can (And don't look at those who never have spoken more languages than English try us to tell to show their superiority in that)

    :-)

    So try to do the same or visit the Spanish forums where I know very good MVP are active beside other people who can help you. You get that by simply changing the United States above this forum in Espana. (You know in the Wall Disney culture it is a small world so if you are from another country where Spanish is spoken still Espana)

    However as question on your problem.

    Pass the data simply to that other form by setting a friend or public property in that other form and pass that after that you have constructed that one.

    dim OltraForma as new Form OltraForm 
    OltraForma.MyPublicProperty = myData
    OltraForma.ShowDialog 

     


    Success
    Cor

    • Proposed as answer by Liliane Teng Thursday, May 12, 2011 10:01 AM
    • Marked as answer by luclugo Tuesday, May 17, 2011 3:25 PM
    Friday, May 6, 2011 6:53 AM

All replies

  • Luis Carlos,

    As Renee so friendly wrote is this an English language forum, that does not mean all visitors have as the native language English but they use that language here to communicate as good as we can (And don't look at those who never have spoken more languages than English try us to tell to show their superiority in that)

    :-)

    So try to do the same or visit the Spanish forums where I know very good MVP are active beside other people who can help you. You get that by simply changing the United States above this forum in Espana. (You know in the Wall Disney culture it is a small world so if you are from another country where Spanish is spoken still Espana)

    However as question on your problem.

    Pass the data simply to that other form by setting a friend or public property in that other form and pass that after that you have constructed that one.

    dim OltraForma as new Form OltraForm 
    OltraForma.MyPublicProperty = myData
    OltraForma.ShowDialog 

     


    Success
    Cor

    • Proposed as answer by Liliane Teng Thursday, May 12, 2011 10:01 AM
    • Marked as answer by luclugo Tuesday, May 17, 2011 3:25 PM
    Friday, May 6, 2011 6:53 AM
  • Thank you very much, I'll try with this code...

    ITIC Luis Carlos Lugo
    Friday, May 6, 2011 6:26 PM
  • Yo lo hago asi en asp.net:

    Session["va1"]=valor1;

    Session["va2"]=valor2

    Recupero la variable asi:

    string v1 = Session["va1"].ToString();
    string v2 = Session["va2"].ToString();
    Monday, July 29, 2013 5:48 PM