|
Thats what I thought, and its so not what I wanted to do
"I think I speak on behalf of everyone here when I say huh?" - Buffy
|
|
|
|
|
But in the long run it will prove better, now it mite just be one method, but later it could be several, and then the seperation of logic makes alot more sense, especially if you have to debug the app several months later.
top secret xacc-ide 0.0.1
|
|
|
|
|
Hello,
is there a generic way to "get informed when a method is called or left". I know I could enter code at the start and end of every method but I would prefer an automated way.
Any ideas?
|
|
|
|
|
I think that what you'll want to do it is to create an Event[^] that fires off when the method is called.
|
|
|
|
|
Thats not what I want. Lets assume I want to log every action of a set of classes. I want a mechansim to make a log entry on every call to a property or method in those classes, without firing events everywhere by myself.
|
|
|
|
|
The only generic way to do this is implement the ICorProfilerCallback interface, provided by the runtime. That said, I have never been able to figure it out either.
Search on gotdotnet for CLR Profiler 2.0, that mite provide some help as the source is available.
top secret xacc-ide 0.0.1
|
|
|
|
|
hi,
we have intellisence in our source editior. If we are choosing a function which have more than one overloads then we can view all other overloads using up and down arrows. The problem is we will get only the information of first parameter of any overloaded method.
My question is how can i view all the other parameter information while keeping the tool tip.
(idea : we can view all overload list using up and down arrow.)
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
lol - very interesting question.
if you ever used visual studio for more than a few days you'd know that if you type in the first param and hit the comma key as to enter the second parameter you will see information for second parameter
|
|
|
|
|
HI,
this is very basic thing that you mention.just think how you will know how many overloaded method is there.Is after trying that or before using. before using right. My intension is same i need to get all information of parameter before trying.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
hi every body,i added the timer to the form & set the interval to 5,what to do next to close the form after 5 seconds.
if u really would like to help me,please write a clear code.i'm just a begginer.
thanx 4 y all.
|
|
|
|
|
write this.close in timer tick event. for every setted seconds this event will fire. i think this is the better option.
private void timer1_Tick(object sender, System.EventArgs e)
{
this.Close();
}
|
|
|
|
|
How can I justify text in a label? By justify I mean, make the text fill the whole line... There's Left, Center, Right and I want justify.
/\ |_ E X E GG
|
|
|
|
|
There is no built-in method for that. Why don't you derive from label and do your own drawing?
|
|
|
|
|
So make a new project and inherit the System.Windows.Forms.Label class and then do crazy overriding code, essentially makeing my own imporved label control?
/\ |_ E X E GG
|
|
|
|
|
Creating a seperate project is not necessary, and the override code is not crazy. Very simple and straight forward.
Almost 5 minutes of work.
|
|
|
|
|
I'm trying to write a little app in C# that'll get some basic system information at startup and then send it to SSE on a different box.
What I'd like to get is username, hostname, list of all user accounts and their groups on the machine, cpu type, machine serial number, mac address, total system memory, and a listing of installed applications.
I can get a few of those things from System.Environment, but I am having a hard time figuring out the rest of it, particularly system memory. I think I might need to use System.Management, but I am not sure how to do that.
|
|
|
|
|
|
how do I turn my Visual studios project in to a stand alone application?
|
|
|
|
|
What??
"Creating tomorrow's legacy systems today.....
.... One CRISIS at a time!" -- Unknown
"If you build it....
.....BUGS will come!" -JB
this.Dispose();
"A Bug is a piece of <sup> code </sup> that knows whatz its purpose"
|
|
|
|
|
I need to run the code that I wrote in a Visual Studios project outside of the visual studios enviroment. Actually, I need to run it on a computer that does not have visual studios installed.
|
|
|
|
|
You compile your source code to an executable and typically create an installer package along with it. This is done in Visual Studio.
- Nick Parker My Blog | My Articles
|
|
|
|
|
Could you point me to a good example of how to create an installer package?
|
|
|
|
|
Add a "Setup Project" to your solution as you would add any other project to your solution. And then go from there.
To find out more about deploying your application you should read MSDN as it gives you all the information. You'll find the information in the section titled Deploying Applications and Components[^]
You might want to pay particular attention to Walkthrough: Deploying a Windows Application[^] which gives you a step by step guide to creating an installation setup for your solution.
Does this help?
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
|
|
|
|
|
|
I have a mdi child form that has two combo boxes and a data grid. The combo boxes are used to filter the records in the data grid.
The problem I am having is that I load the combo boxes from a dataset in the form load event. I also fill the datagrid from a dataset after loading the combo boxes. It looks to me that the combo box events (selectedvaluechanged) are running before everthing is loaded properly and causes loading errors. Both my combo boxes call a function to reload the datagrid. Am I loading the combo box values in the wrong event?
I hope that made sense.
Thanks,
JefferyS
|
|
|
|