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# > march 2004 > threads for saturday march 6

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

Is this a bug in ?: Operator, the addition does not perform as expected
Posted by proware NO[at]SPAM del2.vsnl.net.in at 3/6/2004 11:31:10 PM
I am posting the code snippet here. It seems to me that the ?: Operator is not behaving properly. It seems like it is a bug: TimeSpan ts1, ts2; float dayHours = 0; ts1 = (some_datetime_variable_1); ts2 = (some_datetime_variable_2); // ****************** Working Code ****************...more >>


Marshaling array of struct containing array
Posted by Rudy Velthuis at 3/6/2004 11:26:27 PM
Hello, Does anyone know how to create a struct that will marshal to the following C++ struct A, containing an array of the user defined String10 type: struct String10 { char SLen; char S[10]; } struct A { int A1; String10 A2[20]; } I tried: ...more >>

Inheriting classes
Posted by Kevin Blackwell at 3/6/2004 11:25:14 PM
This is probably a basic c# question, but I'm having problems with it. I currently have a project that contains two classes. From the calss view. Class1 Class2 I have included a usercontrol in class 2. I dropped the control into a form in class one. What I'm looking to do is fill a contr...more >>

ListView Sorting
Posted by Vanessa at 3/6/2004 10:50:18 PM
Is there a way to sort a listview on the first column? Alternatively, is there a simple way toe sort an ArrayList with two dimensions? ...more >>

pointer bug
Posted by agro_rachmatullah NO[at]SPAM yahoo-dot-com.no-spam.invalid at 3/6/2004 10:39:50 PM
I think I've found a bug on Microsoft Visual C# or maybe on the .NET Framework itself... Look at this code: using System; public class Bar { public static void Main() { int[] a = {5, 4, 3, 2, 1}; unsafe { fixed(int* ptr = a) { int* reader = ptr; while(true) ...more >>

Using StreamReader when the File Doesn't exist
Posted by rusha NO[at]SPAM data-tech.com at 3/6/2004 9:50:48 PM
If i create a new StreamReader object, based on a filename that does not exist, the SR correctly raises an exception that the file doesn't exist. Great! I love it. BUT....then SR proceeds to create a zero length file using the incorrect filename parameter!! WTF??? Is this supposed to be a...more >>

StartPosition.CenterParent
Posted by C-Sharper or C-Hasher, one of the two at 3/6/2004 8:40:37 PM
Hi Guys and Gals, I have a small, two form, application. Form1 is the main window and Form2 is a small window that has a label and a progress bar on it. I wish to display form2 whilst doing some processing in Form1 and update Form2 as the processing is being completed. I have the update functi...more >>

Supress KeyDown event in custom class
Posted by goodoldave NO[at]SPAM hotmail.com at 3/6/2004 8:27:00 PM
I have a custom control that contains a class that Inherits the panel control. I am trying to catch a keydown event in this class and then supress it from the rest of the control as well as the form that hosts the control. The problem I am running into is that the form that hosts the control wil...more >>



Execute a string
Posted by TJS at 3/6/2004 8:20:24 PM
I am working with a vb.net website and vb.net dropped the "execute" command for processing a string of code built on the fly. I am looking to find or buy a working assembly in C# that will execute a string. something like this : http://www.codeproject.com/useritems/evaluator.asp except a...more >>

Regex expression to replace invalid filename characters.
Posted by GregMa at 3/6/2004 7:09:17 PM
Does anyone have a good regex expression to replace any invalid filename characters in a string? Those characters are: /, \, :, *, ?, ", <, >, | I have it right now with string.replace for each individual character, but would like to do it all in one step if possible. Here's what I have ...more >>

How to not pass an "out" parameter?
Posted by None at 3/6/2004 6:07:39 PM
If a method takes an "out int" as a parameter is it possible to not pass anything to that parameter? "null" and "out null" does not work. ...more >>

Transforming TextBox.text into double
Posted by Tobias Froehlich at 3/6/2004 5:39:44 PM
Hello! I have a short question. I have a TextBox in which the user can enter a number, which then has to be saved into a double variable. The line I have looks like this: gpm.Configuration.LearnRate = TextBox1.Text; whereas the first part is a double variable. Now of course this d...more >>

datset with child table in two nested relations
Posted by sam at 3/6/2004 5:26:06 PM
i get the following error while reading an xml into a dataset The same table cannot be the child table in two nested relation is there a solution for it XmlDataDocument datadoc = new XmlDataDocument() datadoc.LoadXml(xmlstring) ds = datadoc.DataSet; ...more >>

Dll in C# for C++ program
Posted by winthux at 3/6/2004 4:01:14 PM
Is it possible to use COM server in c++ without importing *.tlb file ? In MS tutorial: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcwlkCOMInteropPart2CServerTutorial.asp there I should import tlb file to Com server app and I need to make it without importing th...more >>

My "as you type" help has disappeared!
Posted by Ray Mitchell at 3/6/2004 4:00:13 PM
Hello, I don't know the correct term for it (tooltip?), but it's the nice feature that, when you are writing source code, pops up a little explanation of the syntax of the particular class/function you are typing so you can choose from a list of overloads, etc. Anyway, for some reason it no l...more >>

NotifyIcon
Posted by Philip Carnstam at 3/6/2004 3:18:59 PM
Hi, Is there any way to make a NotifyIcon display a tooltip without having the mouse hover. I want the tooltip to appear when a certain event occurs in my application. Thanks, Philip ...more >>

Global Bitmap variables. Is it possible?
Posted by grayaii NO[at]SPAM netscape.net at 3/6/2004 2:00:57 PM
Hi, I have a "master bitmap" which contains all the images my app will use. It's way to big to be put as an embedded resource. I wanted to create a "public const Bitmap variable" which i load only once at the start of the app, similar to how i handle global variables, but i can't seem to ...more >>

same table cannot be the child table in two nested relations
Posted by sam at 3/6/2004 1:51:05 PM
i get the following error while reading an xml into a dataset The same table cannot be the child table in two nested relation is there a solution for it...more >>

Change <link> href attribute dynamically
Posted by Amir Eshterayeh at 3/6/2004 12:04:31 PM
Dear Friends I want to change the name of my css file dynamically so as Mr. Jos Branders helped me, I can change the <head> tag into an HTML control like this: <head id="myhead" runat="server"> ...permanent content here... </head> so that I can modify it from code like this: Sub Page_L...more >>

toolbar questions.....
Posted by genc ymeri at 3/6/2004 11:37:55 AM
Hi, I'm a beginner in C# and I have a few questions about toolbar..... 1. How can I make the first vertical line which shows up in the toolbar just before all the toolbar buttons start (in office03 it shows up as a vertical dot-line) ? 2. If I would have more than one panel, what component ...more >>

how to retrieve, save and resend attachment?
Posted by will at 3/6/2004 9:46:17 AM
hi, my ISP doesn't have webmail service, so i use TcpClient & Friends to issue POP3 commands to retrieve emails, store data on a website, and use that website to view emails. it all works fine with text-only emails, but it doesn't store attachments correctly. all attachments are displayed ...more >>

dividers in toolbars ???
Posted by genc ymeri at 3/6/2004 9:23:34 AM
Hi, How can I add a divider in a tool bar ????? Thank you ...more >>

Inject custom web controls into a string
Posted by Steven at 3/6/2004 8:11:05 AM
H I'm struggling to think this one through At run time I want to be able to read a layout HTML file from a database which includes tags for modules, e.g <HTML><BODY><table><tr><td><ModuleTag>1</ModuleTag></td><td><ModuleTag>2</ModuleTag></td></tr></table></BODY></HTML I would then like to, a...more >>

Reading & Writing in a Stream
Posted by Ali at 3/6/2004 4:31:07 AM
Hi I want to write (or read) to a stream, but the data is not byte array I converted the data to byte array manually, but it is very slow, (becuse the data is very large) Is another way for this kind of writing and reading best regard Ali....more >>

Create class and method in run time C#
Posted by billgay_hk NO[at]SPAM yahoo.com.hk at 3/6/2004 12:11:58 AM
I want to know how to create new class and method in run time using C#? where have reference code? thx...more >>


DevelopmentNow Blog