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# > april 2006 > threads for monday april 17

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

A One Pixel Long Line
Posted by Martijn Mulder at 4/17/2006 10:50:30 PM
I try to define a line with the length of 1 unit (1 pixel) that is, in fact, just a point on the screen. But when I draw it with a wide pen with the appropriate StartCap and EndCap (Round), it will appear as a dot. I can think of a way to define a 1-pixel long line but it is ugly and clumsy. ...more >>


Regex: Could this pattern be more efficient?
Posted by sklett at 4/17/2006 9:51:58 PM
I have an Intel hex file I need to parse. I want to run a regex on each line to get the separate sections. the format is like this: :llaaaatt[d...]cc where: : - starts the record ll - is the length of the data section([d...]) in hex aaaa - is the address of the data in hex tt - is the type...more >>

MSDN Chat: The C# Language, April 20th @ 1pm Pacific Time
Posted by Scott Nonnenberg [MSFT] at 4/17/2006 8:30:00 PM
Show up and talk to members of the C# compiler and language design team - ask design questions, request features, anything. Or just spend some time hanging out with other C# developers! Scott Nonnenberg Program Manager Visual C# Team The C# Language "Want to know more about anonymous ...more >>

Null vs undefined
Posted by tshad at 4/17/2006 7:14:05 PM
I have a structure (which happens to be a Java DataBean that contains some string arrays) that is giving me an error. The error at the "for" statement is: Object reference not set to an instance of an object. Here is the code where chDataBean is the structure. chDataBean.voucherNumber i...more >>

Replace /n with a <br> help please
Posted by CK at 4/17/2006 6:00:47 PM
Hi all, I have a textarea control. I am putting it's value in an html email. The problem is that the new lines are being ignored. I want to take the controls value and replace any newline carriage returns, with an html <br> tag. I tried the following function but it doesn't work. Does ...more >>

Csharp async calls to Web Service that calls C++ :: blocking issue
Posted by Brian Parker at 4/17/2006 5:29:47 PM
I inherited a C++ DLL that I need to remotely call multiple times asynchronously. What I have developed is: CSharp web application that makes asynchronous calls to a CSharp Web Service. The Web Service calls the DLL, which does some heavy processing, then sends the results back to the CSh...more >>

Passing by reference twice
Posted by tshad at 4/17/2006 4:55:04 PM
If I am passing a variable by reference to another routine by reference, do I need to dereference first? string testString; .... FirstSub(ref firstString) { HandleString(ref firstString); //do I need to de reference here or just pass theString without the "ref" ...more >>

How do I get Array elements from Reflection C#
Posted by ashraftm NO[at]SPAM gmail.com at 4/17/2006 4:25:03 PM
How do I get Array elements value from Reflection.. Here is the C# code.. I have 2 struc Public struct Address { public string city; } public struct Person { public Address[] Experience; } Person p = new Person(); p.Experience = new Address[2]; p.Experience[0] = "Los Angele...more >>



XML and & character
Posted by BenI at 4/17/2006 4:22:31 PM
Hello, I have a XML configuration file that uses ISO 8859-1 encoding. I should have & characters to be like other alphanumeric characters. How should I code & character in XML file? Plain & seems to throw Parsing Exception. I Can 't use UTF8. Cheers! ...more >>

Consuming managed events within Internet Explorer
Posted by Apu Nahasapeemapetilon at 4/17/2006 4:13:01 PM
Hello and thank you in advance for your help. Can anyone think of a reason why this code would work properly on one PC, but not another? I've got a System.Windows.Forms.UserControl that products events which I want to consume (sink) within Internet Explorer. I'm following the instructio...more >>

String Substitution - Performance
Posted by Ben Dewey at 4/17/2006 4:00:51 PM
Anyone, I am trying to do a string replace of a custom Html Tag that is Case Insensitive and Fast, I will be calling this function a bunch of times. Any thoughts about using maybe a StringBuilder or StringReader/Writer to increase performance. Please feel free to mark up my code and se...more >>

Invisible panel control events...
Posted by shumaker NO[at]SPAM cs.fsu.edu at 4/17/2006 2:47:32 PM
How do I make a panel control invisible, but still recieve events? I have a panel that I set visible= false, and over it I am using GDI+ to paint a grid of rectangles. It has to be invisble or else it covers up the GDI+. However, it is not firing the mousedown and up events while it is not v...more >>

Gridview + ObjectDatasource + UpdateMethod = Input string was not in a correct format
Posted by M C at 4/17/2006 1:49:03 PM
Hi, This is a problem that has been haunting me for days and I've come to a complete dead-end. I'm using a objectdatasource to select and update a gridview control. Populating with select works fine but updating gives the "input string... " error. Any suggestions or links to a working sample....more >>

nested statement firing more than desired...
Posted by KBuser at 4/17/2006 1:32:25 PM
Preface: I'm building an intranet site to build custom queries against our SQL Server (2000) db; The page is developed in ASP.net (2.0) with C# Codebehind. I dynamically generate and populate checkboxlists for each table that the user selects to query. I disable selecting non-related tables, ...more >>

DataGrid, with editable fields in form
Posted by Joe Spears at 4/17/2006 1:18:38 PM
Hi I want to display a datagrid summary of a datatable. The grid will not show all the fields, but when the user selects a row, I want the other controls (text boxes) to also bind to the same row that is selected in the grid. However, the controls will bind to ALL of the fields, where the gr...more >>

ArrayList - Move Item
Posted by Andrew Neillans at 4/17/2006 1:14:30 PM
Hi all, I have arraylist that contains a series of objects - I need to move one object to another location in the list. What is the most efficient way of doing this? e.g. ArrayList: Item1 Item2 Item3 Move Item2 to the last position giving: ArrayList: Item1 ...more >>

Events, Threads and FileWatcher
Posted by Raj Wall at 4/17/2006 1:01:17 PM
I have threads with event handlers to watch for new files placed in directories. The handler has a Using { ... } block to process the file which is then deleted. In testing I can drag/drop FileA into one of the watched directories and everything works fine. But when I drop FileB into one of th...more >>

Microsoft Jobs - Hiring Software Developers - C++, C# - FTE - Redmond, WA
Posted by vidya.mallik NO[at]SPAM gmail.com at 4/17/2006 12:11:49 PM
Hello! Microsoft Windows Server Solutions Group is HIRING!! Mutliple positions at all levels available. All positions are FTE and are based in Redmond, WA. Relocation assistance is provided and visa assistance is also provided. Please contact me for details. Description: Are you interested in ...more >>

Implementing cut-and-paste on a form
Posted by michael sorens at 4/17/2006 11:24:24 AM
I have searched through the MSDN documentation but without success for this very common task: implementing Ctrl-C, Ctrl-V, and Ctrl-X for any of a number of TextBox controls on a form. Roughly it looks like I want to set my form's KeyPreview to true, then I can check for the Control key via...more >>

Properly maximizing this form?
Posted by Brett Romero at 4/17/2006 10:53:09 AM
Let's say I have a panel docked top and a datagrid docked middle. In the panel are three columns and three rows of combo boxes and one search button. Search results are displayed in the grid. Everything looks fine and works nicely. There are more columns in the grid than can be displayed on...more >>

Getting the current instance from within a static method
Posted by AC [MVP MCMS] at 4/17/2006 10:49:38 AM
How do you get the current instance of an executing assembly from within a static method? I'm trying to use the LicenseManager.Validate(type,instance) method and having trouble calling it from within a static method (specifically a console's Main()). If it wasn't static, I'd just call Lic...more >>

Event Not Firing for DropdownList in DataGrid
Posted by AdrEsqu at 4/17/2006 10:21:40 AM
I am trying to use AutoPostback to retrieve the value that was selected in my dropdownlist. The event is not firing for the dropdownlist because the datagrid is being built after the Lifecycle of the Firing Events. So in order to capture my selected value I need to capture it in the OnInit ...more >>

Import text file problem
Posted by Frank at 4/17/2006 10:21:15 AM
Hello, I have a fixed length text file that I want to import using c#. I want to read each line and break it apart. The problem is when I read a line, the data is not in a fixed position, so I cannot substring it out. The line ends with hex 0d 0a If I open the file in Wordpad, it looks ok...more >>

Charts, diagrams
Posted by Lubomir at 4/17/2006 9:58:26 AM
Hi, I would like to ask if you know to recomend any good tool suitable for doing graphical presentations (charts, sophisticated tables, diagrams...), while using C# or C++.NET language. There are plenty of tools available, but I would like to hear some references from people which have ...more >>

What is new in 2.0?
Posted by Doru Roman at 4/17/2006 9:19:37 AM
Hi, Can someone tell me please what is new in 2.0? Thanks ...more >>

Merging XML files with identical schemas in C# ? How to?
Posted by Thanya Teutschbeim at 4/17/2006 7:28:05 AM
I'm trying to use DataSet.Merge, but it works like an Append, and I don't want this. I want to update dataset data. I have two files with same fields and the same xml schema. For example: File 1: <?xml version="1.0" standalone="yes" ?> <Traducao xmlns="http://www.tempuri.org/traducao.xsd">...more >>

Changing focus between textboxes automatically
Posted by egholm NO[at]SPAM gmail.com at 4/17/2006 6:21:28 AM
Hey I'm creating some textboxes dynamically. Everytime a textchange event happens in one of these textboxes, I want the cursor to be active in the next textbox. What do I write in my textchanged event to make this happen? I hope You can help me. Jacob ...more >>

sqlserver performance
Posted by Josema at 4/17/2006 6:09:02 AM
Is there any difference between: executing 2 queries in the same sqlserver database at the same time or Executing 2 queries in 2 different databases at the same time The same conditions for the 2 databases (same query, tables, indexes). The concrete question is: is there any performance ad...more >>

Reading MS Access Memo Field
Posted by M. Noroozi Eghbali at 4/17/2006 12:00:00 AM
Hi All, I used the below code to get the information from a MS Access database file: ---------------------------------------------------- bdpConnection1.Open(); bdpDataAdapter1.SelectCommand.CommandText = "SELECT * FROM Info WHERE Email = '" + email.Text + "'"; bdp...more >>


DevelopmentNow Blog