open new Screen

radim
radim Czech republic
Hi,
 

I created 4 screens for Flexpendant in Visual Studio 2008. I created button. I want to open by buton new window. I download the files to Home directory and tested. But it did not open new window. I close the main window but did not open new window. Could you write me program code C#. How to open new window from Event method for button. 

 

Here is my program code for Event method:

 


private
void btRollDoors_Click(object sender, EventArgs e)
{
  TpsRollDoors windowTpsRollDoors =
new TpsRollDoors();


   windowTpsRollDoors.Show();
}

 

Thank you for answer. 

 

Radim

Comments

  • carlosmtz2000
    carlosmtz2000 United States ✭✭
    Hi,
     

    You have to use the method ShowMe. Examples are available in the RAB Help ..

     

    BR
    Carlos Martinez
    ABB
  • stefanper
    stefanper Italy
    Hi,
      i've installed visualstudio 2008 and sdk 6.08.
    I've tried to open a new view called "TpsControl1", but I do not have a "showme" method.

    Does anyone know why?

    Tnx



  • stefanper
    stefanper Italy
    Ok, the empty view isn't a form, so it's normal that "showme" method doesn't exist.

    But for empty view.. how can I change page? the show method doesn't work.