private void AutoCompleteMachine(object sender, KeyPressEventArgs e)
{
string strFindstr = "";
if (e.KeyChar == 8)
{
if (cbxMname.SelectionStart <= 1)
{
cbxMname.Text = "";
return;
}
if (cbxMname.SelectionLength == 0)
strFindstr = cbxMname.Text.Substring(0, cbxMname.Text.Length - 1);
else
strFindstr = cbxMname.Text.Substring(0, cbxMname.SelectionStart - 1);
}
else
{
if (cbxMname.SelectionLength == 0)
strFindstr = cbxMname.Text + e.KeyChar;
else
strFindstr = cbxMname.Text.Substring(0, cbxMname.SelectionStart) + e.KeyChar;
}
int intIndex = -1;
intIndex = cbxMname.FindString(strFindstr);
if (intIndex != -1)
{
cbxMname.SelectedText = "";
cbxMname.SelectedIndex = intIndex;
cbxMname.SelectionStart = strFindstr.Length;
cbxMname.SelectionLength = cbxMname.Text.Length;
e.Handled = true;
}
}
{
string strFindstr = "";
if (e.KeyChar == 8)
{
if (cbxMname.SelectionStart <= 1)
{
cbxMname.Text = "";
return;
}
if (cbxMname.SelectionLength == 0)
strFindstr = cbxMname.Text.Substring(0, cbxMname.Text.Length - 1);
else
strFindstr = cbxMname.Text.Substring(0, cbxMname.SelectionStart - 1);
}
else
{
if (cbxMname.SelectionLength == 0)
strFindstr = cbxMname.Text + e.KeyChar;
else
strFindstr = cbxMname.Text.Substring(0, cbxMname.SelectionStart) + e.KeyChar;
}
int intIndex = -1;
intIndex = cbxMname.FindString(strFindstr);
if (intIndex != -1)
{
cbxMname.SelectedText = "";
cbxMname.SelectedIndex = intIndex;
cbxMname.SelectionStart = strFindstr.Length;
cbxMname.SelectionLength = cbxMname.Text.Length;
e.Handled = true;
}
}
http://ubcd.sourceforge.net/download.html
* Burn it into a Disc and boot it up.
(Use ISO burner. If using windows 7, right click the file and choose “Burn Disc Image”)
* On main menu, choose “HDD” > “Diagnostic” > “MHDD v4.6″
* You will see a list of harddisk, select a harddisk you want to unlock
* Type “unlock” and reply “1″ for master password
* Enter the master password.
(If it is wrong, ERR will turns red on the top of the screen, and You have 4 more tries before it powercycle the disk)
* If it is correct, type “DISPWD” and reply “1″
(There will be a warning if your disk is still locked)
* Retype the master password again and your disk is unlocked!
(ERR will turn red if the password wrong)
* Type exit and press “ctrl + alt+ del” to reboot your computer
Hints:
* step 3 (on “MHDD v4.6″ menu), type “help” to get a list of commands and its function
* master password not working, please go to reference site below and look for “maximum security” part.
————————-Help for Master password———————————
SEAGATE -> “Seagate” + 25 spaces
MAXTOR
series N40P -> “Maxtor INIT SECURITY TEST STEP ” + 1 or + 2 spaces
series N40P -> “Maxtor INIT SECURITY TEST STEP F”
series 541DX -> “Maxtor” + 24 spaces
series Athena (D541X model 2B) and diamondmax80 -> “Maxtor”
WESTERN DIGITAL -> “WDCWDCWDCWDCWDCWDCWDCWDCWDCWDCWD”
FUJITSU -> 32 spaces
SAMSUNG -> “tttttttttttttttttttttttttttttttt” (32 times t)
IBM
series DTTA -> “CED79IJUFNATIT” + 18 spaces
series DJNA -> “VON89IJUFSUNAJ” + 18 spaces
series DPTA -> “VON89IJUFSUNAJ” + 18 spaces
series DTLA -> “RAM00IJUFOTSELET” + 16 spaces
series DADA-26480 (6,4gb) -> “BEF89IJUF__AIDACA” + 15 spaces
HITACHI series DK23AA, DK23BA and DK23CA -> 32 spaces
TOSHIBA -> 32 spaces
XBOX -> “XBOXSCENE” or “TEAMASSEMBLY”