Visual Studio Design View - form is blank

后端 未结 6 1068
别跟我提以往
别跟我提以往 2021-02-04 14:38

I have a C# project with two forms. All compiles well. When I run the project, all forms are drawn as they are expected to.

A couple of days back, the DesignView of

6条回答
  •  再見小時候
    2021-02-04 15:28

    For those searching around and finding no solace, I have another solution. The project I inherited has horrible code quality and the previous developer had mixed case all over his code because "It's case insensitive, so it doesn't matter"

    So, while PopulateRevs is, in fact, identical to POpulateREvs in Visual Basic, that kind of laziness leads to issues. To wit:

    
      Partmaster.vb
    
    
      Form
    
    

    I happened to see this in the .vbproj file while looking at other solutions that didn't work. I happened to change Partmaster.Designer.Vb to Partmaster.Designer.vb (lowercase extension) and it worked.

    So as another solution, while Visual Basic is not case sensitive, it looks like the .vbproj file is. If you're stumped, another thing to make sure is that your file names and .proj files share the same case.

    (I realize this is tagged C#, but I tested this in C# and the mixed case will cause problems there as well.)

提交回复
热议问题