all groups > dotnet framework > december 2006 > threads for december 15 - 21, 2006
Filter by week: 1 2 3 4 5
2.0 Generics - Feature or Bug?
Posted by Zachary Turner at 12/21/2006 8:24:35 PM
Consider the following generic class
class MyClass<T>
{
private MyInterface _SomeInterface;
private string _SomeFormatString;
public string GetSomeFormattedString()
{
T[] ArrayOfTs = _SomeInterface.GetArrayOfTs();
return String.Format(_SomeFormatString, Ar... more >>
HttpListener BeginGetContext does not seem to handle more than 2 request simultaneously
Posted by Kunal at 12/21/2006 2:41:15 PM
Hi Friends,
I'm trying to host a webservice that will receive/process multiple
client requests simultaneously. For this purpose, I wrote the following
code, but it does not seem to be handling more than two at a time. I
put in a few console prints and have also attached the output. Here it
go... more >>
detecting 12 or 24 hour support for DateTime
Posted by freddyboy at 12/21/2006 11:52:19 AM
Hi
I'm trying to detect if the current culture support 12h or 24h?
I need to change string values based on the hour formatting.
I tried to
DateTime dt = new DateTime(1,1,1,14,0,0,0);
string s = string.Format("{0}:00", dt.Hour.ToString()); //
I want s to output 14:00 when using 24h and... more >>
Framework 3.0 Installation Problem (99% CPU Utilization)
Posted by gk1962 at 12/21/2006 8:22:34 AM
I am attempting to install the .NET Framework 3.0 and it is pegging the
CPU when trying to load the installation components. I ran the
installation without any problems on my desktop, but cannot get it to
run on my laptop. For the last 30 minutes the setup has been displaying
"Setup is loading i... more >>
List of shortcut keys for RichTextBox
Posted by peterbf at 12/21/2006 3:53:21 AM
Hi
I have been looking for a list of shortcut keys for the RichTextBox.
I need this because I use a RichTextBox which must only contain text.
So I have been capturing the shortcut keys Ctrl+v to make sure that
only text would be pasted in the RichTextBox. Big was my suprise one
day when I h... more >>
Call Graph from Assembly or Code
Posted by Aamir Mahmood at 12/20/2006 7:11:00 PM
Hi guys,
I need a tool that can create a method call graph from analysing my C# code
or assembly.
I actually want to list functions being called by each function recursively
(whether same or different class, public or private or protected or static
functions).
And it should be done by lo... more >>
Rule Engine
Posted by Ram Shankar Yadav at 12/20/2006 4:41:56 PM
Hi guys!
I'm planning to to my MS Software Systems Thesis on Rule Engines.
Although I searched a lot on the we I'm not able to get any specific help on
XML based Rule Engines in .NET C#.
Please help!
Thanks in adavnce
ram :)
... more >>
Problem with network share FullTrust since IE7 install
Posted by Steve Mowbray at 12/20/2006 1:30:03 PM
Hi
I setup FullTrust on a network share using caspol so I could maintain my
code on a network share and also build and run from the same place using
caspol. Since installing IE7 yesterday the network share security level has
been dropped and I cannot reinstate the FullTrust using caspol com... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Debug or Release ?
Posted by mikemeamail NO[at]SPAM net2000.ch at 12/20/2006 12:13:21 PM
Hi everybody,
Is there a simple way to know from the code if an assembly is in debug
or release mode ?
Concretely, when my application is running, i'd like to know in which
mode it is configured.
Any help appreciated.
Mike
... more >>
typecast array of object to bindinglist of object
Posted by param NO[at]SPAM community.nospam at 12/20/2006 10:49:07 AM
Hi all,
I have a Web Service that returns a bindinglist of objects. However, on the
client side it comes across as an array. Is there a way in VB.Net to
typecast the array back to a bindinglist?
TIA!
... more >>
How to detect a handle leak with a GC
Posted by joproulx NO[at]SPAM hotmail.com at 12/19/2006 6:42:15 AM
After trying to investigate a handle leak problem in my application, I
found out this post which pretty much describes the behavior that I
have experienced:
http://www.dotnet247.com/247reference/msgs/51/255221.aspx
And here is part of my code:
private void Socket_AcceptConnectCallba... more >>
Reflector not running under correct framework version
Posted by TomC at 12/19/2006 2:51:54 AM
Hi
I have written a plugin for Lutz Roeder's Reflector tool. The plugin
requires framework version 2.0. On my machine at home and my machine at
work (XP SP2 and SP1 respectively) the plugin works correctly - I have
both 1.1 and 2.0 of the framework installed.
However a colleague at work wh... more >>
saving collections in Settings.Settings
Posted by Irfan at 12/18/2006 3:51:33 PM
hi,
I wanted to save a simple collection in Settings.Settings but i am not able
to retrieve it.
Although no errors while saving it but no value are retrieved either.
Do i have to do something different.Am i missing something?
This is what i do;
SortedList x = new SortedList();
x.Add(1... more >>
problem in data logging from within HttpListener
Posted by Kunal at 12/18/2006 2:27:11 PM
Hi friends,
I have tried to host a web service using HttpListener of .NET 2.0 (with
help from the article
http://msdn.microsoft.com/msdnmag/issues/04/12/ServiceStation/default.aspx).
The server runs fine, accepts and responds to requests just fine. I'm
using the synchronous model (GetContex... more >>
Handling multiple web requests parallely
Posted by Kunal at 12/18/2006 2:24:22 PM
Hi friends,
Can anybody share with me code snippets of handling simultaneously
multiple http requests from different clients ? I'm using the
HttpListener for this purpose. Have used the BeginGetContext model but
it does not seem to work. Requests are still being handled
sequentially. I tried ... more >>
Problem with format of msmq messages, .net
Posted by Peter Hurford at 12/18/2006 8:47:16 AM
Hi,
First time using msmq in .net environment and I think I am missing
something obvious.
I am using the System.Messaging classes Message & MessageQueue to send
a message.
I want to send a plain-text message (e.g. "Test"), but by default the
Message class serializes it to xml (e.g. "<str... more >>
Why is XML the core part of .Net Framework?
Posted by Hooyoo at 12/18/2006 3:35:09 AM
I think it's easy to understand CLR is the core part of .Net Framework.
Bute how to understand XML is the core part of .net framework? Can
you talk something about it?
... more >>
regarding shared assemblies in .net
Posted by AVL at 12/18/2006 1:15:01 AM
Hi,
How do we refer a shared assembly in a web application/ Any samples....... more >>
Control Reference from String
Posted by Barry at 12/18/2006 12:00:00 AM
Hi
I have programmatically create about 5 TextBox controls on a Windows Form ,
their name are "txt1", "txt2", "txt3" etc
which method/function return a reference to the TextBox control given the
name "txt1" etc;
something like
TextBox txtBox1 = (TextBox)Control.FromName("txt1");
TIA... more >>
XML document in a treevie needs 57secodns
Posted by remo at 12/16/2006 9:16:59 PM
Cant believe it:
Loading an XML document (150kb) in a treeview using .net 2.0 using 2.0
seconds!!!
That is unusable!!!
Loading the same document in Iexplore, it needs 1/100 of a second
That could not be .net
That is incredible, and non usable.
What in the hell do ms wasting the time...
re... more >>
"Safely Remove USB" via .NET
Posted by Alex Maghen at 12/16/2006 11:11:00 AM
I'm trying to figure out how, from a .Net Windows Forms application, I can
programmatically do the "Safely Remove Hardware" functionality to unmount (or
make ready for unplugging) a USB device - specifically, a USB-connected
storage drive.... more >>
Encoding in Textboxes
Posted by Ferdinand Zaubzer at 12/15/2006 4:35:09 PM
Hello,
What character encoding is usually used in Textboxes in the .Net Framework?
Regards,
Ferdinand Zaubzer... more >>
Nullable types problerm
Posted by oscar.acostamontesde NO[at]SPAM googlemail.com at 12/15/2006 6:05:33 AM
Hello:
I'm tryn to detect if a type is a nullable type. I'm using the
following code:
using System;
using System.Reflection;
using System.Collections.Generic;
public class Test
{
public static void Main()
{
Nullable<int> n = 0;
Console.WriteLine(IsNullableType(n.... more >>
|