Click here to Skip to main content
15,890,185 members
Home / Discussions / C#
   

C#

 
GeneralRe: sql error while running an exe of a c# windows application Pin
sandhya145-Feb-09 23:46
sandhya145-Feb-09 23:46 
GeneralRe: sql error while running an exe of a c# windows application Pin
Vimalsoft(Pty) Ltd6-Feb-09 0:09
professionalVimalsoft(Pty) Ltd6-Feb-09 0:09 
GeneralRe: sql error while running an exe of a c# windows application Pin
sandhya146-Feb-09 0:28
sandhya146-Feb-09 0:28 
GeneralRe: sql error while running an exe of a c# windows application Pin
sandhya146-Feb-09 0:39
sandhya146-Feb-09 0:39 
GeneralRe: sql error while running an exe of a c# windows application Pin
sandhya146-Feb-09 19:45
sandhya146-Feb-09 19:45 
Questionhow to create sub tables in sql server Pin
praveenvkumarv5-Feb-09 18:02
praveenvkumarv5-Feb-09 18:02 
AnswerRe: how to create sub tables in sql server Pin
Christian Graus5-Feb-09 20:41
protectorChristian Graus5-Feb-09 20:41 
QuestionServer drives Pin
mrithula85-Feb-09 16:42
mrithula85-Feb-09 16:42 
Hi i have used ManagementObjectSearcher class for listing the drives...
there is no error but it does not display the output....
please can anyone check the code and tell me whether this approach is right...If not please tell me what is wrong with this...and what modifications should i do to get required drives in the server?


private void button1_Click(object sender, EventArgs e)
{
try
{
ManagementObjectSearcher mosDisks = new ManagementObjectSearcher("SELECT name FROM Win32_DiskDrive");

// Loop through each object (disk) retrieved by WMI

foreach (ManagementObject moDisk in mosDisks.Get())
{

// Add the HDD to the list (use the Model field as the item's caption)

listBox1.Items.Add(moDisk["Model"].ToString());

}
}
catch (ManagementException me)
{
MessageBox.Show(me.ToString());
}
}
AnswerRe: Server drives Pin
Dave Kreskowiak5-Feb-09 17:47
mveDave Kreskowiak5-Feb-09 17:47 
Question[Message Deleted] Pin
Michael Halsig5-Feb-09 9:10
Michael Halsig5-Feb-09 9:10 
AnswerRe: ShowDialog keeps loading the form. Pin
N a v a n e e t h5-Feb-09 15:39
N a v a n e e t h5-Feb-09 15:39 
AnswerRe: ShowDialog keeps loading the form. Pin
_Maxxx_5-Feb-09 15:45
professional_Maxxx_5-Feb-09 15:45 
GeneralRe: ShowDialog keeps loading the form. Pin
Michael Halsig6-Feb-09 3:41
Michael Halsig6-Feb-09 3:41 
GeneralRe: ShowDialog keeps loading the form. Pin
Michael Halsig6-Feb-09 6:35
Michael Halsig6-Feb-09 6:35 
GeneralRe: ShowDialog keeps loading the form. Pin
_Maxxx_8-Feb-09 12:53
professional_Maxxx_8-Feb-09 12:53 
GeneralRe: ShowDialog keeps loading the form. Pin
Michael Halsig9-Feb-09 7:00
Michael Halsig9-Feb-09 7:00 
GeneralRe: ShowDialog keeps loading the form. Pin
_Maxxx_9-Feb-09 11:18
professional_Maxxx_9-Feb-09 11:18 
QuestionConvert PDF to text or html Pin
Johan Martensson5-Feb-09 7:12
Johan Martensson5-Feb-09 7:12 
AnswerRe: Convert PDF to text or html Pin
vaghelabhavesh5-Feb-09 8:05
vaghelabhavesh5-Feb-09 8:05 
GeneralRe: Convert PDF to text or html Pin
Johan Martensson5-Feb-09 8:26
Johan Martensson5-Feb-09 8:26 
QuestionSSIS, .net and C# Pin
mecca15-Feb-09 7:10
mecca15-Feb-09 7:10 
AnswerRe: SSIS, .net and C# Pin
aalex6755-Feb-09 7:41
aalex6755-Feb-09 7:41 
GeneralRe: SSIS, .net and C# Pin
mecca15-Feb-09 7:57
mecca15-Feb-09 7:57 
GeneralRe: SSIS, .net and C# Pin
aalex6755-Feb-09 8:00
aalex6755-Feb-09 8:00 
AnswerRe: SSIS, .net and C# Pin
Mbah Dhaim5-Feb-09 11:23
Mbah Dhaim5-Feb-09 11:23 

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.