How to update a ToolStrip after programmatically adding a ToolStripButton


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
In the constructor of a form, after the InitializeComponent, I add a ToolStripButton to a ToolStrip. When the form opens the new buttons isn't shown, until I manually move it. I've tried .Update, .Refresh, .Invalidate + .Refresh. I've tried these in the constructor, in form load, in form activate. Nada. How do you get a ToolStrip to repaint after changing the Items collection?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search