Posts Tagged ‘winforms’
WinForms – Change The Active Tab
This question came in last Friday:
I’m trying to code a windows form in vb.net 2005. In my form I have 2 TabControls and a command button. The button is in the first TabControl, so what I want to do, is that when I click the button, in the first TabControl, the second TabControl gets opened.
I’m assuming here that what is really being asked is, “How do I change the active tab in a TabControl from some other event, like a button click in a tab?”
Republished by Blog Post Promoter
One Form with Multiple Tables
I received the following question a few days ago:
“I am trying to use three tables from the same dataset in one form that I am creating in vs.net winforms my problem I guess is the setup of it as I can get them all on the form but cant get them to all post to the separate tables when I click save I am using a mysql database with the Mysql connector not the obdc can this even be done?”
Frustrating, isn’t it? .NET makes some things SO easy, and then when it isn’t you figure you must have done something wrong.
The good news is, your problem probably has nothing to do with using mySQL–it is all in how you are using the database stuff in WinForms.
VB.NET Processing Before WinForm Display
I woke up this morning to an interesting question.
“Using VB.net 2008, I want my project to be a Windows Forms Application, but upon startup, I want to check a few files to see if they exist and if they don’t I do not want the startup form to load. I just want the program to quit. If you have to start this type of application with a form, how do you keep the form from displaying?”
Windows Forms – Passing Parameters at Runtime
I received the following question over the weekend:
I’ve made a C# form application and I need to send a report name at runtime. How do I add an incoming parameter to the command line? Such as “crFORM.exe Shipform.rpt”
I have to assume the question relates more to how to retrieve the parameter in the code than how to pass it because the example shows how we’d pass it.
WinForms – Database Changes not sticking.
Saturday afternoon I spent trying to get a Windows Forms application to add data to a database. It all seemed to work correctly. Add changes, no errors. Close window, open window. Yep changes are there. Close application, re-run application. Yep, changes still there. Make a change to the code, re-run. No data.