Thursday, September 20, 2018

How to read a value from user in Console application?

This article explains how to get an input from the user in  console.It is very basic program.

using System;
class ReadStringData

        {

            public static void Main()

            {

                Console.Write("Enter your name:");
                // String Variable 
                string YourName = Console.ReadLine();

                Console.WriteLine(" Hello Mr. " + YourName);
             
            }

        }
Note :- In this small console application get input from user and display on console screen.

Thank you.............

Command to collapse all sections of code? In Visual Studio

This post is for beginner and advance .net developer.When you know short cut in visual studio you code speed is good.
In Visual Studio (Any) is there a command to collapse/expand all the sections of code in a file?

Kindly follow the below screen :-

Right click in editor -> Outlining to find all options. (After disabling outlining, use same steps to enable outlinging.)


Thank you ....................

Wednesday, September 19, 2018

HOW TO: FIX ERROR - "the 'microsoft.ace.oledb.12.0' provider is not registered on the local machine"

1) 'Microsoft.ACE.OLEDB.12.0' check this engine is available or not if not available download and install it .
2) If above mentioned engin is there in you system  right Click on you used project --- property and follow below screen.
here's some screenshots to show