QA


Q&A

Q.

What if I want to perform an operation on a file, but something is preventing the operation, such as the file might be open or I don't have rights to the file?

A.

All the method calls have one or more exceptions that can be thrown in the event that the method fails. These method calls are listed in the online help. You can use the techniques discussed in Hour 15 to trap the exceptions.

Q.

What if a user types a filename into one of the file dialog boxes, but the user doesn't include the extension?

A.

By default, both file dialog controls have their AddExtension properties set to true. When this property is set to TRue, Visual C# automatically appends the extension of the currently selected filter.




Sams Teach Yourself Microsoft Visual C# 2005 in 24 Hours, Complete Starter Kit
Sams Teach Yourself Visual C# 2005 in 24 Hours, Complete Starter Kit
ISBN: 0672327406
EAN: 2147483647
Year: N/A
Pages: 248
Authors: James Foxall

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net