Changing the service name on a VB service?

  • Thread starter Thread starter kdd21
  • Start date Start date
K

kdd21

Hi,

Just got my first service written in VB-- works fine but the event log
was showing the start stop entries as Service1 so I went in to change
it, but changing the servicename properties in the ProjectInstaller
section seemed to have no effect on the event log. I finally found
that in *.Designer.vb there is an InitializeComponent Sub that was
still setting Me.Servicename = "Service1". However, there were
cautions not to edit it in the code editor, but to edit it in
"component designer."

So just how do you call up the "component designer" to edit this? Out
of frustration I finally edited it in the code editor because I
couldn't see where else I could edit it otherwise. That did fix the
event log naming issue, and I'm off and running, but it would be nice
to know the "approved" means of editing the servicename setting in
InitializeComponent...
 
event log naming issue, and I'm off and running, but it would be nice
to know the "approved" means of editing the servicename setting in
InitializeComponent...

The *approved* way would be anyway that works. :)
 
Oh that's right-- I forgot this is Microsoft, where the only good
standard is a dead standard.... :-)

Due to the dumb question you asked, you wouldn't know what a *standard* was
if it hit you up side your head.

Who are you kidding?

Maybe should limp over to Linux with Perl , Rails or Java.

<g>
 
You know, it's pretty disappointing to see all the jerky people in the
MS newsgroups who would rather insult people than help them. Perhaps you
came out of the womb with expert level developer knowledge, but most
other people did not, and had to start out somewhere. Typically, it
involved asking people for help.

That's what this guy did, until a few people started in with the
bashing. If you don't want to offer ACTUAL help, why bother even
posting?? If you insist on flaming people who just want help, just join
a flaming newsgroup, and stop cluttering up my newsreader with
ridiculous posts that NO ONE wants to read.

And another thing. One of the good things about Linux newsgroups is that
a LOT more people are willing to go out of their way to help each other.


Steve C.
MCAD,MCSE,MCP+I,CNE,CNA,CCNA
 
Hi,

Right-click on the service code file (for example, service1.vb) and
choose View Designer. In the Properties window, change the
ServiceName property as needed.

The above is the "approved" method you were referring to, and
follows the convention used for editing properties of other
components.

-TP
 
Steve said:
You know, it's pretty disappointing to see all the jerky people in the MS
newsgroups who would rather insult people than help them. Perhaps you came
out of the womb with expert level developer knowledge, but most other
people did not, and had to start out somewhere. Typically, it involved
asking people for help.

Do you think I care?
That's what this guy did, until a few people started in with the bashing.
If you don't want to offer ACTUAL help, why bother even posting?? If you
insist on flaming people who just want help, just join a flaming
newsgroup, and stop cluttering up my newsreader with ridiculous posts that
NO ONE wants to read.

SOB, you can kiss my BEHIND while you're at it too, and you can go join the
DAM* NG .
And another thing. One of the good things about Linux newsgroups is that a
LOT more people are willing to go out of their way to help each other.

You can take every O/S running, every PROGRAM LANUAGE ever created, every
COMPUTER ever built and I'll help you can stick IT you know where.
Steve C.
MCAD,MCSE,MCP+I,CNE,CNA,CCNA

Take all that CRAP out from under your name, it means nothing. You can put
the LONE RANGER there, because that's all you're playing, and then you can
kiss my BEHIND.

Who the HE** you think you are talking to me about anything? You don't
control anything other than worthless a** life. You control that you SOB.
 
Back
Top