-
May 6th, 2007, 01:33 PM
#16
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.
-
May 6th, 2007, 01:35 PM
#17
Re: New to c#, how to add user control?
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
-
May 6th, 2007, 01:38 PM
#18
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.
-
May 6th, 2007, 02:06 PM
#19
Re: New to c#, how to add user control?
Interesting. Thanks for pointing this out.
-
April 27th, 2008, 03:20 AM
#20
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|