Tuesday, 4 November 2014

How to change the console screen color.

For changing the background color in a console screen

Console.BackgroundColor = ConsoleColor.Red 

For changing the color of the fonts in foreground

Console.ForegroundColor = ConsoleColor.Red 

Thursday, 30 October 2014

adding a Snippet to your Visual studio.


Code snipets in vs

try this out
for FOR loop
just write
then press tab two times..

for WHILE loop ,write

then press tab tab .

for DO WHILE loop, write

press tab tab


then press tab tab..

Saturday, 18 October 2014

Create an N-tier Architecture application.

In this Architecture we have multiple application . Where we bi-fercate a single application into multiple application .
Generally we use a single application to have the data model and the multiple application.
But for a N-tier architecture the application is divided into multiple application

DAL (Data Access Layer )
BAL (Business Access Layer )
Presentation Layer( It include MVC , ASP.Net )

Here we have a concept  in which we use a wrapper class where wrapper class represents the DataBase.

if we have a table in data base table like Employee the attributes are Emp_id , Emp_name , Emp_age , Emp_address

then you will have to make a class in your class library .

we have to make a GET or SET function with the use of encapsulation method .

Saturday, 11 October 2014

Type conversion in Visual Basic.

There are many different type of casting by which we can convert the data from one format to another.

CBool - converting to boolean .
CByte - converting to Byte .
CInt - converting to int .
CLng - Converting to long .
CDes- converting to decimal .
CStr - converting to string.
CUint - converting to int .
CUlng - convertingto ultra long .