Click here to Skip to main content
15,913,587 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Sending RCON commands tto a Counter-Strike: Source server. Pin
DJMOH7-Jan-09 18:35
DJMOH7-Jan-09 18:35 
GeneralRe: Sending RCON commands tto a Counter-Strike: Source server. Pin
DJMOH29-Dec-08 3:04
DJMOH29-Dec-08 3:04 
QuestionRe: Sending RCON commands tto a Counter-Strike: Source server. Pin
DJMOH29-Dec-08 3:01
DJMOH29-Dec-08 3:01 
Questionwallpaper problem Pin
onlyehtisham28-Dec-08 10:45
onlyehtisham28-Dec-08 10:45 
AnswerRe: wallpaper problem Pin
Colin Angus Mackay28-Dec-08 12:44
Colin Angus Mackay28-Dec-08 12:44 
AnswerRe: wallpaper problem Pin
Dave Kreskowiak28-Dec-08 19:44
mveDave Kreskowiak28-Dec-08 19:44 
QuestionDownloadQueue [modified] Pin
Noctris28-Dec-08 2:19
Noctris28-Dec-08 2:19 
AnswerRe: DownloadQueue Pin
Ben Fair29-Dec-08 9:20
Ben Fair29-Dec-08 9:20 
It sounds like you need a priority queue and a way to retrieve some status information from it. It also sounds like you have the priority queue in place. Use locking for queue access and modification. I'm a C# developer and don't know the VB.NET syntax, but in C# there's the lock keyword that can be used to lock a section of code for execution by a single thread. It's pretty simple and the most common technique is to create a locker object that is locked in every place the queue will be touched. Depending on your needs you may want to go with a subscriber model to provide information to other applications. With it you would have queue modification events that other applications 'subscribe' to and they would implement an event handler that will give them an EventArgs object with information about the event (ItemAdded, ItemRemoved, ItemUpdated, ItemProcessed, etc.). Or, perhaps you want to go with a by-request model in which you have methods that return a status object only when invoked. Using .NET Remoting may be useful if it is a Client-Server architecture as the TCP/IP communication is already handled for you and it defaults to using a Singleton, where one instance of the priority queue will exist on the server and clients can interact with that instance remotely.

Keep It Simple Stupid! (KISS)

QuestionVB.NET application to login in Website Pin
shrekage27-Dec-08 17:30
shrekage27-Dec-08 17:30 
AnswerRe: VB.NET application to login in Website Pin
Tony Richards28-Dec-08 1:34
Tony Richards28-Dec-08 1:34 
AnswerRe: VB.NET application to login in Website Pin
Mycroft Holmes28-Dec-08 15:10
professionalMycroft Holmes28-Dec-08 15:10 
QuestionWindows Mobile Toolbar Pin
UniBond27-Dec-08 14:58
UniBond27-Dec-08 14:58 
QuestionVB.NET - OLEDB with Foxpro table Pin
iluha27-Dec-08 13:49
iluha27-Dec-08 13:49 
AnswerRe: VB.NET - OLEDB with Foxpro table Pin
CodingYoshi27-Dec-08 21:56
CodingYoshi27-Dec-08 21:56 
GeneralRe: VB.NET - OLEDB with Foxpro table Pin
iluha28-Dec-08 4:26
iluha28-Dec-08 4:26 
GeneralRe: VB.NET - OLEDB with Foxpro table Pin
CodingYoshi29-Dec-08 3:18
CodingYoshi29-Dec-08 3:18 
GeneralRe: VB.NET - OLEDB with Foxpro table Pin
Ben Fair29-Dec-08 8:54
Ben Fair29-Dec-08 8:54 
QuestionVB.net & XML Pin
Shazz Rock26-Dec-08 21:50
Shazz Rock26-Dec-08 21:50 
AnswerRe: VB.net & XML Pin
Guffa27-Dec-08 3:58
Guffa27-Dec-08 3:58 
Questionresizing a tree node Pin
Sanam26-Dec-08 21:07
Sanam26-Dec-08 21:07 
AnswerRe: resizing a tree node Pin
Dave Kreskowiak27-Dec-08 5:51
mveDave Kreskowiak27-Dec-08 5:51 
GeneralAnyone with web browser making experience please read this! Pin
113st4life26-Dec-08 20:43
113st4life26-Dec-08 20:43 
GeneralRe: Anyone with web browser making experience please read this! Pin
Colin Angus Mackay27-Dec-08 8:30
Colin Angus Mackay27-Dec-08 8:30 
GeneralRe: Anyone with web browser making experience please read this! Pin
Mycroft Holmes28-Dec-08 16:20
professionalMycroft Holmes28-Dec-08 16:20 
GeneralRe: Anyone with web browser making experience please read this! Pin
113st4life28-Dec-08 22:20
113st4life28-Dec-08 22:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.