[Mono-bugs] [Bug 485769] New: Remove element of a ToolStrip
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Mar 16 16:37:52 EDT 2009
https://bugzilla.novell.com/show_bug.cgi?id=485769
Summary: Remove element of a ToolStrip
Classification: Mono
Product: Mono: Runtime
Version: 2.4.x
Platform: i686
OS/Version: openSUSE 11.0
Status: NEW
Severity: Normal
Priority: P5 - None
Component: generics
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: ericc_75 at hotmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: DeveloperNet
Description of Problem:
I have written an small application (with VisualBasic 2008 Express) with a
toolbar (ToolStrip) dynamically build with the help of a xml file.
During execution, the user have the possibility to select an other xml file and
the toolbar is automatically rebuild.
Of course I need to clear the content of the ToolStrip first with the following
code :
' suppress all the existing button if any
For i = 1 To ToolStrip2.Items.Count
ToolStrip2.Items.Item(0).Dispose()
Next
On Linux with Mono (I try with version 2.0, 2.2, 2.4), only the first button is
suppressed.
On Windows with .NET, when I clear item at index 0, all the remaining buttons
seems to be re-indexed, so index0 always exist.
(if I do :
ToolStrip2.Items.Item(i).Dispose()
at one moment, the application crash as the itemx doesn't exist.
I don't try this on Linux-Mono)
ericc
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list