Posted 19 years ago
by Rommel Edwards
Hey List,
I upgraded to V3 and I had to make some code changes. Now I can see the components (textboxes, labels, etc) at design time, but they disappear at runtime.
Here's some code:
Public Class frmMain
Inherits System.Windows.Forms.Form
[blah, blah, blah]
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
'
Me.Wizard1.BackButtonBackColor = System.Drawing.SystemColors.Control
Me.Wizard1.ButtonFlatStyle = System.Windows.Forms.FlatStyle.System
Me.Wizard1.CancelButtonBackColor = System.Drawing.SystemColors.Control
Me.Wizard1.CausesValidation = False
Me.Wizard1.Pages.Add(Me.WizardPage1)
Me.Wizard1.Pages.Add(Me.WizardPage2)
Me.Wizard1.Pages.Add(Me.WizardPage3)
Me.Wizard1.Dock = System.Windows.Forms.DockStyle.Fill
Me.Wizard1.FinishButtonBackColor = System.Drawing.SystemColors.Control
Me.Wizard1.FormAcceptButton = ActiproSoftware.Wizard.WizardAcceptButtonDefault.FinishThenNext
Me.Wizard1.FormCancelButton = ActiproSoftware.Wizard.WizardCancelButtonDefault.Cancel
'I commented out this line because it generated syntax errors
'Me.Wizard1.HeaderImage = CType(resources.GetObject("Wizard1.HeaderImage"), System.Drawing.Image)
Me.Wizard1.HelpButtonBackColor = System.Drawing.SystemColors.Control
Me.Wizard1.Location = New System.Drawing.Point(0, 0)
Me.Wizard1.Name = "Wizard1"
Me.Wizard1.NextButtonBackColor = System.Drawing.SystemColors.Control
'I commented out this line because it generated syntax errors
'Me.Wizard1.PageCaptionFont = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
'I commented out this line because it generated syntax errors
'Me.Wizard1.PageDescriptionFont = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Wizard1.Pages.AddRange(New ActiproSoftware.Wizard.WizardPage() {Me.WizardPage1, Me.WizardPage2, Me.WizardPage3})
Me.Wizard1.Size = New System.Drawing.Size(562, 376)
Me.Wizard1.TabIndex = 0
[blah, blah]
End Sub
I also commented out the code for the AfterPageSelect() event since that event no longer exists in V3. I made no further code changes. What am I missing?
Thanks.
I upgraded to V3 and I had to make some code changes. Now I can see the components (textboxes, labels, etc) at design time, but they disappear at runtime.
Here's some code:
Public Class frmMain
Inherits System.Windows.Forms.Form
[blah, blah, blah]
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
'
Me.Wizard1.BackButtonBackColor = System.Drawing.SystemColors.Control
Me.Wizard1.ButtonFlatStyle = System.Windows.Forms.FlatStyle.System
Me.Wizard1.CancelButtonBackColor = System.Drawing.SystemColors.Control
Me.Wizard1.CausesValidation = False
Me.Wizard1.Pages.Add(Me.WizardPage1)
Me.Wizard1.Pages.Add(Me.WizardPage2)
Me.Wizard1.Pages.Add(Me.WizardPage3)
Me.Wizard1.Dock = System.Windows.Forms.DockStyle.Fill
Me.Wizard1.FinishButtonBackColor = System.Drawing.SystemColors.Control
Me.Wizard1.FormAcceptButton = ActiproSoftware.Wizard.WizardAcceptButtonDefault.FinishThenNext
Me.Wizard1.FormCancelButton = ActiproSoftware.Wizard.WizardCancelButtonDefault.Cancel
'I commented out this line because it generated syntax errors
'Me.Wizard1.HeaderImage = CType(resources.GetObject("Wizard1.HeaderImage"), System.Drawing.Image)
Me.Wizard1.HelpButtonBackColor = System.Drawing.SystemColors.Control
Me.Wizard1.Location = New System.Drawing.Point(0, 0)
Me.Wizard1.Name = "Wizard1"
Me.Wizard1.NextButtonBackColor = System.Drawing.SystemColors.Control
'I commented out this line because it generated syntax errors
'Me.Wizard1.PageCaptionFont = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
'I commented out this line because it generated syntax errors
'Me.Wizard1.PageDescriptionFont = New System.Drawing.Font("Verdana", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Wizard1.Pages.AddRange(New ActiproSoftware.Wizard.WizardPage() {Me.WizardPage1, Me.WizardPage2, Me.WizardPage3})
Me.Wizard1.Size = New System.Drawing.Size(562, 376)
Me.Wizard1.TabIndex = 0
[blah, blah]
End Sub
I also commented out the code for the AfterPageSelect() event since that event no longer exists in V3. I made no further code changes. What am I missing?
Thanks.