473,385 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

threaded Login-splash-screen with progressbar

I need a loginscreen, that will show a progressbar that changes values
based on a method in the main application (loading data from database)

how would i do this?
(i guess i need threading for this)

the main application shouldn't be accessible when the login password
hasn't been entered correctly.

anybody who can give me some help with this?
threading is new to me

Nov 20 '05 #1
2 4487
Maybe take a look at the Timer class in System.Windows.Forms...

hope this helps

dominique
"sotto" <ju**@sotto.invalid> wrote in message
news:kx**********************@hebe.telenet-ops.be...
I need a loginscreen, that will show a progressbar that changes values
based on a method in the main application (loading data from database)

how would i do this?
(i guess i need threading for this)

the main application shouldn't be accessible when the login password
hasn't been entered correctly.

anybody who can give me some help with this?
threading is new to me

Nov 20 '05 #2
Cor
Hi Sotto,

This question is only valid if you have to load a real hugh dataset because
in the other situations it goes to fast and your user does not see the
progressbar,

Also it is crazy to load that dataset, if the user has not loged in.

Scenario for that hugh database can be
Get the count of the table you want to read by a executescalar
Create an extra form that holds the progressbar
Keep control to that form from the class where you are loading the dataset
(the database samples in the VB. resource kit are doing that)
In my opinion you do not need multithreading for that (It would not give any
advantages)

If you want to save time while the user logs in by loading the dataset in
the same time.
Than you can try it with multithreading, but I think that will cost you a
lot of code, expirience and checks if all is synchronized well.

I hope this helps

Cor

I need a loginscreen, that will show a progressbar that changes values
based on a method in the main application (loading data from database)

how would i do this?
(i guess i need threading for this)

the main application shouldn't be accessible when the login password
hasn't been entered correctly.

anybody who can give me some help with this?
threading is new to me

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bart Nessux | last post by:
When testing scripts, I normally type 'ctrl' combined with the key 'c' to abort the script, however, this doesn't work with scripts that are threaded. What's the proper way to abort a threaded...
8
by: Matthew Bell | last post by:
Hi, I've got a question about whether there are any issues with directly calling attributes and/or methods of a threaded class instance. I wonder if someone could give me some advice on this. ...
0
by: Ganbold | last post by:
Hi, I'm new to multi-threaded programming and reading the book "Programming with POSIX Threads" and trying to understand concepts and coding. What I'm trying to do is to rewrite mysql client...
2
by: Chris | last post by:
I think I already know that the answer is that this can't be done, but I'll ask anyways. Suppose you want to use an RDBMS to store messages for a threaded message forum like usenet and then...
1
by: Mullin Yu | last post by:
As subject. I have lots of VB6 dll and ocx files and they are single-threaded as VB6 doesn't support multi-threaded indeed. Can I wrap anything at .NET so that multi-threaded feature can be...
6
by: ben | last post by:
I am needing a web service to be single threaded. Is this possible? Any ideas would be helpful
3
by: Rsrany | last post by:
I've been working on a few gtk applications and need to tie a hot key catcher into a thread. I am currently finding threaded user32.GetMessageA do not work. I have included two programs: 1) a...
5
by: dbandler | last post by:
I'm trying to use ftp in python in a multi-threaded way on a windows box - python version 2.4.3. Problem is that it appears that it's only possible to have five instances/threads at one point in...
14
by: Snor | last post by:
I'm attempting to create a lobby & game server for a multiplayer game, and have hit a problem early on with the server design. I am stuck between using a threaded server, and using an event driven...
14
by: =?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?= | last post by:
As far as I know, the C Standard has no mention of multi-threaded programming; it has no mention of how to achieve multi-threaded programming, nor does it mention whether the language or its...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.