PC Review


Reply
Thread Tools Rate Thread

Controls.Clear() fail

 
 
Jens O
Guest
Posts: n/a
 
      28th Aug 2003
I have a TabPage control in a Form that I want to
add/remove TabPages to/from like:

TabControl tabControl1;
TabPage tabPage1;
TabPage tabPage2;

// Add tabs
tabControl1.TabPages.Add(tabPage1);
tabControl1.TabPages.Add(tabPage2);

I now want to remove tabPage2:
tabControl1.TabPages.Remove(tabPage2);

Now clicking the 'X' on the caption bar fails to close the
window. I DO NOT want to Dispose tabPage2, which may fix
the bug. Do You have a solution? Is this a known bug? When
will it be fixed?
Thanks, Jens

 
Reply With Quote
 
 
 
 
Gabriele G. Ponti
Guest
Posts: n/a
 
      28th Aug 2003
Hi,

I tried to reproduce the problem, with no success. After removing the second
tab the form closes regularly. Can you post your source code?

Gabriele

"Jens O" <(E-Mail Removed)> wrote in message
news:0bc301c36d69$7ff2ad30$(E-Mail Removed)...
> I have a TabPage control in a Form that I want to
> add/remove TabPages to/from like:
>
> TabControl tabControl1;
> TabPage tabPage1;
> TabPage tabPage2;
>
> // Add tabs
> tabControl1.TabPages.Add(tabPage1);
> tabControl1.TabPages.Add(tabPage2);
>
> I now want to remove tabPage2:
> tabControl1.TabPages.Remove(tabPage2);
>
> Now clicking the 'X' on the caption bar fails to close the
> window. I DO NOT want to Dispose tabPage2, which may fix
> the bug. Do You have a solution? Is this a known bug? When
> will it be fixed?
> Thanks, Jens
>



 
Reply With Quote
 
Gabriele G. Ponti
Guest
Posts: n/a
 
      28th Aug 2003
Hi,

I used your code, and I'm still able to close the form after removing the
tab. Can you describe the steps to reproduce the problem?

Gabriele


 
Reply With Quote
 
Gabriele G. Ponti
Guest
Posts: n/a
 
      28th Aug 2003
I'm using 1.1 here.

"Jens O" <(E-Mail Removed)> wrote in message
news:0dcb01c36d7f$a9c96c50$(E-Mail Removed)...
> Hi!
>
> I just press the button "button1", which removes the tab.
> After that, the close button (X) stops working.
>
> I am using Microsoft .NET Framework 1.0 Version 1.0.3705.
>
> Jens
>
> >-----Original Message-----
> >Hi,
> >
> >I used your code, and I'm still able to close the form

> after removing the
> >tab. Can you describe the steps to reproduce the problem?
> >
> > Gabriele
> >
> >
> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA to clear controls Accessor Microsoft Access VBA Modules 2 29th Sep 2009 10:53 AM
Controls.Clear() CF 2.0 MDB Microsoft Dot NET Compact Framework 3 15th Nov 2007 01:06 PM
Custom attributes on controls fail validation =?Utf-8?B?RG90Y29t?= Microsoft ASP .NET 1 21st Nov 2005 01:16 AM
ActiveX controls fail to load =?Utf-8?B?VGhvbQ==?= Windows XP Internet Explorer 5 11th Nov 2004 09:00 PM
Controls.Clear and Controls.Add very slow Shane Microsoft Dot NET Compact Framework 3 23rd Sep 2004 08:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:06 AM.