CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    Join Date
    Sep 2006
    Location
    Eastern, NC, USA
    Posts
    907

    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.

  2. #17
    Join Date
    Sep 2006
    Location
    Eastern, NC, USA
    Posts
    907

    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

  3. #18
    Join Date
    May 2000
    Location
    Langesund, Telemark in Norway!
    Posts
    292

    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.
    ==========================
    Lars Werner aka Large
    http://lars.werner.no/
    ==========================

  4. #19
    Join Date
    Sep 2006
    Location
    Eastern, NC, USA
    Posts
    907

    Re: New to c#, how to add user control?

    Interesting. Thanks for pointing this out.

  5. #20
    Join Date
    Sep 2005
    Posts
    1

    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

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured