c# - How to execute a WINFORM when card is swiped on a card swipe machine -
i trying build window service run in background card reader, take card's data on textbox . question : when swipes card on card reader window service winform should take card;s data on textbox. how can achieve this.
or,
if 1 can tell me how execute winform when card swipes, work also
thanks
windows services aren't supposed show kind of ui user, run background task take no input user , show no output or status them. if require service "talk" user, normal practice split project in 2 different programs, 1 being service itself, ui-less thing background processing, , normal user app, maybe ran @ login, shows notifications , communicates service. consider services survive logoff , logon, , there may many users logged @ given time, doesn't make sense show dialog anyone.
my suggestion turn service normal program, installer configures run @ startup, , monitoring of card reader , displaying of popups asking details user. since there no background work, other monitoring, , if form absolute required, doesn't makes sense monitor without user logged in, don't think service best choice.
Comments
Post a Comment