Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > c# > november 2006 > threads for thursday november 23

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

is it possible to use out and ref keyword together???
Posted by selva at 11/23/2006 10:23:48 PM
hi, currently iam working on c# i need to pass a parameter inside a function which is a OUT parameter and i need to pass it as a reference how to do this? please help me regarding this issue........ regards bharathi ...more >>


File drag and drop with Windows Vista
Posted by Andrea at 11/23/2006 10:21:40 PM
How can I drag and drop files from Explorer to my .NET application in Vista? It looks like the DataFormats.FileDrop doesn't work anymore in Vista. An example would be greatly appreciated. Thanks. Andrea...more >>

Q: Tip and advice on DataBase related question.
Posted by Martin Arvidsson at 11/23/2006 9:10:32 PM
Hi! I am going to build my firs Windows Application that involves a Database. Now this database and its tables are quite large so i got a couple of quizes regarding performance etc just to get me started... One of the tables includes over a milion customers. This is not a great idea to ...more >>

MultiCast Delegates
Posted by GVN at 11/23/2006 8:20:22 PM
Hi All, I recently worked on delegates. But I have a question regarding Multicast delegates. The scenario is as follows: I have a delegate myDelegate with object dlgt, and two methods myMethod1(), and myMethod2(). Using multicast delegates definition I can write as follows to add the two...more >>

Hooking events post deserialisation
Posted by nick.fletcher NO[at]SPAM iinet.net.au at 11/23/2006 8:13:12 PM
I have a custom collection which derives from Collection<> which stores a number of objects. Before each item is added to the collection - an event which it exposes is hooked by the collection and the re-fired to its parent. eg class MyCollection : Collection<MyType> { public AddAnObj...more >>

C# Class that contains a socket
Posted by tcomer at 11/23/2006 8:03:02 PM
Hello - I'm working on a simple instant messenger application, and I have it working but in order to achieve the results I want I need to make a few changes. The problem is that I have a class that contains a Socket. If I try to assign a socket reference to the socket in the Client class a NullR...more >>

Current Time in C#
Posted by iwdu15 at 11/23/2006 6:25:01 PM
Hi, in VB i could use the keyword Now to get the current DateTime, but C# doesnt have that. How can i get the current time? thanks -- -iwdu15...more >>

Addition of two values
Posted by ggeshev at 11/23/2006 5:13:55 PM
Hello! I've got a method : public static Object _Add(Object val1, Object val2); {} val1 and val2 are among of these types : - sbyte - byte - short - ushort - int - uint - long - ulong - float - double - decimal Types of val1 and val2 do not necessarily match (i.e. val1 may be in...more >>



byte[] to string conversion ...
Posted by Jamie Risk at 11/23/2006 2:31:19 PM
This is the code snippet that I've come up to convert a byte[] to string. Is there a best practiced method for such a conversion? - Jamie public static string ByteArrayToString(byte[] array) { if (null == array || 0 == array.Length) { throw new NullReferenceException(); ...more >>

Converting byte[] to float ...
Posted by Jamie Risk at 11/23/2006 11:32:32 AM
I have a four (4) byte array that follows the IEEE 754 format. (It arrives on the windows platform from an embedded system via USB). How can I extract/convert/assign the encoded array to a native float variable? - Jamie...more >>

search in AD
Posted by sgr at 11/23/2006 9:18:01 AM
How Can I do for search a computer in my Active Directory with c# and .net framework 1.1? Thanks...more >>

Memory Leak
Posted by Trev at 11/23/2006 8:59:47 AM
Is the file "Microsoft Visual Studio .NET 2003\VC7\INCLUDE\crtdbg.h" (specifically, the new operators) used in any way, shape or form in C# ? I am involved in writing an app that uses managed C++ and C# and I'd just like to verify that the memory leaks we're getting aren't connected with the C# ...more >>

Is NET 2.0 installed?
Posted by WRH at 11/23/2006 8:44:52 AM
Hello Is there a simple way for a newbie PC user to determine if NET 2.0 is installed? ...more >>

Intercept crash of an external exe
Posted by lookaround at 11/23/2006 8:16:44 AM
Hi everyone, I need some help... I call an external exe (a command-line tool) with Process.Start through this code: try { p = new Process(); p.StartInfo.UseShellExecute = false; p.StartInfo.FileName = ExePath; ...more >>

Regular Expression ( [TAG-I] TEXT [TAG-F] )
Posted by Eduardo Luiz at 11/23/2006 7:58:00 AM
Hi.. need help.. Sample text: [NF-I] nnn nnn nnn nnn nnn [NF-F] [BB-I] nnn [BB-F] [BB-I] nnn [BB-F] [BB-I] nnn [BB-F] need get groups.... select return 4 groups.. like = \[(?<InitialTag>.*)](?<Text>.*)\[(?<FinalTag>.*)] but code return 1 match [NF-I] nnn.... ...more >>

Regex and Hashtable
Posted by oshaer NO[at]SPAM nds.com at 11/23/2006 7:51:22 AM
Shalom. I need to go over a file, and check for each line if it matches a Regex from a list of expressions. (If it matches ANY of the expressions, this is good enough). I have put the Regex's in an array, but it seems to take too long to compare each line to all Regex's. So i thought m...more >>

Something about using
Posted by hangaround at 11/23/2006 7:38:02 AM
I wonder how would the CSharp avoid repeative include Assembly repeatively, because we coud using same Assembly in on just one Assembly twice or more....more >>

Managed C++ - Asynchronous Socket Comm - AsyncCallback
Posted by Alper AKCAYOZ at 11/23/2006 7:07:01 AM
Hello, I have developped asynchronous socket communication with blocking Socket commands (accept, connect, send, receive) by using threads on Windows .NET Forms. It is working properly. Now I want to code the similar program with Asynchronous Socket commands of .NET using Managed C++ on W...more >>

Serialization of dataGridview?
Posted by datawaregrid NO[at]SPAM yahoo.com at 11/23/2006 5:44:48 AM
Hi, how can I serialize a dataGridview Object? I didn't find any method with name serialize(). I know it sound wired, but I want to encrypt the data afterwards... Regards Tino ...more >>

CreateDelegate in VS.NET 2003 - error on binding method
Posted by snibril at 11/23/2006 5:03:14 AM
Hi, I'm trying to delegate all events of a command button to a single method, handlesAll. I wrote the following code in VS.NET 2005, and it worked fine: public void setUpDelegates() { MethodInfo mi = typeof(MainForm).GetMethod("handlesAll", BindingFlags.Publ...more >>

UserControls
Posted by hula at 11/23/2006 4:49:38 AM
Hello can someone tell me whats the best way to place user controls on a form? I have to place a dynamic numer of usercontrols inside a form and of course the form needs to show up scrollbars. I thought of building a container-control (derived from UserControl) that uses Autoscroll=true an...more >>

marshaling a structure by value from managed to unmanaged
Posted by Aston Martin at 11/23/2006 4:39:56 AM
Hi All, ********************** My Situation ********************** I am working on project that involves passing a structure to unmanaged code from .Net world (well using C#). Perhaps an example will prove useful. structure MyStruct { // this is a complicated struct declaratio...more >>

Can someone please check my understanding here and suggest fix
Posted by garyusenet NO[at]SPAM myway.com at 11/23/2006 3:55:00 AM
The following code was supplied by a kind poster as a solution to a problem i was having. But it's not quite working. I have commented the code myself below. Can you please read my comments to make sure what i've said is correct to check my understanding of what is happening. Also the problem ...more >>

How access other project classes
Posted by Sala at 11/23/2006 3:47:13 AM
Hi experts! I have two projects ... so First project cs code like this, using System; using System.Collections; using System.Configuration; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Web; using System.Web.Se...more >>

1>>x behaviour
Posted by Vivien Parlat at 11/23/2006 3:20:55 AM
Hello, I have a little question about operator >> between integers: does anyone know why, when I write: "1 >> x", the returned value is 1 for all values multiple of 32 and 0 else (this does not hurt me, 1 does). When I do the same thing with : "1L >> x", only multiples of 64 do this. I thou...more >>

Please advise of basic problem in my code (using opendialog)
Posted by garyusenet NO[at]SPAM myway.com at 11/23/2006 2:52:03 AM
This is the first time i've worked with openfile dialog. I'm getting a couple of errors with my very basic code. Can someone point out the errors in what i've done please. ========================================== using System; using System.Collections.Generic; using System.ComponentModel...more >>

question about string
Posted by greenrob at 11/23/2006 12:00:11 AM
hello, I am just wondering what is the different by putting an extra "@" sign in front of string delcaration ? Specifically : string test = "hahaha"; string test1 = @"huhuuh"; What is the difference between test and test1 above ? Thanks a bunch. rgds Rob ...more >>

List<T> inheritance
Posted by Fabio Z at 11/23/2006 12:00:00 AM
Hi all, I have a classic problem: List<T> and List<X> where X is a class X : T. Ok, I know the problem: I cannot cast List<T> on List<X> because also if X is a T, List<X> is not a List<T>. What I don't know is the solution :) Let's see this scenario (that obviously doesn't compile): // -...more >>

String builder question
Posted by simonZ at 11/23/2006 12:00:00 AM
I read some articles about stringBuilder vs string. I'm using the loop, so I must use string builder. My example: String s1; String s2; String s3; StringBuilder webLines=new StringBuilder(10000); for (int i = 0; i < 10000; i++) { s1="get from logic 1" s2="get from logic 2" s3="ge...more >>

Cross-thread operation not valid ???
Posted by Le Minh at 11/23/2006 12:00:00 AM
I receive this message: "System.InvalidOperationException: Cross-thread operation not valid: Control [your_control_name_here] accessed from a thread other than the thread it was created on" .... this is a exception. Can fix it? ...more >>

Invokation added at runtime?
Posted by Ympostor at 11/23/2006 12:00:00 AM
I have an abstract class with a bool property: class Abstract { protected bool throwException; protected void ThrowException{ if (this.throwException){ throw new MyException(); } } } I then have two derived classes that have propertys: class A : Abstract...more >>


DevelopmentNow Blog