Event used to change pages in a page form?

  • Thread starter Thread starter Stephen Russell
  • Start date Start date
S

Stephen Russell

I have a multi page form, and in some processing I need the user to switch
to a different page.

This code doesn't seem to get the switch to happen.

this.dsVehicle = this.oSingle.GetVehicle(lnKey); // update dataset for
editing
this.VehiclesPage.Show(); // switch page
 
Stephen Russell said:
I have a multi page form, and in some processing I need the user to switch
to a different page.

This code doesn't seem to get the switch to happen.

this.dsVehicle = this.oSingle.GetVehicle(lnKey); // update dataset for
editing
this.VehiclesPage.Show(); // switch page

If VehiclesPage is a Form, perhaps BringToFront will help it to show?

Best Regards,

Andy
 
This is it :

this.dsVehicle = this.oSingle.GetVehicle(lnKey);

this.TabControl.SelectedTab = this.VehiclesPage ;
 
Back
Top