I have this custom user control that has a ToolStrip and a TabControl and I'm adding my own designer to the user control so at design-time I can automate some actions. The smart tag panel as a verb called "Insert New Page", this verb is going to add a button the ToolStrip and a Tab to the TabControl every time you click on it.
Well, part of this works, the other part, doesn't. When you click the "Insert New Page" verb, the button will be added to the ToolStrip and the tab will be added to the TabControl, also, if you open "Form1.Designer.cs", you will see that the code for the button/tab, was generated.
However, if you run the application after adding one or more buttons/tabs, the Form will be pratically empty. Only the user control will be there, but not the added button/page. And the code is on the "Form1.Designer.cs" file.
I'm pasting below the most important code about this (I think) but I am also attaching a "DesignerTest.zip" file which is a complete solution with the above description of my control and what I'm tyring to do so you can test for yourself without having to recreate everything.
Just launch the solution in VS, select the only control on the Form, click "Insert New Page" and F5 the application and see what happens...
RIP Hotlips.....
IMHO, her best scenes were the few where she dared to let her REAL feminine side show through from underneath all that crappy, worn-torn soldier facade that she had to keep up with...she instantly lit up every room or situation where she was featured !
Helium Converter 3.3.69.0 by Razvan Serea
Helium Converter is a free Windows utility for converting audio files between formats such as MP3, FLAC, AAC, WMA, OGG, and WAV. It supports batch conversion, preserves or updates tag information, and offers features like volume normalization. With a simple interface, it's ideal for users who need to convert large music libraries quickly and efficiently while retaining metadata. Helium Converter key features: Supports file formats: MP3, MP4, FLAC, AAC, M4A, WMA, WAV, OGG, OPUS, APE....
Batch conversion for large music libraries
Preserves and edits metadata (ID3, Vorbis Comments, etc.)
Volume normalization to equalize loudness
Album art extraction and embedding
Drag-and-drop interface for quick file selection
Adjustable encoding parameters (bitrate, sample rate, channels)
Uses internal codecs for consistent performance
Supports CUE sheets for split track conversion
File renaming based on tags during export
Unicode support for international file and tag names
Logging of conversion processes for troubleshooting
Multi-core CPU support for faster conversions
Download: Helium Converter 3.3.69.0 | 25.1 MB (Freeware)
Links: Helium Converter Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
Crowdstrike the same service provider that caused millions of in damages? I hate disliking a company for a singular failure but they really screwed up.
Question
ProclaimDragon
I have this custom user control that has a ToolStrip and a TabControl and I'm adding my own designer to the user control so at design-time I can automate some actions. The smart tag panel as a verb called "Insert New Page", this verb is going to add a button the ToolStrip and a Tab to the TabControl every time you click on it.
Well, part of this works, the other part, doesn't. When you click the "Insert New Page" verb, the button will be added to the ToolStrip and the tab will be added to the TabControl, also, if you open "Form1.Designer.cs", you will see that the code for the button/tab, was generated.
However, if you run the application after adding one or more buttons/tabs, the Form will be pratically empty. Only the user control will be there, but not the added button/page. And the code is on the "Form1.Designer.cs" file.
I'm pasting below the most important code about this (I think) but I am also attaching a "DesignerTest.zip" file which is a complete solution with the above description of my control and what I'm tyring to do so you can test for yourself without having to recreate everything.
Just launch the solution in VS, select the only control on the Form, click "Insert New Page" and F5 the application and see what happens...
DesignerTest.zipFetching info...
Link to comment
https://www.neowin.net/forum/topic/574668-c-adding-buttonstabs-to-a-toolstriptabcontrol-in-my-user-control/Share on other sites
3 answers to this question
Recommended Posts