Wrox Programmer Forums
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 6th, 2007, 05:10 AM
Authorized User
 
Join Date: Nov 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default splash screen query

Hi,

I have created a form to use as a splash screen.
It has a picture box (left half) and 2 text boxes (right half).

It works fine, except the text in the main textbox (which is multiline) shows as highlighted (selected). Textbox is read only.

Also how do I regulate the period of display ?

Any ideas appreciated.


                  regards Demac43



 
Old May 15th, 2007, 02:34 PM
Authorized User
 
Join Date: Dec 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to FalseParadigm
Default

Your textbox is probably highlighted because it's tab index is 0 (the first selected item). I would advise setting tab stop to "False" for your text box.

If you want to regulate the time of the splash-screen display, you can do one of two things:

1. If there is some sort of load time involved (you have to connect to a database), you can call your functions from the splash screen code, and then close your splash screen after the loading is done.

or

2. Use the Sleep method to pause the application. Place this code before your me.close statement (x will equal milliseconds):

System.Threading.Thread.CurrentThread.Sleep(x)

This will pause your application as long as you like.

"It's my way, or the Hemingway..."
 
Old May 15th, 2007, 03:20 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Or you could put a stopwatch control on the form, and when the interval is reached: Unload Me. (Be sure to show the application's main form before you have the splash screen commit suicide though!)

If you use the application wizard to create an application with a splash screen, you can examine the resultant project to see how the VB authors thought it should be done.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to createa Splash Screen awais_syed Beginning VB 6 3 August 24th, 2007 03:29 AM
why isn't my splash screen loading? nerdman978 Beginning VB 6 2 July 5th, 2007 10:32 AM
Splash form umeshtheone Beginning VB 6 1 June 26th, 2007 06:27 PM
Open a Parameterised Query to screen using code vbark Access VBA 2 June 5th, 2006 05:46 PM
Splash Screen dodorisio Beginning VB 6 3 March 25th, 2004 08:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.