Visual Studio工具箱焦虑 [英] Visual Studio Toolbox angst

查看:111
本文介绍了Visual Studio工具箱焦虑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Arghhhhh !!!

有人可以帮我解释一下吗?我想在同一解决方案的另一个项目的表单设计视图中,使用一个项目的自定义用户控件.所以,我想,好吧,我将控件添加到工具箱中(没问题,我可以使用选择工具箱项目"选项,也可以将程序集拖到工具箱上),然后拖动控件到我的表格上.简单的.为什么哦,为什么在将控件类添加到表单后对表单控件进行更改时,表单上的控件却没有更新?我向控件添加了一些属性,但是当我在窗体上选择控件时,属性框中没有提供这些属性.我以为我会尝试通过将代码添加到设计器文件中来解决它(我知道我不应该忍受),并且它可以很好地编译,但是当我尝试在设计视图中查看表单时,我得到了一堆警告告诉我那些属性不会退出(即使它可以编译!!)X | X | X |

我在想它会以某种方式为设计人员保留该特定控件的程序集版本,但我在任何地方都找不到.

Arghhhhh!!!

Can someone explain this for me? I want to use a custom user control from one project in the design view of a form in another project in the same solution. So, I think to myself, OK I''ll add the control to the toolbox (no problem there, I either use the ''Choose Toolbox Items'' option or I drag the assembly onto the toolbox) and then I drag the control on to my form. Simple. Why oh why doesn''t the control on the form update when I make changes to the control class after it''s been added to the form? I added some properties to the control but they aren''t offered up to me in the properties box when I select the control on the form. I thought I''d try to get around it by adding the code into the designer file (I know I shouldn''t but bear with me) and it compiled fine, but when I try to view the form in design view I get a bunch of warnings telling me those properties don''t exits (even though it compiles!!!) X| X| X|

I''m thinking it somehow retains the assembly version for that particular control for the designer but I can''t find that anywhere. It''s driving me nuts!

推荐答案

我的糟糕.我的项目参考不是在本地复制(我想这是从那里获取设计器定义的地方).
My bad. My project reference wasn''t copying locally (which is where I guess it gets the designer definition from).


这篇关于Visual Studio工具箱焦虑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆