.NET Answers

ASP.NET, HTML, CSS, Visual Studio, CSharp, VB.NET and other programming items of interest.
Subscribe

Archive for the ‘Did you know’

Advantages of Using Class Diagram

November 20, 2008 By: Dave Category: Did you know

misc_vol4_063 One of the new tools that showed up in Visual Studio 2005 that I don’t see many people taking much advantage of is the Class Diagram.

The class diagram displays the classes you drag onto it in a visual representation much like a UML class diagram does.  It also lets you see relationships between your classes.  But the greatest power in the Class Diagram is that it will write a lot of your code for you.

(more…)

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Easily Find Classes, Methods, and Variables

November 17, 2008 By: Dave Category: Did you know

I02B0065 There is a bit of a “trick” that I use routinely in Visual Studio to help me find the definition of Classes, Methods, and Variables in my solution regardless.

This “trick” works in both CSharp and in VB.NET and, if you don’t know it already, will save you a ton of time.

(more…)

Automatic Implementation of Interfaces

October 01, 2008 By: Dave Category: Did you know

videoIt’s been a while since I’ve posted a video on this site because I only do videos for things that are better explained by showing you how something works.  Most of what we’ve been looking at is code, which is better explained by using… well… just code.

But today, we need to SHOW you a feature of Visual Studio that will allow you to implement your interfaces a lot faster than you are probably use to.  In fact, I would be willing to bet that most of you don’t even know that this feature is here.

So….

(more…)

Panel DefaultButton does not work

September 23, 2008 By: Dave Category: Did you know, none

misc_vol2_051 Or, at least, it didn’t. Here’s what happened:

Yesterday a client asked me to help track down a problem he was having with setting the default button for a text box.

As you should already know, you can make ASP.NET automatically click a specific button on the page (Button, ImageButton, or LinkButton) by grouping everything in a Panel and setting the DefaultButton property to the ID of the button you want to have automatically clicked.

(more…)

Did you know - Zip is built into .NET?

August 21, 2008 By: Dave Category: Did you know

food-cof-01 A couple of weeks ago, I was working on a project that required me to unzip a file.  There is only one text file in the zip, so using a full-blown library like SharpZipLib (OpenSource) or some commercial product just didn’t seem right.  From my experience with Java, I knew zip routines were available as part of the Java libraries in .NET (JSharp).  It seemed like my best bet would be to use what was already available rather than having yet another DLL on my system.

(more…)