Showing posts with label VS 2005. Show all posts
Showing posts with label VS 2005. Show all posts

19 June 2009

Writing inline documentation is very useful but many developers are excusing that its is taking to much time to write down comments, Friends here is a tool for you which will write XML documentation in your C# or VB.net code vary quickly.

This tool is works with Visual Studio 2005, 2008.

GhostDoc is a free Visual Studio extension that automatically generates XML documentation comments.

Its allows us to add quick documentation for :
  • Methods
  • Properties with its data type
  • Parameters Name
  • Variable Name
See the below example :


Just right click on clock on the name of the function, where will be a menu with "Document this".
Click on it and it will write word quickly documentation for you.

See here the result:



So GhostDoc is very useful tool,

happy codding.

05 July 2008

Don't type too much in aspx page!

just write

asp: Label

and press enter

asp:Label runat=”server” id=”asp_Label2943″ />

Download this add-in from here

Unzip download and copy to :

C:\Documents and Settings\[USER]\Application Data\Microsoft\MSEnvShared\Addins

if you did not found "MSEnvShared" and "Addins" folder then create it manually.

24 September 2007

One day when I was debugging the code. It started to show hexadecimal values automatically.

I don't know that how it was stared. and I also did not know that how to see decimal back at that time.

but it was simple option that was in Local Window that named "Hexadecimal Display".

Click on Debug Menu -> Windows -> Local.

Right Click on Local Window and get this option as pop-up menu.

19 September 2007

Create shapes on form as Visual Basic 6.0 can do that directly on the form.

Power Pack 2.0 is a line, shape controls, printform component, and printer compatibility library.

It has 4 controls.

There are so many property and event.

Download Microsoft Visual Basic 2005 Power Packs 2.0

07 September 2007

Lets create Outlook 2007 Add-In using Visual Studio 2005.

If you have not installed VSTO then Download Microsoft Visual Studio 2005 Tools for Office Second Edition Runtime (VSTO 2005 SE) (x86).


Start IDE.

Click on File, New project

Select Outlook Add-In and Click on OK.

you will find some code like this:

Public
Class ThisAddIn
 Private WithEvents btn1 As Office.CommandBarButton

Private Sub ThisAddIn_Startup(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Startup

End Sub


Private Sub ThisAddIn_Shutdown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shutdown

End Sub

End Class


Now add following code in StartUp event:

Dim explorer As Outlook.Explorer = Me.Application.ActiveExplorer()  

If explorer IsNot Nothing Then

Dim bar As Office.CommandBar = explorer.CommandBars.Add("saAction Bar", Temporary:=True)

bar.Visible = True

btn1 = bar.Controls.Add(Office.MsoControlType.msoControlButton, Temporary:=True)

btn1.Caption = "saAction Button"

btn1.Tag = "myOutlookAddin1.btn1"

btn1.Style = Office.MsoButtonStyle.msoButtonCaption

End If

And declare Button click event any where in the class.

 Private Sub Btn1_Click(ByVal ctrl As Office.CommandBarButton, ByRef cancelDefault As Boolean) Handles btn1.Click

MsgBox("Hi! this is VSTO")

End Sub


Done.

Now, Just run the project. Press F5, Outlook will automatically start and It will show a button there, and click on that button. See below "saAction Button" and messagebox.



Outlook is a very big application and using VSTO, you can utilize it's functions.

24 August 2007

See this example here.

I have created an interface.
public interface myInterFace1
{
void Operation(string myParam);
string myName();
}
it have two methods. Operation and myName.

Now create a class.
class Program
{

}
Now, lets inherit with interface.
    class Program:myInterFace1
{

}
Now I'm using myInterFace1 in Program class, So I need to write down all methods of that interface in my class.

it's do that with rick.

Right click on inter face name near (:) sign.
It will pop up a menu, where you found "Implement Interface" menu.

Click on that menu.

class Program:myInterFace1
{
static void Main(string[] args)
{
}

#region myInterFace1 Members

public void Operation(string myParam)
{
throw new Exception("The method or operation is not implemented.");
}

public string myName()
{
throw new Exception("The method or operation is not implemented.");
}

#endregion
}
All method of that interface will be write down there in that class automatically.

It's a very small but useful example during the development of code.

28 July 2007

Defy All Challenges is Microsoft site, to get graphical representation using flash technology.


Get information about Office 2007, Vista, Web development and Visual Studio Team System.

Also have some fun there, creating your own cartoon animation.


click here for HTML version.

16 July 2007

You can change executable or DLL files using IDE, not a completely but most improbably.

You can make change in
  • Design of almost executable file
  • Icons of the application
  • Menu name
  • Button caption

Here I m trying to change in calculator...

Regular calculator.

Go to System32 folder select Calculator.exe file, Drag this icon in IDE, of open file form File menu of IDE.


See Here, Calc.exe in Visual Studio 2005

Open calculator design and make some change.


Now, Save that file As EXE, remember that click on "Save Calc.exe As..." menu.


Save file and open that file directly using double click.

New calculator is ready to work.

You can be a one kind of hacker, but I m trying here to show just knowledge.

15 June 2007

Microsoft ISV Buddy Program is all about connect with us with Microsoft.

Microsoft employee who will be our point person within Microsoft. It's about putting a face to Microsoft and helping us get timely answers to our questions and requests.

Microsoft buddy will be able to guide us to resources and help. it one kind of 1-on-1 relationship.

See Video 1, Video 2

Rajesh Nagpal at Microsoft has been chosen as Microsoft ISV buddy for me.

you can also get Microsoft ISV buddy.
Register Here.

11 May 2007

Download Reflactor for ASP.NET 2.2

There was allready a refleactor for VB.NET, Right now this is avalable for ASP.NET 2.2

Click here to show it use and feature in development.

28 April 2007

When you open Visual Studio 2005 first time after installation, It will be ask you to select working environment. Suppose I am C# developer and I have to work all most with C# language. I will select Visual C# Development Settings, and same think for Visual Basic, C++ and Web.

Visual Studio allows you to change your working environment, Toolbar, Menubar, Panel places, Font, Color, Shortcut keys. All most all of them.

I have seen many times, that many developers have it's own style to work with IDE, and those developers fills unfamiliarly to do work with another IDE settings.

If you have to format your PC, You will be loss all of your settings, favorite bookmark, your own quick shortcuts etc. But Visual Studio 2005 have a great feature to Import Export Environment Settings. it's easy to use...

Select Tools -> Import and Export Settings...



Customize Export Information, Here you can see that Export Setting wizard is really exports detailed information for the environment.



just save File here do you want to store in directory.

When do you want to Import any settings select "Import selected environment settings" option, and select file form the directory. but there is also another option to just change environment which one Visual Studio ask you first time when you start it.




This is one think who helps us to make IDE better and better to work with it.

16 April 2007

As developer i nerver like just typing code only. i allway like to solve problem using new technique, logic.

Here are some utilites tools from Microsoft Site which makes development easy.

i have download all of them. and i also use them during developemt.

11 diffrent tools are there like, here are some of them which one i realy like.

Click here to show detailed information.

Today I work with C#.NET, many-many classes, objects, property, method, variable etc.
In have to remember many thinks when you are developing code in a big project. In earlier version of .net from vb6 time there is a method “Go To Definition” to move cursor to the declaration line. And that time u can know they all thinks about that objects. This one is a good feature.
Just right click and click on “Go To Definition”
And in the next movement your cursor will be there. it it one of the easy way

but suppose if you there are many many forms, class i think that it is not possible to move one form to another and again move back. it is just lost of time.

in Visual Studio 2005, working with C# language. there is a special menu for "Code Definition Window"

View - Code Definition Window it's shor cut key is Ctrl+W, D (u can also change.)



just click on this menu and u will found and move cursor in code line any where. u will see quickly response of Code Definition Window that u can see it definition line.


when i put the cursor near "var1" in the messagebox line it show me it declaration place. here i show u a small example, but this should be very usefull in a big project.

13 April 2007

use command line to build, debug, and deploy projects from devenv.

before a few days i posted short cut keys. here i found some more command line switches. it is easy and aslo usefull in daily. here are some commands.

press "Window key + R" and wight down devenv with command.

Devenv SolutionName /build SolnConfigName [/project ProjName [/projectconfig ProjConfigName]]

writedown devenv /? to show command line for IDE.

/Build, /Clean, /Command, /Deploy, /Edit, /Rebuild, /Run, /SafeMode are some of those comman

click here to see supported command information in msdn. u will find example for how to use.

16 March 2007

easy learning for Visual Studio 2005.

there are two diffrent parts Web Developemtn and Windows Development.

it's for beginner.

02 March 2007

hi, friends download VS 2005 SKD 4.0 from here.

it's size is 124MB.

Developer can create his own short cut keys in IDE.

See Tools->Options

where you will found a tree view in left side of Dialogbox, Click on Environment - > KeyBoard

you can create your own short cut key in IDE and also can save them as Globle or private Hot Keys, It's realy great for the developer.

there is also addtional keyboard mapping scheme for perticular environment like Visual Basic 6, Visual C# 2005 etc.

14 October 2006

I have come to know that there is some new version for Visual Studio. but it is actualy "Orcas",

i try to search for this and i found many information for this. here it is one of them.

14 September 2006

find almost all import leader blog.
Click here to open the page.

there are many many leader blog path avalable.

like
Visual Studio Team System Foundation Server
Visual Studio
.NET Compact Framework

and many other
read there idea