Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Tip of day form

Posted on 2002-04-14
7
Medium Priority
?
253 Views
Last Modified: 2010-05-02
I've got 2 problems getting the default "Tip of Day Form" to work in my project.




I have a stock standard splash screen that launches my Main Menu Form.

I want the Tip of Day form to display after the Main form has loaded. How do I do this????



The Tip of Day Form has a checkbox that that gives you the option of showing tip of Day form on startup or not showing it. This value is written to the registry. When I uncheck the checkbox ,the Tip of Day form no longer loads on startup. The only problem is I haven't worked out how to get the form to show again.



What's the best way to get it to start??
0
Comment
Question by:backflash
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 46

Expert Comment

by:aikimark
ID: 6940003
You will need to include a checked menu option or option dialog checkbox accessable from somewhere in your application.

I assume you are storing/retrieving this setting upon shutdown/startup.  If not, you will always show the tip form with EVERY startup.
0
 
LVL 5

Expert Comment

by:kcm76
ID: 6940285
u can show it in Help menu. as IE provides.

kcm
0
 
LVL 8

Expert Comment

by:glass_cookie
ID: 6941218
Hi!

If I've interpreted yourt question correctly, what you could do is this:

In the form_load event of your startup form, Hide your startup form, load the mian form and set it's visible property to true, followed by showing your startup form.

If you want to put the option of showing the startup form in your main form, you could create a menu to show "Tips of the day" that sort of thing.

That's it!

glass cookie : )
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:backflash
ID: 6943451
Thanks for the comments people,
But I was  at that stage when I posted the question.

When I show the Tip of Day form and then unchek the checkbox to not show it in future, I cant work out how to get it to show again.
If I use the Tip.show command I just produces an error message
0
 
LVL 8

Expert Comment

by:glass_cookie
ID: 6944250
Hi!

How about trying:

Tip.Visible = True

If you still get an error, then I suppose it's got something to do with some coding in your Form_Load event or any other events related to your Tip form being visible.

Did you use any API calls that deals with your GUI, and what was your error message?

That's it!

glass cookie : )
0
 
LVL 46

Accepted Solution

by:
aikimark earned 150 total points
ID: 6945023
In the Tip form, do the following:

Sub Form_Load()
  If boolShowTip Then
  Else
    frmMain.Show
    Unload Me
  End If
End Sub

Note 1: you still need to add code to save the ShowTip setting, both from the Tip form and in the main form with the Option menu item.
Note 2: Your Tip form will need to retrieve the saved ShowTip value.
0
 

Author Comment

by:backflash
ID: 6962484
Good Enough

Thanks aikmark
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question