|
-
Jan 10th, 2013, 03:57 AM
#1
Thread Starter
Addicted Member
how to create a pop up windows using C#?
I am developing windows application using C# and MS sql server.
i have a table called ReminderTbl with columns(id,title,details,datetoberemind)
i have an insert form i just feed the data and now i can show them on gridview all the data.
now i want to have pop up form which shows all the data of that date.
for example if i feed 3 articles to remind me on date 01/16/2013, then on that date it will popup and show me these data, i just want to show a popup form with gridview based on date.
can u help please? i need the code
-
Jan 10th, 2013, 04:46 AM
#2
Re: how to create a pop up windows using C#?
You say that you can already query the table to get all the records. You simply add a WHERE clause to your query to filter on the DateToBeRemind column, which would be better named ReminderDate. Use a parameter and, in your C# code, set its value to DateTime.Today. Alternatively, you could use the SQL Server GETDATE function to get the date at the server end.
If you think that the application might be open when the date changes and you want the next day's reminders to pop up at midnight then you'll have to add a bit of Timer code.
-
Jan 10th, 2013, 05:28 AM
#3
Thread Starter
Addicted Member
Re: how to create a pop up windows using C#?
I need to make the pop up to appear at day time, so how can i i do that?one the form should pop up if there is matches with today's date and how can i do that to appear on day time too? thanks Mr
-
Jan 10th, 2013, 06:47 AM
#4
Re: how to create a pop up windows using C#?
You might need to be a bit more specific than "day time". Please provide a FULL and CLEAR explanation of EXACTLY what you want to happen so that we don't have to guess or make assumptions.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|