Results 1 to 4 of 4

Thread: how to create a pop up windows using C#?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Posts
    208

    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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Posts
    208

    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

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width