Click here to Skip to main content
15,924,452 members
Home / Discussions / C#
   

C#

 
AnswerRe: Indexing Generic Arrays Pin
Guffa28-Jun-08 3:14
Guffa28-Jun-08 3:14 
QuestionWhat does this syntax mean? Pin
martin_hughes28-Jun-08 0:53
martin_hughes28-Jun-08 0:53 
AnswerRe: What does this syntax mean? Pin
User 665828-Jun-08 0:56
User 665828-Jun-08 0:56 
QuestionHow to Enable & Disable USB Drive Pin
Joe Rozario27-Jun-08 22:31
Joe Rozario27-Jun-08 22:31 
AnswerRe: How to Enable & Disable USB Drive Pin
leppie28-Jun-08 1:17
leppie28-Jun-08 1:17 
GeneralRe: How to Enable & Disable USB Drive Pin
Anthony Mushrow28-Jun-08 2:39
professionalAnthony Mushrow28-Jun-08 2:39 
AnswerRe: How to Enable & Disable USB Drive Pin
Paw Jershauge28-Jun-08 3:52
Paw Jershauge28-Jun-08 3:52 
AnswerRe: How to Enable & Disable USB Drive Pin
7sajjad8khna614-Sep-10 23:38
7sajjad8khna614-Sep-10 23:38 
Hi.......Thumbs Down | :thumbsdown:

Every is possible ......

Try this code for disable and enable USB MASS STORAGE

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;

private void button1_Click(object sender, EventArgs e)
{

RegistryKey delKey = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Services\\USBSTOR", true);
delKey.SetValue("Start", "00000004",RegistryValueKind.DWord);
MessageBox.Show("USB MassStorage Disabled");

}

private void button2_Click(object sender, EventArgs e)
{

RegistryKey delKey = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Services\\USBSTOR",true);
delKey.SetValue("Start", "00000003", RegistryValueKind.DWord);
MessageBox.Show("USB MassStorage Enabled");


}
QuestionSingle dataset to multiple Pin
ali zaidi27-Jun-08 22:29
ali zaidi27-Jun-08 22:29 
AnswerRe: Single dataset to multiple Pin
Abhijit Jana27-Jun-08 23:20
professionalAbhijit Jana27-Jun-08 23:20 
AnswerRe: Single dataset to multiple Pin
Christian Graus27-Jun-08 23:43
protectorChristian Graus27-Jun-08 23:43 
QuestionPrinting Data From a Windows Application Pin
jonhbt27-Jun-08 21:16
jonhbt27-Jun-08 21:16 
AnswerRe: Printing Data From a Windows Application Pin
wasimsharp27-Jun-08 23:08
wasimsharp27-Jun-08 23:08 
AnswerRe: Printing Data From a Windows Application Pin
Abhijit Jana27-Jun-08 23:19
professionalAbhijit Jana27-Jun-08 23:19 
Questionhow to print the tow rows from the datagrid in a single line.....while printing Pin
cse.vidhya27-Jun-08 20:55
cse.vidhya27-Jun-08 20:55 
AnswerRe: how to print the tow rows from the datagrid in a single line.....while printing Pin
Christian Graus27-Jun-08 21:01
protectorChristian Graus27-Jun-08 21:01 
GeneralRe: how to print the tow rows from the datagrid in a single line.....while printing Pin
cse.vidhya27-Jun-08 21:05
cse.vidhya27-Jun-08 21:05 
GeneralRe: how to print the tow rows from the datagrid in a single line.....while printing Pin
Christian Graus27-Jun-08 21:08
protectorChristian Graus27-Jun-08 21:08 
GeneralRe: how to print the tow rows from the datagrid in a single line.....while printing Pin
cse.vidhya27-Jun-08 21:13
cse.vidhya27-Jun-08 21:13 
GeneralRe: how to print the tow rows from the datagrid in a single line.....while printing Pin
Eytukan28-Jun-08 21:39
Eytukan28-Jun-08 21:39 
GeneralRe: how to print the tow rows from the datagrid in a single line.....while printing Pin
Arindam Tewary28-Jun-08 3:00
professionalArindam Tewary28-Jun-08 3:00 
Question[Message Deleted] Pin
ali zaidi27-Jun-08 20:51
ali zaidi27-Jun-08 20:51 
AnswerRe: Dataset divide Pin
Christian Graus27-Jun-08 20:53
protectorChristian Graus27-Jun-08 20:53 
AnswerRe: [Message Deleted] Pin
Abhijit Jana27-Jun-08 23:18
professionalAbhijit Jana27-Jun-08 23:18 
GeneralRe: [Message Deleted] Pin
leppie28-Jun-08 1:19
leppie28-Jun-08 1:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.