TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Chethan Chinmay
NA
51
5.7k
c#, wpf, tab control change
Jun 30 2018 12:11 AM
if some function is running, when u want to change other tabs it should not happen, i need to give pop up like "please stop test and change tab"... how to do this
i trid this code but it is continuosly looping and giving pop up
private async void TabControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (e.OriginalSource == MainTabControl)
{
if (MainTabControl.SelectedIndex != -1)
{
if (SharedInfo.TestInProgress)
{
//e.Handled = true;
if (MainTabControl.SelectedIndex != 0)
{
MainTabControl.SelectedIndex = 0;
await this.ShowMessageAsync(
"Test is in Progress...",
"Let the test be completed...");
return;
}
}
}
}
}
Reply
Answers (
1
)
print challan forms in asp.net
how to upload a images in database