Showing posts with label .net tips. Show all posts
Showing posts with label .net tips. Show all posts

3.6.13

How to write c sharp program in 8 simple steps using visual studio 2008/2010


How to write a program in visual studio 2008/2010

It is really very easy to use an Integrated Development Environment or IDE to practice any programming language.

However, doing programming practice in that is good but don't wish to rely on 'Intellisense' feature. Other wise you would not be able to recall which syntax you would type or which class you should write after '.'

Well to do just open visual studio. And follow these steps
>> click on File menu and then New.
>> click on New Project.
>> Select your project type, lets pick, Console Application.
>> Now proceed, type the name that you want to give to your namespace, in first box labelled as Name.
>> Browse the location or let visual studio save this in its own place created already under Library folder by the name of Visual Studio 2010.
>> now type the solution name which is of Visual studio use and also you could remember by it that this specific programs have been stored here.

>> So it will another Tab/window under its environment which is named as Program.cs

>> now you can write your c# code under the 'firstprogram' namespace.
(you can find this is in following snapshot)



So it was a short and sweet example of how you may create a c# program. I have not given screen shots of each steps, because i assume the above are self-explanatory. Just do it buddies. However in case of any just write under here in comment box.

Good Luck!
Thanks!!

3.12.10

Line Number along with Code in VS2008/VS2010/VS2012

Hello buddies!


We often need to go on a particular line number to check the error found, specified by the IDE, (Visual Studio 2008). In this way you can understand the need of line numbers along with code. however you can go on a particular line by pressing a key combination that is (ctrl+G), and input the line number there and you will take to the desired line number for whatever reason you want to go there.


Well there is one very simple trick to display each line for your code. These are as follows:-
1> Click Tools menu.
2> Click Options.
3> At the left hand side pane, select Text editor
4> Select Basic. and in General option check the check box attach with Line numbers (if you want to display only at a platform upon which you are working at present than select that platform and again follow the same step- General>Check the box attach with Line numbers).
5> Finish :)
Click Tools

Text editor-> Basic-> Check Line number

->Text editor -> C# -> Check Line number

Search This Blog

Let make your friend aware about this post