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# > july 2006 > threads for monday july 24

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

how to write into XML
Posted by moorthy thangavel at 7/24/2006 11:26:13 PM
i have a text file that has delimiters. (i.e. MSH|^~\$|ADMIT|CLAY COUNTY MEMORIAL|||200502110938||ADT^A01|00860|P|2.2|||||| ) Using C# i need to Read this file, segment by segment and write these segments into the appropriate XML tags of a XML file I have considered the datas within the deli...more >>

Should be simple Q
Posted by Michael C at 7/24/2006 11:04:06 PM
I have an app that references 2 dlls that I have written, call them A.dll and B.dll. In addition A.dll also references B.dll and all works peachy. The problem is that A.dll will rarely be changed whereas the app and B.dll will change on a regular basis. Is there a way to avoid compiling A ever...more >>

How to Access C DLLs from C#??
Posted by neeraj.krishna NO[at]SPAM gmail.com at 7/24/2006 10:44:03 PM
Hi, Is there anyone who has tried accessing C Dlls from C#? I got to know that its Platform invocation Service, but did'nt get enough documentation. Can you give me some links to it? Especially when a Struct is defined in C, how do I use it in C#. For example, if there is a structure in C ...more >>

mbox
Posted by mbox at 7/24/2006 10:26:34 PM
hi guys, i want to know how to display message in asp.net with out using javascript.....more >>

Form an image from received bytes from server and display that image into the picturebox
Posted by nishi.hirve NO[at]SPAM gmail.com at 7/24/2006 9:53:18 PM
Hello, I am writing 1 client-server application in which I have written my server in C on linux system and client in C#. My server is sending image bytes of that image size to the client. After receiving image bytes on client side, I want to form an image from received bytes and want to dis...more >>

Handle+mouse_event
Posted by Abhishek at 7/24/2006 9:40:26 PM
Hi, how do I pass the handle of a control to the win32 api mouse_event. so that it will create the click event on that application only even if there is any other window in front of it. I dont what to set focus. I just want the click event to happen in that window directly. Regards ...more >>

Can Someone Help me figure this out? Not only finding multiparts
Posted by Extremest at 7/24/2006 9:34:32 PM
Here is the code I have so far. It connects to a db and grabs headers. It then sorts them into groups and then puts all the complete ones into another table. Problem I am having is that for some reason now it is not finding ones that are single posts. Here is an example of a header for a sin...more >>

GridView - I've gotta be missing something...
Posted by Richard Carpenter at 7/24/2006 8:37:40 PM
I have a simple winform with a customers combobox, a "get orders" button and an orders grid. Due to other requirements, I have implemented the form to allow the user to select a customer from the combobox and click the "get orders" button to refresh the gridview with the selected customer's orde...more >>



VS2005 - Help returns nothing during search
Posted by Bishman at 7/24/2006 8:21:04 PM
Hi, I have an odd problem that someone else may have come accross. VS2005 Pro. Fulll MSDN Installed. Search set up to only go local (Not online) On Friday I noticed that I was getting no results back from my searches. I investigated today (Monday) and have determined that when signed on...more >>

About WebService in WebApplicaiton
Posted by ad at 7/24/2006 8:07:40 PM
I add a WebService (*.asmx) in a WebApplication. My web application use Form authentication. But when I open the .asmx in IE, it result in an error: No htmlform ! can't set MaintainScrollPositionOnPostback How can I do? ...more >>

C# Generics bug ? : Delegate can be used as Type in Generic Dictionary
Posted by Bill Woodruff at 7/24/2006 7:54:55 PM
< note : this message was sparked in part by comments by David Browne on a previous thread : "inserting an anonymous method as a value in a generic dictionary ?" : David had shown the use of 'Delegate as a valid Type declaration for the Value of a Generic Dictionary. > I am curiou...more >>

Casting via generic?
Posted by Brett Romero at 7/24/2006 6:17:18 PM
Is there a way to get a generic type and use it to cast an "object"? For example: SomeClass<T>{} Used as: SomeClass<MyClass> sc = new SomeClass<MyClass>(); I'd like to get MyClass as a type out of sc and do this: (sc.GenericType)SomeObject; or what ever that syntax will look like. ...more >>

Third party components
Posted by Alan T at 7/24/2006 6:05:03 PM
I found a thirtparty component but have no idea how to integrate into VS 2005 IDE? The files come with project file and solution files. ...more >>

audio recording. Need Help
Posted by zhangzhi at 7/24/2006 5:59:18 PM
HI£º i have a big problem about audio recording. my boss wanna a application of audio monitor, and he wanna it will detect voice and start recording automatically, avoiding recording silences. thanks for giving me a little clue, and Great U for sending me a copy of code of C#. or I will b...more >>

Add-in in C#
Posted by kvicky at 7/24/2006 5:49:11 PM
I am trying to create a Addin for visual studio 2005. I am able to add the Add-in to the Tools menu and to the context Menu and my Add-in functionality also works fine.But I want to bring the Add-in option in a separate form when I try to start a Method. For example If I type Public Void and pre...more >>

Listview item
Posted by Alan T at 7/24/2006 3:53:01 PM
Is it possible to display 2 lines on a listview item ? In addition, I want to dispaly the second as hyperlink with color. ...more >>

typeof check for nullability
Posted by Andrew Robinson at 7/24/2006 3:47:31 PM
I am guessing there is a simple solution but given a type T, how can I check for nullability? how can I accomplish the following? bool nullable = typeof(int).IsNullable; // false bool nullable = typeof(int?).IsNullable; // true bool nullable = typeof(string).IsNullable; // true Tha...more >>

Is there any file size format function in c#?
Posted by thi at 7/24/2006 3:06:38 PM
Hi, Just wondering whether there is any filesize format function in c#? The reason i ask because i want to display the file size just like windows e.g. 100 KB, 1MB, 1GB etc... I am kind of hoping there is a method already built in c# as currently i have to write a custom one and it look...more >>

Resize without scrollbars
Posted by John Kraft at 7/24/2006 3:05:03 PM
I have a listview control that I want the columns of to remain a proportional size filling the listview completely. In the listview's Resize method, I calculate the new sizes and all looks fine. Sometimes, but not always though, scrollbars appear. The scroll bar has nowhere to scroll (because ...more >>

Creating an object with a variable
Posted by DaveD at 7/24/2006 2:27:58 PM
OK, this may be simple, but... I have a 5 classes, they all bring up a form to edit a table, and they're all derivied from a virtual class. The user is allowed to pick a table to edit from a drop-down list that was populated from a SQL table, this table also contains the name of the class that...more >>

In a Windows Service how do I fail an OnStop() method
Posted by marccruz NO[at]SPAM gmail.com at 7/24/2006 2:16:47 PM
Hi, I am writing a Windows Service in C#. I want to gracefully fail the "protected override void OnStop()" function. To do this, I first tried throwing an Exception in the function. However, that left the Service in a "Stopping" state. I would like to fail the Service in the OnStop funct...more >>

DataGridView column order?
Posted by David Veeneman at 7/24/2006 2:12:21 PM
I've added an unbound column to a bound DataGridView, and I want the unbound column to be the last column in the grid. But whenever I recompile, the unbound column is the first column in the grid. I'm guessing the problem has to do with the grid's AutoGeneratingColumns property-- perhaps th...more >>

In a Windows Service how do I fail an OnStop() method
Posted by marccruz NO[at]SPAM gmail.com at 7/24/2006 2:07:57 PM
Hi, I am writing a Windows Service in C#. I want to gracefully fail the "protected override void OnStop()" function. To do this, I first tried throwing an Exception in the function. However, that left the Service in a "Stopping" state. I would like to fail the Service in the OnStop funct...more >>

Does C#.Net support Layout managers?
Posted by Anoop at 7/24/2006 2:06:18 PM
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it can be done using the designer but I intentionally don't want to use that. The one reason is t...more >>

Getting a simple treeview example to work
Posted by metaperl at 7/24/2006 1:41:05 PM
Hello, I'm trying to get the MSDN documentation example of a treeview to work: http://msdn2.microsoft.com/en-us/library/system.windows.forms.treeview.aspx I made the function static and added a call to it in Main(): static void Main() { Application.EnableVisualStyles(); ...more >>

treeview question
Posted by DBC User at 7/24/2006 1:38:03 PM
Hi All, I build a tree with date and under each date I have some entries. The key for each entry is a unique number. I used the mousedown event to find out which node is selected. But my question is how can I find out the associated key of selected node? Thanks. ...more >>

An Exception 'System.Security.SecurityException' has Occured in pIntegration.exe
Posted by Coder at 7/24/2006 1:35:24 PM
Hi My C# .Net Application runs fine on local machine, it s also runs fine on windows 2003 server installed machine, but on my client machine, when I am trying to run my application from mapped server path, It returns below error message and Just In Time Debugger runs on client machine.. ...more >>

ICustomFormatter fails in .Net 2.0
Posted by sjoshi at 7/24/2006 1:27:54 PM
Hello I have a class that worked in 1.1 but fails now on 2.0 on same data. Any ideas are appreciated. public class TSFormatter: IFormatProvider, ICustomFormatter { #region IFormatProvider Members public object GetFormat(Type format) { return this; } #endregion #regio...more >>

How to set the size of the "Client Area" of a Custom control ?
Posted by TheSteph at 7/24/2006 1:19:42 PM
Hi, I've made a CustomPanel derived from the Panel class. How can I set my own size of the "client area" of that CustomPanel ? ("client area" = Size of the rectangle in which one can drop controls from the toolbox, or place a control by code) Because of the large border, some control t...more >>

hello world example
Posted by Tony Johansson at 7/24/2006 1:09:40 PM
Hello! Here I have a very easy hello world example. This example works fine. I just wonder how can it work when I have private on the Main method. I would think that the operating system would not be able to call this Main method when I have decared it as private. Normally this private is ...more >>

RegExpert required
Posted by pigeonrandle at 7/24/2006 12:43:48 PM
Hello, Does anyone know what RegEx i can use to extract the 'values' from an INSERT INTO ... VALUES ('one','two','three'). This is obviously a simple example because a value might have a -> ' <- in it. I'm not sure how to get RegEx to ignore things... Cheers, James Randle. ...more >>

Automating my application
Posted by Steve Barnett at 7/24/2006 12:36:57 PM
I want users to be able to automate my C# application, just as I can automate other apps such as Word and Excel. Any suggestions as to how I go about this please? I just need a bit of a starter or a tutorial. Thanks Steve ...more >>

Binary serialization + strongly named assemblies + GAC problem
Posted by Harold Howe at 7/24/2006 12:31:55 PM
I am having a problem deserializing objects from a library when the following conditions exist: 1- The library is strongly named 2- The serialized file was created with version 1.0 of the assembly 3- I am trying to deserialize from an EXE that references version 2.0 of the assembly 4- Bo...more >>

config file problems
Posted by cody NO[at]SPAM garcia-co.com at 7/24/2006 12:12:45 PM
I keep getting a null reference when trying to access my config file through my windows service, I have placed the xml config file in my debug folder with my .exe, and my code is shown below. //where I call the app.config file f = X10Unified.Senders.Firecracker.GetInstance(Int32.Parse(System....more >>

Memory allocation for value types...
Posted by veera sekhar kota at 7/24/2006 12:06:01 PM
We know that value types are stored at stack are and reference types are stored at heap area... If class is look like this.. class Sample { int count; double sal; } class MainEntry { static void Main() { Sample Obj=new Sample(); } } Here whe...more >>

Scale a grahics path
Posted by Ben Riches at 7/24/2006 11:54:04 AM
Hi, I am having a bit of trouble with scaling a graphics path. I have a track bar and when I scroll I want to scale the graphics path by that amount, the problem is that the shape in the graphics path gets larger but the left and top have changed. How can I have it so that when I scale i...more >>

Inheritance at executing time
Posted by André Nobre at 7/24/2006 11:40:12 AM
Hi folks, I don´t know if this is possible. I want to make a class inheritance while my program is running, depending on my user´s data. Can I do this? Any ideas? Thanks! ...more >>

Threaded Bindings don't update
Posted by Marc Gravell at 7/24/2006 11:37:12 AM
In the following example, the Bindings don't update the UI if the property change is triggered from the non-UI thread - see the async button - from the listbox contents (and observation) the change to the object has occurred correctly; have I got a foobar somewhere, or is this the expected beh...more >>

Insert .jar (applet) into a winform.
Posted by Kevin at 7/24/2006 11:36:06 AM
Hi How can i insert a .jar (applet) into a winform? Thanks. ...more >>

Service problems
Posted by cody NO[at]SPAM garcia-co.com at 7/24/2006 11:16:58 AM
I can't seem to get this windows service to work properly, I get a message about some services stopping automatically if they have no work to do, I suspect it may be with the way I start the timer in the OnStart method, any help is greatly appreciated. using System; using System.Collections.G...more >>

test
Posted by test at 7/24/2006 11:14:01 AM
test...more >>

Multiple Event Handlers for Single Event
Posted by pagates at 7/24/2006 11:11:02 AM
Hi All, I have an issue where I'd like a single global event to be handled by multiple event handlers. In this case, I would like a "global" (static) Menu Item that I create in a class, and I'd like the controls that use this menu to each react to its Click event. Perhaps I've been spen...more >>

Dynamic Properties ?
Posted by cwertman NO[at]SPAM gmail.com at 7/24/2006 8:35:59 AM
I have a question regarding dynamic properties. I have an Object say Account --Id --Prefix --Fname --Lname --Suffix --RecordType This is in a Application Service Provider Model, so say Client 1 has only those properties available for account. NOW Client 2 has some additional requi...more >>

Compare to previous line
Posted by gwenna NO[at]SPAM gmail.com at 7/24/2006 8:20:21 AM
I have problem. I am reading a text file using a streamreader and I want to check if a field in the line I'm reading is the same as one in the line previously read before doing something but .. when the line I'm reading is the first line, I get an error... How can I check that the previous lin...more >>

Passing Objects Into Worker Thread Function
Posted by joey.powell NO[at]SPAM topscene.com at 7/24/2006 8:04:38 AM
I am using VS2005 for a windows forms application. I need to be able to use a worker thread function to offload some processing from the UI thread. The worker thread will need access to a datagridview on the form. I am using the following code to spawn the worker thread... Thread WorkerThread ...more >>

Alternate to MSMQ
Posted by DBC User at 7/24/2006 7:52:56 AM
Hello, Is there an alternative approach to MSMQ for delivering messages? I am planning to develop an app which I don't want clients to install MSMQ (or do anything otherthan install my app). I was want to pass messages between two programs and my first approach was MSMQ and it worked perfectl...more >>

Hashtable
Posted by Mike Barakat at 7/24/2006 7:41:27 AM
Hello, I'm using hashtables in c# as my primary application database, when the application loads its deserialize the contents of a file (that has been serialized) into the computer memory. The above method is very good when it comes to speed and performance as i have data retrieval is time ...more >>

Update a DataTable using an SQL Statement
Posted by pigeonrandle at 7/24/2006 6:51:37 AM
Quite simply, is this possible? I can only find information on DataTable.Select() It would be nice if it was :-) James Randle ...more >>

Getting location in a scrollable picturebox
Posted by jediknight at 7/24/2006 4:14:05 AM
Hi, I have a scrollable view which contains a picturebox. I need to get the location of the top let hand corner of the view so I can draw an icon. When the picturebox is scrolled vertically I need the icon to remain in the top left hand corner of the view. At the moment whenever I scroll the...more >>

DataGrid Printing Problem
Posted by Jay at 7/24/2006 3:49:47 AM
Hi, I have this problem with DataGrid printing. I have a page which contains only DataGrid. When i try to print the page, only 1st page contains the verticle and horizontal lines of the grid. The rest of the pages do not contain any lines. Second thing, between pages while printing th...more >>

problem_with_=A3_being_posted_back_to_site
Posted by teesea77 NO[at]SPAM googlemail.com at 7/24/2006 3:24:06 AM
Hi I'm having a bit of difficulty with some text encoding, the problem is that i have set up all posts so that "ISO-8859-1" is used so that when a user adds the pound symbol "=A3" in a text area field then character is encoded to "&#163" and if the user includes "&" in the text area then the ...more >>

Writing SQL strings - style and clarity
Posted by David++ at 7/24/2006 2:59:02 AM
Hello, Just wondering how you all deal with writing large SQL strings when coding database functionailty. Some of the SQL strings can get quite long and it looks a bit messy and hard to read in the code. Is there a good way to write the SQL so it remains neat, clear, readable and manageable...more >>

Simple hashing
Posted by Maya at 7/24/2006 2:24:52 AM
Hello all, I'm using MD5 hashing in my application to give unique values to huge list of items my application receives, originally every item's name was difficult to use as an id for this item although its unique but because it had certain characters and variable lengths I ended up using M...more >>

Prevent The Cruelty
Posted by preventthecruelty NO[at]SPAM hotmail.com at 7/24/2006 1:53:11 AM
Please excuse this offtopic post but I am trying to spread awareness of atrocities being commited to animals. If you love animals as I do, please help prevent the cruelty by boycotting IAMS and EUKANUBA products for their inhumane treatment of animals. Please spread the word! http://www.i...more >>

C# richtextbox
Posted by Arjen at 7/24/2006 12:28:30 AM
Hi, I know that there is a free C# richtextbox control to use with ASP.NET webpages... but I can't find it any more with Google.com... Does some one knows a good and free to use richtextbox control? Thanks! Arjen ...more >>

A problem with porting 1.1 to 2.0
Posted by Udi at 7/24/2006 12:22:00 AM
Hi All, I have a function that I need to call on reflection that has an out parameter (maybe more than one). My problem is that I'm not receiving the out values. The following code works fine on VS2003, but not on 2005: ArrayList myArgs = new ArrayList(); Int outVal; myArgs.Add( outVal )...more >>


DevelopmentNow Blog