c# - I accidentally deleted the Window Form Designer generated code in form.designer.cs -


i accidentally deleted of contents in windows form designer generated code in form.designer.cs , right design form not update automatically. no matter toolbox added (label, textbox or any), still remains old form.

how can solve this?

you can't regenerate designer code, because designer ui reflects designer code , not vice-versa. when add designer through toolbox, designer code updated based on new design.

there no possible way, afaik old designer unless you're using source control (team foundation server, git, etc..) , have committed previous changes somehow.

probably reason not update designer code manually next time.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -