Visual Studio 2005 Tips and Tricks


For Fast Loading

Options-->Environment-->Start-up-->At Start up-->Select(Show Empty environment).
Options-->Windows Form Designer:General:Auto-populate-->False
Turn Off Animation
Options-->Environment-->Unchecked(Animate Environments Tool).
View Line numbers
Options-->Environment--->Select Text Editor-->Select the desired language(e.g: C#)-->display:check line numbers

Bored of editor look Want Cool Interface like this one :



Just Download the scheme from this site:Studio Styles -
Visual Studio color schemes
->then Goto Import and export Settings:-->Import Selected environment Settings-->Browse --->Select Scheme:Click Finish.

View hierarchy of HTML parent elements:

Tools->Option->HTML Designer->Display and selected the option for Show Details for non visible elements. This option also shows additional nonvisible elements(like DIV,span) in the designer.

Working in Asp.net and want to Debug javascript :

simple write debugger where u want debug it .....

Increase your VS screen real estate by disabling HTML Navigation Bar
To-do this, just select the Tools->Options menu item within VS, navigate to the "Text Editor->HTML" node and uncheck the "Navigation Bar" checkbox option:

HTML Validation Checking in VS 2005 (and how to optionally turn it off if you want)
Tools->Options menu item in VS or Visual Web Developer. Select the TextEditor->Html->Validation tree option in the left-hand side of the options window, and uncheck the “Show Errors” checkbox:


and there are many more i will post it later .......

System Registry Important Tweaks

Windows Registry

The Windows Registry is a hierarchical database that stores configuration settings and options on Microsoft Windows operating systems. It contains settings for low-level operating system components as well as the applications running on the platform: the kernel, device drivers, services, SAM, user interface and third party applications all make use of the Registry. The registry also provides a means to access counters for profiling system performance



How to launch Registry?

Run -> regedit

Tweaks

Adds System Restore, Services, LogOff, Reboot, Shutdown, Device Manager, Control Panel and Add/Remove Programs to My Computer Right-Click Menu:
-
Windows Registry Editor Version 5.00

;Adds Control Panel to right click of MY Computer
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Control Panel\command]
@="rundll32.exe shell32.dll,Control_RunDLL"

;Adds Add/Remove to right click of MY Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Add/Remove\command]
@="control appwiz.cpl"

;Adds Drive Cleanup to right click of MY Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Drive Cleanup\command]
@="cleanmgr"

;Adds Services to right click of MY Computer - may have been already posted but its in my list
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Services]
@=hex(2):53,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,00,00
"SuppressionPolicy"=dword:4000003c

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services\command]
@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73,\
00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00,\
65,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\
00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,\
32,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,2e,00,6d,00,73,\
00,63,00,20,00,2f,00,73,00,00,00

;Adds System Restore to right click of MY Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\System Restore\command]
@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73,\
00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,65,00,73,00,74,00,6f,00,72,00,\
65,00,5c,00,72,00,73,00,74,00,72,00,75,00,69,00,2e,00,65,00,78,00,65,00,00,\
00

;Adds LogOff to right click of MY Computer. I add the [] to group these
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\[LogOff]\command]
@="shutdown -l -f -t 5"

;Adds Reboot to right click of MY Computer. I add the [] to group these
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\[Reboot]\command]
@="shutdown -r -f -t 5"

;Adds Shutdown to right click of MY Computer. I add the [] to group these
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\[Shutdown]\command]
@="shutdown -s -f -t 5"

;[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}]
;"LocalizedString"=hex(2):25,55,53,45,52,4e,41,4d,45,25,27,73,20,43,6f,6d,70,75,74,65,72,00

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\regedit]
@="Registry Editor"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\regedit\command]
@="C:\\Windows\\Regedit.exe"

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Devices]
@=hex(2):44,00,65,00,76,00,69,00,63,00,65,00,20,00,4d,00,61,00,6e,00,61,00,67,\
00,65,00,72,00,00,00
"SuppressionPolicy"=dword:4000003c

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Devices\command]
@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73,\
00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00,\
65,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\
00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,\
32,00,5c,00,64,00,65,00,76,00,6d,00,67,00,6d,00,74,00,2e,00,6d,00,73,00,63,\
00,20,00,2f,00,73,00,00,00

-
:Add 'Event Viewer' to the My Computer Right-Click Menu:

Windows Registry Editor Version 5.00

;Adds Add/Remove to right click of MY Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Event Viewer\command]
@="eventvwr"
-
Add 'Cleanup Drives' to the My Computer Right-Click Menu:

Windows Registry Editor Version 5.00

;Adds Drive Cleanup to right click of MY Computer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Drive Cleanup\command]
@="cleanmgr"

Fix the Windows Search and treat all unknown extensions as text (.txt) files (Chris Sells)
-
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex]
"FilterFilesWithUnknownExtensions"=dword:00000001

Geolocator Application:Visitor Locator (Client) Side

Geolocation is the identification of the real-world geographic location of an object, such as a cell phone or an Internet-connected computer terminal. Here we strictly discussing abt internet and Ip addresses.Now days Ip address geocoding is very common or in simple way ip2location service.These services are very useful in many aspects like Geo (marketing),Fraud detection ,Censorship .and many more.
Now from here we will try to create a Visitor Locator Application.What will u need ?

1. Basic HTML knowledge
2. Offcourse internet connection
3. basic knowledge of java-script....


In later section we will discuss how to create same app with server side coding.....

First Step: Add Map & Script Referencs
After locating a visitor u need to show it on map.So what we need first a map where u can graphically show the position of IP address user. I prefer google map.As we dont have domain so what we will do?We will use the key of google,create HTML file and place following script in [B]head section.
Note :As we are looking for client side script so u can use this script






This is api key to get Google map.Place this below above script





So it will look like this :





Step 2:
Now we just put all references of scripts Now its time to create Google map.
code



Step 3:
load map on page load and show visitor location.To so Follwing code is used





Complete code:
---------------------------------------------------------------------------------------------------








----------------------------------------------------------------------------------------------------
Thats it .....
Your Visitor locator is created....place this code in any website.As soon as visitor vist site he will be located in Google map.Want to know something more about visitor you can use following script also.
-----------------------------------------------------------------------------------------------------

Newer Posts Older Posts Home

We have seen by

    Followers

    Translate


Recent Comments