Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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?

  • Leaders
Posted

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.

[sIGPIC]e[/sIGPIC]
Posted
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.

  • Leaders
Posted
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.
[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...