리눅스맨

Can’t view designer when coding a form in C# 디자인폼 안보일때

Background Image
1,000만원 수익
Overlay Image

소스를 그대로 옮길경우 윈도우 폼이 보이지 않는 경우가 발생합니다.

그때 xml 설정을 해주어야하는데 그부분을 확인해보세요

<ItemGroup>

<Compile Include="Form_neighbor_tion.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form_neighbor_tion.Designer.cs">
<DependentUpon>Form_neighbor_tion.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="Form_neighbor_tion.resx">
<DependentUpon>Form_neighbor_tion.cs</DependentUpon>


</ItemGroup>

폼이 없는 경우 대부분 <SubType> 지정이 안되어져있는경우입니다.

이부분을 지정해서 다시 비쥬얼스튜디오를 실행하면 폼 디자인이 보입니다.

If you don’t have a form, [SubType] is not specified.

If you specify this part and run the visual studio again, you can see the foam design.

 

Background Image
1,000만원 수익
Overlay Image

게시됨

카테고리

작성자

태그: