Groups | Blog | Home


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# > october 2003 > threads for sunday october 5

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

Error when constructing TcpClient : Error ...the system lacked insufficient buffer space or because a queue was full
Posted by Sagaert Johan at 10/5/2003 11:49:40 PM
i get this error if i write this : using System.Net.Sockets; .... .... TcpClient tcp; tcp=new TcpClient(); An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in system.dll Additional information: An operation on a socket could not be performed becaus...more >>


Really weird 5 line scope-related problem
Posted by Afzal Mazhar at 10/5/2003 10:19:55 PM
What is wrong with this? class Example1 { public static long myClassVar; public static void Main() { { long myClassVar = 5; } myClassVar = 36; } } It will not compile.....why? I do not need a "fix" but rather am confused why thi...more >>

About DropDownList Question !!
Posted by Paul at 10/5/2003 10:14:35 PM
Hi there, I can use the method DropDownList1.Items.Add("test") to add data to the dropdownlist control. But how should I do if I want to insert the control property TEXT is "test" and the VALUE is "1". Thanks !! -- Paul ...more >>

Steps to take when building application from scratch
Posted by Vaughn at 10/5/2003 10:09:23 PM
What steps would I need to take to build a complete application from scratch? I'll be working on a payroll/HR application but, instead of just starting to program like I normally would do, I would like to be to do it correctly. What steps (in terms of designing, drawing, flowcharts, etc...) woul...more >>

How to tell a DataGrid to use a customized DataGridTextBoxColumn
Posted by Jaco Karsten at 10/5/2003 8:58:35 PM
I am writing a customized DataGrid control which will allow the user to only select an entire row (and not a cell inside the row). So I want to add readonly columns to the datagrid. To achieve this, instead of using a "DataGridTextBoxColumn" inside the datagrid I want the control to use a "DataG...more >>

mixed XML serialization
Posted by andrewcw at 10/5/2003 8:01:54 PM
I have an object that serializes back and forth. I would like to have some objects not serialize ..and when I read that info back into the class, have this item be null ( or something like it ). I modified a class I made by XSD.exe by adding these values ( drvltr, disknum) , but I found wh...more >>

Who's referencing this form?
Posted by J at 10/5/2003 7:16:11 PM
I'm wondering why the form created in the code below stays "alive". I would have thought that because the form variable is local to the method, that garbage collection would get rid of it. Makes me wonder if there is a reference to it somewhere? // a button on one form is used to call a stat...more >>

Infrequent program termination
Posted by Jim McGrail at 10/5/2003 6:29:35 PM
Background: I am investigating a problem involving a windows .NET application that is being developed in C# with Visual Studio 2003. It is a multi-threaded application that uses MSMQ to communicate between the threads. The problem is that the program infrequently terminates with no indica...more >>



BinaryWriter problem
Posted by peymanz NO[at]SPAM netscape.net at 10/5/2003 5:44:55 PM
Hello all, This is my first c# program. And I seem to have a problem. Here is the code: FileStream myStream = new FileStream("d:\\test.txt", FileMode.Create, FileAccess.Write); BinaryWriter writer = new BinaryWriter(myStream); writer.Write("ntestestse"); writer.Close(); In my text f...more >>

Namespaces being stupid
Posted by jhtan NO[at]SPAM stanford.edu at 10/5/2003 5:20:55 PM
I've made some controls that have namespaces and I have trouble with the "using namespace" line, it doesn't do anything. Here's what's going on: 1). I have a class like this: namespace N1.N2 { class A{}; } 2). I reference the project with N1.N2 from another project's file where I...more >>

Adding controls to my toolbox
Posted by jhtan NO[at]SPAM stanford.edu at 10/5/2003 5:13:38 PM
I am having trouble adding some of my existing controls to my toolbox in VS.NET. Here's what is going on: 1). I have an existing project that is a Windows Control Library with a bunch of controls. 2). I start a new solution and create an Application 3). I add the existing project with my co...more >>

webaplication + picture upload ?
Posted by Cantekin Guneser at 10/5/2003 4:51:26 PM
i am preparing my graduation project, it is website and i need to hep about uploading a picture from client side and insert MSSQL server database. if you can send me example code i would be glad. ...more >>

64 bit Strong Random function
Posted by Stu Banter at 10/5/2003 3:40:52 PM
Hi, On a previous question someone recommended using the System.Security.Cryptography to fill an array with strong random bytes. It works but I can't specify the max value of course.. I solved it by subsequently removing all 'higher than max' values, but this is not efficient, nor fast. ...more >>

Undefined Value
Posted by David N at 10/5/2003 3:40:25 PM
Hi All, What is a best way to handle an undefined value object class that returned from a function. I have a function that call the ADO.NET ExecuteScalar() function and returns the object to the calling function as follow: public object FunctionA() { object RetVal; ... some p...more >>

Changing how a ListBox displays an object.
Posted by Dave Rudolf at 10/5/2003 3:38:25 PM
Hi all, I have a System.Windows.Forms.ListBox object that I am putting objects into. These objects are of custom types that I am defining. The list box displays each object by its class name -- not exactly usable :). So what I would like is to control the text that is displayed. Apparently, ov...more >>

UserControl Creation Help!
Posted by Matt Rudder at 10/5/2003 2:49:27 PM
Hello all, I'm currently writing a program in which I need a textbox control, similar to the code editor in .NET. but with line numbers and such. I can't find anything third-party that even comes close to what I want to do, so I figured I'd have to write one myself. I started first by inher...more >>

simple string compression?
Posted by Chris LaJoie at 10/5/2003 1:19:33 PM
I'm looking for some kind of simple string compression code I can use. I'm not looking for SharpZipLib. Their implimentation spans several classes and is very complex. I'm just looking for something simple. A single class, preferrably. Does such a thing exist? Thanks, Chris ...more >>

Shipping configuration parameters along a library
Posted by Joannes Vermorel at 10/5/2003 11:52:04 AM
I am currently implementing a scientific library in C#. The algorithms include some system dependent tuning parameters (lets say memory vs. speed parameters for example). Since, those parameters are quite numerous, it would be cumbersome for the client of the library to be forced to provide expl...more >>

Image scroll bar
Posted by ali poursadri at 10/5/2003 11:41:21 AM
Hi, I want to use a scrollbar that can receives Images( bitmap or ... ). Can I use standard scroll bar or should use another? thank. ali ...more >>

How Bad Can it Get?
Posted by J at 10/5/2003 10:18:08 AM
I think Microsoft purposely makes it difficult to learn their products. Two examples of this are evident in the following MS example. http://samples.gotdotnet.com/quickstart/aspplus/default.aspx?url=%2fquickstart%2fhowto%2fdoc%2fWinForms%2fWinFormsOwnerDrawListBox.aspx One: The example code do...more >>

Web service and Complex Types
Posted by Mark at 10/5/2003 9:57:54 AM
I have built Web service that allows me to send input parameters as a complex type: public class User { public string FirstName; public string LastName } [WebMethod] public void UpdateUserDetails(User user) {string fn = user.FirstName; string ln = user.LastName} This works f...more >>

How to manually register VsWizard.dll ??
Posted by Pawan at 10/5/2003 1:42:14 AM
Hi, I want to manually register VsWizard.dll on my system. I tired regsvr32 "C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE\VsWizard.dll", but then it reports, "C:\Program Files\Microsoft Visual Studio ..NET\Common7\IDE\VsWizard.dll" is not an executable file and no registration ...more >>

string-int-string generates exception with ConvertTo...
Posted by js at 10/5/2003 12:49:45 AM
Hello, I have two text boxes accepting ints and displaying their Sum. This code works: string ans; ans = Convert.ToString(Convert.ToInt32(textBoxX.Text) + Convert.ToInt32(textBoxY.Text)); labelAnswer.Text = ans; But this code generates InvalidCastException: labelAnswer.Text = C...more >>


DevelopmentNow Blog