RESOURCE EDITOR why not useing VB.NETs?
Posted: Thu Jan 10, 2008 8:48 am
Antonio,
As far as I know resource editors .rc or .res don’t support Font, Color, etc. .
Today I had a look into a “Resource file” from VB.NET which I think is Form3.Designer.vb.
Wouldn’t it be possible to parse the form.designer.vb files to FWH source-code?
Here is the code from a FORM with a command (->button) and a label (-->say).
Best regards
Otto
Me.components = New System.ComponentModel.Container
Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
Me.Command1 = New System.Windows.Forms.Button
Me.Label1 = New System.Windows.Forms.Label
Me.SuspendLayout()
'
'Command1
'
Me.Command1.BackColor = System.Drawing.SystemColors.Control
Me.Command1.Cursor = System.Windows.Forms.Cursors.Default
Me.Command1.ForeColor = System.Drawing.SystemColors.ControlText
Me.Command1.Location = New System.Drawing.Point(45, 134)
Me.Command1.Name = "Command1"
Me.Command1.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Command1.Size = New System.Drawing.Size(49, 25)
Me.Command1.TabIndex = 1
Me.Command1.Text = "Zurück"
Me.Command1.UseVisualStyleBackColor = False
'
'Label1
'
Me.Label1.AutoSize = True
Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label1.Location = New System.Drawing.Point(40, 36)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(83, 25)
Me.Label1.TabIndex = 2
Me.Label1.Text = "Label1"
'
'Form3
'
Me._ = New System.Drawing.SizeF(6.0!, 13.0!)
Me._ = System.Windows.Forms._.Font
Me.BackColor = System.Drawing.SystemColors.Control
Me.ClientSize = New System.Drawing.Size(638, 196)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.Command1)
Me.Cursor = System.Windows.Forms.Cursors.Default
Me.Location = New System.Drawing.Point(4, 23)
Me.Name = "Form3"
Me.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Text = "ICECUBE by DATRON Software"
Me.ResumeLayout(False)
Me.PerformLayout()
As far as I know resource editors .rc or .res don’t support Font, Color, etc. .
Today I had a look into a “Resource file” from VB.NET which I think is Form3.Designer.vb.
Wouldn’t it be possible to parse the form.designer.vb files to FWH source-code?
Here is the code from a FORM with a command (->button) and a label (-->say).
Best regards
Otto
Me.components = New System.ComponentModel.Container
Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
Me.Command1 = New System.Windows.Forms.Button
Me.Label1 = New System.Windows.Forms.Label
Me.SuspendLayout()
'
'Command1
'
Me.Command1.BackColor = System.Drawing.SystemColors.Control
Me.Command1.Cursor = System.Windows.Forms.Cursors.Default
Me.Command1.ForeColor = System.Drawing.SystemColors.ControlText
Me.Command1.Location = New System.Drawing.Point(45, 134)
Me.Command1.Name = "Command1"
Me.Command1.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Command1.Size = New System.Drawing.Size(49, 25)
Me.Command1.TabIndex = 1
Me.Command1.Text = "Zurück"
Me.Command1.UseVisualStyleBackColor = False
'
'Label1
'
Me.Label1.AutoSize = True
Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label1.Location = New System.Drawing.Point(40, 36)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(83, 25)
Me.Label1.TabIndex = 2
Me.Label1.Text = "Label1"
'
'Form3
'
Me._ = New System.Drawing.SizeF(6.0!, 13.0!)
Me._ = System.Windows.Forms._.Font
Me.BackColor = System.Drawing.SystemColors.Control
Me.ClientSize = New System.Drawing.Size(638, 196)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.Command1)
Me.Cursor = System.Windows.Forms.Cursors.Default
Me.Location = New System.Drawing.Point(4, 23)
Me.Name = "Form3"
Me.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Text = "ICECUBE by DATRON Software"
Me.ResumeLayout(False)
Me.PerformLayout()