matt09524 Posted September 16, 2005 Posted September 16, 2005 So I'm trying to learn how to use this and I have run across what I would think should be a basic (no pun intended) thing. Using the clickable features, I had the thing create an "About" form. Looks cool and all, and I edited the project properties so it would include all this information but it is written as a class... Public Class AboutBox1 Private Sub AboutBox1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Set the title of the form. Dim ApplicationTitle As String... blah blah Now I am still learning basic as a whole (rather getting back into this sort of thing after 10 years) and im pretty lost. I am needing this form to come up when I click the "about" button on form1.vb. How can I do that. I double clicked "About" button, but *sigh* I don't know what to put after: Private Sub AboutButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutButton.Click Help pls Quote
matt09524 Posted September 17, 2005 Author Posted September 17, 2005 Ok, I figured this one out... Private Sub AboutButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutButton.Click AboutBox1.Show() End Sub AboutBox1.Show() is what I was looking for. Now I can call up others forms :) I have a splash screen, though that just flashes at me then loads form1. Anyojne know how I can make that last for about 10 seconds? Quote
Leaders snarfblam Posted September 17, 2005 Leaders Posted September 17, 2005 I would add a timer with an interval of 10000 milliseconds (10 seconds). When the Elapsed event fires, hide the splash screen and show the main screen. Just a note about splashscreens: They are generally there to keep your eyes busy while the program loads. When they are unnecessary, I tend to get very much annoyed by them, and I know that I am not the only one. Quote [sIGPIC]e[/sIGPIC]
matt09524 Posted September 17, 2005 Author Posted September 17, 2005 I would add a timer with an interval of 10000 milliseconds (10 seconds). When the Elapsed event fires, hide the splash screen and show the main screen. Just a note about splashscreens: They are generally there to keep your eyes busy while the program loads. When they are unnecessary, I tend to get very much annoyed by them, and I know that I am not the only one. Well, I have there kinda probationary for now. It will remain there ONLY if I decide to memory load all the information at program start, or when necessary. It depends on how grand a scale this project gets for me. I agree though. Quote
matt09524 Posted September 17, 2005 Author Posted September 17, 2005 Hmm.. I can just insert a timer control from the tool box, the the timer on property to true and set the value right? or do I need something to trigger it? Quote
Leaders snarfblam Posted September 17, 2005 Leaders Posted September 17, 2005 Add it from the toolbox, set the Enabled property to true, set the interval accordingly, and in your code, handle the Timer.Elapsed event, which fires when the interval you have set has passed. In the elapsed event you might want to disable the timer (Timer.Stop) so that it does not continue to fire the Elapsed event. Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.