Click here to Skip to main content
15,917,177 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Putting Controls on MDI Parent Window Pin
Dave Kreskowiak25-Jun-04 4:19
mveDave Kreskowiak25-Jun-04 4:19 
GeneralRe: Putting Controls on MDI Parent Window Pin
gthompson200525-Jun-04 15:10
gthompson200525-Jun-04 15:10 
GeneralRe: Putting Controls on MDI Parent Window Pin
Dave Kreskowiak25-Jun-04 17:17
mveDave Kreskowiak25-Jun-04 17:17 
GeneralRe: Putting Controls on MDI Parent Window Pin
gthompson200525-Jun-04 17:28
gthompson200525-Jun-04 17:28 
GeneralRe: Putting Controls on MDI Parent Window Pin
Dave Kreskowiak25-Jun-04 17:44
mveDave Kreskowiak25-Jun-04 17:44 
GeneralRe: Putting Controls on MDI Parent Window Pin
gthompson200525-Jun-04 18:40
gthompson200525-Jun-04 18:40 
QuestionWindows Services Problem? Pin
mythinky24-Jun-04 19:05
mythinky24-Jun-04 19:05 
AnswerRe: Windows Services Problem? Pin
Dave Kreskowiak25-Jun-04 3:47
mveDave Kreskowiak25-Jun-04 3:47 
mythinky wrote:
1. How to make a windows service that its icon display on the task bar?
Your Service would have to include a Form that you can put a NotifyIcon component on. When you service is installed, you'll have to go into the Services Control Panel and tag your service and "Allow interaction with Desktop". Make sure your Form's ShowInTaskbar property is set to False and it's Style is set to Minimized.

mythinky wrote:
2. How to show a form when we click the icon?
In the, say, double-click event handler for the NotifyIcon component, just do Form1.Show(), or whatever you want to call your form.

mythinky wrote:
3. I have problem when starting the windows service, if the service have a windows component such as notifyicon, timers etc. If i am using timers from windows component instead of system.timers.timers, the error "System.Reflection.TargetInvocationException" will come out when we start the service. Could the windows service use windows component?
It can use Windows components, but you have to have a host form to put the components on AND tag your service as "Allow interaction with Desktop" in the Services Control Panel.

mythinky wrote:
4. does the "timers" is elapsed every time according to the interval or just elapse once for the first time when the timers is enabled?
When you Enable the timer, it will NOT fire the Elapsed event until the specified interval has elapsed first. It will continue to fire Elapsed events every Interval milliseconds, wheather your ready for them or not, until the timer is no longer enabled.




RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Windows Services Problem? Pin
mythinky27-Jun-04 15:24
mythinky27-Jun-04 15:24 
GeneralRe: Windows Services Problem? Pin
Dave Kreskowiak27-Jun-04 18:13
mveDave Kreskowiak27-Jun-04 18:13 
GeneralRe: Windows Services Problem? Pin
Anonymous27-Jun-04 23:36
Anonymous27-Jun-04 23:36 
GeneralRe: Windows Services Problem? Pin
Dave Kreskowiak28-Jun-04 0:41
mveDave Kreskowiak28-Jun-04 0:41 
GeneralRe: Windows Services Problem? Pin
mythinky28-Jun-04 15:49
mythinky28-Jun-04 15:49 
GeneralRe: Windows Services Problem? Pin
Dave Kreskowiak28-Jun-04 16:48
mveDave Kreskowiak28-Jun-04 16:48 
QuestionEmail in Windows Service? Pin
mythinky24-Jun-04 18:05
mythinky24-Jun-04 18:05 
AnswerRe: Email in Windows Service? Pin
Dave Kreskowiak25-Jun-04 3:36
mveDave Kreskowiak25-Jun-04 3:36 
GeneralRe: Email in Windows Service? Pin
mythinky27-Jun-04 15:37
mythinky27-Jun-04 15:37 
GeneralRe: Email in Windows Service? Pin
mythinky27-Jun-04 15:49
mythinky27-Jun-04 15:49 
GeneralRe: Email in Windows Service? Pin
Dave Kreskowiak27-Jun-04 18:29
mveDave Kreskowiak27-Jun-04 18:29 
GeneralRe: Email in Windows Service? Pin
Dave Kreskowiak27-Jun-04 18:21
mveDave Kreskowiak27-Jun-04 18:21 
GeneralSave As Type Pin
Esther C24-Jun-04 17:29
Esther C24-Jun-04 17:29 
GeneralRe: Save As Type Pin
Esther C24-Jun-04 17:41
Esther C24-Jun-04 17:41 
GeneralRe: Save As Type Pin
Dave Kreskowiak25-Jun-04 3:00
mveDave Kreskowiak25-Jun-04 3:00 
Generalsystem tray Pin
Anonymous24-Jun-04 16:14
Anonymous24-Jun-04 16:14 
GeneralRe: system tray Pin
Dave Kreskowiak25-Jun-04 2:42
mveDave Kreskowiak25-Jun-04 2:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.