December 26, 2013

Google Spreadhseet Notification Save button is greyed out

- "Set notification rules" save button is not available (grayed out)
- the save button is "grayed" out in Google spreadsheet notification
- save button is also grayed out
- save button in Google spreadsheet notification rules is not worked for me :-(

1- Just start check the check boxes from end to first (it's worked)
2- Checked all checkboxes and unchecked one of three of top checkboxes
It works for me ;-)

December 19, 2013

Could not install Gradle distribution

Gradle 'AmastanehTestApp' project refresh failed:
Cause: error in opening zip file
Gradle settings

Could not install Gradle distribution from ''. error in opening zip file
error in opening zip file: Could not install Gradle distribution from ''. error in opening zip file
error in opening zip file

Gradle invocation completed successfully in 0 sec

Download the' file from link in above message and put it in C:/Users/[current user]/.gradle

November 27, 2013

How to Enable Developer Options on Android

- How to enable developer settings on Android 4.2
- How to Enable Developer Options on the KitKat
- How to Enable Developer Options on the Nexus
- ... Android's Developer Options ...

- Go to Settings
- Go to About (or About Tablet or somethings like)
- Go to Build Number (usually in last item)
- Tap on this part more than 7 times
- Congratulation ... Back to settings and go to last item in list and enjoy of Developer Options 

October 30, 2013

How to Disable Screen Lock

- How to disable Pattern Screen Lock
- "Disabled by Administrator, encryption policy, or credential ...
- Can't disable screen lock
- Can't disable pattern screen lock

Case Study (Screen lock)
None (Grayed out) Disabled by administrator, encryption policy, or credential storage. 
Slide (Grayed out) Disabled by administrator, encryption policy, or credential storage.
Face Unlock (Grayed out) Disabled by administrator, encryption policy, or credential storage.
Pattern (Enabled)
PIN (Enabled)
Password (Enabled)

Go to SETTINGS > Security > Clear credentials (last item) and then go to Screen lock

October 20, 2013

Visual C++ DLL in C#

- VC++ DLL in C#
- How to call C++ DLL in C#
- How to call a Visual C++ method in C# by DllImport
- DllImport in C# ... Visual C++ Dll
- How to use DllImport a C++ class

- Unable to find an entry point named ...

Add these lines in VC Project
extern "C"
    __declspec(dllexport) int Sum(int a, int b) {return a + b;}
    __declspec(dllexport) int Mul(int a, int b) {return a * b;}

Add these lines in C-Sharp Project
public static class DllHelper
    public static extern int Sum(int a, int b);
    public static extern int Mul(int a, int b);

September 28, 2013

Copy files to Output in Visual C++

- How to Copy a image file in Debug folder?
- How to make a image file output to the Debug or Release directory when compiling
- I want to put a image file under the project root path
- How to configure the project to let it copy the image file to output dir when compiling
- How to automatic copy files to output during application building ...

I have a perfect solution. Trust me and come step by step with me.
I do this on Visual Studio 2012, VC++ 11 :-)

1- include the file (or files) to your project.
PS: if you have your the file(s) in project exclude, save project and include it again.

2- Close your Visual Studio and open the project file in any txet editor like notepad or Notepad++

3- Find your file(s) name in project file. It's a None element. Change it like example

    <None Include="xyz.ext" />

  <Content Include="xyz.ext">    <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

August 28, 2013

C# Inline Method

- What's the solution for inline method in C#
- C# inline method
- I there a WPF inline method solution
- How to make inline functions on .Net
- ... Inline function in c sharp ...

Add this Attribute above your method or functions like below

August 26, 2013

Debugging WPF Controls at Design Time

- How to debug Visual Studio 2012 instance design-time
- Debug at Design Time in WPF
- WPF Debugging Design-Time Exceptions
- How to debug in design time
- Debugging a control at design time in ...
- Test DesignerProperties.GetIsInDesignMode in Design mode
- I want stop code in code under GetIsInDesignMode ...

OK, Step with me with open eyes, It's so easy and fun
- Open another empty VS (we called NEW)
- In NEW visual studio go to Attach to Process...
- Find and select XDesProc.exe and click on Attach button
- Back to main VS and go to a xaml (UI) and do a somethings ;-)
when the somethings change you can find it in NEW visual studio.
It's so easy, yeap, Take enjoy :)

July 31, 2013

I hit b, n and m and get "bn", "nm", "m,"

- I Hit "b" and get "bn"
- I Hit "n" and get "nm"
- I Hit "m" and get "m,"
- Microsoft Wireless Keyboard Problem in hit b, n, m
- Microsoft Wireless Keyboard 3000 problem with "b", "n" and "m" keys

Don't clean the keyboard with vacuum-cleaner, it's OK just replace your batteries
This is a pathetic sign for low battery i think so 

July 26, 2013

Prevent Show a UserControl in ToolBox

- I don't want User Controls showing up in the toolbox
- How to put out a UserControl from Visual Studio ToolBox
- My user controls appear in tool box
- User control must not show in toolbox
- Prevent a base class from VS2012 toolbox

Just Add these lines to top of your class.
PS: The first line is enough


July 24, 2013

Toolbox Icon For WPF Custom Control

- Displaying a custom Icon on the Toolbox for a Custom Control
- A Toolbox Icon for a WPF Control
- How to add a custom Toolbox icon to a WPF custom control In Visual Studio 2012
- Add a custom control icon to the tool box in VS2012

I test more solutions but this solution helps me and it's simplest as i think so.
Just Add a picture file (not just bmp file) to a folder (not a specific folder) with these conditions
- Name: must be a full control name + icon + extension like below example
Structure: FullControlName.icon.ext
Sample Name: Project1.Control1.icon.png
Sample Name: WpfApplication1.Forlder1.CustomControl1.icon.bmp

- Right Click > Properties > Build Action > Embedded Resource (Just Embedded Resource no Resource or another one)

These icons just appear, when use of your DLL and in Design Time, visual studio just use of default icons.

- Go to ToolBox > RightClick > Choose Items... > WPF Components > Browse... > Add the DLL of your project and enjoy of ICON :-)

July 22, 2013

member is not valid because it does not have a qualifying type name

'Property Name' member is not valid because it does not have a qualifying type name.

It's so simple, You must declare Type of property.
Just add the Namespace and class name before properties.

<Setter Property="Background" Value="{Binding Background}" />

<Setter Property="Background" Value="{Binding amaControls:amaButton.Background}" />

April 01, 2013

KMPlayer Access is denied

- KMPlayer Error: System Error. Code:5.
- KMPlayer Error: Access is denied
- The KMPlayer have problem with windows 8 ...
- When Windows 8 goes to sleep my kmplayer have problem to access ...

You need to have an administrator previllage for your current user on windows 8 ... then follow my steps and continue
- Press Windows Key + Q
- Type command
- Right Click on Command Prompt Tile
- Select Run as administrator from bottom ribbon
- type this command in the black screen and press enter
net user administrator /active:yes

March 26, 2013

Windows 8 snapping not working

- My windows 8 can't split screen to two parts ...
- Windows 8 can automatic split to two parts (20% - 80%)
- Windows 8 Snap on desktop not working
- I'm trying Windows 8 and I want to test the new snap feature where you can have two metro apps side-by-side but ...
- How to Force Enable Snap Feature


1- Change you windows resolution to 1344 and upper (like 1360x768 or 1366x768)
2- Create a DWORD key AlwaysEnableLSSnapping with 1 in under location with RegEdit
HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ ImmersiveShell \ AppPositioner

March 05, 2013

Adobe Photoshop CS6 blink/glitch

- Why Photoshop CS6 turn on/off ...
- Why Photoshop CS6 blink on windows 8 ...
- I can't work with Photoshop CS6 on Windows 8 ... has glitch link old TV ...

- Edit > Preferences > Performances > Advanced Settings ... > Change to Basic
- Restart the Photoshop
It's done but this is not a solution and it's help to avoid of problem :-(


February 05, 2013

Data binding ... not supported

Message: Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery) is not supported. Instead populate a DbSet with data, for example by calling Load on the DbSet, and then bind to local data. For WPF bind to DbSet.Local. For WinForms bind to DbSet.Local.ToBindingList().
Source: EntityFramework

- If you want to use of Visual Studio 2012 instead of 2010
- If your project used of .Net Framework 4.0 and below
- If you upgrade Entity Framework from EF4.0 to EF4.1 or EF5.0 (CTP 5.0)
- If you Upgrade ADO .NET Entity Data Model and generate it again ;-)
- If your Model used of DbSet/DbSet<T> Instead of ObjectSet ***
Ok, you in trouble like me ;-)

Problem Case:
This case is good in VS2010 with EF4.0 with Old Model which used of ObjectSet
XYZEntities xyz = new XYZEntities();
this.gridControl1.ItemsSource = xyz.Table1;

Solution Case:
- Upgrade your project to .Net 4.5
- Use of Local Property ;-)
XYZEntities xyz = new XYZEntities();
this.gridControl1.ItemsSource = xyz.Table1.Local;