0

I vaguely remember in my ASP.NET days a way to drag and drop something like a data connection onto the page to automatically generate controls. I would grab SQLDataConnection1 (or something) that was set to pull back Name, Address and Phone from the Customer table, drop the control or something on the page and it would create textbox controls onto the page for Name, Address and Phone.

This was a long time ago. Is this possible in Windows Forms? Can anyone expand on this concept to let me know the proper sequence, please?

user3179585
  • 123
  • 1
  • 1
  • 11

1 Answers1

0

The solution is to look in the Data Source tab and look at your data sources.

enter image description here

Highlighting the field from the data source will reveal a drop down that you can use to change the control type.

enter image description here

Choose the control type you want and then drag the field to the form and drop it.

enter image description here

The control and a label are added.

user3179585
  • 123
  • 1
  • 1
  • 11