ShowTipOfTheDay Method
Description
Displays a Tip of the Day dialog.
Syntax
Public Function ShowTipOfTheDay( _
ByVal [Startup](#) As Boolean _
) As Long
Parameters
- Startup: True to display the Tip of the Day window when the application first starts.
Remarks
TipOfTheDay is used to create a Visual Studio™ style Tip Of The Day dialog. To use it, create a text file named "tips.txt" and place each tip on its own line in that file. Then set the HelpFile property to the name and path of the "tips.txt" file. The tips will be displayed in the order in which they are added in the text file.
You must also set the ProfileName and RegistryKey properties before showing the tip dialog. These are registry entries that will remember the last tip displayed and whether to display the tip dialog at startup. It will show the next tip in the file instead of always starting from the beginning. RegistryKey is the CompanyName and ProfileName is like the entry. Both properties can also be used by other methods, so be sure to set them right before displaying the tip window.
HelpFile must be set before calling ShowTipOfTheDay. Note that the ShowHelp method also uses this property, and the file formats are different, so be sure to set it to the tip text file before calling.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.