all groups > c# > january 2006 > threads for saturday january 21
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Windows Service Memory Usage
Posted by nautonnier at 1/21/2006 11:40:17 PM
I know my problem has been discussed ad nauseum but I still don't get it so
please bear with me.
I have written a service which performs some work against a database once a
day (usually in the wee hours of the morning). From the time the service
starts to the first time it hits the database it... more >>
Does the .NET framework always call the API?
Posted by Peter Olcott at 1/21/2006 11:02:19 PM
I want to double check my understanding about how the .NET framework works. From
what I understand every call to the .NET framework is ultimately translated into
one of more API calls, is this correct?
... more >>
Convert Price.ToString("C2") to decimal again?
Posted by Steven Spits at 1/21/2006 10:13:45 PM
Hi,
Suppose decimal Price contains 12,3. Price.ToString("C2") gives 12,30 ?
(yes, I'm located in Europe).
What would be the best way to convert this string to a decimal again?
Steven
- - -
... more >>
Getting description for special folders
Posted by Andrea at 1/21/2006 8:51:46 PM
I need to get the description (with the default language of the
operating system) for the special system folders like
Control Panel, My Computer and so on.
I have the CLSID of them and, for example, I launch the control panel
typing
::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3... more >>
IE add-on development
Posted by Fei Li at 1/21/2006 6:52:02 PM
Hi,
Where to strat my learning about C# for IE add-ons developemnt... more >>
using GDI+ Graphics object and getting confused, help!
Posted by Peter Row at 1/21/2006 6:33:20 PM
Hi,
I've started work on my own control some parts of which use standard
controls, others I need to draw on my controls surface to get the display
output I require, however....
I seem to be stupid or missing the point. I used DrawString( ) as a simple
test but I cannot get it to work at all... more >>
Unreachable code detected
Posted by dfetrow410 NO[at]SPAM hotmail.com at 1/21/2006 6:14:40 PM
Can I do this in an if statement?
public string getClass()
{
counta = counta + 1;
if (counta < 2 )
{
MyClass mc = new MyClass();
setTheClass("Blue"); *********** Unreachable code detected
}
else
{
return ("");
}
}
class MyClass
{
p... more >>
Multi-line ListView in VS.NET
Posted by JimC at 1/21/2006 6:08:48 PM
I think this question has been asked before, but I haven't found
a satisfactory answer.
Does anyone know how to make a ListView that displays multiple
lines in a row?
Jim
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
"One or more errors encountered while loading the designer" is making me suicidal! :(
Posted by sklett at 1/21/2006 5:32:25 PM
This BUG that is so ridiculous I can't believe they shipped 05 is making my
life hell. I have tried the various solutions found on the web and none of
them have worked thus far. What's even more troublesome is that it appears
that 05 uses these new partial classes which would makes rolling ... more >>
Rename all method names in an assembly
Posted by Caroline at 1/21/2006 5:01:40 PM
I have a CF app and I haven't found a decent obfuscator for it. I want to
write a simple obfuscator, that replaces variables and methods names. Is
there any way to rename all method names returned by Assembly.GetMethods,
for instance, method names, my own methods and other methods such as
Ge... more >>
Remoting.....via CAOs
Posted by TheMadHatter at 1/21/2006 3:45:01 PM
Sorry about putting this in the wrong news group,
but qustions seem to get answered here.
Okay, so here goes the q:
I want to use CAO in remoting to comunicate with a
server program. I know if I use a singleton SAO, I can
keep track of the object, and alow the server to put
data in that cla... more >>
is vs.net slow for others as well?
Posted by Peter Rilling at 1/21/2006 3:21:38 PM
You know, this is my first day using VS.NET 2005 and, although it has some
impressive new features, there are parts that they did not put together
well.
Does anyone else experience a periodical hang when in the editor? It seams
that every now and then, the IDE seems to stop accepting input... more >>
DrawString right aligned
Posted by GTi at 1/21/2006 3:08:21 PM
This must be the simplest question on the web.
How can I right align text with DrawString ?
Normal (left aligned):
1234567890
123456789
12345678
1234567
123456
12345
1234
123
12
1
Right aligned:
1234567890
123456789
12345678
1234567
123456
12345
... more >>
IFormatter assembly knowledge
Posted by Justin Crites at 1/21/2006 3:08:03 PM
How does an IFormatter (the serialization interface) know what
assemblies are available to it?
Let's say you dynamically load Assembly A (by this I mean there is no
compile-time dependency), instantiate a type T, then use
BinaryFormatter to serialize it. What happens when we attempt to
deser... more >>
using enter as a tab
Posted by Andrew at 1/21/2006 2:53:02 PM
Hi!
I'm new to c# and I stumbled across this dillema during a project: can
anyone tell me how I can emulate the action af a Tab when enter is pressed? I
saw something in visual basic that looked like this:
"To allow the Enter key to function as a Tab, enter this code in the
KeyPress event ... more >>
Retrieve description of an EXE file
Posted by Andrea at 1/21/2006 2:46:34 PM
I need to retrieve the "description" of an executable file. This is a
filed present in the file properties. How can I do that?
Thanks
Andrea... more >>
Determine if a text string is really a numeric type?
Posted by AdamM at 1/21/2006 1:04:53 PM
Hi all,
What function lets me check a text string and determine if that string =
is really a int, float, double, etc. just formatted as a string?
Thanks in advance!
Adam... more >>
cookie encryption/security
Posted by gl at 1/21/2006 1:00:02 PM
I'm currently making a web app that stores a user id in a cookie, and builds
user information off of that in the differnt pages of the site. The cookie is
created on login, and is separate from the authentication cookie. Are there
dangers to doing this? How easily can a cookie be tampered with... more >>
List of DHCP servers ?
Posted by jmd.msdn at 1/21/2006 12:49:42 PM
Hello.
Is it possible to obtain programmatically, with .net 2.0 + C# + Active
Directory or P/Invoke, a list of the authorized current DHCP servers in a
forest/domain ?
And, if the above question can be solved, is it also possible to manage the
DHCP servers (list, add, remove scopes, ...)... more >>
Tracing from Class in ASP.net application
Posted by asapjim at 1/21/2006 10:49:01 AM
Hi, I have a C# class that is being used by an ASP.net application. How can
I include the tracing from the class in the ASP.net application's trace
output (trace.axd)?... more >>
Design Pattrens
Posted by TulasiKumar at 1/21/2006 10:45:21 AM
Hi all,
What is a DesignPattrens?
Why Design pattren cocpets are intorduced?
Using Csharp how should i develop designpattern concept?
Any one please explained me or any reference sites please provide me
I want to know the concept
regards,
Tulasi kumar
... more >>
How to parse the names of methods & variables in a cs file
Posted by Simone M at 1/21/2006 10:33:19 AM
I would like to make a list of all the names of methods and variables
in a cs file. I need to open up a file, create the list of all methods
and properties, and variables, contained in that file, and close the
file.
Is there any class that will help me doing that?
Cheers,
Simone
... more >>
How to do this in .net
Posted by dfetrow410 NO[at]SPAM hotmail.com at 1/21/2006 9:09:41 AM
I have the following table. notice I need to mahe the first td red, the
next 4 yellow and the rest gray. This is being defined in the css. The
Commercial is coming from the database???
<table border="0" cellpadding="0" cellspacing="3" width="202">
<tr>
<td align=... more >>
Building a Syslog Server
Posted by Guy Noir at 1/21/2006 9:07:19 AM
Hello.
I am needing some advice. I need to build a syslog server that writes
to a sql backend.
I am concerned about the server not being able to handle multiple
requests. For example on an enterprise network, I may need to handle a
large number of requests. I assume a thread pool will be need... more >>
Question about DataTable
Posted by Danny Ni at 1/21/2006 8:59:06 AM
Hi,
If I want to programatically add rows to a DataTable, do I call
AcceptChanges per row? Or do I call AcceptChanges after all rows added?
TIA
... more >>
Retrieving an Image from a resource file
Posted by Doug Handler at 1/21/2006 7:30:36 AM
I'm using VS2k5 and i've added a bunch of images to the project's
resource.resx file and thus they reside in the Resources folder. I want to
dynamically add an image to my project. I have no problem adding an image
if its part of an existing UserControl or Form, but just as part of the
gen... more >>
getting current track playing in wmp programmatically
Posted by Paul Fi at 1/21/2006 5:11:28 AM
im writing a C# program that tries to get the currently playing song in
a
seperate windows media player instance (external app)
i found out that there might be a way to do that using the windows
messaging
system.
some how i was able to use the win32 funtion findwindow() to get the
handl... more >>
Communicating Between Multiple Projects
Posted by Veleek at 1/21/2006 12:21:29 AM
An alternate title for this might be "Creating my own set of core
classes".
Just a quick overview. In order to learn C#, Sockets, Multithreading
and whatever else I can, I am attempting to create MSN Messenger (My
Sucky New Messenger), ie. a simple IM program as it is a interesting
way to in... more >>
What is the purpose of the string.copy method?
Posted by CMirandaman at 1/21/2006 12:05:02 AM
Sounds like a stupid question I know. I can tell that they are used to copy
strings. But what is the difference between
x = y;
versus x = String.Copy(y);
Or are they essentially the same?... more >>
|