•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 456,234 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,754 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 1046 | Replies: 6
![]() |
In vb6 the form is treated like an object. But if you use the .net platform of vb then this becomes a standalone class. when we refer dim a as new form1, means we actually create a new object of the class form1 and simultaneously allocating memory to it. if wish to know more just visit http://msdn2.microsoft.com and search form windows forms in visual basic. you will find enourmous totorials,resources and articles there.
Always remember that the best alternative is to learn anything from the organization who has developed it.
Always remember that the best alternative is to learn anything from the organization who has developed it.
Last edited by choudhuryshouvi : Nov 13th, 2007 at 12:39 pm.
Shouvik_The_Expert_Coder
Have a problem? Don't worry just give me a call and I'll fix it for you.
Have a problem? Don't worry just give me a call and I'll fix it for you.
•
•
Join Date: Nov 2007
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi!!!!
You want to know what is a form right????
A form is basically a container control,
container control means an object which can hold
one or more controls like buttons
check boxeses etc...
some thing you may need..............
private sub form_load()
'statements
end sub
the above sub procedure is automatically called when form is loaded.
form is loaded means it now exists in memory
it has no relation with its visibility
<formname>.show 'displays the form(even the form is not loaded)
<formname>.hide 'hides the form(even the form is not loaded)
unload <formname> unloads the form from memory.............
I think you don't feel it boring..........
You want to know what is a form right????
A form is basically a container control,
container control means an object which can hold
one or more controls like buttons
check boxeses etc...
some thing you may need..............
private sub form_load()
'statements
end sub
the above sub procedure is automatically called when form is loaded.
form is loaded means it now exists in memory
it has no relation with its visibility
<formname>.show 'displays the form(even the form is not loaded)
<formname>.hide 'hides the form(even the form is not loaded)
unload <formname> unloads the form from memory.............
I think you don't feel it boring..........
•
•
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,444
Reputation:
Rep Power: 4
Solved Threads: 87
•
•
Join Date: Nov 2007
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
VB6 was apparently the last of the Visual Basic Line. Now we're supposed to go to some token language where all the stuff that they did put in that are anything like VB6 is "deprecated". Like I imagine we aren't supposed to use the Sqr() function, we're supposed to use the System.Math.NumberMath.NumericOperations.SquareRoot() Function, which just so happens to take a special class type as it's argument, SquareRootArgument...
But, hey, it's faster.
(PS: I KNOW those aren't accurate depictions of the framework classes)
But, hey, it's faster.
(PS: I KNOW those aren't accurate depictions of the framework classes)
•
•
•
•
i want to know in VB6 what is forms is that classes or objects
Yes, a very good question. In short, a form is an object. According to Microsoft an object is encapsulated. That means it contains its own code and its own data. You don't have to program how to save its data. It's done for you. You set a property for a length, it saves the data for the length. Just fill in the properties box. In VB6 an object has properties, methods, and events.
Another interesting point is that you can use VB6 class modules to make your own objects. That is, with a class you can create your own class module with its own properties, methods, and events. And it can be instantiated or declared just like a regular form. In other words, your class module behaves like an object; because, in essence it fits the definition of an encapsulation: it contains its own code and data.
Option Explicit Private MyScanner as cmScanner Private MyCustomForm as CustomForm Private Sub Form_Load() ' Instantiate the class just as you would a form set MyScanner = New cmScanner Set MyCustomForm = New CustomForm End Sub
![]() |
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- displaying labview graph on vb6 form (Visual Basic 4 / 5 / 6)
- Can anyone help? (Visual Basic 4 / 5 / 6)
- Audio signal filter - Help! (Java)
- Listbox (Visual Basic 4 / 5 / 6)
- print large pricturebox or form in vb6 (Visual Basic 4 / 5 / 6)
- Scrollbar in Form (VB6.0) (Visual Basic 4 / 5 / 6)
- Form1.KeyDown Event Problems (VB.NET)
- How can I show a form? (VB.NET)
- Vb6 and XP (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: DataReport in vb6
- Next Thread: retrieving current record in database



Linear Mode