如何显示提醒/弹出窗口当我为用户分配任务时 [英] How To Show reminder/popup window When I assign a task to the user

查看:84
本文介绍了如何显示提醒/弹出窗口当我为用户分配任务时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



我有一个程序,我正在为用户分配任务。我想发送提醒或弹出给该用户。



例如 - 我已经向John分配了一个任务。

when John登录后可能无法打开我的应用程序。



如果任务分配给John,我想显示一个弹出窗口或提醒窗口,我可以在其中显示详细信息。



我看了几个例子,如如何显示通知图标或气球提示,在系统托盘中运行应用程序,但我无法找到一个示例如何这会和数据库交谈吗?



你能告诉我起点还是举个例子?



我正在使用vb.net,visual studio 2013,SQL 2012和windows



提前致谢!

解决方案

是的,你自己已经在问题中给出了解决方案。

使用系统托盘,它将帮助应用程序在后台运行并使用气球提示显示消息。



如果是这样,用户是n在屏幕前面,将这个消息保存在一个表中,表明用户没有查看过一列,并在一定的时间间隔后运行它,这将获取分配但未被用户查看的记录。一旦用户查看或单击气球提示,就会更新用标志查看的列,以便下次不会出现。或者显示弹出窗口,直到用户没有工作。



您可以维护一个单独的表或在工作分配表中创建一个列并使用标志

Hi All

I have a program where I am assigning a task to the user. I want to send a reminder or pop up to that user.

For example- I've assigned a task to John.
when John is logged in he might not open my application.

if task is assigned to John, I want to show a popup or a reminder window where I can show the details.

I've looked on couple of examples as in how to show notify icon or balloon tip, run application in system tray but I am unable to find an example how this will talk with database?

can you please advise me starting point or give me an example?

I am using vb.net, visual studio 2013, SQL 2012 & windows

Thanks in advance!

解决方案

Yes, you itself has given solution in the question.
Use system tray which will help the application to run in the background and use balloon tip to show the msg.

If in case, the user is not in front of the screen, maintain this msgs in a table stating the user has not viewed a column and run this after certain intervals which will fetch those records assigned and not viewed by the user. Once the user views or clicks the balloon tip update the column viewed with a flag so that next time it wont come. Or display the popup until the user is not working on the same.

You can maintain a seperate table or create a column in the work assigned table and handle it with a flag.


这篇关于如何显示提醒/弹出窗口当我为用户分配任务时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆