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# > february 2004 > threads for friday february 27

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

how to debug windows service
Posted by ÎÒÃν­ÄϺà at 2/27/2004 11:26:03 PM
how to debug a running service?=20 I can use "debug processes" to attach a running service,=20 but the program doesn't break at my break points....more >>


What's the Best Way?
Posted by C# Learner at 2/27/2004 10:32:07 PM
What's the best way to achieve the following? public class MyClass { public const byte[] TwoConstBytes = new byte[] { 0x01, 0x02 }; }...more >>

Help needed: How to reserve line break in a string
Posted by gr at 2/27/2004 8:21:05 PM
I need to display a string on the page. It may have Tab, new line feed etc. I need to preserve it. If I am setting it to Lable.Text, it is not been preserved. How can I do it? Thank Yo ...more >>

Overriding events in an inherited class
Posted by Robert at 2/27/2004 7:00:53 PM
Hi, I've inherited the XmlDocument class to include some custom methods that I want to use on a particular XML file. I need to know whether the document has changed since being loaded, and I wanted to be clever and hook up to the events that are already defined in the XmlDocument class (i.e...more >>

multi-threaded C# app started by service uses lots of memory ?
Posted by Martin Rojo at 2/27/2004 6:01:05 PM
Hi ALl I've got a strange issue (on development, not production) With .NET 1.1, I've got a multithreaded app that sends and received to MSMQ, also has uses a Remoting server so as to run mirrored with other apps of the same kind The app is usually started by a service ( i.e. using Process.Star...more >>

System.Windows.Forms.ToolBar
Posted by genc ymeri at 2/27/2004 5:15:18 PM
hi, I'm trying to have a toolbar similiar to MSOffice2003 but the toolbar which comes with VSNet03 is not quite the same or at least I don't know where I can assign/change the color properties. Any idea ? Thanks in advance. PS: fyi: I have installed in my system MSVisio03 and msoffice03...more >>

Hiding null properties of a component
Posted by Sujith Manuel at 2/27/2004 5:08:09 PM
Hi All, I have one component developed in C#. It has got three properties and only one of them will be having value at design time. This means that values of other two properties will be null. Whenever I drag & drop this component into a form, VS.NET is giving a warning as : " The object...more >>

Free or cheap smtp component?
Posted by Simon Harvey at 2/27/2004 4:47:55 PM
Hi, Does anyone know of a free or cheap smtp component that will allow me to send html email messages with embedded images? Thanks all Simon ...more >>



Read Method
Posted by Lafayette at 2/27/2004 4:39:07 PM
i´m reading some data from a socket object and when i call the read method it returns 0 bytes to my byte array. my code: private void processRequest(){ byte[] buffer; int numBytes = this._userSocket.Available; if(numBytes > maxHeaderBytes){ numBytes = maxHeaderBytes; } buffer = ...more >>

object reference error
Posted by Ray Cheung at 2/27/2004 4:36:05 PM
I am starting to realize that there are differences in vb.net and c#: in terms of syntax, object and keyword in small or big letter In the routine below, I got this error message in c An object reference is required for the nonstatic field, method, or property 'System.Web.UI.Page.MapPath(string)...more >>

XMLDomDoc vs XMLTextReader
Posted by MFRASER at 2/27/2004 4:20:08 PM
I am trying to import some data into my objects and I have been using XMLDoc.LoadXML(file), but someone told me that this is very memory intensive that if I am reading a text file that I would be better off using XMLTextReader. Has anyone had the same experience? ...more >>

HTML Editor Control?
Posted by Hayato Iriumi at 2/27/2004 4:13:02 PM
I'm looking for a control for .NET control for Windows app. The control should allow me to edit HTML text including putting image within the HTML. And of course, get the HTML from the control. Does anyone know a control like this for .NET? ...more >>

COM dlls using without registering
Posted by Vikas at 2/27/2004 3:38:51 PM
Hello, I am trying to use a COM dll inside my C# application. But my production environment would not allow be register the COM dll. Are there any other options by which I can use a method inside this COM dll without actually registering it using regsvr32? The consumer of the applicatio...more >>

Help! MailMessage Body is stripping carriage return/line feeds
Posted by Tim Mavers at 2/27/2004 3:04:09 PM
I am using the MailMessage class and am dynamically building the message body field. I know I am using String and not String builder but I don't want to worry about that now. The problem is after I build my message (which contains CR\LFs -- blank lines), the message received by the user ha...more >>

ASP.Net questions
Posted by Jeremy Ames at 2/27/2004 3:01:13 PM
If you have a client-side script that catches an event for a control, and a server-side script that catches the same event, which event will fire first? The reason I ask is I want a button that will do some data validation on the server, and possibly run some client script to open another window ...more >>

Invoking WinUI Controls
Posted by Pierre at 2/27/2004 2:47:08 PM
I know that we should use the Invoke method to access the methods of a windows control when we are on a different thread than the main UI thread. But what about properties? They are internally methods for CLR but we can't create a delegate for a property. Do we have to implement wrapper methods ...more >>

XML/XSLT Transformations
Posted by Christopher at 2/27/2004 2:41:25 PM
I am currently in the process of evaluating the performance hits of moving to the .NET platform for our application. I created a sample project that loads the transforms the same XML and XSLT in COM, COM using interop and in C# and then transforms it to HTML. I also tried concatenating the XML an...more >>

TODO items not showing up in Task List
Posted by Guadala Harry at 2/27/2004 2:13:24 PM
I want to add comments to my code and have them show up in the Task List. When I enter lines like the following, they do not appear in the TaskList. // TODO Fix this function. What could be preventing these items from showing up in the TaskList? FWIW: using VS.NET 2003 Enterprise Architect...more >>

Quote in string???
Posted by DaveF at 2/27/2004 1:54:05 PM
Newbie here. How do I escape the quote in this password ff.setRemotePass(":tdf"4$$$[A"); ...more >>

is it possible to embed a native win32 dll as resource and use pinvoke?
Posted by babylon at 2/27/2004 12:54:28 PM
if I have a Win32 DLL - X.DLL can I embed it to a .Net Application and invoke it's exported functions? normally i have to put the X.DLL in the file system and use DllImport to import/invoke the function I just wanna combine everything into a single .exe thank you ...more >>

static variables scope in C#
Posted by NewsMS at 2/27/2004 12:40:34 PM
I'd like to know if static variables have thread scope or process scope. This means if the variable can be shared among threads on the same process or is available only to different class instances on the same thread. Thanks in advance. Agustin Sanchez ...more >>

Help importing csv
Posted by MFRASER at 2/27/2004 12:39:52 PM
Does anyone have a good way of importing a csv file into an object? Entity1,123,22,red,blue Entity2,123,22,red,blue Entity3,123,22,red,blue Entity4,123,22,red,blue Entity5,123,22,red,blue Currently I am spliting the data and then creating two for loops to loop through the rows and then ea...more >>

Is this possible? Equivalent of C++ header file?
Posted by Adam Clauss at 2/27/2004 12:25:17 PM
OK, lets say I have a C# Windows application. In it is a a series of namespaces, all rooted for a certain namespace A. For ex, the "using" directives would read something like: using A; using A.somenamespace; using A.anothernamespace; Now, other users will be using these namespaces. I wo...more >>

DragDrop
Posted by Lou at 2/27/2004 11:42:53 AM
I have been trying to do something very simple for days now. I'm very frustrated. The following VB6 code works beautifully but how do I achieve the same in C# It a drop target Private Sub Text2_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single,...more >>

Book question
Posted by C# newbie at 2/27/2004 11:27:47 AM
Hi, What book do you suggest to somebody who migrating from VC6 to C# (knows some about C# though) ? a good book with good examples not just the theory. Thanks ...more >>

How to get gps data from serail port using c sharp
Posted by Khan at 2/27/2004 11:06:05 AM
Hi i am doing gps programming but dont know how to start is there any builtin facility avaialable in c sharp or i have to use third party libraries. i need a sample code which can lead me to start the programming thanks...more >>

FTP file date and time.
Posted by DaveF at 2/27/2004 10:43:44 AM
Can anyone point me in the right direction to be able to find that info on a specific file before I download the file. Basically I want to see if it has shanged since last downloading Dave ...more >>

Adding threads to a process
Posted by Joe at 2/27/2004 10:28:45 AM
Basically, right now I'm trying to open up Adobe Acrobat Reader from a Windows App but if one is already open an execption is thrown so in order to get around this I check if the process is already running and if so tell the user to close the app. I should be able to just add another thre...more >>

Condition calls
Posted by Phil Barber at 2/27/2004 10:28:15 AM
i have app that uses excel, some of the clients use office 2000 and the others user office 2003. the call AWorkbook = ExcelObj.Workbooks.Open() in office 2003 takes 15 arguments and office 2000 the call takes 13 arguments. how can I code the source to allow for both. I plan to use a XML fi...more >>

aspx files
Posted by Chuck Bowling at 2/27/2004 9:45:36 AM
I'm doing something wrong... not quite sure what... I got a basic web forms page built and running inside the IDE per ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/vbcon/html/vbwlkWalkthroughCr eatingBasicWebFormsPage.htm The project works exactly as it should inside VS.NET however, if i tr...more >>

Detect each column's data type of SalDataReader, DataSet, DataTable
Posted by Hardy Wang at 2/27/2004 9:39:50 AM
Hi all, I am just wandering, is it possible to programmatically detect each column's data type of SalDataReader, DataSet.Tables[i], DataTable? Thanks for any suggestion! -- WWW: http://hardywang.1accesshost.com ICQ: 3359839 yours Hardy ...more >>

Clipboard object
Posted by Lou at 2/27/2004 9:37:35 AM
How do I get the data in the clipbaord fro a registered data type. The code snippet below doesn't work? But the VB6 example does. What am I doing wrong. private void lstItems_DragDrop(object sender, System.Windows.Forms.DragEventArgs e) { // Creates a new data format. DataFormats.Fo...more >>

I Need an IsNumeric Method
Posted by John Bowman at 2/27/2004 8:26:26 AM
Hello, Does anyone have a good/reliable approach to implementing an IsNumeric() method that accepts a string that may represent a numerical value (eg. such as some text retrieved from an XML file)? Thus if you pass it "1" or "5.12345" it returns true, but "1b3q" it returns false? I know VB has...more >>

Dynamic array creation
Posted by ARZ at 2/27/2004 8:26:07 AM
Hi, I've an array of my own Class.The size of the array is varying. I need to include one element to the array as and when it is needed. Is there any way in C#? I've heard about the Assembly.CreateInstance(). Is this the only way out? Thanks in advance. ARZ....more >>

Easy Question - howdo I call another program from C#?
Posted by dave at 2/27/2004 8:12:45 AM
I've been experimenting with a couple of things, but basically I want to call a batch file from (ASP.NET C#) upon a button click, execute then exit. Unfortunately my batch code isn't executing.I would love to put a status bar in here too while my batch is executing. Please help Here's th...more >>

Passing an input parameter to an access query
Posted by stevenconnelly2000 NO[at]SPAM yahoo.co.uk at 2/27/2004 7:53:49 AM
Hi, I'm sure there is a really simple way to do this... I'm trying to pass an input paramater to an Access query using OleDb. I know it can be achieved using a command object but this only seems to be able to create a datareader object and I want a dataset. Does any one know how to pass an inp...more >>

C# and properties file
Posted by florins NO[at]SPAM develop4all-dot-com.no-spam.invalid at 2/27/2004 7:18:22 AM
Hi, I am new to C#. I'm making a project which requires a property file like this: key1=value1 key2=value2 How can I read/modify this file in C# ? There is a class in C# like Properties in java ? Thanks, Florin Posted Via Usenet.com Premium Usenet Newsgroup Services ----------...more >>

system.void
Posted by charles at 2/27/2004 6:51:06 AM
system.void cannot be used from c# -- use typeof(void) to get the void type object...more >>

How to handle Memory Mapped files with C#?
Posted by Joel Foner at 2/27/2004 5:56:19 AM
Is there any support for memory mapped files in the .Net framework? I have an application that would be made much easier if I had an easy way to read an existing memory mapped file generated by another application, and could write another MMF back in response... Any and all ideas welcomed. ...more >>

communication between two forms
Posted by rammohan at 2/27/2004 5:08:55 AM
hello my task is to show only one form at a time.if click some button in one form the other must be displayed and viceversa. i try it but i got debugger exception. can u give me the reason why so. regards --rammohan...more >>

Problem with regular expressions i .NET
Posted by arne1111 NO[at]SPAM yahoo.no at 2/27/2004 4:34:51 AM
Hi, I'm trying to recognise phone numbers on the following format using regular expressions: +47 123 45 678 This should be recognised by the following regular expression: +47 \d{3} \d{2} \d{3} but it's not. This regular expression: +47 \d{2} \d{2} \d{2} \d{2} DOES recognise the followi...more >>

XML Documentation Tags Problemo
Posted by C# Learner at 2/27/2004 4:29:52 AM
I've made a class library containing a static method. This method is documented with XML-type comments: /// <summary> /// Foobar. /// </summary> public static string[] FooBar() { // etc... } In another project, I reference the release DLL built from the class library project, and I ...more >>

Directory Read Only
Posted by Jax at 2/27/2004 3:06:06 AM
How can you change a directory and all it's sub directories to NOT be read-only? For some reason my application keeps setting them all to read-only when I load it jax...more >>

C# compiler hangs
Posted by Robert Sander at 2/27/2004 2:16:05 AM
Hi I've a strange and annoying problem with the C# compiler (7.00.9644). When I compile a project with the AssemblyKeyFileAttribute the compiler hangs for a few seconds. This happens only if the assembly is to be strong-named. And it happens only from time to time. The problem is present for a few...more >>

My files Shrink by half!!!
Posted by ebrahimbandookwala NO[at]SPAM hotmail.com at 2/27/2004 1:41:40 AM
I am trying to copy a file using BinaryReader / Writer . I started with this mp3 .. it was ~640 kb . BUt THe output file that is created by my code is only ~320 kb ?? heres the code -------------------------------------------------------------------------------- try { //System.N...more >>

InvokeMember
Posted by amydudley NO[at]SPAM webmail.co.za at 2/27/2004 12:39:15 AM
Hi, I have the following scenario: A base class BaseClass as follows: public abstract class BaseClass { private bool PrivateMethod() { . . return true; } public bool MethodA() { if(PrivateMethod()) ...more >>


DevelopmentNow Blog