473,383 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

message notification

64
Hi, can anybody teach me or guide me on how to create code for notification alert message using c#?Does we just use message box to create notification to user?Actually I want to create code that give notification message to user such as expired due date on desktop application. Can someone guide doing this thing?
Oct 13 '15 #1
2 1607
madankarmukta
308 256MB
@mrijet ,

It seems yours is windows application , you can make use of minimisable windows popups.

Can you please put your code here what ever you tried.

Regards.
Oct 17 '15 #2
mrijet
64
Thanks for replying,

I already get what I want...but I'm still want to make it more informative for user...

The code that I get now is just pop up the message tell the user earlier 3 days reach due date. But the problem is, it will pop up 2 times when the due date got 2 in the database. So, how can I make it pop only once and instead of doing that I need to make count on that. So, how can I make it count the date that reach due date.Below was the code for pop up message to user when reach due date.

Expand|Select|Wrap|Line Numbers
  1. while (reader.Read())
  2.                 {
  3.                     string reportdate = reader.GetValue(3).ToString();
  4.  
  5.                     DateTime enddate = DateTime.Parse(reportdate);
  6.                     if ((DateTime.Now - enddate).Days < 3)
  7.                     {
  8.                         //reportdate = System.Convert.ToInt32(cmd.ExecuteScalar());
  9.                         MessageBox.Show("Almost reach due date on ");
  10.                     }
  11.  
  12.                 }
Oct 19 '15 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: MTASieve | last post by:
The following message contained an attachment type which is not permitted by the BSOS email system and was removed. Information about the problem message: FROM: python-list@python.org TO:...
0
by: MTASieve | last post by:
The following message contained an attachment type which is not permitted by the BSOS email system and was removed. Information about the problem message: FROM: python-list@python.org TO:...
0
by: MTASieve | last post by:
The following message contained an attachment type which is not permitted by the BSOS email system and was removed. Information about the problem message: FROM: python-list@python.org TO:...
0
by: grutta | last post by:
I am writing a windows service that will recieve notification when a USB Device is insterted into the machine. I have used the RegisterDeviceNotification and the RegisterServiceCtrlHandlerEx with...
1
by: Hai Ly Hoang [MT00KSTN] | last post by:
Different between Notification & Message is a bit hazy for me. Anyone can explain in detail for me ? Thanks in advance !
0
by: Ed Lukoski | last post by:
I'm trying to send mail (via our Exchange v5.5 server) from a VB.Net webapp and get Delivery Notification and Read Receipt. If I use mail.Headers.Add("Return-Receipt-To", "mailbox@whatever.com")...
2
by: SB | last post by:
Can someone please tell me Microsoft .NET's position on this WS-Notification specification that includes the pub/sub model? Is there something in the pipeline or already available as part of the...
5
by: kidfiction | last post by:
Hello, I recently came across this great site and discussion board. I am looking to create a notifier of sorts. I plan on going about this by creating a php script that scans a forum page (for...
0
by: nkanne | last post by:
I need help with receiving 'failure delivery notification', when email address is incorrect. In the database, there are emails which are invalid. My asp programs should send me an email saying...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.