右击也不显示查看设计器
工程文件 .csproj中将
<Compile Include="OperatorWindows\Connection.cs" />
<Compile Include="OperatorWindows\Connection.Designer.cs">
<DependentUpon>Connection.cs</DependentUpon>
</Compile>
修改为
<Compile Include="OperatorWindows\Connection.cs" >
<SubType>Form</SubType>
</Compile>
<Compile Include="OperatorWindows\Connection.Designer.cs">
<DependentUpon>Connection.cs</DependentUpon>
</Compile>
winForm combobox动态加载数据后不能设置选中项
if (keyWordsText != "")
{
combRegionSource.SelectedIndexChanged -= combRegionSource_SelectedIndexChanged;
combRegionSource.SelectedItem = keyWordsText;
}
combRegionSource.SelectedIndexChanged += combRegionSource_SelectedIndexChanged;
winform界面看不到控件,大纲也不显示。但是在属性上可以看到。
解决办法是删除对应.Designer.cs中的对应代码。