How can I speed up my work in Visual Studio
Close the Dynamic Help window unless it is something you use. Keeping it open will slow things down.
I don’t want to have the Close box on my form’s title bar. How do I remove this system menu box
Set the property Form.ControlBox to false.
The MessageBox always appears in the center of the screen. How can I change it’s location
Its looks like you cannot change this behavior of MessageBox. One solution is to derive your own MessageForm class from Form to display your message. Then call its ShowDialog method to show it after you set its Size, Location and StartPosition properties. (If you don’t set the StartPosition , then the Location is ignored.) One of the values for StartPosition is CenterParent which would center your new MessageForm.
How can I get just the extension of a file from the complete path string?
Use FileInfo. Instantiate a FileInfo object with the full path as constructor arg. Then simply call FileInfo.Extension and you will get just the extension of the file. FileInfo finfo = new FileInfo(strFileName); Console.WriteLine(finfo.Extension);
How can I get just the name of a file from the complete path string?
Use FileInfo. Instantiate a FileInfo object with the full path as constructor arg. Then simply call FileInfo.Name and you will get just the name of the file. FileInfo finfo = new FileInfo(strFileName); Console.WriteLine(finfo.Name);