To display the line numbers:
- Go to Options (via menu, Tools --> Options)
- From the left, select "Text Editor", and select "All Languages" (or the specified language you want to enable line numbering)
- Tick the checkbox that says "Line numbers".
Figure: Visual Studio .NET 2003 Options