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# > may 2004 > threads for thursday may 13

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

Drag and Down
Posted by Benny at 5/13/2004 11:47:17 PM
Hello Experts, Currently I am working on a windows-based project using asp.net with C#. One of the project tasks is to create a scheduler. For example I have two datagrids with one rows each: dgA and dgB. On dgA, each column display a customer name; on dgB, each column is a date (i.e. 1st, 2...more >>


space between the rows...
Posted by Bad_Kid at 5/13/2004 10:29:26 PM
If I have label on the left side, and a textBox on the right (one to another), same font / fontsize... Space between the rows in the label is smaller then in textbox? can it be changed? ...more >>

Synchronizing Access databases
Posted by et NO[at]SPAM tourclub.ca at 5/13/2004 10:05:50 PM
Hello, Is there a fairly easy and quick way to sync 2 MS Access databases (with the same structure, obviously) using C# ? Going record by record is slow and cumbersome, there has to be an alternative.. Thank you....more >>

Serial Communication (Com1)
Posted by mphanke at 5/13/2004 9:08:22 PM
Hi, please don't tell me there is no other posibility to access the serial port than using the createfile(...) func? I was so convinced of .NET until this! Can somebody please provide me with an answer, which shows I'm wrong!?! Martin...more >>

convert double to string in fraction format( 0.75 to 3/4) and vise versa
Posted by paul gao via .NET 247 at 5/13/2004 8:34:44 PM
hi all=2E In my program I need to convert a double number to string= representation in fraction format and vise versa=2E For example,= convert 0=2E75 to string "3/4" and convert string "1/2" to 0=2E5=2E= The class will only need to handle numbers that increment by= 1/32=2E That is 1/32, 2...more >>

Media recording and delivery via C#
Posted by John at 5/13/2004 7:35:22 PM
I want to be able to record media off CD's and onto the C: drive, and then control display - all via the framework. Is the Media Player SDK ActiveX control the best for this? Or some other solution? Thanks, John ...more >>

P2P APIs for C#?
Posted by John at 5/13/2004 7:33:16 PM
Does anyone know of an API for a popular P2P network (ie WINMX, bearshare etc) that I can access using the .NET Framework? Or even one of these systems that runs as a service, and allows control via ..net? Thanks, John ...more >>

ASPX Performance - Slow?
Posted by BlueBall at 5/13/2004 7:31:32 PM
I am writing some kind of network testing tool and I have wrote the following code in ASP.NET with C# int size= 10048576; // around 10 MB data string buffer = ""; for (int j=1; j<=1024; j++) { buffer = String.Concat(buffer, "x"); // I tried buffer += "x"; sa...more >>



Sending email by using C#
Posted by Jason Zhou at 5/13/2004 6:38:44 PM
Hi, I am new here, hope my question is not too stupid. I want to send out email from my application by using C#, I was told to use smtp, the sample code is very simple, I am using smtpmail.send(), the questions are: 1. What does the relationship between smtp and pop3? 2. I had impression...more >>

Creating new Event Log with size information
Posted by Kimmo Laine at 5/13/2004 6:22:14 PM
Hello, is it possible, when creating new Event log (C#), to specify the log size or other related options. if( !EventLog.SourceExists( sourceName ) ) { EventLog.CreateEventSource( sourceName, logName ); } m_Log = new EventLog(); m_Log....more >>

DropDown List help
Posted by Dharmen at 5/13/2004 6:20:56 PM
Hey guys! I wrote a script with 2 dropdown lists. When the value on one is selected it should automatically load the corresponding value from the table on the second list. This for some apparent reason is not working. Label1.Text=this.ddList1.SelectedItem.ToString(); SqlCommand sqlC...more >>

Resx file losing resources
Posted by Dave Veeneman at 5/13/2004 5:58:21 PM
My form's resx file is losing resources that I have added with ResEditor.exe (the utility that ships with VS.Net. Here is what is happening: I add the icon to the .resx file with no problems. My app calls the resource, using the following code: System.Resources.ResourceManager resources = ...more >>

Select inside resource files
Posted by Arjen at 5/13/2004 5:47:18 PM
Hello, I have 2 resource files. The resource files have both inside the name field values. I want to select from the first resource file the records where the name field haves a value between 1 and 25. Now I am doing this: XmlDocument xdResx = new XmlDocument(); xdResx.Load("Resources.res...more >>

How do I get rid of that '@' symbol from a string? I am using FileStream.WriteByte
Posted by Dan V. at 5/13/2004 5:08:13 PM
How do I get rid of that '@' symbol from a string? I am tyring to use FileStream.WriteByte but it does not like it. I don't want to write that '@' symbol to the file either. s = @"c:\text1.txt" bytes = Encoding.UTF8.GetBytes(s); fs.Write(bytes, 0, bytes.Length); ...more >>

Importing Data From a Webservice Data set into the database
Posted by Kifaro at 5/13/2004 4:27:00 PM
Hi I am looking for info on the correct way to import data from a dataset directly into my local SQL Server database. I need to take into account PK id. I could look through the data, but I think there has to be a better way!!! Thanks ...more >>

Test if current running assembly will trust a Security Zone
Posted by Clinton Pierce at 5/13/2004 4:15:49 PM
I need to be able to test at runtime whether or not a component is going to load properly from the Intranet. Is there a way to query, "Will the current running assembly trust a component loaded from the Intranet?" ...more >>

round-robin an arraylist
Posted by William Stacey [MVP] at 5/13/2004 4:10:47 PM
I can think of a couple ways to do this, but was wonder what the fastest way you can think of. Want to take any arraylist of > 1 element and make the first element the last, and all the rest of the elements will move up one position. This will be called a lot, so looking for speed. This just s...more >>

File rename and delete
Posted by Patrick de Ridder at 5/13/2004 3:55:59 PM
This is rather elementary but I cannot find it anywhere. How do you rename a file from within a program in C# ? (In the directory I mean.) How do you delete a file from within a program in C# ? (I don't mean renaming a file while in the IDE). Thanks. ...more >>

capturing control as image
Posted by Chris at 5/13/2004 3:36:21 PM
Hi, I need to get an image of a control (ListView) so i can save it to a file. It's pretty easy to get the Graphics with the CreateGraphics() function on every control, but I don't know how I might save the Graphics object as an image. Has anyone done this? Chris ...more >>

help with tabControl confusion please?
Posted by a_cjones NO[at]SPAM hotmail.com at 5/13/2004 2:57:04 PM
Hi all, I've got a tabControl, initially with one tabPage, along with two buttons, one to add another tabPage, and one to delete the current (selected) tabPage. On each tabPage, when it is created, is an pictureBox. Other stuff on the form leads to the creation of a graphic, say myImage,...more >>

CSV files
Posted by Cat at 5/13/2004 2:03:24 PM
I don't understand why there's no class included in the libraries for reading CSV files.. I've created my own CSV reader class which reads a CSV file, generates a report and returns records etc. Although I'm proud of having tackled the problem and produced code that works I worry that I could ha...more >>

Problems printing text on top of img
Posted by mphanke at 5/13/2004 12:58:06 PM
Hi, I'm desperately trying to print a string on top of an image, but for whatever reason the images allways stays on top of my canvas! Is there some trick how to implement things? I call ev.graphics.drawimage(img, rect); ev.graphics.drawstring("mystring", ..., rect, ...); I can't re...more >>

weird hashtable behaviour ..is a bug ?
Posted by Pankaj at 5/13/2004 12:44:30 PM
Hi All, I use a Hashtable in my program to keep unique items...at one instance I need to repopulate this hashtable through a loop. when starting repopulation hashtable.count() returns ZERO hence first item gets added successfully but as soon as the control reaches top of foreach loop someho...more >>

Handling Error - "Low Surrogate char"
Posted by spam NO[at]SPAM vwars.com at 5/13/2004 12:29:46 PM
I just ran into this problem also. (undocumented exception thrown when Streamwriter is handed a buffer with wierd characters in it). I was also able to get around it by specifying utf8 as the encoding for Streamwriter. (Thank you Amy L!) But I have some questions: 1- Isn't utf8 supposed to ...more >>

Remoting 1.1 and Firewalls
Posted by Dave Girvitz at 5/13/2004 12:29:14 PM
I've had an application that has been working for about a year that uses an HTTP channel with a Binary Formatter. The other day, my client installed a FreeBSD firewall and now the application has stopped working. He says that he has opened the configured port to enable communication between ser...more >>

GDI+ import gdi32.dll
Posted by MAY at 5/13/2004 12:16:04 PM
hi all, i want to import [DllImport("gdi32.dll")] to perform BitBlt drawing, how to import it?? Thx... MAY ...more >>

How to allow instanciation of a class from another class method inside the same assembly???
Posted by Bob Rock at 5/13/2004 11:57:24 AM
Hello, I'd like to be able to allow instanciation of a class (class Class_A) only from another class method (class Class_B). And I'd like to write the necessary code to enforce this behavior even inside the same assembly where class Class_A and Class_B are defined. I've written the code that ...more >>

Drop Down List for SQL Database
Posted by Dharmen at 5/13/2004 11:36:37 AM
Hey Guys, I have a SQL database called price and a table called TB1, in it i have a column called "loc" I want to display the tiems in "loc" in a drop down list. I am able to do this in a datagrid. This is the code im using to display in datagrid: SqlConnection Conn=new SqlConnection("Data...more >>

Documentation tags
Posted by Mike at 5/13/2004 11:26:54 AM
Hi, I saw that there is a <value> tag that is used for class' properties. Is = there a similar tag for constants too, or should I use <value>? Thanks Mike...more >>

Detecting Disconnect on TCP Socket
Posted by Bruce Vander Werf at 5/13/2004 11:09:47 AM
I am using the asynchronous send/receive methods of the Socket class. When the remote end closes the socket, the callback for receive is called and EndReceive returns 0. Socket.Connected still returns true at this point, which I know is expected behavior, so when I reach this state, I begi...more >>

Show Hierarchical Nodes
Posted by Guadala Harry at 5/13/2004 10:39:18 AM
I need to show a group of nodes - arranged in a hierarchy - in a Web page. A simple arrangement of boxes containing text with connecting lines among related boxes would be fine. The nodes and their relationships are stored in a database. How could I generate a graphic that depicts the current nod...more >>

Cross process data/event
Posted by fw at 5/13/2004 10:36:04 AM
Hi, I am trying to find a simple approach to share a simple data type (primitive) with two processes (two .exe files), but can’t work out. Any ideas are appreciated. Further, how to fire event across process Thanks f ...more >>

RowFilter in DataSet
Posted by shiv at 5/13/2004 10:21:43 AM
Hi I have to RowFilter in a DataSet. My problem is My column Names use aliases So when i filter lets say Ds.defaultview.RowFilter="Region Name ='US'" does not work as it has a space in between Region & Name. Does anybody Knows How to overcome this problem? thanks shiv ...more >>

static Issue
Posted by Matt at 5/13/2004 10:19:03 AM
All of a sudden all my C# apps require the keyword static on all global = fields and methods that I create. Even in the simplest of console apps. = Can someone tell me what I have inadvertenly set in the IDE or did = something else happen to cause this? =20 I get the following error with the...more >>

Reflection on static objects
Posted by John Wood at 5/13/2004 9:27:10 AM
The GetProperty ./ GetMethod etc. methods all require an instance as a first parameter. What if the property is static? I can't pass in a class, obviously... John ...more >>

Appending to XML files
Posted by Cat at 5/13/2004 9:17:41 AM
How do you go about appending data from a dataset to an existing xml file? I know you can use WriteXML but this writes over any data already existing in the specified file.. Cat ...more >>

Are enum values automatically assigned?
Posted by David Sworder at 5/13/2004 8:54:04 AM
With a standard enum, values are automatically assigned. public enum MyEnum{Happy,Sad,Angry,Grandpa}; ....but what about a bitflag enum? [Flags()] public enum MyEnum:int{ FalseTeeth=0x00000001 BrainCancer=0x00000002 CronesDisease=0x00000004 A...more >>

Problem with Resources
Posted by Ken Allen at 5/13/2004 8:32:20 AM
OK, for a number of reasons I have needed to begin experimenting with resources sooner than I had planned (I had avoided it for now). Step 1: I built the 'reseditor' application that is in the SDK sub-directory, as instructed by the MSDN. Step 2: I used the 'reseditor' to create a file named...more >>

General Network Error
Posted by BuddyWork at 5/13/2004 4:51:51 AM
I get the following exception when doing a simple statement like SELECT * FROM MyTable, I am using SQL Server 2000 and ADO.Net as the client using framework 1.1, I get this error periodiodically. Please help, Exception message: iE.AM.Runtime.AMSQLException: Unable to perform SqlCmd --...more >>

get return value by passing parameters to a URL?
Posted by Tom at 5/13/2004 3:16:03 AM
Hi In VB6, I can use OpenURL http://msdn.microsoft.com/library/default.asp?url=/library/en-us/Inet98/html/vbmthopenurlmethod.as to get the return value of a URL. Which library can I use in C# Does VB.net has that library and I can add it to C# to call a VB method? Thanks for advice....more >>

override by name in c#?
Posted by songie D at 5/13/2004 2:26:04 AM
Does c# support overriding by name and not signature For instance I am building a custom collection class, that ca only take a certain type of object For this, I have added an override for add from the class view and changed it fro public int Add(object value t public int Add(MyItemClass valu...more >>

Confused by the NameValueCollection
Posted by anon at 5/13/2004 2:07:06 AM
I need a little clarity in the NameValueCollection. Within the MSDN .NET 1.1 Framework help is says: "This collection is based on the NameObjectCollectionBase class. However, unlike the NameObjectCollectionBase, this class stores multiple string values under a single key." Wh...more >>

Collection indexes
Posted by songie D at 5/13/2004 1:51:04 AM
If you remove an item from a collection (that is derived from CollectionBase and thus implements IList will the index property automatically 'shuffle' up one i.e. if of {0, 1, 2, 3} I delete item 2, then will I be left with {0, 1, 2} or {0, 1, 3} Basically I am implementing a custom collection a...more >>

deployment of a .NET DLL
Posted by songie D at 5/13/2004 1:46:04 AM
Hell I find with .NET it is so easy to create class libraries and user control projects and build them as DLLs, and reference them, that I am doing it as a matter of course But what is the method of deploying a DLL that is created with .NET (say a class library or a windows control library) and n...more >>

Console apps
Posted by Alexandre Gomes at 5/13/2004 1:08:42 AM
I've been searching for a clue for this but can't find one. Is possible to create an aplication with something like: "Decompressing... x%" Where the x will be changing with the evolution of the decompression in this case. In this case I used decompressing but it could be anything like in...more >>

MissingManifestResourceException
Posted by huseyinozkan NO[at]SPAM uekae.tubitak.gov.tr at 5/13/2004 12:56:27 AM
I have a project (called Project1) which contains a main form (called mainform1) and several other forms. I would like to use mainform1 of Project1 in another project (called Project2) as a normal form but not as a main form. The main form (called mainform2) of Project2 is different than mainfor...more >>


DevelopmentNow Blog