J
JRStern
Guest
Im going to post just the kind of really dumb newbie question that I always hate in the forums where I know stuff, but here goes:
I want to create a very simple winform app that polls a couple of SQL Server tables every few seconds and writes the results to a couple of text windows. I want to do this in code, no bound GUI controls at all. BUT I see in Visual Studio theres a wizard to add a datasource, so I did that, and it adds some stuff to the project tree, and there it is. And then theres a data control I dragged and dropped onto my design view, and now it sits in a little frame at the bottom of the window, and I think it knows about the datasource because I chose it from a list in a dialog that popped up when I dropped it.
But Ive been Googling and Binging all over the place looking for an example of what to do next! If I want to put some code in a button event to query the database, get results, and write to the text controls - do I need to import the names, add header files, I think it already has the connection string - just need an example
Seems like every example on the Interwebs is for a bound or unbound data grid. I just want to use these wizard-created widgets properly but programmatically - if that even makes sense!
Thanks, your C# newbie:
Josh
Continue reading...
I want to create a very simple winform app that polls a couple of SQL Server tables every few seconds and writes the results to a couple of text windows. I want to do this in code, no bound GUI controls at all. BUT I see in Visual Studio theres a wizard to add a datasource, so I did that, and it adds some stuff to the project tree, and there it is. And then theres a data control I dragged and dropped onto my design view, and now it sits in a little frame at the bottom of the window, and I think it knows about the datasource because I chose it from a list in a dialog that popped up when I dropped it.
But Ive been Googling and Binging all over the place looking for an example of what to do next! If I want to put some code in a button event to query the database, get results, and write to the text controls - do I need to import the names, add header files, I think it already has the connection string - just need an example
Seems like every example on the Interwebs is for a bound or unbound data grid. I just want to use these wizard-created widgets properly but programmatically - if that even makes sense!
Thanks, your C# newbie:
Josh
Continue reading...