Use project in VB.NET

Topics: Developer Forum
Oct 2, 2006 at 3:44 PM
Super great project, just what I was looking for BUT
I'm trying to use the project in VB, since I don't know C#.
I've included a project inside your solution and I created a new form wich inherits from LongHornForm.
My new form show up with the modified style, but no controls are showing??
Here's the code from the form:
Imports Kobush.Windows.Forms
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Windows.Forms

Namespace kobush.windows.forms
<System.ComponentModel.DesignerCategory("form")> _
Partial Public Class Form1
Inherits LonghornForm

Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Me.FormStyleEditor1 = New FormStyleEditor(Me.components)
Me.Panel1 = New System.Windows.Forms.Panel
Me.StatusStrip1 = New System.Windows.Forms.StatusStrip
Me.SuspendLayout()
'
'Panel1
'
Me.Panel1.Location = New System.Drawing.Point(3, 3)
Me.Panel1.Name = "Panel1"
Me.Panel1.Size = New System.Drawing.Size(256, 172)
Me.Panel1.TabIndex = 0
'
'StatusStrip1
'
Me.StatusStrip1.Location = New System.Drawing.Point(0, 178)
Me.StatusStrip1.Name = "StatusStrip1"
Me.StatusStrip1.Size = New System.Drawing.Size(260, 22)
Me.StatusStrip1.TabIndex = 1
Me.StatusStrip1.Text = "StatusStrip1"
'
'Form1
'
Me.ClientSize = New System.Drawing.Size(260, 200)
Me.Controls.Add(Me.StatusStrip1)
Me.Controls.Add(Me.Panel1)
Me.Name = "Form1"
Me.ResumeLayout(False)
Me.PerformLayout()

End Sub

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'Dim fe As New FormStyleEditor

'fe.ShowFormEditor(Me)

End Sub
Friend WithEvents FormStyleEditor1 As FormStyleEditor
Private components As System.ComponentModel.IContainer
Friend WithEvents Panel1 As System.Windows.Forms.Panel
Friend WithEvents StatusStrip1 As System.Windows.Forms.StatusStrip
End Class
End Namespace

Hope someone can help.
Thanks
Oct 3, 2006 at 1:23 AM
I converted the project into VB, so now I can enjoy your great work in my language!

Oct 3, 2006 at 10:19 AM
Did you manage to solve your issue?
Oct 3, 2006 at 11:51 PM
Yes, converting the entire project in VB instead of mixing C# and VB corrected the problem.
I am now experiencing a full "skinable" application!!

Thanks
Nov 9, 2006 at 3:39 AM
Hi CaptnKebec,

Is there any chance I could please get a copy of your VB.NET (converted) solution?

/evan
Apr 23, 2009 at 3:05 PM
Can you send me it to my Email that VB.net version, since i don't know C#

rodney_322@yahoo.com.......thanks!
Sep 29, 2009 at 10:03 AM

Dear All, i want also a copy of this App in VB.net, can anyone send me the code to pf_scorpion@hotmail.com

Regards