English 中文(简体)
问题财产设置
原标题:Problematic Property Setting

我正与 WindowsForms Application 库一起建立一个工程,一切都进展顺利, 直到我注意到类属性不再在运行时设定。 我设置菜单节热键时, 第一次出现这种情况: 设计师的设置, 代码就在那里, 我确保没有任何其它东西会通过使用方法而不是属性格式来偷偷改变运行中的值。 然后, 我设法通过调用一种在初始化方法之后专门设定菜单节热键的方法来解决这个问题 。

现在,对接属性将无法设置, 换句话说: 我设置了一个控码码头样式来对接. 填充。 当我最大化窗口时, 它似乎从未设置过码头样式, 但声明的代码仍然在! 码头装填属性刚刚成功运行...

我找了一天与我类似的问题, 只找到一个结果 ,但这个提问者没有提供好答案~在我看来。我没有多少时间可以帮忙!

在那个时候,我把所有的控制器都移植到一个新的形式上。这似乎能为过去项目中的其他两起事件提供诡计...

问题回答

我对视觉工作室有奇怪的结果,有时会失去理智。退出和重新启动似乎可以修复它。你使用什么版本?





相关问题
Bring window to foreground after Mutex fails

I was wondering if someone can tell me what would be the best way to bring my application to the foreground if a mutex was not able to be created for a new instance. E.g.: Application X is running ...

How to start WinForm app minimized to tray?

I ve successfully created an app that minimizes to the tray using a NotifyIcon. When the form is manually closed it is successfully hidden from the desktop, taskbar, and alt-tab. The problem occurs ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

Handle DataTable.DataRow cell change event

I have a DataTable that has several DataColumns and DataRow. Now i would like to handle an event when cell of this DataRow is changed. How to do this in c#?

Apparent Memory Leak in DataGridView

How do you force a DataGridView to release its reference to a bound DataSet? We have a rather large dataset being displayed in a DataGridView and noticed that resources were not being freed after the ...

ALT Key Shortcuts Hidden

I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not ...

WPF-XAML window in Winforms Application

I have a Winforms application coded in VS C# 2008 and want to insert a WPF window into the window pane of Winforms application. Could you explain me how this is done.

热门标签