|
protected override void OnStart(string[] args)
{
inform("START");// for event log
timer1.Start();
proccessorid();//I give all system info
learnsystem();
}
|
|
|
|
|
I think when I try learning proccesorid and all system info , the code is failed.
I put out them and service started normally in boot..
But I have to take those informations.
|
|
|
|
|
Get the learnsystem out of the OnStart; it doesn't belong there. OnStart must start the process and exit; that's all.
|
|
|
|
|
|
Probably in the main part of the Service -- perhaps check to see whether or not the system is learned:
If not learned
Try to learn
If failed, log and return
Do stuff
You could then periodically check for changes in the system, too.
|
|
|
|
|
also it is rarely working on restart..
|
|
|
|
|
Is your service dependent on another service? Then make sure that the other service is started before.
|
|
|
|
|
a lot of services start before which is depend on how am I understand?
|
|
|
|
|
Open services.msc.
Right click on any service. You can see properties menu in pop menu.
When you open properties of the service. you will see dependencies tab.
Regards,
Sunil G.
|
|
|
|
|
|
Have you tried to change the start type of your to automatic.
|
|
|
|
|
anyway start type is automatic
|
|
|
|
|
Hi All,
I am new to win form,
Plz any one can send the code for validating integer in textbox.
googled it, no result...sorry for asking simple question
Thanks in advance.
Ramkumar
("When you build bridges you can keep crossing them. ")
http://ramkumarishere.blogspot.com
|
|
|
|
|
Did you found this result on google[^]?
Check it and you will find good enough solutions for your question.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Thought processes to help you find your answer:
I need to validate a value in a textbox.
This value is a string.
I want to convert it into an integer.
Hmmmm.... Let me see, is there something available on a string object that will let me do this?
No. OK, how about on the integer object?
Wait, what's this - there's a Parse command; that sounds promising.
Ooh look - there's a TryParse command available as well.
Right, let's fire up google and do some research on these commands.
Well, that's it - I know what I'm going to use.
|
|
|
|
|
thanks pete...
but my question is very simple..
if the user enter albhabet value, message should pop-up saying "Enter only integer"
as i know i should code in keyevent ...Plz help me with this..
Ramkumar
("When you build bridges you can keep crossing them. ")
http://ramkumarishere.blogspot.com
|
|
|
|
|
You are going about this the wrong way. Don't pop up a message, as this forces the focus away from the textbox and you will only end up annoying the user. You could check in the key press to see if the character that is entered is a number and set e.Handled = true if it isn't, or you could use a masked edit box and set it to only allow numeric input.
|
|
|
|
|
There is more to it than just trapping key down / key press. What happens if the user pastes an invalid value - possibly using the mouse? What about navigation keys, delete, backspace...
I wrote a NumericTextBox control a while ago. It's not an Integerbox but a TextBox, so it is still a string and doesn't limit the value to Int32.MaxValue etc (and doesn't allow the - character either!) but it may suffice or be a start.
Clickety[^]
Edit: Fixed link
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
it seems to reject "Five hundred and sixty-five".
|
|
|
|
|
|
and also on roman numbers
|
|
|
|
|
|
Hi,
i am using a web browser control in a form application.
after loading of the page , i want to highlight the image/text on which the mouse is clicked...
when the mouse is clicked on a text or image the same should get highlighted..
could i get some help on this ?
This is not a repost...there are no other questions posted regarding the same.....
Thank You all.
|
|
|
|
|
This is a repost, no matter what you say. Just because you deleted your earlier posts, doesn't mean that we don't recognise the question.
Have you considered injecting custom javascript into the page to perform onclick behaviour? It's not that complicated to do as you can just manipulate the DOM from your forms app.
|
|
|
|
|
yes i do agree....
however last time i posted the question, it was only once...however, it was said to delete earlier post...what were the earlier post ??
i do not understand....i did post the question for the first time..so how and where do i delete the earlier posts ???
|
|
|
|