Creating a queue in VB?

Soldato
Joined
4 Sep 2005
Posts
11,453
Location
Bristol
Not what you're thinking. Basically, I was wanting to write a program that allowed my teacher to see all the people that wanted help on his screen, and queued them up.

As in, someone clicks a button on their computer and it comes up on the screen of the teacher, then if somene else clicks the help button then they're added to the queue.

If anything like this exists then it would be handy or if someone could lend me a hand with the code I'd appreciate it. :) My coding is pretty bad, I think this is going to need a TCP Winsock.. But beyond that...


Thanks for your help,
Naffa
 
Yes you will need to use the winsock control.

It isn't a too complicated program. What you will need to do is have two executables. One for the teacher which acts as a server to receive requests, and an exe to act as a client for each student.

Establishing a queue is incredibly easy, you would simply require an array, and an "on data arrival" event that adds the name received to the array.

Then its just a matter of showing a popup with the name of the first person in the array (queue).

If it doesn't have to be in VB, another alternative would be to have the teachers computer host a webpage, students could simply navigate to this webpage over the network, and submit that they require help. This would thus eliminate the need for clients for each student.
 
Personally I'd do it in PHP with either a small MySQL Database or if thats not possible, a text file :)

EDIT: And anyway, what hapened to good old fashioned putting your hand up? :p
 
Last edited:
Thanks for that guys. :)

And I think there are too many people to all have our hands up, but I'll suggest that as well. :p
 
Back
Top Bottom