Need Help with PrimalForms CE Tab Control
Posted: Tue Sep 17, 2013 3:41 pm
I am using PrimalForms CE 1.0.10.0 to generate a Windows Form for PowerShell 3.0. The "IssueDetails.ps1" panel includes a tab control, which gets an error at execution, even if I do not edit the generated code.
Here is the generated code that references "handler_TabPage." Thanks in advance.
Code: Select all
[powershell].\IssueDetails.ps1
Cannot find drive. A drive with the name 'handler_TabPage' does not exist.
At L:\Desktop\Scripts\SQLServer\issue\IssueDetails.ps1:94 char:1
+ $handler_TabPage:_Click=
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (handler_TabPage:String) [], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound[/powershell]
Code: Select all
.
.
.
$handler_TabPage:_Click=
{
#TODO: Place custom script here
}
.
.
.
$form1.Controls.Add($tabControl1)
$tp_IssueInformation.DataBindings.DefaultDataSourceUpdateMode = 0
$System_Drawing_Point = New-Object System.Drawing.Point
$System_Drawing_Point.X = 4
$System_Drawing_Point.Y = 22
$tp_IssueInformation.Location = $System_Drawing_Point
$tp_IssueInformation.Name = "tp_IssueInformation"
$System_Windows_Forms_Padding = New-Object System.Windows.Forms.Padding
$System_Windows_Forms_Padding.All = 3
$System_Windows_Forms_Padding.Bottom = 3
$System_Windows_Forms_Padding.Left = 3
$System_Windows_Forms_Padding.Right = 3
$System_Windows_Forms_Padding.Top = 3
$tp_IssueInformation.Padding = $System_Windows_Forms_Padding
$System_Drawing_Size = New-Object System.Drawing.Size
$System_Drawing_Size.Height = 237
$System_Drawing_Size.Width = 842
$tp_IssueInformation.Size = $System_Drawing_Size
$tp_IssueInformation.TabIndex = 0
$tp_IssueInformation.Text = "Issue Information"
$tp_IssueInformation.UseVisualStyleBackColor = $True
$tp_IssueInformation.add_Click($handler_TabPage:_Click)
.
.
.