Can I modify Designer.vb (form designer) to remove a DataSet control from winforms windows?
I am attempting to update an existing winforms applic开发者_如何学编程ation, that was created with a dataset control on all the winforms pages. I have ported it from VS 2008 to VS 2010 and I need to update the database section and connect it to the SQL backend using traditional code method.
In the Solution explorer, when I click on the Dataset files, and click "Exclude From project" I am unable to build the project.
Is it advisable to comment out the code lines that refer to the dataset in the .designer.vb files?
If you comment the lines from the Designer file, they will just get removed once resaved.
The designer code file is generated when the Form is saved, so it'll just overwrite it. I've done this a few times when things have gone wrong. Make sure you have a backup though!
精彩评论