Visual Studio question

  • Thread starter Thread starter fez
  • Start date Start date

fez

fez

Caporegime
Joined
22 Aug 2008
Posts
28,045
Location
Tunbridge Wells
Right,

At work I use visual studio 2008 for all my vb .net dev work and while I am working it automatically updates the errors panel as I go. If I have a syntax etc issue it will alert me and as soon as I fix it visual studio will update the error list.

I have started having a play around with C# at home on visual studio 2008 but this feature seems to be disabled or missing. How do I enable this. It currently only updates the errors when I build.

Any help would be much appreciated.
 
Have you got the error list on? View > error list.

ALT+B+U is your friend also (it builds the current project) :)
 
Yeah the error list is on, it just doesnt update on the go. Cheers for the shortcut though.
 
If there's a syntax error then the code editor will flag it up using coloured underlines, which you can mouse-over for more information. Any other compile time error will not be reported until compilation.
 
Cheers for the answers chaps, must be only in VB that it does this. Its not a biggie, its just something that would make life a little faster.
 
Yeah, I always feel a little dirty using VB as well. I like using curly braces to control the flow of a program and I have never felt at ease with VB. Most of the jobs that I have seen want C# so its the logical choice to become proficient it.
 
Got to say that I am really enjoying it at the moment, some of the methods of doing things are great and I like the look of LINQ a lot. I am writing a program that uses an xml file to represent data from a db which will be inported and exported and it sounds like a lot of the xml stuff will be a little easier than before. I know that LINQ isnt c# specific but the language syntax is more natural.
 
Last edited:
Nullable types are much more natural in C# as well.
I always hate doing them in VB.NET, it's like stabbing pens in my eyes.
 
Yeah that sensation does feel familiar. Main factor is my future employability. Im 22 and looking to move out of my current job and area to pastures new and want to get a well paid job when I move. C# seems to be what the industry demands.
 
Got to say that I am really enjoying it at the moment, some of the methods of doing things are great and I like the look of LINQ a lot. I am writing a program that uses an xml file to represent data from a db which will be inported and exported and it sounds like a lot of the xml stuff will be a little easier than before. I know that LINQ isnt c# specific but the language syntax is more natural.

You should look at using typed datasets. You can import your DB structure into them with the Visual Studio GUI (you can drag/drop from SQL servers anyway) and then call the readxml() and writexml() functions to import and export your data (assuming the XML is in the right format to start with). They made my life quite a lot easier :).

http://msdn.microsoft.com/en-us/library/system.data.dataset.readxml.aspx


Yeah that sensation does feel familiar. Main factor is my future employability. Im 22 and looking to move out of my current job and area to pastures new and want to get a well paid job when I move. C# seems to be what the industry demands.

It's definitely possible. I finished my degree last year (2008), had about two weeks off and landed a job as a C# developer for a smallish company in charge of all development, I'm 23 now :). Still doesn't stop me misreading questions though :p.
 
Last edited:
Cheers for the help chaps, I sorted out my job a few months before graduating when a company phoned me up and asked if I wanted a job as a VB .net developer. I have been here a little over a year and feel like I am not learning much so am taking it on myself to keep my progress ticking over.
 
Back
Top Bottom