VB.Net data designer conversion

k3n51mm

Active member
Joined
Mar 7, 2007
Messages
40
Programming Experience
3-5
:cool:In Visual Studio 2005 (VB.Net), how do I take a graphically-designed dataset and change it into code?
 
It already is code, if you click the icon in Solution Explorer to "show all files" and expand the "+" at the Dataset.xsd you will see the linked Dataset.Designer.vb. This is the same as designer generated code for forms work.

If you're wondering how to add an instance of it to a form, add Dataset from toolbox and select "typed dataset" and your schema, now you will see a Dataset1 instance below the form view.
 
If you've already created a typed DataSet in your project then it should appear in the Toolbox with the other components. If you want to add an instance to a form then you do it the same way you do with any other item in the Toolbox: drag it to the form or double-click it. Just like every other component in the Toolbox, you can also create an instance in code the same way you do any other class, because it is just like any other class.
 
Back
Top