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# > october 2006 > threads for monday october 16

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

MarshalAs for DWORD array?
Posted by Paul Harvey at 10/16/2006 11:19:49 PM
Hi, I have some VB6 code that calls unmanaged DLLs, and I am converting it to C#. There's a couple of structs I need to define. I've had no problems with this one: Public Type A sz(128) As Byte End Type The above VB6 translates happily into C# as the following: public struct ...more >>

REGEX to change multiple XML Date Values
Posted by a at 10/16/2006 8:19:01 PM
In the example below, I'm trying to simply find all the date values in an XML document (the XML is a string in this example) and then add an upper case Z between the last digit and the closing '<' character. My strSearch is ok, but my strReplace doesn't seem to do anything. Anyone know h...more >>

What's ReportDocument?
Posted by Badis at 10/16/2006 5:07:01 PM
Hi Guys, I'm new in crystal reports in C#, and what I'm asking what's the equivalant of VB's "CRAXDRT.Report"? is it ReportDocument!!!? Thanks...more >>

Binding Datasource to an object ?
Posted by Sagaert Johan at 10/16/2006 4:40:33 PM
Hi Instead of binding to a control, can i bind to an non visual object ? I want to have a string that is the result of adding 2 fields, can i to it with adding some kind of binding to a class object ? eg , string fullname = dr["Firstname"] as string + " " + dr["lastname"] as string ...more >>

Most recently used menu?
Posted by Richard Lewis Haggard at 10/16/2006 4:36:47 PM
In VS05, I've created a menu for the application and would like to insert a 'most recently used' item to hold, of course, the most recently used items that this application is associated with. However, it is not clear to me how this should be done. Would someone be kind enough to point me in the ...more >>

How to make Docking menu/toolbars in WinForms 2?
Posted by Richard Lewis Haggard at 10/16/2006 4:35:05 PM
How does one make docking toolbars and menus? I had high hopes for the toolstrip container but it appears that it only allows a toolstrip or menustrip to be moved from one of its edges to another instead of providing a mechanism whereby the entire strip can be picked up, moved around in rela...more >>

How to pass data from a class data member to that class' display method?
Posted by sherifffruitfly at 10/16/2006 4:15:35 PM
Hi all, I've got a class with a private DataSet member, and a void display() method. The display() method is *supposed* to take the DataSet for the class (instance), new up a predefined for which has a DataGrid, slap the DataSet onto the DataGrid, and set the form.visible to true. I'm ha...more >>

keyboard, mouse event
Posted by Ryan Liu at 10/16/2006 3:54:41 PM
Hi, In a windows application, What are the APIs to use to detect if the user has not using keyboard or mouse for a while(idle)? And what is the API to know the user just used either one (out of idle)? Can we know it at computer level, or application, or one particular form level? Thanks...more >>



Changing Default ErrorText Icon
Posted by Dave at 10/16/2006 3:35:02 PM
I would like to change the default errortext icon to a warning icon, just like how you can select the icons displayed in a messagebox -- L. A. Jones...more >>

Help with ThreadPool parameter?
Posted by Brett Romero at 10/16/2006 3:15:39 PM
I'd like to use ThreadPool.QueueUserWorkItem( new WaitCallback( flashRowColor(dgv) ) ); in a couple of places. I have a method the callback should use: private void flashRowColor( object pDataGridView ){...} I've tried several combinations of using delegate keyword, parameters for Wa...more >>

Change the scrollbars' UI
Posted by Alex Fu at 10/16/2006 2:55:14 PM
Hi, I need to change the scrollbars' UI of DataGrid (C#, Framework 1.1). I tried many ways, but I can not implement it yet. Please help me if you know how to do it. I have implemented a scrollbar (public class HorizontalScrollBar : System.Windows.Forms.HScrollBar) by Painting itself....more >>

Component to handle LZH in memory
Posted by paolol at 10/16/2006 2:29:52 PM
Hi, any one can point me to a good Component/library to handle LZH in memory ?? Thanks, Paolo...more >>

ListView and horizontal scrollbar
Posted by Lubomir at 10/16/2006 2:20:01 PM
Hi, I have a ListView with one column and no header. How to display the horizontal scrollbar if one of the items is too long? Scrolable property is set to true. Thanks, Lubomir...more >>

Assignment Operator Alternative
Posted by Funky at 10/16/2006 2:14:59 PM
In the code snippet below, I have a base class (originally written in C++) that byte swaps data when assigned or read from the class (thus, always storing the data as big-endian). As for those wondering how the data is set outside these 2 public operations: This class is later used to decl...more >>

Delete current directory and subdirectories
Posted by pargat.singh NO[at]SPAM gmail.com at 10/16/2006 2:03:50 PM
Hi Everyone: I am new to C# and wants to delete current directory and all sub directories. Can someone please provide some sample? Thanks in advance. Pargat ...more >>

Trackbar / Slider
Posted by Fab at 10/16/2006 2:01:59 PM
Hi, I am looking for a trackbar (slider) that could be a little bit more customizable that the Microsoft one. Do you know one (free or commercial) ? Thanks ! ...more >>

DataGrid Column read only property
Posted by Doug at 10/16/2006 1:42:11 PM
Hi, I have a data grid where I created two data columns using the designer. one of the columns I set the read only property to true, the other to false. Yet, when I run the code, I can change the values in the column where I set the read only property to true. Would anyone know why that is...more >>

Access form element from another class
Posted by SoxFan44 at 10/16/2006 1:34:50 PM
Hi, I have a DataGridView on my Form1 and a public function that can add a row to it. I want to be able to access that member function from another class. I'm confused as to how to do this. Can anyone please help? Thanks! ...more >>

Inserting into a stream
Posted by Zenon at 10/16/2006 11:56:16 AM
I have been tasked with writing code which overrides the TraceListener class for the purpose of limiting the size of the log file. Basically, when the log file grows to a certain size, I need to begin overwriting it from the beginning. I am using a ReadWrite Stream to do this. My problem is t...more >>

DataGridView HELP
Posted by mattioli.mirko NO[at]SPAM gmail.com at 10/16/2006 9:14:17 AM
Hello,I'm a problem. I inizialize an object BindingSource with : myBindingSource.DataSource = myDatatable; and myDataGridView.DataSource = myBindingSource. but I have a problem : when I filter BindingSource ( code : myBindingSource.Filter = "FIELD=0") myDataGridView show many error , For ex...more >>

Progress bar in compoiste control
Posted by eladla at 10/16/2006 8:29:01 AM
Hi! I am creating a composite control that does some of it`s own data access. I want to display a progress bar while the cntrol does it`s thing. I tryed opening up another thread in the Render methos but: A) this seams wastefull B) Nothing shows up until the render method is done, anyway. Ca...more >>

Progress bar in composite control
Posted by eladla at 10/16/2006 8:26:01 AM
Hi! I`m creating a composite control that does some of it`s own data access. I want a type of progress bar while the control is doing it`s thing. (an animated gif will do, nothing fancy) I don`t really know where to start. I tryed starting another thread in the Render method but: A) This seems...more >>

Queue object with strange behaviour??
Posted by RobKinney1 at 10/16/2006 8:01:03 AM
Here is another question we have been meaning to post for a long time. My colleague is literally pulling chunks of hair out of his head right now. We have a logging class. This class is mutlithreaded (as required by our boss). So when we tell the class to log something, it puts the data in...more >>

Updating an object value in a grid
Posted by Fredo at 10/16/2006 8:00:08 AM
I have a DataTable and in one of the columns, I'm storing an object. When certain properties of that object change, I want the DataTable to trigger an update in the grid (via the CurrencyManager). Is that possible without setting the Row/Col to a new instance of the object? Here's the th...more >>

Finding the Framework Needed by an assembly
Posted by adelscott NO[at]SPAM gmail.com at 10/16/2006 7:49:29 AM
Hi, I have an assembly and would like to know what DOT.NET framework it needs to run. I know I can do that using Visual Studio and adding it to a project, but I would like to do this another way. Thanks ...more >>

Newbie Question!
Posted by Rob Pollard at 10/16/2006 7:35:17 AM
Hi All, I have got the standard edition of VS and I'm having a blast with C#, having come from a Delphi background. VS has some very nice features like the windows docking mechanism and the pinned windows. Are these controls available somewhere in the VS-standard palette or do you need the ...more >>

Figure out when mouse cursor enters/leaves form
Posted by cb.brite NO[at]SPAM gmail.com at 10/16/2006 6:25:57 AM
Hello, I have tried this using the MouseEnter/MouseLeave events. However these events do not really refer to the rectangular shape of the form, but the client area (form area minus children areas). This means that if the mouse is currently inside the form's client area and it enters a child, ...more >>

dataset
Posted by kalaivanan at 10/16/2006 4:54:43 AM
Hi, I am converting a dataset into xml file using the following command: dsXml.WriteXml("filename.xml"); Using the xml file i did my functionality. I works fine in the developed machine. I deployed the same in a remote server through ftp. When i request for the page i am getting the pop u...more >>

Why WebHttpRequest.GetResponse() stuck?
Posted by Morgan Cheng at 10/16/2006 4:50:42 AM
I happens to surf to http://www.codeproject.com/cs/internet/Crawler.asp, which claims that WebRequest.GetResponse() will block other thread calling this function until WebResponse.Close() is called. I did some experimentation. public static void Main(string[] args) { for (int idx=0; i...more >>

C# becoming proficient
Posted by Steve at 10/16/2006 4:22:07 AM
I have been working with Delphi since its inception (10+ years but only up to v5) and am now tackling C#. I find it immense in depth with an enormous amount to learn. This is just a comment but i would like to know how long it has taken some of you obviously proficient programmers ...more >>

Parsing Excel documents with C#
Posted by svictorov NO[at]SPAM mail.ru at 10/16/2006 4:01:42 AM
Hello everybody, here is a question I have to deal with : In brief, I have an Excel document which consists of 3 sheets ( with the same names for each document ). The document always has fixed format except for number of rows, but it doesn't have a correct table format. I mean that each shee...more >>

Calculus on a GraphicsPath?
Posted by Jon Slaughter at 10/16/2006 2:44:42 AM
Is is possible to use the Graphics Path to store curves and then compute things on them? For example, In one of my controls I one to use a Graphics Path to store a curve that represents something but I need to be able to get the tangent at an arbitrary point on that curve. (basically the poin...more >>

C# Event raiser VS2005
Posted by ricardo.rcarvalho NO[at]SPAM gmail.com at 10/16/2006 2:28:31 AM
Hi. Whenever I try to do this: myTextBox.TextChanged += new System.IO.FileSystemEventHandler(textChanged(myRow.Cells[1], myTextBox.Text)); I get the error: "Method name expected" Can any one help me with this one? Thanks Ricardo Carvalho ...more >>


DevelopmentNow Blog