Tuesday, October 18, 2005

HTML server control

A control that appears as an HTML element marked by a runat=server attribute on an ASP.NET page. In contrast to Web server controls, HTML server controls do not have an tag prefix. An HTML server control belongs to the System.Web.UI.HtmlControls namespace.

Web server control
A control that has an prefix on an ASP.NET page. A Web server control belongs to the System.Web.UI.WebControls namespace.

Wednesday, October 12, 2005

Visual Studio .net FAQ's

How are namespaces different from assemblies?

An assembly is a physical grouping of the source code and resource files that is stored into some file(s). A namespace, on the other hand, is a logical grouping of related types which not necessarily reside into same assembly. A namespace may contain sub or child namespaces while there is not concept of child or sub assemblies (module is something different from child namespace, as modules are integral and necessary parts of an assembly). An assembly not only contains the source code, it also contains manifest, version information (optional public key token) and culture information. A program may reference two or more assemblies with the same name (but with different versions) but a program can not contain two namespaces with the same name.

@faq article
@more faq
@more faq +
@more faq +#
@more faq +#+

How to develop a screen saver in C#

A screensaver in Windows® is simply an executable file with the extension .scr. The only difference between a normal executable and a screensaver is that a screensaver does some specific things, viz:

* parses the command line to find out what Windows® wants it to do
* loads the screensaver appropriate to that request
* ends the screensaver (usually), when the user uses the mouse or the keyboard

The arguments Windows® passes to a screensaver are:

* /s - load the screensaver
* /c - load the configuration screen
* /p - load the preview

Once we determine the argument passed, we load the screensaver appropriately. When there is some kind of activity, you end the screensaver or do something else.

@link to article

Tuesday, October 11, 2005

Skype communication api's usage in .net

Demonstrates how to talk to the Skype API to develop application using Skype. The communication uses the windows messaging subsystem. You need to have Skype loaded. The same sample is available in VB6. Added using an Old version of .NEt but tested under latest as well.

@skype api documentation
@new api features
@skype plugin architecture