rammaa
asked on
things in vb.net
hi vb.net experts..
i've some questions in vb.ent because i am still fresh :
1-what does (imports system) mean ? when i should use it ?
2- what does(shared sub main()) mean ? what's difference between sub main() and shared sub main()?
3-what is difference between Private and Public ?
4-when i convert the file.vb to vb.exe can i run it anywhere without installing the dot net framework ?
i've some questions in vb.ent because i am still fresh :
1-what does (imports system) mean ? when i should use it ?
2- what does(shared sub main()) mean ? what's difference between sub main() and shared sub main()?
3-what is difference between Private and Public ?
4-when i convert the file.vb to vb.exe can i run it anywhere without installing the dot net framework ?
ASKER
Hi Bob..
* i still can't understand precisely the difference between the public ,private and friend ! when should i use each of them?
* what is the difference between sub main() and shared sub main() ?
* Finally Please correct if i was wrong wrong :
If i made a vb.net application and converted it to exe file this program can't be executed into my friends pc unless they installed the dot net framework on thier machines!
* i still can't understand precisely the difference between the public ,private and friend ! when should i use each of them?
* what is the difference between sub main() and shared sub main() ?
* Finally Please correct if i was wrong wrong :
If i made a vb.net application and converted it to exe file this program can't be executed into my friends pc unless they installed the dot net framework on thier machines!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks Bob
You welcome:)
Bob
Bob
You can use multiple imports:
Imports System
Imports System.Windows
Imports System.Windows.Forms
Imports System.Windows.Forms.Appli
(2) A shared function in a class doesn't require an instance of that class to perform that function (i.e. String.Format). With Shared Sub Main, you have have a class as the only file in a project, and provide an entry point to the library.
(3) Private, Public, and Friend are scope parameters for variables, properties, and methods. It gives you the ability to show or hide details to a specific class.
(4) All .NET programs require the framework to run.
Bob