|
Hello,
have some problems with debugging windows service. When trying attach to service process then "Attach" button is disabled. Any idea why?
Greetings
|
|
|
|
|
This usually happens when the service is no longer running. The service starts, then stops almost immediately.
What's casuing this depends on how you wrote your service. Normally, a service is written so that in the Start event, an object is created that starts a new thread where all of the service work is performed. You should NEVER put your work code in the Start event, only the code to start the worker thread goes in there.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Don't forget the loop! I always seem to forget a loop in my threads to keep them from exiting.
File Not Found
|
|
|
|
|
How could I forget! :->
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hello
I read this from Professional C#,Wrox:
"However, it is possible for a delegate to wrap more than one
method. Such a delegate is known as a multicast delegate. If a multicast delegate is called, it will successively
call each method in order."
It is also said in that book:
"If you are using multicast delegates, you should be aware that the order in which methods chained to
the same delegate will be called is formally undefined. You should, therefore, avoid writing code that
relies on such methods being called in any particular order.
"
Can methods in delegation run in special order?
|
|
|
|
|
I would suspect them to run in the order they are populated. They are usually added by +=, so they must be in some sort of collection, and every list or collection has a basic order. He says you shouldn't rely on it, and I can understand why as it is probably not very reliable. I'll try to look into it soon.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Use GetInvocationList() from your delegate. This will give you the full list of listeners. You can then roll your own call order from the mechanism that fires them, ie the OnX method.
File Not Found
|
|
|
|
|
Dear friends,
i have created a application in .net 2005 using c#. i have passed the debug (folder which contains exe and dll) to my friends. after a day when i clicked on the exe the error message shown as "Unable to find a version of the runtime to this application".
i did n't get my form before getting my form i got this error.
please help me.
thank u
|
|
|
|
|
I'm not quite sure what you're talking about , but try this.
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
i have .net 2003 and 2005 installed in my system.
i have done a Windoes application in .net 2005.
the next day i want to run the program so i clicked on the exe.
then i have got the error "Unable to find a version of the runtime to this application"
this is my problem
|
|
|
|
|
My problem is to open design view of report so that end user can design report acording to his choice...
is it possible to open design view of rdlc or crystal report at runtime to give control to end user.
sweety
|
|
|
|
|
I want to make organization chart to my company's employees taking data from tblemployees (SQL server databse) the chart open from windows form
marwa
|
|
|
|
|
Have you tried to use DataGridView to bind the data with the one from the database?
Or you can use a ListView, but it's a little more work to be done
Do your best to be the best
|
|
|
|
|
I want an organization chart like that drown in visio to see the hierarchy of the employees
merwa
|
|
|
|
|
English please
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
THe first thing you have to check is if the is any hierarchy data in that table, or somewhere else. If not, then you're going to get a nice flat tree with everyone on the same level.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
The choices are:
1. Write your own drawing code.
2. Use Visio.
3. Use a 3rd party drawing library.
4. Use TreeGx[^]
In all cases, you are going to have to write the code to select the hierarchy yourself.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hi every one, well I have a bit stupid question here but can u plz tel me how to use the debugging features of VS .NET 2.0, I'm working in C# 2.0 windows application.
can u tell me how to use watches? or give me an article or something?
Thanks in advance
Rocky
|
|
|
|
|
|
thanks that looks helpful
Rocky
|
|
|
|
|
i have already created the tables in access.
i want to see the create query of the tables.
is it possible to get the create table query for existing tables in access?
Plz reply me
|
|
|
|
|
If you have access to SQL Server Management studio it is very easy, assuming you have SQL Server 2005.
Just rightclick and select Tasks > script to > CREATE.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Hi, i need to disply the ouptput text of Label in the form of Hungarian Notation..
i have a label i need to desplay the label.text values as TitleCase...
eg. if the output to label is im in love, i need to desplay as Im In Love.
Hope u got me.
please tell me the formatting solution.
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
Look for the options of a regular string. I would do the following algo:
- split on every space into an array
- for every element in array, the most left character is made upper, and add it to another string
static string CamelCase(string input)<br />
{<br />
string[] words = input.Split(' ');<br />
string output = "";<br />
foreach (string word in words)<br />
{<br />
output += word.Substring(0, 1).ToUpper() + word.Substring(1) + ' '; <br />
}<br />
<br />
return output;<br />
}
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Thnx for ur reply,
but i wannt to clarify onething,
here i am taking the lbltemp.Text(label) values in runtime and assigning to lbltemp, how can i do that? i don't need to split coz i'm gonna take the same format, All I Need To Do Is, just wanna make everyFirstLetter to Capitol.
And Also, Do u know how to print Degree(celcious) value through keyboard do u know ASCI Value?
Thnx
pashi
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|