VB.NET - showing alert in desktop in vb.net

Asked By kiruba .e on 08-Mar-11 12:27 AM
Hi,

I want to show alert at particular time in vb.net.

Like some birthday remindertool i want to show some alert based on date in desktop through vb.net windows application is it possible?

plz help me.
Ramendra Kumar replied to kiruba .e on 08-Mar-11 12:29 AM
make a window application, put it in thwe auto start up, and there check the current date, if u get ur desired date, put msgbox.show() over there.
kiruba .e replied to Ramendra Kumar on 08-Mar-11 12:34 AM
can u tell me clearly plz...couldnt understand..
Ramendra Kumar replied to kiruba .e on 08-Mar-11 12:38 AM
did u ever worked on window applicatio, if yes then make a application in that fetch the current time of system and also put the ur desired time with date, now put a if else, if that match then show ur application
Reena Jain replied to kiruba .e on 08-Mar-11 01:02 AM
hi,

Use window's Task Scheduler application as a VB.NET application or use windows service. The core function of a Windows Service is to run an application in the background. A few things that make them different from a Windows application are that a Windows Service starts before any user logs on to the system (if it has been set up to start at boot up). The service can be set up in such a way that it requires the user to start it manually.

here are two good links for you
http://www.codeguru.com/vb/gen/vb_system/services/article.php/c4825
http://www.codeproject.com/KB/vb/Windows_Services.aspx

hope this will help you
Anoop S replied to kiruba .e on 08-Mar-11 01:03 AM
create a database, store the birthday month and time in database, compare that with system date

code
Dim a As DateTime
a = Now
 
vconn = New OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=c:\friends.mdb")
vconn.Open()
 
vadapter = New OleDbDataAdapter("select * from birthdays", vconn)
vdataset = New DataSet
vadapter.Fill(vdataset, "birthdays")
vdatatable = vdataset.Tables(0)
 
Dim x As Integer
 
Dim y As Integer = 0
For x = 0 To vdatatable.Rows.Count - 1
If DatePart("m", vdatatable.Rows(x).Item(2)) = Now.Month Then
 
ListView1.Items.Add(vdatatable.Rows(x).Item(1))
ListView1.Items(y).SubItems.Add(vdatatable.Rows(x).Item(2))
ListView1.Items(y).SubItems.Add(vdatatable.Rows(x).Item(3))
ListView1.GridLines = True
y += 1
 
End If
Next
kiruba .e replied to Anoop S on 08-Mar-11 01:12 AM
will it show in desktop ?
Anoop S replied to kiruba .e on 08-Mar-11 01:38 AM
i didn't get you completely, you can show it in a message box and it will show in the desktop, after you clicking ok only it will goes
Kirtan Patel replied to kiruba .e on 08-Mar-11 12:15 PM

You can use Tray ICON and Show Bubble Tool Tip on Tray Notification Control from Tool Box this will show up on Desktop


Hope this helps :)