This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Tuesday, July 2, 2013

Alpha Numeric Auto Increment in .net

Alpha Numeric Increment in .net



       private voidbutton1_Click(object sender, System.EventArgs e)
              {
                     label1.Text = NxtKeyCode( textBox1.Text );
                     textBox1.Text =label1.Text;
              }

              public stringNxtKeyCode(string KeyCode)
              {
                     byte[] ASCIIValues = ASCIIEncoding.ASCII.GetBytes(KeyCode) ;
                     int StringLength = ASCIIValues.Length ;
                     bool isAllZed = true;
                     bool isAllNine = true;
                     //Check if all has ZZZ.... then do nothing just return empty string.

                     for(int i =0; i < StringLength-1; i++)
                     {
                           if(ASCIIValues[i] != 90)
                           {
                                  isAllZed  = false;  
                                  break;
                           }
                     }
                     if(isAllZed && ASCIIValues[StringLength-1] == 57)
                     {
                     ASCIIValues[StringLength-1] = 64;
                     }
                    
                     // Check if all has 999... then make it A0
                     for(int i =0; i < StringLength; i++)
                     {
                           if(ASCIIValues[i] != 57)
                           {
                                  isAllNine = false;  
                                  break;
                           }
                     }
                     if(isAllNine)
                     {
                     ASCIIValues[StringLength-1] = 47;
                     ASCIIValues[0] = 65;
                     for(int i =1; i < StringLength-1; i++)
                     {
                     ASCIIValues[i] = 48;
                     }
                     }
                    

                     for(int i = StringLength; i>0; i--)
                     {
                           if(i-StringLength == 0)
                           {
                                  ASCIIValues[i-1] +=1;
                           }
                           if(ASCIIValues[i-1] == 58)
                           {
                                  ASCIIValues[i-1] = 48;
                                  if(i-2 ==-1)
                                  {
                                         break;
                                  }
                                  ASCIIValues[i-2] += 1;
                           }
                           else if(ASCIIValues[i-1] == 91)
                           {
                                  ASCIIValues[i-1] = 65;
                                  if(i-2 ==-1)
                                  {
                                         break;
                                  }
                                  ASCIIValues[i-2] += 1;
                    
                           }
                           else
                           {
                                  break;
                           }
                    
                     }     
                     KeyCode = ASCIIEncoding.ASCII.GetString(ASCIIValues);
                     return KeyCode;
              }
              public stringNxtKeyCod(string KeyCode)
              {
                     //int startint = KeyCode.IndexOf("0123456789",0,1);
                     StringBuilder sb = newStringBuilder();
                     //Regex digitregex = new Regex("^[A-Z])");
                     //KeyCode = digitregex.Replace(KeyCode, "");
             
                     return KeyCode;
              }



DESIGN

















OUTPUT

Alpha Numeric Auto increment





















Click Here TO Download Alpha Numeric Auto Increment in .net exe


To Get Mother Board and Processor informations

System Information 



Mother Board Information

System Information
 
To Save Systrm Information File


Click Here To Download System Information file

How To Enable Write Protection Of USB Devices Under Windows

You have probably seen the following scenario in multiple thriller and spy movies; A spy connects an USB stick to a computer to copy data from the computer to the device. Movies do not necessarily reflect reality but there is some truth to this scenario after all. It is indeed possible to connect an USB device to a computer running Windows to copy data from that computer to the removable storage device.
It is sometimes in the best interest of companies, organizations and individuals to protect the data on their computer from being copied this way.
Microsoft has added options to the Windows operating system (more precisely to Windows XP and newer operating systems) to write protect all USB devices that are connected to it. This indicates that it may not always be possible to protect the computer this way, for instance if data needs to be written to USB devices regularly.
Write Protection adds another layer of defense to the computer. The system is not fool proof on its own, as it is still possible to copy data, for instance by uploading it to the Internet or a network connection.

Write Protecting USB Devices

You can enable or disable write protection of all USB devices that are connected to the Windows operating system. Both settings are configured in the Windows Registry. Here is how this is done.
Open the Windows Registry editor with the shortcut Windows-r, enter regedit into the form and press the return key on the keyboard.
Navigate to the following Registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies
Please note that you may need to create the key StorageDevicePolicies if it does not exist. Select the key afterwards and right-click into the right window. Select New > Dword (32-bit) Value from the context menu and name the entry WriteProtect.
Double-click the new entry afterwards and change the value from 0 to 1. A value of 1 disables writing to all connected USB devices. If you want to enable writing again you need to change the value of the key to 0.
storagedevicepolicies
The new setting takes effect immediately. Every user who tries to copy data to USB devices with write protection enabled receives the following notification window.
disk is write protected
It reads
Copy File
The disk is write-protected
Remove the write-protection or use another disk.
I have created two Registry files to enable or disable write protection. You can download a zip file that contains both files here: write protect
This way you can disable write protection with a click on a file, and enable it again when you have copied files to the USB device.

Monday, July 1, 2013

How To Take Animated Gif Screenshots in Windows

ometimes a static picture by itself doesn’t convey a meaningful message, especially if you want to show someone a particular workflow or emphasize on a particular subject. A short video clip would be helpful, but sometimes it’s rather an overkill to record couple seconds of video and upload to a video hosting site, too much work for something mean to be simple at first.
This is where animated gif shines (examples can be find herehere and here). Mostscreen capture tools we’ve covered in the past only lets you to capture static image files in different format.
Cropper is yet another screen capture utility that gives you options to capture animated GIF. It’s an OpenSource project hosted on Microsoft’s CodePlex. The main app itself doesn’t come with the animated GIF capture capability. However, with Cropper Plugins you can unlock more useful features, and one of them is the ability to capture animated GIF images.

Here is How to use Cropper to Capture Animated GIF

First you need to install Cropper if you haven’t. Download the latest version here.
When you launch Cropper, you will see this light blue overlay box. This indicates on the area it will capture. You also need to extract the plugin zip and place it under
Program Files (x86)\Fusion8Design\Cropper\plugins

Within the blue area, you can right click to choose what format you want to capture. Also right click on the notification icon, you will see this Options, click and go to the Plug-in Tab. Select Animated GIF, from here you can tweak the settings.
2012-05-16_1626_001

How To Use Cropper

From the documentation, it states that you have three options to trigger to start capture, but when I tested this app, the only method that worked was double click.
  • Arrow keys: Nudge the main form one pixel.
  • Alt+Arrow keys: Resize the main form one pixel.
  • Alt+[ or ]: Resize the thumbnail indicator one pixel.
  • +Ctrl: Changes the amount of resizes and nudges listed above to ten pixels.
  • [ or ] or Mouse Wheel: Resize the main form twenty pixels while keeping the crosshairs centered.
  • Right-Click: Context menu on the main form.
  • Double-Click or Enter or S: Take a screen shot of the area under the Cropper window or start/stop a recording plug-in.
  • Tab: Cycle form colors.
  • Shift+Tab: Cycle form sizes.
  • Esc: Hide the main form.
  • F8: Show the main form.

Result

CropperCapture[7]
Now you can capture your desktop screen with an animated GIF Smile
Use it wisely.