viewpoint-particle

Author Topic: dotNet sample - Windows Form with 3 Tabs and embedded controls  (Read 2472 times)

Deana

  • Wilson WindowWare Tech Support
  • Pundit
  • *****
  • Posts: 1183
  • WinBatch® can do it.
    • WinBatch Tech Support Database
Use a Windows dotNet Form with a Tab Control. This code sample creates a TabControl with three tab pages. Each tab page contains several controls.

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/dotNet/System_Windows/System_Window_Forms+TabControl.txt
Deana F.
Technical Support
Wilson WindowWare Inc.

stanl

  • Pundit
  • *****
  • Posts: 793
Re: dotNet sample - Windows Form with 3 Tabs and embedded controls
« Reply #1 on: March 13, 2014, 10:18:46 am »
Nice example.  As an FYI, Sapien Technologies has a FREE PrimalForms Community Edition which allows you to design a windows form and insert most of the objects. It returns powershell script code, but that is easily converted to WB.  For example

Code: [Select]
$System_Drawing_Size = New-Object System.Drawing.Size
$System_Drawing_Size.Height = 262
$System_Drawing_Size.Width = 284
$form1.ClientSize = $System_Drawing_Size
$form1.DataBindings.DefaultDataSourceUpdateMode = 0
$form1.Name = "form1"
$form1.Text = "Primal Form"


Converts to

Code: Winbatch
Form1.ClientSize = ObjectClrNew('System.Drawing.Size',284,262)
Form1.Name = "Form1"
Form1.Text = "Primal Form"
 

Take one of Deana's scripts as a template to set up all the WB specific CLR options.... it's good practice and less intimidating than Visual Studio.

.02  Stan