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# > august 2004 > threads for wednesday august 11

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

Scroll bar in datagrid
Posted by Reshma Prabhu at 8/11/2004 11:31:02 PM
hi, How can we put scroll bar in a data grid control? Thanks in advance. ...more >>


Inheriting a form within the same project
Posted by Hemraj Julha at 8/11/2004 11:25:44 PM
Hi I'm trying "Visual Inheritance" in C# and facing an issue which might be related to my ignorance about namespaces and location of the source code within the folders so I'll try to explain my problem. I have a windows application called TestApp who's source is located under: d:\rajooDo...more >>

help! about delegate problem
Posted by Jet Leung at 8/11/2004 10:54:58 PM
Hi all, I want use delegate in the program,but I don't know how is it work. How can I do that? What is defferent between use pure function and use delegate to handler the function? My code: class CXmlHandler { delegate string deleXmlHandler(string A); string MultiText; [STATh...more >>

blog c#
Posted by Ariel Gimenez at 8/11/2004 10:38:37 PM
Hi i want to have my own weblog in c# does anybody know where i can download any template thanks in advance ...more >>

NUnit and C#
Posted by Arne Rasmussen at 8/11/2004 10:29:10 PM
Hi there! I'm in the process of learning C# and im going to be a student at a softwarecompany where they are thinking of using NUnit in their test/production environment I've been looking into NUnit myself and it seems pretty easy to use - however I have a couple of questions that some of you m...more >>

(Part)Converter VisualBasic -> CSharp on DotNet available?
Posted by deangelo2 NO[at]SPAM nortel.com at 8/11/2004 9:40:25 PM
Is there a converter which converts me a VisualBasic source into an equivalent CSharp source? Joe ...more >>

COM communication ceases when window loses focus
Posted by Joris Dobbelsteen at 8/11/2004 8:14:07 PM
I have a very strange situation here: I have an console application that reads from a the COM port. I have 1 thread busy doing this. Next I have 512 threads which perform a write/read cycle on the COM port with some restrictions: For every command (there are 254) there can be only one doing...more >>

Object reference not set to an instance of an object.
Posted by Chua Wen Ching at 8/11/2004 7:45:01 PM
I think is related to my p/invoke thing. This is the C dll implementation. But i am kind of blur, what does it means? #define far #define near #if ... // something here #define pascal __stdcall #else #define pascal #endif typedef struct { int aValue; unsigned char rev[10]...more >>



Using RS485 within C#
Posted by Tamir Khason at 8/11/2004 6:30:01 PM
Someone knows where to get tutorials or examples of RS485 Implementation within C#? I seach a lot, but all examples are related to RS232, but not RS485. The sample question I have is how to provide device address within COMM interface? TNX -- Tamir Khason You want dot.NET? Just...more >>

Using C# custom control in a game?
Posted by Jason at 8/11/2004 6:19:52 PM
My friends and I are trying to learn about game programming. And we are most interested in games like "raise of nations", "age of empires", "civ2 or 3". We are thinking about developing a turn based, strategy game. I have been doing some messing around with C# to get ideas about how to lay out da...more >>

get an subset of a string
Posted by authorking at 8/11/2004 6:18:10 PM
How can I get a subset of a string by define the start and end charactor. ...more >>

question on regex for splitting a csv file
Posted by Kristopher K. Kruger at 8/11/2004 5:59:37 PM
I was hoping to parse a csv file with a regular expression, the following is what i have: string input = "8/5/2004,WITHDRAWAL,,\"($2,000.00)\","; string pattern = "(?:^|,)(\"(?:[^\"]+|\"\")*\"|[^,]*)"; Regex regex = new Regex(pattern); string[]...more >>

newbie question on deleting rows from DataTable
Posted by tlh_PLEASE_NO_JUNK NO[at]SPAM sportairmedia.ca at 8/11/2004 5:27:20 PM
Hi, I am new to C# and to the .NET data environment. I am having some trouble understanding some of the events around deleting rows. Here is my problem: I delete the row from a bound datagrid using a currency mananger: CurrencyManager cm = (CurrencyManager) this.dataGridEng.BindingConte...more >>

Comparing 2 ArrayLists
Posted by Bob Rundle at 8/11/2004 4:59:22 PM
I try to compare two array lists. Do I have to do it element by element? I can't believe you can sort an array list but you can't compare them. The following code will assert... ArrayList list1 = new ArrayList(); list1.Add("a"); ArrayList list2 = new ArrayList(); list2.Add("a...more >>

Undelete from program
Posted by daimon_junk NO[at]SPAM hotmail.com at 8/11/2004 4:58:54 PM
Hey All! I need to undelete files from an NTFS volume from within my program. Does anyone know: A) Some existing code to help with this (I.E. a library) -or- B) A command line undelete tool that will work on NTFS Thanks! -S...more >>

Data from SQL
Posted by John J. Hughes II at 8/11/2004 4:02:55 PM
I have a service that runs on one server and accesses data from another server running SQL 2K. Is there a way other then polling to know when a records has been changed or added or an event has occurred? Regards, John ...more >>

Sharing the application defined errors like in C++
Posted by Srini at 8/11/2004 3:57:01 PM
Hi, What is the best method to share the application defined errors in C# ASP.NET application. Basically I would like to have all the errors defined in one place and share those between modules of the application. In C++ I can define all the errors in a header file and include it in the ...more >>

Aborting an STA thread doesn't work
Posted by Michel at 8/11/2004 3:36:04 PM
Hi there, I have a thread pool that contains a number of threads waiting for jobs to process. The logic for stopping a thread is that I check if the thread is in waiting mode, if so, I abort it. The run method of the thread is basically this: while(!IsAborted) try { JobQueue.Pop().Ex...more >>

Fully functional form in a seperate thread
Posted by Matthias Steinbart at 8/11/2004 3:26:48 PM
Hi, I'm looking for the easiest way to display a fully functional form in a different thread. I've created a test app and it doesn't seem to work as expected. From my MainForm, a button is clicked and the eventhandler starts a new thread. The thread-function looks like this. protected stati...more >>

custom errors definitions
Posted by Ollie at 8/11/2004 3:16:21 PM
If I define a custom error definition in the web.config for an asp.net web site, e.g. <customErrors mode="On" defaultRedirect="Error.aspx"/> If an exception in the code causes the error.aspx page to be displayed, is it possible to get that exception from the Page_Load of the error.aspx page?...more >>

Creating Components for the VS toolbox
Posted by Harry V at 8/11/2004 3:13:02 PM
Would it be possible to create components and add them to the Visual Studio Toolbox? i.e., a control (or anything else, for that matter) that has the properties set to _my_ deaults at design time so that I can utilize them from there. -- Harry E Vermillion IT2 Division of Wildlife State...more >>

Don't run event in desing time
Posted by sergey at 8/11/2004 3:03:21 PM
I have writed a new class. (Inherited by TextBox) public class MyTextbox: System.Windows.Forms.TextBox When I writed it's OnTextChange event, this event runs in design-time and run-time. protected override void OnTextChanged(EventArgs e) { //do something MessageBox.Show("changed"); ...more >>

DataGridTextBoxColumn()??
Posted by Darryn Ross at 8/11/2004 3:02:45 PM
Hi, Can anyone please tell me how to format a DataGridTextBoxColumn() into a short date format?? i have formatted all my other fields but can't seem to get the date one figured out. Thankz Darryn ...more >>

AutoResetEvent doesn't guarentee order
Posted by Joris Dobbelsteen at 8/11/2004 2:28:43 PM
Is it correct that the AutoResetEvent class doesn't guareentee any ordering? - Joris ...more >>

any good applications for creating PDF documents?
Posted by jayderk at 8/11/2004 2:28:40 PM
I was wondering if there were any good tools out there for creating pdf documents with Visual studios .NET 2003? thanks, Jay ...more >>

Does NET have frames ?
Posted by genc ymeri at 8/11/2004 2:26:03 PM
Hi, I'm coming from Delphi and I'm lookin for frames but I'm not finding them. Do we have something similiar overhere in NET ???? If yes, is it going to be the same logic ? //*** I'm writing the Delphi logic in C# syntax Frame MyFrame = new FrameClass(AOwner); MyFrame.Parent = MyMainForm; M...more >>

Control that displays LOTS of data without taking all memory
Posted by VMI at 8/11/2004 2:02:47 PM
Is there a Windows control that will let me display lots of data (80MB of data in ascii file) without taking all the memory? I tried it with a datagrid but its datasource (in my case, a datatable) must be stored to memory in order to display it. I also tried with a listview and I thought it woul...more >>

Get DefautlValue of a Property?
Posted by Ă–zden Irmak at 8/11/2004 1:51:48 PM
Hi, I want to get the DefaultValue of a Property from an instance of a class I have? Can anybody help me? Regards, Özden ...more >>

C >> C# question
Posted by Phil at 8/11/2004 1:37:02 PM
I create a lot of text files in an app I am converting to C#. In C, I could output text to a file in the format: int i=4; int j=3; int k=10; int m=15; fprintf(fp,"%4d %4d\n",i,j; fprintf(fp,"%4d %4d\n",k,m; and the output would be: 4 3 10 15 In this way, I can stuff spa...more >>

Suggestion
Posted by Radovan Radic at 8/11/2004 1:20:03 PM
Hello everyone, I think it would be good idea to add another csharp newsgroup for web programming, so we could read messages easily, and to have distinction for example of web datagrid and winforms datagrid. Radovan ...more >>

Security and UDPClient
Posted by M D at 8/11/2004 12:32:24 PM
Apparently to use the UDPClient users will have to open an IP port on there firewalls. What is the risk? If I structure all my messages and test for compliance on each packet received will I be doing all that is possible to stop unauthorized use of the port? Is there anything I should do to d...more >>

odd list box behaviour
Posted by KavvY at 8/11/2004 12:25:52 PM
Hi, In the code below the contents of the "TextField" column is correctly displayed (DataTextField) in the List Box. However on firing a SelectedIndexChanged event to get the value, the DataValueField references a null object. lbxResults.DataSource = sel.getDataTable(); lbxResult...more >>

Theory question for C# gurus
Posted by Tim Mulholland at 8/11/2004 12:12:59 PM
We have a user control with several other controls on it. We then have a bunch of functions in the user control that operate on those controls. In order to allow the user to invoke those functions, we have a "Breakaway" form with several buttons on it. When the user clicks those buttons, we want...more >>

Sending mail through C# using Excel
Posted by NaHn-PrAhFyT at 8/11/2004 12:07:29 PM
In Excel 2003 there is a sendmail option that allows you to send a worksheet as the body of an email. I'm trying to do this with C# and i can't seem to find out how, does anyone have experience doing this, or any suggestions?...more >>

Issue with IUrlHistoryStg
Posted by Bob C. at 8/11/2004 12:06:27 PM
Hi, I used the sample from the codeproject(http://www.codeproject.com/csharp/ponta.asp), But that sample has one issue. Even after clearing the Histroy and Temporery file from IE settings, Still this code gives the Histroy list (ofcourse after clearing the histroy, number of ulr it gives b...more >>

A question about DllNotFoundException
Posted by Michel at 8/11/2004 11:25:12 AM
Hi there, I am using a dll (using DllImport) and often (but not always) I get a DllNotFoundException: The dll could not be found. This dll has some startup logic (which takes a second or two to execute). I notice that I have a lot more success when the calling thread is using the STA apartm...more >>

Storing DB password in config file
Posted by A at 8/11/2004 11:07:37 AM
Hi all, I am trying to store our DB password in an App.Config file (encrypted of course) but am not sure if I am following a best practice or standard approach. Can anyone point me in the right direction? I have done some searching on MSDN but everything seems geared at ASP.Net user securi...more >>

.Net app with real time processing!
Posted by bredal Jensen at 8/11/2004 11:03:05 AM
I have an MFC app. that i want to port to VS.Net. The application acces some hardware via "Callbacks" to do real time data processing. Does .Net support interrupts? Or do i need to stick to VC++. I know one can define unmanaged areas in .Net code . Is that the way to control my peace o...more >>

Problem Registering COM Interop Assembly
Posted by Osvaldo Bisignano at 8/11/2004 10:49:27 AM
First, Sorry for crossposting. I've run the installer on a mahine with windows 2000 professional and it = registered my COM interop dll without any problem. I could check this = because in this machine i have VB6 installed and i could check that i = could consume it and create instances of my ...more >>

Ojbect Hierarchy
Posted by web1110 at 8/11/2004 10:47:05 AM
Hi y'all, Way back when, I had hanging on my wall an object hierarchy diagram of the C++ MFC. It wasn't terribly useful, but it was neat, and it did highlight MFC object relationships on the occasions I wanted to clarify something. Is anyone aware of such a diagram for C# that I could downl...more >>

Test Data Type
Posted by Guadala Harry at 8/11/2004 10:32:15 AM
What are the options for testing to see if a String variable contains a value that can be converted to an integer (vs containing a value that cannot be converted to an integer)? e.g., "784" can be converted to an integer whereas "nope" cannot be converted to an integer nor can "" (a zero len...more >>

Formatting a double to a string of a specific length
Posted by googlegroups NO[at]SPAM thepete.net at 8/11/2004 10:30:37 AM
I'm writing some c# code to output some data in a format that a Fortran program can use. Yep, I said Fortran :| What I need is to write a floating point number into a string that is always 7 characters long, with a space prefixed before the number. For example: 1.34567 1234.67 .234567 ...more >>

Datagrids dg_Navigate??
Posted by Darryn Ross at 8/11/2004 10:24:13 AM
Hi, how do i catch this event? the navigate event is not getting caught when scrolling through each record?? not sure what is going on! and i need to catch the on_change event for each row/column can't seem to find that event either??? have they changed names since Visual Studio 6?? Any hel...more >>

Question regarding the operation of lock ( )
Posted by Jim at 8/11/2004 10:02:26 AM
Hi all, I have a question regarding the operation of critical sections within a class definition. Below is an example class that contains two methods that perform locks on the current instance. The methods themselves are not tagged with the [MethodImlp(MethodImplOptions.Synchronized)] at...more >>

For vs. For Each
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 8/11/2004 8:21:47 AM
Is there a performance difference between this: \\\ Dim i As Integer For i = 0 to myObject.Controls.Count - 1 myObject.Controls(i) = ... Next /// and this: \\\ Dim ctl As Control For Each ctl In myObject.Controls ctl = ... Next /// Or is For Each just "prettier"? Tha...more >>

Constant String Concatenation
Posted by jjr01 NO[at]SPAM yahoo.com at 8/11/2004 6:52:34 AM
To whomever cares at uSoft: One feature that I'd like to see in C#, is the concatenation of constant quoted strings by the compiler, just like good 'ole C++: string s = "Here is a string" " that I'd like to line up," " just like C++"; Without the need for superfluo...more >>

how to create recordset on fly
Posted by steve connors at 8/11/2004 6:32:47 AM
I created recordset using RecordsetClass in C# windows console application. then I want to append fields and assign value to each field on fly(not calling SQL database). unlike vb, the arguments for methods open, addnew, append can not be optional. I have been trying this for one day, but still ...more >>

Re: copying a file from an offset
Posted by Shell at 8/11/2004 5:24:54 AM
Dunc, I've just glanced through the code and it's my guess that you're probably trying to read beyond the end of the source file in the last iteration. This can leave a padded '0' byte at the end. Why do you want to do this in a loop anyway? Wouldn't this be easier: private static void Co...more >>

Scope of ReaderWriterLocks
Posted by johnny at 8/11/2004 4:45:03 AM
I am a bit new to threading and something is not clear about ReaderWriterlocks. I understood that it meant that any so called shared resource wil be locked, thus in the following example from my application the object dataargs would be locked (even if its local and it makes no sense to lock ...more >>

Parsing C# - Syntax question
Posted by Immo Landwerth at 8/11/2004 3:43:54 AM
Hi there, I am working at a project where parsing C# is a major part. While constructing an AST I was wondering about the syntax of the for-loop statement. If I write for (int i = 0; i < 10; i) ^ | --------------------------+ t...more >>

How to access intrinsic WScript object properties from a .NET COM object
Posted by Alek Davis at 8/11/2004 3:31:06 AM
Hi, Is it possible to access intrinsic WScript object properties from a .NET class? I am writing a COM object in .NET (VB.NET or C#), which can be invoked from a WSH script (VBS, JS, etc). In the COM object logic, I have to detect such properties as Interactive, ScriptFullName, and others. I c...more >>

Declarations and initializations
Posted by mron NO[at]SPAM pubsandbands-dot-com.no-spam.invalid at 8/11/2004 3:02:52 AM
Hi everyone, I'm pretty new to C#. I'm building a simple class called NumBox which is just a textbox that can only accept digits. No problems building. BUT, when I want to use it in an application and I put it in the form, the visual studio automatically recognizes it as an inheritant from...more >>


DevelopmentNow Blog