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# > december 2005 > threads for tuesday december 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

Dictionary vs. Hashtable (C# 2.0)
Posted by Anders Borum at 12/6/2005 11:59:45 PM
Hello! I am using Hashtables to cache data in services and am looking at generics for typed access (I control the key/value types). However, I was surprised to see that the Dictionary throws a KeyNotFoundException if you try to reference missing keys, which is a change from the Hashtable. ...more >>


C# Object to X Type Question
Posted by Greg Roberts at 12/6/2005 11:27:13 PM
Hi I am writing a program using the SortedList class . Please contain laughter if i am doing something stupid., I am using a struct as the value part to store a range of information against a unique key (see below) I was hoping that when i found the entry again, i could get a referenc...more >>

Asynchronous webrequest taking 100 % CPU usage
Posted by archana at 12/6/2005 10:17:37 PM
Hi all i am having application which is using asychronous web request. At a time i am processing 5 urls asynchronously. Application working properly for 5 asynchronous call. But sometimes CPU usage suddently increases to 100 %. Can some one tell me why this is happening. Any help will ...more >>

C# control to display formatted source code
Posted by sklett at 12/6/2005 9:33:02 PM
I am developing an application that generates source code base on a high level set of parameters. I would like to have a "preview code" window to show the formatted source code. I have searched code project and google for things like "C# code view control" but I can't find anything. In my u...more >>

Get array of class variables
Posted by Daan at 12/6/2005 8:09:07 PM
Say I have an Object of the following class: public class SomeClass { public string var1; public int var2; public SomeType var3; } Now I want to print all the three vars. Is it possible to get an array containing these three vars, making something like this possible: for (int i = 0...more >>

Add folder to project...
Posted by Marty at 12/6/2005 6:56:17 PM
Hi, I want to add a folder (named myFolder) to my project and fill it with files and want it to appear under "../projectFolder/bin/debug/myFolder" and "../projectFolder/bin/release/myFolder". I want my program to access files within "myFolder". What is the procedure in the IDE to do tha...more >>

How to identify a FolderBrowserDialog?
Posted by hotmit NO[at]SPAM gmail.com at 12/6/2005 6:46:06 PM
I'm trying to create a program that dynamicly saves and loads path of a FolderBrowserDialog , but I ran into a problem. Since FolderBrowserDialog is not a Control, therefore it doesn't have attribute such as Name. How do I get the name of a Component or unique string to identify each FolderBrow...more >>

fckeditor image upload
Posted by Stanley Cheung at 12/6/2005 5:35:47 PM
Hello all, Any one tried to implement fckeditor (htmleditor) on your application? i am tring to add fckeditor (www.fckeditor.net) on my dotnet application, but i can't find any connector for image browse and upload. does anyone have such experience can share with us? thanks in advanced. ...more >>



Using streamwriter to write CSV, but empty files
Posted by Mads Westen at 12/6/2005 5:34:16 PM
Hi, I'm making some changes to my program, because I need to write with Codepage 850. Before I used FileStream, but I found code to use with StreamWriter instead. My problem is, that I don't get any output when writing with StreamWriter, but only with FileStream. I got StreamWriter to ...more >>

Sockets and sending mail
Posted by Robert McNally at 12/6/2005 5:21:33 PM
Hello, I'm currently learning c# and have been trying to write a simple program with sockets. The problem is i'm trying to send an email with an attachment, (which is the program itself) by using base64. When i run it it sends the email ok, but and attchment doesn't work i get an error whe...more >>

Single instance...
Posted by Franck Diastein at 12/6/2005 5:00:22 PM
.... retreiving other instances parameters ? How can I do this ? TIA...more >>

c# windows form groupbox border
Posted by Jason Huang at 12/6/2005 4:52:56 PM
Hi, I would like to set the GroupBox's border to invisible, how to do that? Thanks for help. Jason ...more >>

writing combobox context to text file
Posted by kohoutec at 12/6/2005 4:34:30 PM
[Newbie Alert] I have a combobox that populates its items from a text file when its form loads. I have added to one of my buttons click events some code to add any entrys that are manually entered to the combo - something along the lines of: cboProcess.Items.Add(cboProcess.Text); Thi...more >>

About IP Problem !!
Posted by MingChih Tsai at 12/6/2005 4:19:42 PM
Hi there, How should I do if I want to release/renew IP in C# ? Thanks!! Best regards, Paul ...more >>

Why the size of an array is a signed type?
Posted by Marco Segurini at 12/6/2005 3:44:36 PM
Hi, I am wondering why the size of { array, array-list, ... } is a signed type instead of an unsigned type. TIA. Marco....more >>

DataSet / DataTable question
Posted by Marcel Hug at 12/6/2005 3:42:00 PM
Hello NG ! I have a tricky question about dataSet and dataTable. In my app I have 2 databases. In the first (called A1) database are the whole datas but I'm interesting in one table tbl1 (with 20 attributes). To communicate with the DB A1 I have a lib, which gives me a dataset of this table tbl...more >>

POSTING MESSAGE microsift TO newsgroup
Posted by Eþref DURNA at 12/6/2005 3:30:54 PM
does anyone knows how to "POST" message to microsoft news group with asp.net? cuz whenever i use POST command there it gives me an error that "command not requdnized" any idea? ...more >>

Which function can do it?
Posted by ABC at 12/6/2005 3:24:19 PM
Is there any function to as: arrayvalue = {0, 2, 4, 6, 7, 8} arraystring = {"Zero", "Two", "Four", "Six", "More1", "More2"} If the parameter value is 6, the function return "More1". Which function can do it? ...more >>

XSLT and Excel
Posted by Fabio Goncalves at 12/6/2005 3:12:15 PM
Hi Guys, I do need to transform some excel spreadsheets into xml files through an automated process. Is it possible to do it using XSLT? Could anybody give me any direction? Cheers, Fabio. ...more >>

Serializing a generics SortedList
Posted by greg.merideth NO[at]SPAM gmail.com at 12/6/2005 2:42:04 PM
Is it possible to serialize SortedList<T,V> or do I need to come up with my own method to get the data into and out the list? I'm pretty sure I know that it's "no" I'm just curious if there are any tricks around. Here's the error I get when I attempt to serialize a SortedList<T,V> Unhandle...more >>

2005 IDE Form corruption
Posted by Marc Gravell at 12/6/2005 2:24:18 PM
Aaarrggghhh! Maybe I've just got lucky, but until now I haven't had such a seemingly unrecoverable form corruption error... I have a reasonably complex form (data-binding to sub-controls, events, etc), which was working fine... until about an hour ago... Now, although the form works fine wh...more >>

To use static or to not use static?
Posted by Brett Romero at 12/6/2005 1:40:26 PM
.....that is the question. Any who, I have an application that only a handful of people will being using. One of the features allows them to retrieve of a listing of people into a datagrid. I'd like to make the method that does this static. Once the data is retreived it is munipulated local...more >>

DataFormatString
Posted by Arjen at 12/6/2005 1:17:59 PM
Hi, I have to display a double like this one 1.3234546 and this 2.0000. If the double is like the first one then I only want to display 1.32. This works with {0:F2}. But with the second one I like to display 2. Not 2.00. How can I do this? Thanks! ...more >>

Delegate Implementation Questions
Posted by Greg Wilkerson at 12/6/2005 1:04:09 PM
I hope I can explain this in a way that can be understood. I have a custom control, I'll call it navigator, used to navigate "things". I has, among other controls, two standard buttons, previous and next. This control is implemented by other custom controls that displays "things" in differen...more >>

Compiler in C# (.NET)
Posted by Pawel at 12/6/2005 12:57:06 PM
Hi. Hello, i want doing simple compiler in C# (.NET). I have lexer and parse file. What kind of tools should I use? And what to do?? Thanks! pawel ...more >>

Formatted Xml
Posted by JSheble at 12/6/2005 12:29:30 PM
I have a method in my class that needs to return formatted XML, with the carriage returns, linefeeds, and tabs... However, when I return oXml.OuterXml, the Xml is not formatted... Every example I've seen involves writing the Xml to disk before it's formatted (or perhaps is formatted whil...more >>

CrystalReports in C# has "unknown query engine error"
Posted by Hardy Wang at 12/6/2005 12:03:37 PM
Hi, I have a console application to export crystal reports result to PDF. For one of my report file, when i call Export() function from my code, I get "unknown query engine error". I have Crystal Reports 8.5 with service pack 3 installed. If I load this report directly from Crystal Report...more >>

finding strings with regex
Posted by melanieab at 12/6/2005 11:24:04 AM
Hi, I'm trying to use DataView to find the row number in the datatable that contains "Rich" in it so that I can highlight it. It works fine when I enter the entire string (i.e. Richard), but I can't seem to make a search for "Rich" recognize that Richard is also what I want. The problem s...more >>

Non Rectangular
Posted by Just close your eyes and see at 12/6/2005 11:12:02 AM
hi all I was making a non rectangular form in C# using a bitmap with a white background and set the transparency key property of the form to white and it works but when I color quality from the system properties to 32bit it didn't work is there any way to overcome this or is there a differe...more >>

statically linking managed C++ into a C# project
Posted by Lee Crabtree at 12/6/2005 11:08:05 AM
I'm starting work on what will eventually be a very, very LARGE project. A lot of the project involves taking C/C++ class libraries and wrapping them with managed C++. I'd like to minimize the number of DLLs I have (because I'd like to keep my sanity). Is there some way to compile a managed...more >>

optimized code
Posted by Mike at 12/6/2005 10:32:04 AM
Is it still true that the managed C++ compiler will produce much better opimizations than the C# compiler, or have some of the more global/aggressive opimizations been rolled into the 2005 compiler? Are simple common sub-expressions and loop invariants optimized out in the current optimizer...more >>

writing to a strings index
Posted by Steve at 12/6/2005 10:26:34 AM
I have this code: string test = new string(' ', 2); test[0] = 't'; and I'm getting a compiler error that string.this[int] is read only. Hmmm. Why? I didn't declare it const or readonly? ...more >>

RTF widget and undo disabling (sometimes only)
Posted by Random Task at 12/6/2005 9:42:38 AM
Hi, I have successfully created a class derived from the RTF widget that can syntax highlight XML as fast as you type :-) The only problem I have is that if the user does an 'undo' then syntax highlighting is undone. Is it possible to disable the undo stack during specific operations ? ...more >>

SelectSingleNode when xmlns is an x-schema
Posted by Henry Padilla at 12/6/2005 9:17:38 AM
I'm sorry if this has been asked and answered, I looked and didn't find this particular situation so I have to ask. If I understand correctly, the .NET XMLDOM must have an XmlNamespaceManager bound even if the namespace doesn't have a name. (i.e. <TopNode xmlns='www.microsoft.com'>) And...more >>

Deleting a user profile folder
Posted by Iceken at 12/6/2005 9:15:31 AM
Hi, In my app I need to delete several user profiles inside the Documents and Settings folder. But everytime i try Directory.Delete(path) I get a IOException with "Access denied to path ..", however I can delete the folders using windows explorer. I'm logged in as an admin and the program ru...more >>

Datagrid Column Validation
Posted by ZS at 12/6/2005 9:03:02 AM
Hi, How can i validate user input in a datagrid ? I want a column to accept just numeric values. If the user enter Text then the changes must be rejected and the value set to waht it was earlier. Thanks in advance -ZS ...more >>

Serious Batch Build Bug!!
Posted by GoogleNewsReaderMan at 12/6/2005 7:28:41 AM
If I rebuild all my projects (for each configuration: debug & release) using batch build, the WRONG referrenced DLLs are copied into the bin folder for the main project. If I do a batch build, I expect the RELEASE versions of my referenced projects to be in the RELEASE bin folder of my main pr...more >>

A pop up window from a C# code behind
Posted by Rik Brooks at 12/6/2005 6:36:03 AM
I'm a little surprised. I tried to search for a way to open a modal dialog using c# in a code behind file but couldn't really find it. I know there is a way to do it, but I guess I'm still struggling learning the help system. Here is the deal. I am writing web based front ends. I'm right now ...more >>

How to Access the http headers from WeBrowser
Posted by Paulustrious at 12/6/2005 5:54:02 AM
Is it possible to access the http headers of the 'conversations' between the WebBrowser and the remote web server. (ie those defined in RFC 2068 and later RFCs... http://www.faqs.org/rfcs/rfc2068.html) If not which objects are the best to use to have such a conversation. The library is s...more >>

axWebBrowser control
Posted by hplloyd at 12/6/2005 5:20:02 AM
Hi, My question is very simple I am sure but I cant seem to find a solution anywhere.... I have a windows form in C# and I have added an axWebBrowser control. When the form loads I am trying to display a web page in the control.... but I have tried Navigate and Navigate2 methods and what...more >>

Customizing MSDataSetGenerator output in VS2005
Posted by Stig Nielsson at 12/6/2005 4:55:34 AM
Hi, I am using a strongly typed dataset in .Net 2.0, and would like all tables to inherit from a cusomt datatable class instead of DataTable. The reason for this is that I want some common code excuted on the row events, and this I want to implement this once in a Table base class. ie. ...more >>

Merge dataset into identical table?
Posted by Chris Ashley at 12/6/2005 4:24:17 AM
Hi there, If i have a dataset which has a datatable which has fields matching an existing SQL Server DB Table exactly, is there an easy way to merge all the records from the datatable into my SQL table without having to write a stored procedure or SQL insert statement? Cheers, Chris ...more >>

C# code benchmark performance
Posted by Macca at 12/6/2005 2:45:03 AM
Hi, I have various chunks of code i want to benchmark to see how long they take to do. What i'd like to do is check the time at start of code then check time at end of time to see how long it took. I need better accuracy than just milliseconds I'm looking for the time to be very accur...more >>

Setting first column of the datagrid to zero?
Posted by gsb58 NO[at]SPAM hotmail.com at 12/6/2005 12:18:42 AM
Hi! A question concerning the datagrid component in Visual Studio .NET 2003 I cannot seem to find any documentation about setting the first column (column 0) to zero, that is: make it invisible. But I know from experience with these groups that there may always be a chance somebody know a...more >>

An input of Decimal in a .Net Written COM exposed as wchar_t
Posted by Baron at 12/6/2005 12:02:02 AM
Hi all, I have a COM that has a single function: public Test(Decimal input) { return input; } From MSDN, it said that Decimal, be default, will be marshalled as COM's Decimal But I found that it become wchar_t the MarshalAs Attribute only has Currency for decimal (but no "Decimal")...more >>


DevelopmentNow Blog