473,943 Members | 14,266 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing the service name on a VB service?

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 ProjectInstalle r
section seemed to have no effect on the event log. I finally found
that in *.Designer.vb there is an InitializeCompo nent 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
InitializeCompo nent...

--

Sync

Aug 12 '07 #1
6 4303
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
InitializeCompo nent...
The *approved* way would be anyway that works. :)
Aug 12 '07 #2
On Aug 12, 10:29 am, "Mr. Arnold" <MR. Arn...@Arnold.c omwrote:
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
InitializeCompo nent...

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.... :-)

--

Sync

Aug 22 '07 #3

<kd***@hotmail. comwrote in message
news:11******** *************@q 3g2000prf.googl egroups.com...
On Aug 12, 10:29 am, "Mr. Arnold" <MR. Arn...@Arnold.c omwrote:
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
InitializeCompo nent...

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>

Aug 23 '07 #4
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
Mr. Arnold wrote:
>
<kd***@hotmail. comwrote in message
news:11******** *************@q 3g2000prf.googl egroups.com...
>On Aug 12, 10:29 am, "Mr. Arnold" <MR. Arn...@Arnold.c omwrote:
>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
InitializeComp onent...

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>
Aug 23 '07 #5
TP
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

kd***@hotmail.c om wrote:
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 ProjectInstalle r
section seemed to have no effect on the event log. I finally found
that in *.Designer.vb there is an InitializeCompo nent 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
InitializeCompo nent...
Aug 23 '07 #6

"Steve" <ln************ ********@gmail. comwrote in message
news:uq******** *****@TK2MSFTNG P06.phx.gbl...
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.

Aug 24 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2514
by: Emanuel Marciniak | last post by:
Hi all, We have the form which uses checkboxes for several fields and the target action points to outside webservice. Unfortunatelly they do not support checkboxes. How to pass it as a radio buttons or pull down select box with Yes/No options for example (which they support) using still checkboxes as an input entry. Thank you for any hint, emanuel
9
7045
by: Hardy Wang | last post by:
Hi all: I read an article from http://www.c-sharpcorner.com/Code/2003/Sept/InstallingWinServiceProgrammatically.asp about how to install a windows service programmatically. Based ont the code sample, it provides the feature to install service under LocalSystem account. What I need is to install service under some other certian account. By further studying the code, and MSDN...
3
57031
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I want to test this service on a Windows Server 2003 box that doesn't have the Visual Studio Command prompt. How do I go about installing the service on the Windows Server 2003 box? Thanks!
1
4708
by: Nick via .NET 247 | last post by:
I have a similar problem trying to use web services with awindows form application. I currently use a static web referencein my project. What I am trying to do is to programaticallychange the url based on a server name passed in, and whether ornot the PDA is in the active sync cradle. IE. If the PDA is in the cradle, use localhost. If the PDA isn'tin the cradle, then allow connection over wi-fi to any validwebservice by changing the computer...
4
5390
by: Matt Colegrove | last post by:
I'm working on a web app that is published to a hosting service. I'm developing it on my local PC with VS 2005 and SQL Express. The hosting service DB is SQL Server 2000. I have two connectionStrings defined in my web.config file, one for the development db and another for the production db. When I publish my app to the hosting site, I rename the two connection strings so that the production string will be the active string in the...
1
1342
by: =?Utf-8?B?a2lwYWFkdW1hQGdtYWlsLmNvbQ==?= | last post by:
Hello all . I have a WS in the local machine that call another WS in a remote computer. in this call i send some integers and 3 by-reference strings The remote WS looks like that : void function(int a ,int b ,int c,ref string x ,ref string y ,ref string z) and the local WS calls it by this function: function(a , b , c , ref x , ref y , ref z); in this case i got my new x,y,z values back. BUT if i change the remote WS parameter name like...
3
6641
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
6
4838
by: NetworkElf | last post by:
I am trying to write a little utility and it needs to check the startup type of a given service on a remote machine and, if it is disabled, set it to manual. I have found out how to do this on the local machine using ServiceInstaller.StartType, but I cannot seem to find a way to specify the name of a remote machine to perform this action upon. I know that ServiceController will allow me to talk to a remote system and start/stop services,...
0
1515
by: titojermaine | last post by:
The problem is that after reducing MSDTC security to "No Authentication", it mostly seems to work correctly, except that after a brief period of inactivity (a few minutes), the first attempt to use DTC fails, but subsequent attempts are successful, until inactivity again. The original environment was a single machine with SQL Server installed and a service on another machine that would connect to the same SQL Server but utilizing different...
0
10143
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9970
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
11306
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10669
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9866
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8233
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6312
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4914
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.