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# > june 2007 > threads for wednesday june 20

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

FTP Accessing Problem
Posted by Ramkumar at 6/20/2007 11:58:35 PM
I have one doubt about the following task. My task is download drawings from FTP Server folder. I reach the task successfully, but it will run only in Local Host. If I am publishing the site means it will displays the following error sir. Can you help me how can I rectify the problem. ...more >>


Writing to Binary file
Posted by Bonzol at 6/20/2007 11:24:12 PM
Hello!, I'm just trying to write my string to a simple binary file so it can't be read in a text document,, however it doesn't work.. I do this FileStream fs = File.Create(Server.MapPath("secret.txt")); BinaryWriter bw = new BinaryWriter(fs); bw.Write("You should not...more >>

changing TextBox to enabled during runtime
Posted by Brandon McCombs at 6/20/2007 10:38:56 PM
Hello, I have a Form that contains some configuration information. One of the settings is for SSL. There is a checkbox that I want to check to make 2 textboxes un-editable so that a user can type information into the textboxes. If the SSL checkbox is unchecked the 2 textboxes should becom...more >>

Does LINQ work in Orcas?
Posted by subtle at 6/20/2007 10:30:02 PM
I've installed Orcas beta1 March 2007 CTP. I get compiler errors on any LINQ related code. For example: List<string> cities = new List<string>(); cities.Add("London"); cities.Add("Paris"); cities.Add("Las Vegas"); var holdit = from city in cities ...more >>

New at .Net/C#
Posted by Lang Murphy at 6/20/2007 10:05:01 PM
My programming experience is limited to some vbscript and WinBatch. Where to start on learning C#? Do I need to work on .Net first? TIA, Lang...more >>

DrawArc and ellipse geometry (repost)
Posted by Christopher Ireland at 6/20/2007 9:58:10 PM
Hello! Using the definition for en ellipse (http://en.wikipedia.org/wiki/Ellipse) I can draw an arc of points. However, the end points of this arc do not coincide with the end points of an arc drawn with the DrawArc method, e.g. public partial class Form2 : Form { public Form2() { ...more >>

a case for multiple inheritance
Posted by John at 6/20/2007 8:53:34 PM
Hi All, Although C# has Generics, it still does not support the generic programming paradigm. Multiple inheritance is required to support real generic programming. Here is a simple design pattern to illustrate this. Problem: I need to expose two lists of objects from a high-level class. I w...more >>

Mounting a "virtual drive"
Posted by Luc The Perverse at 6/20/2007 7:31:13 PM
Hi - I have very little C# programming experience. I am making a software product which calls for an interface almost identical to Windows Explorer - and I wondered if mounting a "virtual drive" would be feasable for me (someone not good at programming) to implement. -- LTP :) ...more >>



Using resources.resx for localization
Posted by Nathan Laff at 6/20/2007 6:57:58 PM
i am localizing a project for the first time in visual studio (done it in delphi before) and had a question. I understand resourcemanager and all that, but what do most people do with the Properties.Resources.resx file for string localization? Do you use this file for your local strings, o...more >>

possible bug in CLR? remoting issue.
Posted by Rogelio at 6/20/2007 5:17:22 PM
hey, I set up remoting in my .net project. needless to say there is alot of code that goes into making it work. it runs communication from a windows app to a windows service. but I notice that sometimes when I set a variable in the middle class from my windows app, (which is monitored via ...more >>

ArrayList Items
Posted by Robert at 6/20/2007 3:29:56 PM
I have an ArrayList with 5 elements in it. I have a Next and a Prev button on my form. I need to show the first element in a textbox when the form opens. I need to move to the next element in the ArrayList when I click the Next button and move to the previous element (if I am not on the fir...more >>

Dialogic library?
Posted by John Paitel at 6/20/2007 3:19:44 PM
Hey all- Looking for a free download of an SDK for legacy Dialogic boards (D4, etc) to work with C#. Anyone know of such a creature? John ...more >>

DataTable properties and methods
Posted by tshad at 6/20/2007 2:24:53 PM
Is there a good primer on DataTables out there? Mainly I am looking for an article that lists the properties and methods (with examples) on the different properties you can use with a DataTable. For example: Rows Rows.Count Clone CopyTo NewRow Columns.Count ColumnName Clear() Rows.Cl...more >>

File permission issues
Posted by Ethan Strauss at 6/20/2007 2:05:33 PM
Hi, I have a C#.Net 2.0 web app which needs to be able to read a bunch of files from a user's computer, but I have not be able to get it to do so without "Access denied" errors. The main piece of code is simple List<FileInfo> AllFiles = new List<FileInfo>(); ...more >>

CPU usage max'd out in ".NET SystemEvents" thread
Posted by Adam Benson at 6/20/2007 1:24:53 PM
Hi, We have an app which, every now and then, has very high CPU usage. Profiling under perfmon shows it to be thread #3 which is running at >=95%. I took a process dump and looked at thread #3 in WinDbg and it's a thread called ".NET SystemEvents" The stack trace looks like this : 0:003...more >>

BindingList over Remoting using an interface type
Posted by MBursill at 6/20/2007 1:04:22 PM
This works without any problems: Code Snippet string uri = "tcp://localhost:8000/CAOFactory"; cf = (CustomerInterfaces.ICAOFactory)Activator.GetObject(typeof(CustomerInterfaces.ICAOFactory), uri); ICustomer objCustomer = cf.CreateCustomer(); BindingList<ICustomer> customers = objCustome...more >>

How to efficiently determine if a string contains any one of many strings
Posted by kenfine NO[at]SPAM nospam.nospam at 6/20/2007 11:48:55 AM
I am interested in scanning web pages for content of interest, and then auto-classifying that content. I have tables of metadata that I can use for the classification, e.g. : "John P. Jones" "Jane T. Smith" "Fred Barzowsky" "Department of Oncology" "Office of Student Affairs" "Lewis Hall" etc....more >>

BindingSource/Custom Object need HasChanges method
Posted by timnels NO[at]SPAM gmail.com at 6/20/2007 11:41:34 AM
I have a custom business object that implements INotifyPropertyChanged and IEditableObject. The collection of these objects inherits from BindingList<T>. I created a BindingSource from which a grid (list of objects) and a detail groupbox where bunch of textboxes are bound to them. Problem i...more >>

Upload a text file thru webclient
Posted by shantanu at 6/20/2007 11:35:14 AM
Hi i am trying to upload a txt file thru this code, but its not updating the data. is this code fine. Or can anybody please suggest me some other meathod to do the same. its urgent please help regards shantanu WebClient client = new WebClient(); client.Credentials = netCred; client.Hea...more >>

Parsing a string to get the month
Posted by thunderbolt at 6/20/2007 11:29:17 AM
Hi, How do i parse a string "ABC 2005 (12)" and convert it to "ABC 2005 (Dec)" in C#? The number within the brackets represent month.. am new to c# and breaking head for couple of hours over this seemingly simple thing, would be glad if anybody could help. Thanks in Advance, Ajai ...more >>

pulling hair out: issue with client certs using .net to connect to IBM webservice
Posted by chornbe99 NO[at]SPAM gmail.com at 6/20/2007 11:02:13 AM
The background: Vendor-supplied CA Cert and client cert, connecting to vendor- published web service. Installing the certs in the browser works (Firefox and Internet Exploder). Building the soap message long hand and POSTing it via HttpWebRequest, using cert attachments works. However......more >>

timer not being enabled by thread
Posted by Beemer Biker at 6/20/2007 10:31:54 AM
Unaccountably, I cannot re-enable a timer from an background thread. The disable works fine, I just cannot get it to start back up. There is no method "InvokeRequired" like there is for windows.forms.controls and I get no error message about cross thread so I am not sure where the problem is...more >>

mime types and default applications
Posted by Patrick at 6/20/2007 9:13:43 AM
Hello all, Using csharp, how would I get the application name that opens any given extension? I'm interoping with Office to provide an in house service to convert office files to pdf. Provided a file path, I need to determine if the file is excel, word, etc...and I don't want to simply re...more >>

External process fails with switch arguments
Posted by michael sorens at 6/20/2007 8:56:03 AM
I am attempting to fetch data from an external process. It seems to work OK with regular arguments, but not with switch arguments. Here is an example of a failure: =================================== ProcessStartInfo psi = new ProcessStartInfo("date","/t"); psi.UseShellExecute = false; psi.R...more >>

onclick change property value of form position
Posted by Zeljko at 6/20/2007 8:18:00 AM
Hello! I am new in programing and I have this problem: I must on button5_Click move current form. The code of form is: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; na...more >>

Question about no response of main Form
Posted by campos at 6/20/2007 8:17:55 AM
Hi all, I ran into a headache problem. I have a windows form with a progress bar on it. Then I new a thread to do calculation for a long time. I want the progress bar to show the calculation progress. So I use a shared variable in calculation thread to allow main thread read it periodically i...more >>

File I/O for EBCDIC/packed files - read/write
Posted by j.a. harriman at 6/20/2007 6:54:03 AM
Hi, I have read the "how to's" on MSDN including this one, http://msdn2.microsoft.com/en-us/library/36b93480.aspx, on reading/writing files in C#, but haven't found something that I can put together that is working. The file I have is in EBCDIC, rec length = 250 and delimited by CRLF's. ...more >>

Generate XML Documentation via MSBuild CMD
Posted by bthubbard at 6/20/2007 6:33:32 AM
This may not be the best group in which to post this. If there is a better location please direct me there. I have been experimenting with Sandcastle to generate CHM help file documentation for some of our projects. I can configure a project(s) to generate the required XML Documentation file...more >>

Truncating decimal points
Posted by prakashdehury NO[at]SPAM gmail.com at 6/20/2007 5:55:07 AM
can some one pls suggest me why? StreamWriter sw = new StreamWriter(@"c:\Temp\1.txt"); double dd1; double dd2; double dd3; double dd4; dd1 = 1452.123456789876123456; dd2 = 1452.123456789123123456; dd3 = 1452.123456789567123456; dd4 = 1452.123456789456123456; sw.WriteLine(dd1.ToString()...more >>

executenonquery returning -1 problem
Posted by Manikandan at 6/20/2007 5:03:12 AM
Hi, I'm using executenonquery to check the existence of table in the database. I tried two methods of queries, everything return -1 even though table exists in database Code as below SqlConnection connection=new SqlConnection("Data Source=\LOCAL; Initial Catalog=ff; Integrated Security=SSPI...more >>

call a javascript function within code behind
Posted by sajithkahawatta at 6/20/2007 4:57:15 AM
i want to call a java script function from code behind. in page1.aspx page i placed script' <script language="javascript"> function SetSelected() { infoTextBox.select(); } </script> i want to highlight text in infotextbox in some cases. so i want to call this function within code...more >>

Key Press event when no focus
Posted by ofiras at 6/20/2007 12:00:00 AM
Hii, I saw a lot of programs, that can be in tray (in the bottom right corner), and they can get Key Press event although they are not in focus. Is there a way to do it in C# windows application? Thanks, Ofir. ...more >>

XAML extension question
Posted by Lloyd Dupont at 6/20/2007 12:00:00 AM
In my application I want to display some data in a list box. I need to display the data as a picture. My 1st idea was to create a ValueConverter to convert my datas to ImageSource But this has a few problem, the biggest one is there is no parameter! So I though of MarkupExtension something ...more >>

Cannot modify the result of an unboxing conversion?
Posted by HÃ¥kan Johansson at 6/20/2007 12:00:00 AM
error CS0445: Cannot modify the result of an unboxing conversion I'm quite new to C# and can't really see how to get rid of the above error. I have an ArrayList instance to which I add two types of elements. The first type of element is a class, the other type of element is a struct. Sometime...more >>

Problem with tlbimp
Posted by Tim Haughton at 6/20/2007 12:00:00 AM
I'm trying to use the IThumbnailCache COM interface to query Vista's system thumbnail cache. Unfortunately there's no type library for it. Here's what I've done so far: - Created thumbcache.tlb from thumbcache.idl using midl - Created thumbcachelib.dll from thumbcache.tlb using tlbimp -...more >>

Behavior of the DataGrid while closing the application
Posted by schaf at 6/20/2007 12:00:00 AM
Hi NG! I have recognized a strange behavior of the DataGrid control. If I'm editing the value of a cell in the DataGrid and press the close button (of the ControlBox of the application 'X') then the application closes but the DataGrid does not loose the Focus. I would like to save the change...more >>

How to write a program such that it will delete itself after exectution?
Posted by clyyy2002 at 6/20/2007 12:00:00 AM
thanks ...more >>

how to save/read content of a RichTextBox to/from binary field in Ms.SQL Server ?
Posted by Asking at 6/20/2007 12:00:00 AM
Hi all, how to save/read content of a RichTextBox to/from binary field in Ms.SQL Server ? I want to do save and read operation... I couldn't it Thank you ...more >>


DevelopmentNow Blog