Does anyone know of a good resource to find syntax for creating Windows Forms in VB.Net? I want to build forms from code, without using VS.Net IDE.
Printable View
Does anyone know of a good resource to find syntax for creating Windows Forms in VB.Net? I want to build forms from code, without using VS.Net IDE.
it is actually very simple
create a class that inherits the Form obejct
then declare controls you will useCode:
Imports System.Windows.Forms
Public Class myForm1
Inherits Form
End Class
finally build constructor called New and set each controls needed properties(Caption, size, colors, etc.) and add to the forms collectionCode:Imports System.Windows.Forms
Public Class myForm1
Inherits Form
Private myButton As New Button()
Pfivate myText As Ne wTextBox()
End Class
Basically that is it.Code:Imports System.Windows.Forms
Public Class myForm1
Inherits Form
Private myButton As New Button()
Private myText As Ne wTextBox()
Public Sub New()
myButton.Text = "Click Me"
myButton.Show()
myText.Show()
Controls.Add(myButton)
Controls.add(myText)
End Sub
End Class
Thanks that helped a lot just to see it. Do you know a reference I could use to see all the properties of each control like myButton.Text?
run wincv.exe (comes with framework)
in the search box type the control name then select it from the list. you will then seed all properties/methods/events for it
I searched for wincv.exe but it can't find it?
it is part of the .net framework. just type wincv from the Run menu in the Start Menu
says can't find file wincv or one of its componenets
??
look in the program files\microsoft.net\frameworksdk\bin (unless you installed elsewhere)
wincv.exe is supposed to be there
I cn't even find a path like that. The closest I see is C:\WINNT\Microsoft.NET\Framework
hm..guess you just have the regular 21 meg redistrabutable. you need the SDK which has that as well as the command line compilers you need.
http://msdn.microsoft.com/downloads/...mpositedoc.xml
Looks like I don't have the SDK installed, just the framework. I am downloading it now. Thanks for your help
right at the same time..lol
cool. Well when you isntall that, you should have that wincv.exe and the vbc.exe compiler
Thank you soo mush for your help :D