Click here to Skip to main content
15,916,030 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: List(Of Integer) vs. an array (VB.NET 2008) Pin
AspDotNetDev23-Jun-11 10:16
protectorAspDotNetDev23-Jun-11 10:16 
GeneralRe: List(Of Integer) vs. an array (VB.NET 2008) Pin
Steven St. John23-Jun-11 11:41
Steven St. John23-Jun-11 11:41 
GeneralRe: List(Of Integer) vs. an array (VB.NET 2008) Pin
AspDotNetDev23-Jun-11 12:04
protectorAspDotNetDev23-Jun-11 12:04 
QuestionRequest Pin
QASKU20-Jun-11 2:18
QASKU20-Jun-11 2:18 
AnswerRe: Request Pin
Dalek Dave20-Jun-11 13:18
professionalDalek Dave20-Jun-11 13:18 
QuestionHow to show alert when new records added to database in windows application??? Pin
Sanjay Tiwari120-Jun-11 0:10
Sanjay Tiwari120-Jun-11 0:10 
AnswerRe: How to show alert when new records added to database in windows application??? Pin
Wayne Gaylard20-Jun-11 2:12
professionalWayne Gaylard20-Jun-11 2:12 
GeneralTimer Pin
David Mujica20-Jun-11 2:45
David Mujica20-Jun-11 2:45 
You could place a Timer control on your form like Wayne suggested and the code behind would be something like this ...

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick<br />
        ' place code here to check if a new record has been added to the database<br />
End Sub


Your request is something kind of unclear because I don't see what the real-world applicaiton would be.

If it is a dispatching system, then I would create a "Pending Tasks" list and have a function that would refresh this list on a periodic basis. The problem that I see is ... "What is considered a new record and what are you going to do with it?" You might need to flag it in some way that the record has been processed. What if your window application is not running and someone adds a record to the database ?

You might want to revisit your design.

Just some thoughts Cool | :cool:

Good luck.
QuestionUpgrade VB6 Database to VB10 Pin
Garner T19-Jun-11 11:07
Garner T19-Jun-11 11:07 
AnswerRe: Upgrade VB6 Database to VB10 Pin
RobCroll19-Jun-11 21:11
RobCroll19-Jun-11 21:11 
GeneralRe: Upgrade VB6 Database to VB10 Pin
Garner T20-Jun-11 13:14
Garner T20-Jun-11 13:14 
SuggestionRe: Upgrade VB6 Database to VB10 Pin
ChandraRam20-Jun-11 20:07
ChandraRam20-Jun-11 20:07 
GeneralRe: Upgrade VB6 Database to VB10 Pin
RobCroll21-Jun-11 2:48
RobCroll21-Jun-11 2:48 
AnswerRe: Upgrade VB6 Database to VB10 Pin
Abhinav S20-Jun-11 21:41
Abhinav S20-Jun-11 21:41 
GeneralUpgrade VB6 Database to VB10 Pin
Garner T20-Jun-11 22:35
Garner T20-Jun-11 22:35 
GeneralRe: Upgrade VB6 Database to VB10 Pin
AnnieMacD21-Jun-11 6:08
AnnieMacD21-Jun-11 6:08 
GeneralUpgrade VB6 Database to VB10 Pin
Garner T22-Jun-11 14:09
Garner T22-Jun-11 14:09 
QuestionADF Scanning Pin
ivo7517-Jun-11 7:19
ivo7517-Jun-11 7:19 
AnswerRe: ADF Scanning Pin
Dave Kreskowiak17-Jun-11 10:16
mveDave Kreskowiak17-Jun-11 10:16 
QuestionListBox Question Pin
waner michaud16-Jun-11 10:04
waner michaud16-Jun-11 10:04 
AnswerRe: ListBox Question Pin
Christopher Mars16-Jun-11 18:41
Christopher Mars16-Jun-11 18:41 
GeneralRe: ListBox Question Pin
waner michaud17-Jun-11 3:31
waner michaud17-Jun-11 3:31 
AnswerRe: ListBox Question [modified] Pin
Alan N17-Jun-11 4:05
Alan N17-Jun-11 4:05 
GeneralRe: ListBox Question Pin
Simon_Whale17-Jun-11 4:17
Simon_Whale17-Jun-11 4:17 
GeneralRe: ListBox Question Pin
Alan N17-Jun-11 4:37
Alan N17-Jun-11 4:37 

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.