Click here to Skip to main content
15,911,030 members
Home / Discussions / C#
   

C#

 
AnswerRe: Cut forms and buttons! Urgent please!! Pin
albCode20-Dec-05 4:36
albCode20-Dec-05 4:36 
AnswerRe: Cut forms and buttons! Urgent please!! Pin
Curtis Schlak.20-Dec-05 4:45
Curtis Schlak.20-Dec-05 4:45 
AnswerRe: Cut forms and buttons! Urgent please!! Pin
eyej20-Dec-05 10:12
eyej20-Dec-05 10:12 
QuestionReferencing dll built in VS2005 to VS2003 Pin
Enigma344020-Dec-05 3:21
Enigma344020-Dec-05 3:21 
AnswerRe: Referencing dll built in VS2005 to VS2003 Pin
Judah Gabriel Himango20-Dec-05 4:01
sponsorJudah Gabriel Himango20-Dec-05 4:01 
GeneralRe: Referencing dll built in VS2005 to VS2003 Pin
Jared Parsons20-Dec-05 4:48
Jared Parsons20-Dec-05 4:48 
Questiondetermine whether a driver is a print driver or a fax driver Pin
cobra200520-Dec-05 3:06
cobra200520-Dec-05 3:06 
AnswerRe: determine whether a driver is a print driver or a fax driver Pin
Curtis Schlak.20-Dec-05 4:35
Curtis Schlak.20-Dec-05 4:35 
Okay, not sure on this, but give it a shot. (I don't have a fax hooked up to any printer....) Put the following in a Console Application and run it to see if you get what you want. If a "printer" is fax capable, then hopefully you will see it in the CapabilityDescriptions property. You need to add a reference to the System.Management.dll in your project.
// Create a management class to get the printers.
ManagementClass c = new ManagementClass( "Win32_Printer" );

// Get the information for all the printers.
ManagementObjectCollection moc = c.GetInstances();

// Iterate over the objects.
foreach( ManagementObject mo in moc )
{
  string name = ( string ) mo.Properties[ "Caption" ].Value;
  string[] desc = ( string[] ) mo.Properties[ "CapabilityDescriptions" ].Value;
  Console.WriteLine( "{0}", name );
  foreach( string s in desc )
  {
    Console.WriteLine( "\t{0}", s );
  }
  Console.WriteLine();
}
If you don't see "Fax," or something like that, then iterate over all the properties of the ManagementObject and see if you can find something in there.

Hope it helps.

"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
GeneralRe: determine whether a driver is a print driver or a fax driver Pin
cobra200520-Dec-05 6:14
cobra200520-Dec-05 6:14 
GeneralRe: determine whether a driver is a print driver or a fax driver Pin
cobra200520-Dec-05 6:15
cobra200520-Dec-05 6:15 
QuestionLeave event for Data Grid TextBox Pin
Taimoor Mirza20-Dec-05 3:04
Taimoor Mirza20-Dec-05 3:04 
Questionneed some DateTime help Pin
Joshua Lunsford20-Dec-05 2:55
Joshua Lunsford20-Dec-05 2:55 
AnswerRe: need some DateTime help Pin
Judah Gabriel Himango20-Dec-05 7:22
sponsorJudah Gabriel Himango20-Dec-05 7:22 
GeneralRe: need some DateTime help Pin
Joshua Lunsford20-Dec-05 7:48
Joshua Lunsford20-Dec-05 7:48 
GeneralRe: need some DateTime help Pin
Joshua Lunsford21-Dec-05 5:45
Joshua Lunsford21-Dec-05 5:45 
AnswerRe: need some DateTime help Pin
Roy Heil20-Dec-05 7:22
professionalRoy Heil20-Dec-05 7:22 
GeneralRe: need some DateTime help Pin
Joshua Lunsford20-Dec-05 7:45
Joshua Lunsford20-Dec-05 7:45 
GeneralRe: need some DateTime help Pin
Roy Heil27-Dec-05 9:11
professionalRoy Heil27-Dec-05 9:11 
Questionhow to access bookmark in C# web application Pin
narendrakumarp20-Dec-05 2:54
narendrakumarp20-Dec-05 2:54 
QuestionHow to access a password protected UNC address? Pin
Zishan Haider20-Dec-05 2:42
Zishan Haider20-Dec-05 2:42 
AnswerRe: How to access a password protected UNC address? Pin
narendrakumarp20-Dec-05 2:57
narendrakumarp20-Dec-05 2:57 
GeneralRe: How to access a password protected UNC address? Pin
Zishan Haider20-Dec-05 3:08
Zishan Haider20-Dec-05 3:08 
GeneralRe: How to access a password protected UNC address? Pin
Judah Gabriel Himango20-Dec-05 3:58
sponsorJudah Gabriel Himango20-Dec-05 3:58 
AnswerRe: How to access a password protected UNC address? Pin
Dave Kreskowiak20-Dec-05 5:20
mveDave Kreskowiak20-Dec-05 5:20 
GeneralRe: How to access a password protected UNC address? Pin
Zishan Haider20-Dec-05 6:30
Zishan Haider20-Dec-05 6:30 

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.