On Wed, Jul 22, 2009 at 8:43 PM, Alan Bourke<[email protected]> wrote:
> To me that means a Windows service, which is slightly 'in at the deep
> end' if you're just beginning in .NET.

Am I missing something here (quite possibly as I filter 'Pro'Fox
messages quite heavily)? This is an app running in the notification
tray with a user interface, why is that a good candidate for a Windows
service?

Garrett, you want to look at the NotifyIcon class [1] and the
ContextMenu class [2] (if you want a menu for the icon) - there should
be enough sample code in these two to get you started

[1] http://msdn.microsoft.com/en-us/library/system.windows.forms.notifyicon.aspx
[2] 
http://msdn.microsoft.com/en-us/library/system.windows.forms.contextmenu.aspx

If you don't need a menu it's even easier, catch a left-click, show
your form with the textbox visible then show the query results in a
DataGridView (you could show and hide panels, which are analagous to
pageframe pages without the frame, to separate the query from the
results, or just show and hide the controls which is probably easier).
The only slightly tricky bit I can think of will be showing the form
in the bottom corner, if that's what you want to do.

regards

--stuart


On Wed, Jul 22, 2009 at 8:43 PM, Alan Bourke<[email protected]> wrote:
> To me that means a Windows service, which is slightly 'in at the deep
> end' if you're just beginning in .NET. Also, since a service can't have
> a visible user interface, you need a little WinForms / WPF GUI
> application that can talk to the service. You would probably even need
> to do a little testbed form that would let you start/stop the service,
> run methods on it and so on.
>
> I did one of these recently in C# and just used the Visual Studio help -
> look for "Introduction to Windows Service Applications" in the index.
> FYI, my solution has the project for the service 'shell' itself, a
> project for the 'engine' which has all the actual methods, a test
> harness project and a project that builds the MSI installer. So it's not
> trivial.
> --
>  Alan Bourke
>  alanpbourke (at) fastmail (dot) fm
>
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to