VB.NET INTVW QUES AND ANS
Q : Define Context menu in VB.NET?
A : It is useful for enabling access to commands in a variety of contextualsituations.It is created at run time in the same manner as a main menusIt is created the using Context Menu control.
Q : Define the Validation in VB.NET?
A :Validation of two types of level validation there are,Form-level :Validates all fields on a form simultaneously.Field-level : Validation validates each field as data is entered.
Q : What is a visual inheritance in VB.NET?
A : A Visual inheritance allows the deriving forms from the base form withcommon controls.
Q : What is the difference between VB and VB.NET?
A: VB does not support inheritance, but VB.NET supports the inheritance.VB does not support polymorphisms, but VB.NET supports Polymorphisms.VB is OOPS based, but VB.NET completely supported for OOPS.VB supports interfaces, but VB.NET fully supports interface basedprogrammingVB uses VB runtime, but VB.NET uses CLR.
Q : How to store and retrieve images in sql server database throughVB.NET?
A : Server supports the ability for clients to store the objects within tables.Create the Field that data type Image and Initialize byte an array with a nullvalue initially. Use FileInfo object to get file size. Open FileStream to read file.
Q : What is the Advantages of VB.NET?
A : First of all, VB.NET provides managed code execution that runs under theCommon Language Runtime (CLR), resulting in robust, stable and secureapplications. All features of the .NET framework are readily available inVB.NET.VB.NET is totally object oriented. This is a major of addition that VB6 andother earlier releases did not have.VB.NET uses XML to transfer the data between the various layers in theDNA Architecture i.e. data are passed as simple text strings.The .NET framework comes with the ADO.NET, which follows thedisconnected paradigm, i.e. once the required records are fetched theconnection no longer exists. It is also retrieves the records that are expectedto be accessed in the immediate future. This enhances Scalability of theapplication to a great extent.Error handling has changed in VB.NET. A new Try-Catch-Finally block hasbeen introduced to handle errors and exceptions as a unit, allowingappropriate action to be taken at the place the error occurred thusdiscouraging the use of ON ERROR GOTO statement. This again credits tothe maintainability of the code.
Leave a Comment