Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 20th, 2007, 01:18 AM
Registered User
 
Join Date: Jun 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default tabcontrol issue/bug

I am aware that tabcontrol has many issues (which there is a trend from MS to call them limitations but I call them bugs) and unfortunately I am here to add another.

Here is my sitution: I am using Framework 2.0 for a Winforms app (IDE VS2005 sp 1). I am using a tabcontrol to house many txtBoxes (single and multiline) and comboboxes all databound. When i try to add append a string to a txtbox that is inside the tabcontrol during form load the code is tottally ignored.

To be more precise: Forms loads and displays data, on second ta i have a multiline txt box that contains the comments the user have entered for the particual record.When try to append the record's id and date created (all valid field in my db and loaded during the load event) the code gets executed the string is appended and when form load exits the txtbox contains just the data from the db field that it is bound, noit my appended string.

Funny thing is, that when I try doing the same thing with a databound txtbox outside the tabcontrol it works fine (it even works fine when the txtbox is inside a different container like a groupbox) so I am sure that is BUG of tabcontrol. Tried all possible events and allthough they fire they still dont behave as expected.

If anyone has encountered it and solved or you see me missing something here please let me know otherwise its yet another glorious bug for good ol' MS (cheers lads)!

 
Old June 21st, 2007, 05:33 AM
Registered User
 
Join Date: Jun 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had microsoft clarify the situation and as it seems it is not really a problem withthe control but rather the databinding logic to which they explained to me the fact the (belive it or not) controls that are not immediately visible i.e. the first tabpage of a tabcontrol are not updated programmatically during allthough the code seems to run with no bugs.

Now so you noe, yet another briliant feature from MS to add to that amazing tabControl






Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug or no to bug learning C using VS.Net to compil tesh All Other Wrox Books 0 February 14th, 2007 01:06 PM
Toolstrip and TabControl pamskate5 Visual Basic 2005 Basics 0 October 12th, 2006 04:35 PM
need help on tabcontrol Haydeé VB.NET 2002/2003 Basics 1 May 23rd, 2006 04:31 AM
tabControl ColdFusion C# 7 May 15th, 2006 05:55 AM
OnMouseHover Issue (Bug?) pagates General .NET 0 February 4th, 2005 09:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.