Developing A Patient Waiting Queue In VB?

May 11, 2011

I would like to develop a queue application in VB for a clinic, so that when a patient comes, he is entered in a queue as he waits. A doctor picks the next available patient in the queue and a message is posted in the screen for that patient to go to the doctors room. How do i do this?

View 21 Replies


ADVERTISEMENT

VS 2010 - Creating Patient Event Logger For A Hospital NICU

Dec 15, 2011

I am currently working on a way to create a keystroke logger program of sorts, to be used in a hospital neonatal intensive care unit. It will be used in a project to look for ways to identify problems shortly after birth in newborn infants. (I was approached to create this program as I am the only one here with any programming experience, and I kinda put my foot in my mouth and said yes! D'oh!) While I have dabbled with C programming about 15 years ago (in DOS) and have some current familiarity with Excel-based VBA scripting, I have absolutely no experience with coding from scratch in Visual Basic (I'm a neurobiologist, not a programmer).

[Code]....

View 27 Replies

Transfering A Queue From One Form To Another Queue In Another Form?

May 14, 2011

I have a form that has a queue and i want to transfer that queue to another queue in another form. however when i try to use the elements in the second queue after transfer, I get the error message queue empty!below is my code

First Form
Imports System.Collections.Generic
Public Class Form1

[code].....

View 2 Replies

Program To Display The Text "Waiting For Connection..." While The Program Is Actually Waiting For A Connection?

Aug 10, 2010

I want the program to display the text "Waiting for connection..." while the program is actually waiting for a connection. However, when I run the program, the form doesn't even appear because the TCPListener is waiting. What can I do to have the program appear and show the text while it's waiting for a connection?

Imports System.Net.Sockets
Imports System.IO
Public Class frmMain
Dim client As TcpClient

[code].....

View 5 Replies

Array Like A Queue

Nov 30, 2011

I have an array that I'm basically treating like a queue (FIFO)I'm trying to decide the fastest way to implement this.Currently I'm just iterating through and shifting everything up an element and placing the new data @ 0. This was fine when I was dealing with 1000 element arrays, but now I'm moving up to 100k element arrays and it's stalling my code.It has been useful to have the data in array form because I'm using the array.sort method and a few other statistical modifications that use the element number (of the sorted list) to work.I'm not sure if VB lists are (like Java) pointer based, and if so I think that shifting pointers would execute faster than my current approach.My question is, if I did move to a list would it a) be faster, and b) is there a way to call a quick sort from the list class?If the execution time is the same for the array vs. list is there a better way to make a FIFO structure in VB?

View 2 Replies

First Time With Queue

Mar 2, 2010

how "peek" really operates or something but what I'm trying to do is have 2 separate audio files play one after the other over and over again.I was expecting that I would hear wav1 and wav2 alternate but I only hear wav1 on each cycle.Doesn't peek use the first data then push it to the back without discarding it?Therefore wav2 would be next in line to be played? [code]

View 14 Replies

Has Anyone Seen A .net Email Queue

Jan 30, 2012

Has anyone seen a .net email queue? I want to be able to specify the SMTP server to send via, report problems and retry emails if necessary or requested.

View 2 Replies

Clear Printer Queue From VB App?

Jul 28, 2011

How can I clear the printer queue from VB? if I was doing it manually I would stop spooler service, empty the windowssystem32spoolprinters folder and restart the service

View 8 Replies

Difference Between Queue And List (of T)

Apr 13, 2012

What is the difference between a queue(of t) and list(of t)? I've been working a lot with list(of t), but up until recently I haven't even heard of queue(of t). I know that they are both general list.

View 3 Replies

FTP Uploading A Queue Of Files

Jun 27, 2010

I am currently creating a FTPWebrequest to handle my uploading (the webrequest section of my function is below). At the moment my code loops through this webrequest section for each file - giving the file path of each file in the string "CompleteLocalPath". For each file it creates a webrequest and giving the required file path, uploading the file using a file stream, and then closing the stream. This works, but seems to take quite a long time. Can you recommend a more efficient way? Perhaps by using one webrequest but modifying the upload path?

[Code]....

View 2 Replies

How To Tell When Message Queue Is Empty

Apr 19, 2011

I have a program that is using API's to send mouse events and keyboard events to another application that is running. I need to know how to tell if there are any messages left to process for that window after I have click on a button or moved to the next field. I need to know this so I don't send any more mouse or keyboard events until it has finishing processing everything in its message queue. An example is that I click out of the key field and the form has to go out and read a client record. This may take a second or two, so I need to wait until the form is ready for more input.

View 2 Replies

Monitoring A Printer Queue?

Aug 7, 2009

The below code (VB 2008) will check the print queue every milisecond for a job. It will then show the pagecount in a text box. It works great when im printing to a local printer, but As soon as I change my pc default printer to a network printer, I cant capture any data.

View 1 Replies

Move Printjob From One Queue To Another

Apr 9, 2009

I'm looking for a way to move a printjob from a paused printer to another printer. I have looked at the new name space System.printing in .Net framework 3.X.Is there a way to do it in .NET?An externa application creates a printjob.I catch the event "a printjob add" in the printqueue.I pause the printjob.Now I want to move the printjob to another printerIs there a way to do it in .NET?

View 13 Replies

Obtain The First And Last Items In A Queue?

Aug 20, 2009

Say I have a rolling collection of values where I specify the size of the collection and any time a new value is added, any old values beyond this specified size are dropped off.Obviously (and I've tested this) the best type of collection to use for this behavior is a Queue:

myQueue.Enqueue(newValue)
If myQueue.Count > specifiedSize Then myQueue.Dequeue()

[code].....

View 5 Replies

Writing To And From A IBM Message Queue?

Aug 26, 2010

We have made code for writing to and from a IBM message queue.Writin goes well, but reading gives an error, see bold text

[Code]...

View 3 Replies

Make A Waiting Gif?

Dec 15, 2011

How to Make a Waiting while Processing? I mean I want when the software processing login into my Online database, the Button1,TextBox1,TextBox2, LinkLabel1,LinkLabel2 will hide and the Waiting Picture is show,

Here is my code :

Button1.Visible = False
Button2.Visible = False
TextBox1.Visible = False

[code]....

But when i click the button 1, the Button1,TextBox1,TextBox2, LinkLabel1,LinkLabel2 there hide and PictureBox1 Show when MsgBox show "LoginFailed! Invalid Username Or Password" I wanna make the Button1,TextBox1,TextBox2, LinkLabel1,LinkLabel2 hide and picturebox1 show after that Process the Login Verification Into database.

View 2 Replies

Waiting For External EXE To End Before Doing More

Apr 23, 2011

I keep trying different things I find on the net, but I can't get VB.net express to wait for exit. Hopefully someone can point me in the right direction here. Here is my code and all of this works but there is no way to tell when mugen stops.

[Code]....

View 6 Replies

Waiting In Vb2008 / .net?

Aug 21, 2011

I am a VB6 coder and I'm making the move to VB8 / VB.NET.I know how to wait in VB6, but my problem is that I don't know how to wait in VB8/VB.NET. I have a TextBox called textbox2 that contains the number of seconds I want to wait. I used to use wait 60 in VB6, but of course VB2008 is different.

View 5 Replies

Waiting Without The Use Of Timers?

Jun 5, 2009

basically what im doing is something similar to this;

Private Sub FirstRoutine()
'This is my first routine, i load a listbox up with a whole
heap of info

[code].....

View 3 Replies

DirectoryInfo.GetFiles, Sort And Queue?

Jun 24, 2010

How do I (i) sort the array of type FileInfo returned by the DirectoryInfo.GetFiles method by (file) CreationTime in descending order and (ii) once the array is sorted efficiently load it or convert into a Queue object (of type FileInfo) for subsequent processing. I thought of using the queue object as it handles things on a FIFO out basis and I'll be adding to the queue as new files arrive.

View 4 Replies

Events Handler - Messages In Queue

Apr 13, 2010

I have question about the firing of events in vb. Lets say if I have timer that fires every 10 seconds and then I also have eventhandler that is listening to some other event (like message arrived in queue and now event fires to process it). Then how does vb handles them if the program is currently processing Timer1 and message arrive event fires or vice versa? Does it complete the current processing and then jump to the next event or just switch in the middle to the new event and then finishes that and then resumes back to the first one?

View 6 Replies

Get Number Of Copies In Print Queue?

Jan 12, 2012

I'm developing an application to monitor print queue and pause it to check some conditions, then resume or cancel print job. I can get total pages for printing document but can't get number of copies, how can i get this parameter.

Ex. If someone print 5 pages document for 2 copies, the total pages i got is 5 not 10 pages. (how can i get the real total pages)

View 1 Replies

Register Events By Fax Queue Status

Mar 10, 2010

I am working on fax component that manage some operation of XP fax service by using VB.Net and using FXSCOMEXLIB.DLL, I want to register events by fax queue status (job added, changed, removed, ... etc.), I am reading the article on this link: [URL] but the events not work (not called).

View 6 Replies

Remove An Item From The Middle Of A Queue?

Feb 1, 2010

can i remove an item from the middle of a queue?

View 1 Replies

Returning A Value From A Function That Can Copy To A Queue?

May 14, 2011

How do i return a value from a function that i can copy to a queue?I imagine that value must also be a queue.

View 4 Replies

Send XML Message To SONIC JMS Queue?

Oct 21, 2011

Im a newcomer for Sonic JSM queue. I need to send an xml message to a JSM queue. I can send a string message using following code.Dim msg As Sonic.Jms.TextMessage = SonicSendSession.createTextMessage()

msg.setText(ESBMessage)
msg.setStringProperty("instance", Header)
SonicSender.send(msg, Sonic.Jms.DeliveryMode.PERSISTENT, Sonic.Jms.DefaultMessageProperties.DEFAULT_PRIORITY, MESSAGE_LIFESPAN)

[Code]...

View 1 Replies

Using Elements In Second Queue Of Another Form After Transfer

May 14, 2011

I have a form that has a queue and I want to transfer the data of that queue to another queue in another form. however when i try to use the elements in the second queue after transfer, I get the error message queue empty!

Below is my code
First form
Imports System.Collections.Generic
Public Class Form1
Dim wait As New Queue(Of String)
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code] .....

I expected the recieveQueue function to copy the queue passed to it into the waiting queue, then it allows me to use the waiting queue contents as I want. But when I try to use it, around this line I get the error, 'queue empty' < If waiting.Count > 0 And waiting.Peek <> "" Then >

View 14 Replies

VS 02/03 Cannot Display Contents Of A Queue In Message Box

Dec 16, 2010

I am currently going through Murachs Beginning vb.NET and have come across an problem with one of the exercises at the end of the chapter on collections. I basically have to update a simple Invoice application that was developed in an earlier chapter.It requires me to update the app such that everytime a new invoice object is created ( via pressing the new invoice button) this object is added to a queue. I am ok with this part.However I then have to edit the exit procedure so that the invoice objects are dequeued and displayed in a message box. This is where I am having my trouble. My code so far is shown below. This consists of the form.vb and the and the Invoice class.[code]I have also added a diagram of the format for the message displayed in the message box. I know I have to iterate through the queue but how can display the invoice customer name and invoice total?

View 4 Replies

VS 2008 Adding To Queue Of Process?

Dec 18, 2010

I'm trying to Enqueue several processes to a queue of processes.When I do, each process is added, but only the last process name is added. The rest of the names are blank.Here's what I'm doing to test it:

VB.NET
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click

[code]......

View 2 Replies

VS 2008 Passing A Queue To A Thread?

Jan 14, 2011

I've passed object sucessfully to threads in the past but I'm stumped on this one:-

HTML

Public Class TileDownload
Structure RequiredTileDetails
Public MapID As String

[Code].....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved