|
-
Sep 11th, 2002, 04:14 AM
#1
Thread Starter
Frenzied Member
Windows Forms
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.
-
Sep 11th, 2002, 08:30 AM
#2
it is actually very simple
create a class that inherits the Form obejct
Code:
Imports System.Windows.Forms
Public Class myForm1
Inherits Form
End Class
then declare controls you will use
Code:
Imports System.Windows.Forms
Public Class myForm1
Inherits Form
Private myButton As New Button()
Pfivate myText As Ne wTextBox()
End Class
finally build constructor called New and set each controls needed properties(Caption, size, colors, etc.) and add to the forms collection
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
Basically that is it.
-
Sep 11th, 2002, 12:43 PM
#3
Thread Starter
Frenzied Member
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?
-
Sep 11th, 2002, 12:45 PM
#4
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
-
Sep 11th, 2002, 12:48 PM
#5
Thread Starter
Frenzied Member
I searched for wincv.exe but it can't find it?
-
Sep 11th, 2002, 12:54 PM
#6
it is part of the .net framework. just type wincv from the Run menu in the Start Menu
-
Sep 11th, 2002, 12:55 PM
#7
Thread Starter
Frenzied Member
says can't find file wincv or one of its componenets
-
Sep 11th, 2002, 12:59 PM
#8
??
look in the program files\microsoft.net\frameworksdk\bin (unless you installed elsewhere)
wincv.exe is supposed to be there
-
Sep 11th, 2002, 01:03 PM
#9
Thread Starter
Frenzied Member
I cn't even find a path like that. The closest I see is C:\WINNT\Microsoft.NET\Framework
-
Sep 11th, 2002, 01:07 PM
#10
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
-
Sep 11th, 2002, 01:07 PM
#11
Thread Starter
Frenzied Member
Looks like I don't have the SDK installed, just the framework. I am downloading it now. Thanks for your help
-
Sep 11th, 2002, 01:09 PM
#12
right at the same time..lol
cool. Well when you isntall that, you should have that wincv.exe and the vbc.exe compiler
-
Sep 11th, 2002, 01:10 PM
#13
Thread Starter
Frenzied Member
Thank you soo mush for your help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|