Hi all,
I was working on my assignment few weeks before and used tab control in my project for improved visual appearance and I realised that users can change tab at anytime without even checking if all information in first tabpage was correct. I can fix this problem by writing few lines of codes, but i was wondering if there was any better and efficient way of doing the same thing?.
I'm using this code in the "enter" event of tabpage to take care of changing tabs.
tabcontrol1.selectedtab = tabcontrol1.tabpage1
and having other codes along with if and else statement.
I was working on my assignment few weeks before and used tab control in my project for improved visual appearance and I realised that users can change tab at anytime without even checking if all information in first tabpage was correct. I can fix this problem by writing few lines of codes, but i was wondering if there was any better and efficient way of doing the same thing?.
I'm using this code in the "enter" event of tabpage to take care of changing tabs.
tabcontrol1.selectedtab = tabcontrol1.tabpage1
and having other codes along with if and else statement.