> What is vb.net?
Vb.net is a programming language that is available in Visual Studio. Net. It contains features of visual basic which is event based programming language and also includes object oriented concepts.
VB.Net is a programming language which is an extension of Visual Basic to make it compliant to the Dot Net Framework. Also VB.Net is fully Object Oriented unlike Visual Basic and everything in VB.Net is an object. As it is compliant to the Dot Net Framework VB.Net can make full use of Framework Class Library provided by dot Net Framework.
> What is the diff between VB MDI form and .net MDI form?
In VB MDI form is created by adding MDI Form to the project and adding child forms by setting MDICHILD property of the child form.
In .NET there is no MDI form, any form can be made a MDI parent by setting IsMdiContainer property to TRUE Furthermore, there are changes in the properties, methods and basic behavior of the MDI Forms, like ability to set Background Color is not available in .NET, ability to add controls to MDI form (although they don't behave properly), ActiveForm to ActiveMdiChild, Arrange method to LayoutMdi, etc.
> ColumnMapping belongs to which namespaces?
> How does you call and execute a SP in .NET?
Using command object we can execute a SP. Instead of sqlquery we have to pass the SP Name.
> How is VB.Net different from VB6?
VB6 was interpreter based language while VB.NET is a compiled language
VB6 was not a type-safe language while VB.NET is a type safe language.
VB6 used ?On Error Goto? syntax to handle exceptions at runtime. VB.NET uses the Try? Catch? Finally syntax to handle exceptions at runtime.
VB.NET has much enhanced object oriented support than VB6
VB6 does not allow developing the multithreaded applications. In VB.NET you can create multithreaded applications.
VB6 was only considered good for desktop windows application. In VB.NET you can also develop web applications, distributed applications, create .NET windows and web controls and components, write windows and web services.
In VB.NET, you can also use reflections to read the meta-data of types and using reflection emit you can also generate code to define and invoke types at runtime.
VB.NET uses .NET framework class library along with specialized VB library (System.VisualBasic) as a standard library. As a result, the standard library for VB.NET is much enhanced and useful compared to VB6 standard library.
VB.NET is platform independent because of .Net framework. Programs written in VB.NET can run on any platform where .Net framework is present.
The platform include both hardware and software (operating system) platforms.
VB6 uses COM (Component Object Model) as component architecture. VB.NET uses assemblies as its component architecture. The Assemblies architecture has removed a lot of problems with COM including DLL-Hell and versioning problem.
? Components created in VB6 (COM) need to make and update registry entries. VB.NET does not require any registry entry making the deployment
VB6 used ASP to build web applications. VB.NET uses ASP.NET to build web applications.
VB6 used ADODB and record-sets to implement data access applications. VB.NET uses ADO.NET and datasets to build data access applications.
The ADO.NET also supports the disconnected data access.
1.VB6 was a scripting language while VB.NET is a Programming language
2.VB6 was supported Unstructured error handling by using On Error Gotos tatement.VB.NET supports structured exceptional by using Try…Catch…
Finally to handle exceptions at runtime.
3.VB.NET is completely supports object oriented features. but VB6 wont support
4.VB6 used ADO as Data access technology and record-sets to implement data access applications. Also here data transfer in the form of binary format.
VB.NET uses ADO.NET and datasets to build data access applications. The ADO.NET also supports the disconnected data access. Here the data transfer in the form of xml format. So here their is faster data transfer.
5.Multiple versions are supported with vb.net but with vb6 its not supported
6.multithreading is supported with vb.net, but not with vb6.
> What is assembly in .NET and What do you mean by protected class always present in the same assembly?
Assemblies are building blocks of framework.
There are mainly two types of assemblies:
a) Private Assembly
b) Shared Assembly
> In order to get assembly info which namespace we should import?