开发者

Changes on GUI (design mode are applied) but when I build the exe changes are not applied

开发者 https://www.devze.com 2023-03-15 00:32 出处:网络
Im working on a C# project and the main window has tabs and a menu on the top. I wanted to add some style to the program and I added some icons and change the colors. Everything is fine in design mode

Im working on a C# project and the main window has tabs and a menu on the top. I wanted to add some style to the program and I added some icons and change the colors. Everything is fine in design mode because I can see the changes that I'm doing, But for some reason when I build the progra开发者_开发知识库m or run debug mode or release everything changes(including the top) except the content of the tabs.The tabs are not locked and also I can see the change in the design mode as I said. any Ideas?


Make sure you are setting all the control's anchors right... if you don't you're likely to get all the controls missplaced on runtime.

What is "the top"?? If you mean that the tab bar changes the order of the content (but still keeps the same content) then perhaps you could tell us what kind of tab are you using... .NET's? a 3rd party?

Can you give us some snapshop of what you see in design mode vs. what you get after you compile?


I have found that with some changes (such as column sizes in a ListView) the changes are not always applied. What seemed to work for me was closing the design view and opening is up again. Probably also had something to do with the fact that my view (interface) was a UserControl that required rebuilding.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号