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# > july 2005 > threads for sunday july 31

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

Create Generic Collection at Runtime
Posted by Paul Welter at 7/31/2005 9:56:33 PM
Is there anyway to do the following? Type myType = typeof(User); Collection<myType> list = new Collection<myType>(); I know I could just use User instead of myType but have a function that takes a type and populates a collection then calls SetValue using reflection. How would I create th...more >>


c# - Interlocked.Exchange and value types
Posted by steve at 7/31/2005 9:08:09 PM
// What I want to do Use enumerated types with the Interlocked.Exchange methods Suggestions please // My estimation of problem Seems like Interlocked.Exchange only works with ints, referencable objects, and floats // Background I have a class that wraps up a worker thread to handle...more >>

I need a trigger
Posted by hourlie at 7/31/2005 9:00:03 PM
I wrote a simple Web Service. It Consumes a single String, writes it to a text file on the hard drive, and returns a success. Now I need a trigger that will start the program that processes the file. I could make a routine that checks for new files every so many seconds, but that uses to...more >>

RegisterWindowMessage
Posted by Dave at 7/31/2005 8:55:29 PM
Hi, I am sending windoew message from a c# application to c++(unmanage) application using this code System.UInt32 rm= RegisterWindowMessage("12345"); System.IntPtr ptr=(IntPtr)HWND_BROADCAST; PostMessage(ptr,(int)rm,5,5); PostMessage(ptr,WM_AAA,5,5); but the c++(vc-6 mfc) dont catch t...more >>

Hashtable.. design question.
Posted by Naveen Mukkelli at 7/31/2005 8:20:01 PM
Hi, I'm designing an server application. Eventhough, in the first release, a few hundred clients will be connecting to this server, later on few thousands of clients will connect. Currently, I'm thinking to use a Hashtable to store various clents and their Information. Howeve...more >>

Incorrect syntax near the keyword 'DEFAULT'
Posted by Mark Findlay at 7/31/2005 7:51:04 PM
Hello Experts! I am attempting to use the OleDbCommand.ExecuteScaler() function within my ASP.NET C# web page to perform a simple validation, but receive the following error: "Incorrect syntax near the keyword 'DEFAULT'" The form has 2 fields on it, called tb_username and tb_password. (...more >>

Looking for a free windows text editor, for c#
Posted by Javaman59 at 7/31/2005 7:41:02 PM
Although I mostly use the Visual Studio IDE, and recommend it, from time to time I prefer to knock out a small app with just the command line, and a text editor. Until recently I've used VIM in a unix terminal, for c++, but that is no longer available to me, and, AFIK, doesn't support c#. ...more >>

1 tab control, 5 tab pages - different color
Posted by Martha at 7/31/2005 6:52:06 PM
I have one tab control with 5 tab pages. I want to color each tab page a different color. Does anyone know how to color the entire tab page a unique color? (that includes the tab part of the tab page) In other words, just like different paper folders come in different colors, how do you prog...more >>



General Question about Main() and forms etc
Posted by Charlie Tame at 7/31/2005 6:17:46 PM
Definitely a newcomer to C# (in fact to any programming after some years away) and I'm finding lots of examples but they are sometimes confusing. My concept of (say) QuickBasic was that you write a main program that calls subroutines, thus breaking the thing up into manageable parts. I sta...more >>

convert to double
Posted by chris at 7/31/2005 4:06:01 PM
Hi there, I have a function which converts a calculation into double dr[i] = Convert.ToDouble (tbl.Rows[0][i], provider) / campCustomers * 100; The returned value looks like this: 0.0132622796653082877191290300 I would like that this value is format to show only the last two decimals ...more >>

When I set the location property for a control, stack overflows
Posted by Will Pittenger at 7/31/2005 1:11:57 PM
I have a Control derived class. When the parent of the control changes the control's Location property, the stack overflows. I have not found a way to find out what was on the stack when it does overflow. All I know is that the program is either stopped due to an exception at the end of Mai...more >>

Declare public variable in C#1
Posted by MMSJED at 7/31/2005 12:37:02 PM
I am beginner in using C#, actually I am trying to move from VB6 to C# I need very small maybe you will laugh when you get it that simply I have 2 forms let’s say Form1 (main form) and Form2 and there is parameter in form2 I have to call from form1. So please would you tell me how? What...more >>

Declare public variable in C#
Posted by MMSJED at 7/31/2005 11:57:02 AM
I am beginner in using C#, actually I am trying to move from VB6 to C# I need very small help in programming problem my be you will laugh when you get it That simply I have to form let’s say Form1 (main form) and Form2, there is parameter in form2 I have to called from form1. So please woul...more >>

ListBox Transfer Sample Code
Posted by Sivana at 7/31/2005 11:40:03 AM
Hey, Does anyone have any sample code where I can transfer list items between two list boxes. C# and WinForms. Thanks ...more >>

SQL tables/fields to classes/properties
Posted by Sehboo at 7/31/2005 9:06:05 AM
Hi, I have several tables on SQL Server. Is possible that instead of manually creating all these classes (where each table is represented by a class and each field on the table is represented by a property in the class), I can run some wizard which create all these classes/properties? Any f...more >>

How to port a TCP based Java application to C# ?
Posted by yaron at 7/31/2005 6:37:02 AM
Hi, 1. i can't use .net remoting because the new .net ported app have to communicate with the java app. (so i have to use sockets and TCPListener ? ) 2. does the JLCA (java to c# convertor) does all the work for me ? Thanks. ...more >>

Questions about aspx pages and frames
Posted by stevag at 7/31/2005 12:00:00 AM
Hello, 1) I have an .html page that hosts 2 frames, each of which hosts a different .aspx page with C#. What I would like to do is place a RadioButtonList control with two options on the first frame . Based on the option that the users chooses , I want to activate different functional...more >>

Saving Dataview to a Dataset
Posted by Dennis at 7/31/2005 12:00:00 AM
Hi, I am hoping I can get some help with a small problem I have run into using C#. U have an XML file that I load into a Dataset and then display this in a Datagrid. No problems doing this at all. I then use a Dataview to filter this view using a keyword and I have no problems with this either. ...more >>

After using HOOK to catch the KeyPress message,is it possible to modify the content of the message?
Posted by ½£¾ªºè at 7/31/2005 12:00:00 AM
Give an example:When user pressed "B" or "b",HOOK get that message and let TextBox1.text display "a". The executing founction is as following: **************************************** IntPtr MyHookProc(int code, IntPtr wparam, IntPtr lparam) { if( code < 0 ) return CallNextHookEx(_nex...more >>

Dataset Problem
Posted by Robert Clark at 7/31/2005 12:00:00 AM
I have a simple windows app. It consists of 2 forms. The first is used to view the contents of a dataset, the second is used to update the dataset and add/remove items from it. The problem is, when i add or remove items from the dataset, it doesn't update the dataset until i restart the app...more >>


DevelopmentNow Blog