Send All Your System Messages To File
Often, while developing a system you want to debug it using System.out.println or System.err.println. When development is over you would like to send all those messages to file. The easiest
Often, while developing a system you want to debug it using System.out.println or System.err.println. When development is over you would like to send all those messages to file. The easiest
If you are writing an application in which you don’t know the class of an object until runtime, then you cannot use the new operator to instantiate the object. This
The assert macro can be used to detect errors as soon as they occur. This macro is defined in the include file , and is used that way: assert (expression)
Use the following code: Public Function IsLeapYear(iYearToCheck As Integer) As BooleanIsLeapYear=IsDate(Format(
Put the control(s) in a frame and disable the frame. This will even eliminate graying out or color changes.
In C++, this can be achieved by throwing an exception from your Constructor. Since Constructors cannot return a value, this is the only way to achieve error handling. Class MyClass{
A simple way to add some pizazz to your forms is by minimizing them and then closing them, instead of making them disapper istantaneously. Just try this code: Private Sub
If your program uses the WebBrowser control or any Microsoft Internet Control, you must ensure (and clearly specify in your app’s documentation) that the program can only work on systems
Copying and pasting text and images programmatically isn’t difficult at all, using the methods of the Clipboard object. However, implementing a generic Edit menu that copies and pastes the highlighted