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# > february 2008 > threads for friday february 1

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

Control for code formating
Posted by Bart at 2/1/2008 11:54:31 PM
Hi group, Does any body know a control that I can use to format code in a special programming language. I want to write a code editor for programming industrial robots which are prgrammed in the language AS. I hope there are some free ones out there. Thanks in advance, Bart ...more >>


Cross-Thread Form Binding - Can it be done?
Posted by jehugaleahsa@gmail.com at 2/1/2008 8:33:57 PM
Hello: I have a business object that reports the updated status of a download taking place in another thread. I wanted to simplify my code by having the interface bind to my business object directly. My business object implements INotifyPropertyChanged. I get a cross-thread error since the ...more >>

Moving Graphics Question
Posted by Brian Ward at 2/1/2008 7:43:03 PM
I have a moving bitmap graphic, driven by a timer, on a form that has a background image. I want to clear the image after each movement to avoid a trail being left behind. I can do this with a simple background colour by using g.Clear() with the relevant colour .. but I'm not clear(sorry!) abou...more >>

C# Service vs C++ Service
Posted by Tbone at 2/1/2008 4:46:39 PM
In C++ I can create a console project and add some code to turn it into a Windows Service. The same EXE file can be executed from Explorer as a console to see the output and it can also be run from Service Control Manager as a Windows Service. Is that possible in C#? As far as I can tell ...more >>

DataGridView cell format question
Posted by Michael A. Covington at 2/1/2008 3:58:43 PM
How can I get excessively long strings in cells to be trimmed "...like this" instead of "like this..." ? That is, I want the beginning, not the end, of the displayable string to be trimmed off. Getting it right-aligned is no problem but it still puts "..." on the right, not the l...more >>

Column.ExtendedProperties
Posted by rodchar at 2/1/2008 3:04:27 PM
hey all, is it possible to automatically populate this from the extended properties of a field in a sql server database. for example, when you do da.fill(dt)? thanks, rodchar...more >>

Documentation of exceptions
Posted by Dansk at 2/1/2008 2:38:25 PM
Hi all, I'd like to document exhaustively the exceptions that could be thrown by a method. For instance : I have a method Foo1 that invokes a method Foo2. Foo2 throws a ProblemInFoo2Exception, but foo1 does not catch it. I want to be able to say/document that foo1 could throw ProblemI...more >>

COM interop, marshaling
Posted by RP at 2/1/2008 1:21:24 PM
I have the following methon on a COM interface: HRESULT GetProperty([in] REFASAKEY key, [in] EDSPROPERTY property, [in] ULONG count, [out,size_is(count)] LPWSTR name); Which is exposed to COM (via RCW) as: void GetProperty(ref RSEDSLib.ASAKEY key, RSEDSLib.EDSPROPERTY property, uint Count, ...more >>



Parse a search string
Posted by Mufasa at 2/1/2008 12:52:19 PM
Does anybody have any code that will take a search string and parse it in to the appropriate parts? For instance: +google -news -bush TIA - J. ...more >>

WebService update
Posted by Franck at 2/1/2008 11:51:38 AM
Here im talkign about a windwos application usign webservice on external server. I want to know how to update at runtime the webservice object of my applciation to point out to different ip. What we tried so far is a crypted xml file local to the application that read it at startup and we overi...more >>

basic architecture question
Posted by RSH at 2/1/2008 11:50:00 AM
Hi, I have a question regarding multiple instances of an application running on a single machine. If I have two remote users (using Citrix or Netilla) launching two seperate instances of an application, are my static classes shared between the seperate instances? Thanks! Ron ...more >>

My localization has stopped working, how do i use .resx files now?
Posted by Claire at 2/1/2008 11:25:19 AM
Hi, Since moving to vs 2005, I want to use the auto generated designer files and variables that VS2005 produces from resx files. In my original code, Windows was switching in my german strings fine, but now only my english strings are being shown when I change culture to german. for example...more >>

OpenFileDialog Is Messing With My .Resources File Path [Win C#]
Posted by MikeY at 2/1/2008 10:52:07 AM
Hi everyone, I"m having a problem with the OpenFileDialog() changing my path to save to my .resources file. I'm a bit baffled why this is happening, even when I set the OpenFileDialog back to the inital directory where the .resource file resides. What I am trying to do is get the locati...more >>

Help me with regex!
Posted by alexvorn2 at 2/1/2008 10:43:02 AM
How to get the text with regex code that will find the text that is between < and > only if it's length is more 10 characters {10,} ? please help me! Example text contains: < some text here > <some text here too> <the quick brown fox is running in the yard, and this too > <...more >>

System.Diagnostic.Process && Threads
Posted by Rami at 2/1/2008 10:09:14 AM
Hi, I have the following problem. In my application I'm starting a process using System.Diagnostic.Process class. New process opens some threads. I want to know what was the maximum threads number during process execution. The only way to get process threads is to use Threads property but i...more >>

basic console app without .net, is it possible in c#.
Posted by soler at 2/1/2008 9:30:02 AM
need to write a simple app with console output and file i/o to be distributed to other machines. Is it possbile in c# without .net overhead, not sure if all machines Xp have .net installed. probably suggest c/c++, which version. any suggestions greatly appreciated. -- soler...more >>

Reflecting through a form to find controls
Posted by Robert Bravery at 2/1/2008 9:28:16 AM
Hi All, I have an asp page with a wizard. On each page of the wizard I have different user controls with objects on for user input. Like textboxes, radiobuttonlist etc I have also set up a controler class, which has the job of loading and saving data from the form to a model In order to...more >>

Custom Object Bound To Combobox
Posted by Rob at 2/1/2008 8:47:01 AM
Hello, I have a custom object called AddressTypes. It is simple as it just stores a Dictionary<int, String> of address types - int value and string description value. I would like to bind this to a combobox. I tried binding it directly to the dictionary which kinda works but I get a d...more >>

Regular expression returns round brackets
Posted by Eric at 2/1/2008 8:30:34 AM
I have a string that contains tokens surrounded by percentage signs, e.g. %token1% I want to return any instance of a token that is not surrounded by single quotes. For example: Using the input string: "This is %token1% and here is '%token2%'." I want to match "%token1%" but not "%token2%"...more >>

Use one form instead of multiple forms
Posted by Tammy Nejadian at 2/1/2008 8:06:01 AM
Hi, I am going to write a large application using Visual Studio C#. I am going to use only one Form as main menu and go to other pages by cliking on next button in each page. I dont want to create several forms and move from one form to next. However I need to have same action using only one f...more >>

Firt day and last day of week (weeknumber as parameter ans year)
Posted by peetersb@gmail.com at 2/1/2008 6:23:27 AM
Hi, I want ot make functions like this: int getFirtDayOfWeek(int weeknumber, int year); int getLastDayOfWeek(int weeknumber, int year); Firts I calculate the count of weeks like this: DateTime lastDay = new DateTime(DateTime.Now.Year, 12, 31); DayOfWeek dayOfWeek = lastDay....more >>

new *.vhost.exe and *.pdb files in release folder
Posted by Ryan Liu at 2/1/2008 3:49:11 AM
Why there are so many *.pdb files in bin/release folder after I compile a c# project in VS 2005? In VS 2003, those files only in Debug folder. And what does new *.vhost.exe does? Thanks! ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~. Ryan Liu Shanghai Fengpu Software Co. Ltd Shanghai...more >>

Linq to SQL - Return DataTable as a result of Linq query
Posted by szwejk at 2/1/2008 2:27:52 AM
Hi! How to get result od dataTable from Linq query? I have typied DataSet and I want to join couple of tables. And I have a problem with change this result to DataTable type. (I don't want to rewrite everything in foreach) e.g. How can I make DataTable from it? Thx for help! var query =...more >>

Batch processing in C#
Posted by ludwig_stuyck@hotmail.com at 2/1/2008 1:48:34 AM
Hi, does someone has some links to information about how I would approach and implement batch processing in C#? Thanks! Kind regards, Ludwig...more >>

Process.Start Method (ProcessStartInfo)
Posted by nologo at 2/1/2008 1:17:20 AM
language: c# Visual Studio Hi, im using: ProcessStartInfo psiOpt = new ProcessStartInfo(@"cmd.exe", @"/c 7za a archive%DATE:/=_%.zip c:\temp"); combined with 7zip.exe to create an archive of files. I would like to create the file name using %1 parameter (archive%1), i would like to use a...more >>

XML Encoding
Posted by viepia@nospam.com at 2/1/2008 1:12:36 AM
Hi, In program 1 XmlWriter.Create(string pathname, XmlWriterSettings settings), its encoding is UTF-8 <?xml version="1.0" encoding="utf-8"?>, in program 2 XmlWriter.Create(StringWriter stw, XmlWriterSettings settings), it encoding is UTF-16 <?xml version="1.0" encoding="utf-16"?> . ...more >>

Is DataRow[string] uses DataRow[int] and DataRow[int] much efficient than DataRow[string]?
Posted by Ryan Liu at 2/1/2008 12:50:34 AM
Is DataRow[string] uses DataRow[int] and DataRow[int] much efficient than DataRow[string]? Thanks, ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~. Ryan Liu Shanghai Fengpu Software Co. Ltd Shanghai , China http://www.PowerCATI.com Powerful CATI! http://www.fpsoft.net.cn ~.~.~.~....more >>

Setting a trigger parameter
Posted by cameljs18@yahoo.com at 2/1/2008 12:30:14 AM
I have a trigger in my DB with a parameter called @User_Name , I want to be able to set this param value from my C# app how can i do this? thanks...more >>


DevelopmentNow Blog