Re: New to c#, how to add user control?
I have no idea if I did anything right or not, but try this just for grins:
- In your MainFrame.cs file add the line "PlankView pv = new PlankView();" after InitializeComponent();
- compile and run your app
- NOW look in the toolbox. Did the component appear?
Let me know if this helps.
Re: New to c#, how to add user control?
Quote:
Originally Posted by Large
It seems to be a strange bug for me. Guess the IDE thingy ain't so great after all
No, my post was wrong (buggy -- yeah, that's right!). Please ignore that post, but not my post immediately preceding this one. I have deleted the erroneous post.
/Pete
Re: New to c#, how to add user control?
Please take a look on the post: http://www.codeguru.com/forum/showpo...5&postcount=14
The problem is on every control you added. I just worked on getting the Officepanels (http://www.codeproject.com/useritems...007_Panels.asp) working here. The Tabbutten and Ribbonpanel did not show in the toolbox until I took full reset of the configuration.
So this is not a "random" problem. The toolbox did not work correctly when I choosed c++ layout insted of C# layout.
Re: New to c#, how to add user control?
Interesting. Thanks for pointing this out.
Re: New to c#, how to add user control?
It isn't necessary to reset the whole configuration.
Try this:
1) Close your solution
2) Tools->Options->"Windows Form Designer"
- find AutoToolboxPopulate property in Toolbox category and set 'true'
3) Open your solution.
Thanks,
Jordan