5
Answers

Popup GUI application from Windows service

I developed a windows service using C#. Based on a specific condition try to run an GUI exe application. That application run but under "Background Process" so that GUI not appear. I need that GUI when it run.

Can anyone help me.
Thanks in advance.
Answers (5)
0
Deborah Stoddard

Deborah Stoddard

NA 14 0 9y
Yes this is possible, for example here is how you can do that with a help of LINQ and this C# library that can read INI file:
var ini = new IniFile();
ini.Load("Sample.ini");

var listItems = from iniSec in ini.Sections
                from iniKey in iniSec.Keys
                select
                    new ListViewItem(
                        string.Format("KEY NAME: {0}, KEY VALUE: {1}",
                            iniKey.Name, iniKey.Value));

this.listView1.Items.AddRange(listItems.ToArray());