Tips & Tricks
Tips & Tricks
Execute this build and it will generate the schema for all the available nant tasks, including nantcontrib tasks, if it is installed correctly within nant directory. Change the target-ns, if you are using other then http://nant.sf.net/schemas/nant.xsd.
To enable intellisense for .build file in Visual Studio.net copy nant.xsd file to C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\schemas\xml directory. C:\Program Files\Microsoft Visual Studio .NET 2003 is the VS.net's default installation path.
-- Mihir
Please leave feedback
here
You should use the Delete() method to delete an event log cautiously. When an event log is deleted, all event source registered with it are also deleted, so no application can continue writing to that log. Do not attempt to delete an event log that was created by Windows or any other application that is important to you; if you do, those applications might crash or behave in unexpected ways.
PS : Leave your feedbacks/comments here
The FontStyle enumeration has a Flags attributes that allows bitwise operations on FontStyle values. For example, look at the following statement:
lblSampleText.Font.Style | FontStyle.Underline
Here the | operator will turn on all the bits representing the Underline style, returning a FontStyle value that adds Underline to the existing font Style of lblSampleText.
The following expression involves a bitwise exclusive OR (XOR) operation:
lblSampleText.Font.Style ^ FontStyle.Underline
This expression returns a FontStyle value that toggles the Underline font style of the label. If the label was already underlined, the new value has the underline removed; if the label was not underlined already, the Underline bits are set in the new value.
The following expression involving a bitwise AND does not have any effect because using AND with 1 always returns the original value:
lblSampleText.Font.Style & FontStyle.Underline
PS : Leave your feedbacks/comments here
Default Windows XP visual settings may look nice but they slow down system responsiveness. Here is how to keep the "look" of Windows XP while losing the sluggish feel.
Instructions - Go to "Start", "Settings", "Control Panel", "System", "Advanced" tab, in the "Performance" section select "Settings".
1. Disable Animate Windows
Shows an animation while maximizing and minimizing windows.
2. Disable Fade or slide menus into view
Fades in menus with a slow animation instead of showing them immediately.
3. Disable Fade out menu items after clicking
Fades out the selected menu item after closing the menu.
4. Disable Show shadows under menus
Shows shadows under the menus.
5. Disable Show shadows under mouse pointer.
Shows a shadows under the mouse pointer.
6. Disable Show translucent selection rectangle
Shows a colored rectangle rather than a dotted frame when selecting multiple files.
7. Disable Show windows contents while dragging
Show the window contents instead of a border when dragging.
8. Disable Slide open combo boxes
Show an animation when opening and closing combo boxes.
9. Disable Slide Taskbar buttons
Fades in new taskbar buttons with a scroll effect.
10. Disable Smooth edges of screen fonts
Smoothes the edges of large fonts on the screen.
11. Disable Smooth-scroll list boxes
Animates scrolling in listboxes.
12. Disable Use a background image for each folder type.
Displays a musical note in the background of folder with music files, for example.
13. Disable Use drop shadows for icon labels on the desktop
Create a transparent background for the icon titles on the desktop.
You can also access the visual effects settings from the Appearance tab of the Display Properties dialog box. When you click the Effects button you’ll see the Effects dialog box
PS : Leave your feedbacks/comments here
There are many ways to lock your work station.. Here is the most common way is:
Press Ctl+ Alt+ Delete and click "Lock Computer".
There are 2 other alternatives:
1. Windows Key + L
2. Create an shortcut rundll32.exe user32.dll,LockWorkStation
and programmatically
using
System;
using
System.Runtime.InteropServices;
[DllImport("user32.dll")]
public
static extern void LockWorkStation();
private
void button_Click(object sender, System.EventArgs e) {
LockWorkStation();
}
-- Mihir Solanki
PS : Leave your feedbacks/comments here
| 1. |
Press the CTRL+TAB keys. It will show a dialog box listing the current open files. |
|
|
| 2. |
Click on the Open Files icon in the top right of the Code Editor. This will open a list of currently open files. |
|
|
| 3. |
Click on the name of the file in the list of the tab immediately above the Code Editor. |
|
|
| 4. |
Click on the Navigate Backward or Navigate Forward buttons in the standard toolbar. |
|
|
| 5. |
Press CTRL+-, or CTRL+SHIFT+- |
|
|