|
I am coding a "Trace" object. This object will report the "method name" of the method within the class that the code is currently executing. I do not want to have to type in the method name each time the trace object is called. I simply want to be able to pass my object some sort of reflections.method.name.Tostring() call. This methodology can then be transported everywhere in all the methods without having to worry about misspelling or renaming the method down the road.
Eric "Moose Man"
|
|
|
|
|
eunderwo00 wrote: I am coding a "Trace" object
"Well done"
|
|
|
|
|
Jon Hulatt wrote: using System.Beer
Right now on my desk,
using System.Beer.Becks;
|
|
|
|
|
|
hi,
i'm looking fo a way to enable/disable my network connetion, via code.
after toggling, is there a way to know that i reached the wanted status? is there event i can catch to know if i'm connected/disconnected?
thanks.
|
|
|
|
|
|
hi,
i saw this link, but as i asked before - i wolud like to that in c#. any ideas?
thanks
|
|
|
|
|
Hey guys, I'm having a problem double buffering my control.
The control requires the UserPaint flag set to false, so I manually paint the control. Now since the control is painted over and over again I experience some flickering problems. What is the best way to create a custom like double buffer which prevents my control from flickering? The OptimizedDoubleBuffer style does not work when UserPaint is set to false.
<br />
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);<br />
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);<br />
this.SetStyle(ControlStyles.Selectable, false);<br />
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);<br />
this.SetStyle(ControlStyles.UserPaint, false);<br />
|
|
|
|
|
|
Hi,
Does anyone know whether it is possible to write managed code that utilised the L1 and L2 cache? The reason I'm asking is because it is faster to access the L1 and L2 cache.
Thanks
kk
|
|
|
|
|
The most recently used data and code are stored in the cache automatically, and only swapped out to main memory when something else needs the space. You don't need to do anything special to make this work. For computationally intensive code you want to try and keep your working set of data and the hot loop of your code small enough to fit into the cache if possible, but these days that's almost never needed unless you're doing scientific computing in which case you should probably be using C++ to begin with so you can ultimately rewrite the innermost sections of the hot loop in assembler This ofc assumes you are or have the skills of a good assembler programmer available, an average coder is probably going to be out performed by the compiler now.
--
You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
|
|
|
|
|
Hi Dan,
Thanks for replying. I'm actually involved in high performance computing. I've read an article on whether CLI-based virtual machine is suitable for high performance computing and the conclusion is it is possible. Code becomes more efficient as JIT compiler progresses from one version to a new version. I believe Java Grande has also proven that Java is suitable for high performance computing.
Regards,
kk
|
|
|
|
|
Has anyone got crystal to work with MySQL and VS 2005?
I've tried connecting via ODBC and everytime i touch the database expert VS encounters problems and has to close. I've had a really good search on Google and can't find any pointers as to how to get these things to work.
If anyone's got a website that might help me i'd be really grateful,
Thanks in advance,
Russell
|
|
|
|
|
|
|
Hi,
I want to search a specific string in .txt file and copy that string in to another file. How can i do this in C#?
|
|
|
|
|
Try this out:
StreamReader reader = new StreamReader("c:\\test.txt");
String line = "";
while(line != null)
{
line = reader.ReadLine();
if(line.IndexOf("is line two") != -1)
{
StreamWriter writer = new StreamWriter("c:\\testOut.txt");
writer.Write("found!");
writer.Close();
break;
}
}
|
|
|
|
|
Hi everyone,
I just wanna know how do u compare a password with the one given in the login form when its been encrypted with MD5 technique. How can u check that the user has entered correct password.
thanks
Rocky
|
|
|
|
|
Rocky71 wrote: I just wanna know how do u compare a password with the one given in the login form when its been encrypted with MD5 technique. How can u check that the user has entered correct password.
By encrypting (or, to be accurate, hashing) the password that the user typed in then comparing the two MD5 hash values.
|
|
|
|
|
I need to start a Webbrowser and control it's behaviour afterwards (Navigate, show/hide menu...). To simply call iexplore.exe with an URL or use the WebBrowser-Control is not an option
Previous to C# I used the IWebBrowser2-Interface out of SHDocVw which worked just fine, I tried to do the same C# but every time I want to .Navigate I got a ComException with HRESULT of 0x80004005 (E_FAIL).
Anybody got an idea?
Thanks in advance
|
|
|
|
|
I did something of this sort with the WebBrowser control in VS 2005. But this is just a control and does not open IE in a separate window. You need to develop a windows form which has this control embedded. You can control almost all the navigation and display options of IE using the methods and properties of the control.
Regards
SG
|
|
|
|
|
Thank you for the answer, I tried several possibilities and nothing worked as wanted. I will stick to your solution, it's the easiest and fastest way
Regards
apet
|
|
|
|
|
Hi.
I have this problem, i can't figure out what i should do.
I want to make an application where i can insert people to a database.
I'm using textboxes to write info about the person and so on.
And i want it all into a database where i can edit it again after..
Please help me, i hope you understand what i'm writing..
I'm new at this..
|
|
|
|
|
|
Please tell what the problem you are facing. We are not here to write code for you. Supply code snippet or scinario which you are facing problem.
I suggest you should try google first and see how database connection works with c# application and so on.
Mubashir
Software Architect
Storan Technologies Inc, USA
Every job is a self portrait of the person who did it.
|
|
|
|