Search This Blog

Thursday, December 20, 2012

Window's

When you attempt to start the Registry Editor (regedit.exe) in your Windows Vista system, you may receive the following message:
Registry editing has been disabled by your administrator

Resolution

If the above error message is shown in a standalone system, then it may be a result of Malware infection. It is also possible that the DisableRegistryTools policy had been enabled by a third-party tweak program which you may be using. It's highly advisable to follow up with a complete system checkup for Virus and Malware, especially when you're unsure about the cause.
Note: If your system is connected to a domain, your network administrator may have enabled the DisableRegistryTools Policy setting. In that case, you'll need to contact the network administrator to relax this restriction, if need be.

Method 1 - Using Group Policy Editor

If you are using an edition of Windows Vista (Windows Vista Business, Enterprise and Ultimate editions) which includes the Group Policy Editor, follow these steps:
  • Click Start, type gpedit.msc in the Search box, and press ENTER
  • Go to the following branch:
User Configuration | Administrative Templates | System
  • Double-click Prevent access to registry editing tools
  • Set it as Not Configured
Important: If it's already set to Not Configured, set it to Enabled and click Apply. Then repeat the steps and revert the setting back to Not Configured. This removes the registry based policy if set already.

Method 2

This method should work in all editions of Windows Vista.
  • Download reg_enable.vbs attached at the end of this article, and save it to Desktop
  • Open an elevated command prompt. To do this, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
  • Switch to your Desktop directory by typing the following command, and then pressing ENTER:
cd /d %userprofile%\desktop
  • Then, type the following command and press ENTER
wscript.exe  reg_enable.vbs
  • Type EXIT to close the Command Prompt window.
If everything worked fine, the DisableRegistryTools policy should have been removed by now. See if you're able to launch Regedit.exe now.

Tuesday, July 19, 2011

Windows

When you attempt to start the Registry Editor (regedit.exe) in your Windows Vista system, you may receive the following message:
Registry editing has been disabled by your administrator

Resolution

If the above error message is shown in a standalone system, then it may be a result of Malware infection. It is also possible that the DisableRegistryTools policy had been enabled by a third-party tweak program which you may be using. It's highly advisable to follow up with a complete system checkup for Virus and Malware, especially when you're unsure about the cause.
Note: If your system is connected to a domain, your network administrator may have enabled the DisableRegistryTools Policy setting. In that case, you'll need to contact the network administrator to relax this restriction, if need be.

Method 1 - Using Group Policy Editor

If you are using an edition of Windows Vista (Windows Vista Business, Enterprise and Ultimate editions) which includes the Group Policy Editor, follow these steps:
  • Click Start, type gpedit.msc in the Search box, and press ENTER
  • Go to the following branch:
User Configuration | Administrative Templates | System
  • Double-click Prevent access to registry editing tools
  • Set it as Not Configured
Important: If it's already set to Not Configured, set it to Enabled and click Apply. Then repeat the steps and revert the setting back to Not Configured. This removes the registry based policy if set already.

Method 2

This method should work in all editions of Windows Vista.
  • Download reg_enable.vbs attached at the end of this article, and save it to Desktop
  • Open an elevated command prompt. To do this, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
  • Switch to your Desktop directory by typing the following command, and then pressing ENTER:
cd /d %userprofile%\desktop
  • Then, type the following command and press ENTER
wscript.exe  reg_enable.vbs
  • Type EXIT to close the Command Prompt window.
If everything worked fine, the DisableRegistryTools policy should have been removed by now. See if you're able to launch Regedit.exe now.

**Create file with name reg_enable.vbs.
Edit this file and paste following code and save it.

'Description: Resets the "Prevent access to registry editing tools"
'    Policy in Windows Vista. If UAC is enabled, this script needs to
'    be run from an elevated Command Prompt.
'Compatibility: This script was tested under Windows Vista and Win 7 32bit only.

Option Explicit
Dim WshShell, strUserName, strDomain, strSID
Dim objWMIService, colItems, objItem, arrName, objAccount

Set WshShell = WScript.CreateObject("WScript.Shell")
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * From Win32_ComputerSystem")

For Each objItem in colItems
    arrName = Split(objItem.UserName, "\")
    strDomain = arrName(0)
    strUserName = arrName(1)
Next

Set objAccount = objWMIService.Get _
    ("Win32_UserAccount.Name='" & strUserName & "',Domain='" & strDomain & "'")
strSID=objAccount.SID

If trim(strSID) <> "" then
    WshShell.RegDelete ("HKEY_USERS\" & strSID & "\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools")
    Msgbox "Completed!"
End if

WPF Information

Issue - I have one list view to which i have bound a data and i have a one search button, and textblock to search names. No, i have clicked on search button it will show whole data with scroll. to see whole data i scrolled the list view down and to view few of them i entered whole or part of name in the textblock and click on the search button then it shows less no. of searched result than actual one with scroll bar.

 Resolution - objListView.ScrollIntoView(objListView.Items[]); in the code.

It actually scrolls to the mentioned position.

WPF Information

I have faced one problem in the WPF window.
We are showing toggle button in each row of the List view control. It shows 15 items on a page. If you scroll the list view down to check other items which are not visible and again scroll up then you will see above checked items get unchecked.
 - To resolve this issue we used 
VirtualizingStackPanel.IsVirtualizing="False" VirtualizingStackPanel.VirtualizationMode="Recycling" in the List view in xaml.

Friday, July 15, 2011

SilverLight Information

Silverlight is Microsoft's framework for building cross-browser and cross-platform rich Internet applications with streaming video, rich text, Ajax functionality and the like.

What is Silverlight?

WhatIs definition: Silverlight
"Silverlight is a programming model for developing and distributing rich Internet applications and a plug-in from Microsoft for delivering media created with Silverlight."

WhatIs definition: XAML
"XAML, Extensible Application Markup Language, is Microsoft's XML-based language for creating a rich graphical user interface."

WhatIs definition: CLR
"As part of Microsoft's .NET Framework, the Common Language Runtime (CLR) is programming that manages the execution of programs written in any of several supported languages, allowing them to share common object-oriented classes written in any of the languages."

Differences between varchar and nvarchar in SQL Server

The broad range of data types in SQL Server can sometimes throw people through a loop, especially when the data types seem to be highly interchangeable. Two in particular that constantly spark questions are VARCHAR and NVARCHAR: what's the difference between the two, and how important is the difference?
VARCHAR is an abbreviation for variable-length character string. It's a string of text characters that can be as large as the page size for the database table holding the column in question. The size for a table page is 8,196 bytes, and no one row in a table can be more than 8,060 characters. This in turn limits the maximum size of a VARCHAR to 8,000 bytes.

The "N" in NVARCHAR means uNicode. Essentially, NVARCHAR is nothing more than a VARCHAR that supports two-byte characters. The most common use for this sort of thing is to store character data that is a mixture of English and non-English symbols — in my case, English and Japanese.
The key difference between the two data

 Refer this link for more information:

http://searchsqlserver.techtarget.com/tip/Differences-between-varchar-and-nvarchar-in-SQL-Server