StrataFrame App Running As A Windows Service


Author
Message
Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
Is it possible to have the main application running as (or like?) a windows service? I'd like to have a menu in the system tray pop up a list of modules that can be opened--showing and hiding an item based on security access. Each module would basically represent a department and its corresponding functions.



Thanks!

Bill
Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
I found a nifty way of handling this using a NotifyIcon and a ThemedContextMenu: http://www.developer.com/article.php/3336751.

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.3K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Based on my very limited knowledge of windows services, I'd say that there is no reason you couldn't use the SF framework to build a service. However, since it doesn't necessarily run on the UI thread, you wouldn't have an program.cs to work with. I.e. you'd have to set datasources in the OnStart event of the service, and do any tear down in the OnStop. I guess what I'm saying is that the paradigm is different, but the tools could certainly be used.
Dustin Taylor
Dustin Taylor
StrataFrame Team Member (652 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
Yep, you can totally use SF to build a service, Trent does it all the time. I never have, myself, but he tells me it is very easy (granted, he always says that Wink.)

However, based on Bill's description, I think the important part he was looking for was getting an icon to appear in the system tray, which he has already figured out by using .NET's standard NotifyIcon.

Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
Ya...everything is easy for Trent. Except for curling. He just can't seem to get that sweeping thing down.



BigGrin

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search