?
Solved

Program hanging when tab control selectedindex changed in code

Posted on 2011-10-16
5
Medium Priority
?
478 Views
Last Modified: 2012-05-12
I am having a problem with a tab control in that when I change the selectedindex in code the program hangs, I have tried using selectedtab as well and the same behaviour occurs.

If I manually change the tab by clicking on it that works, and if I add a command button with the command to change the tab that works as well. I have also tried introducing a delay with a timer and that also fails. I don't know of any way in which to find out what the hang is caused by. Everythng just stops working, but I can stop debugging.

Any ideas anyone?
0
Comment
Question by:grwallace
  • 3
5 Comments
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 36976126
Can you please show us the code that works and that the code that causes the hang?  Gotta start somewhere...
0
 

Author Comment

by:grwallace
ID: 36976257
Hi,

There was a datarepeater on the form and it seems to be something to do with that, I have replaced that with a grid to see how I get on
0
 
LVL 14

Expert Comment

by:nishant joshi
ID: 36976332
r u using timer in your app?
0
 

Accepted Solution

by:
grwallace earned 0 total points
ID: 37062204
I removed the datarepeater
0
 

Author Closing Comment

by:grwallace
ID: 37089702
I had to change the program
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month15 days, 6 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question