Archive for the ‘winforms’ Category
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?”
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.

