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 2007 > threads for thursday october 4

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

Does ORM tools work with datagrids or data bindings?
Posted by AliRezaGoogle at 10/4/2007 11:50:32 PM
Hi As I know ORM tools encapsulate table rows in objects. In other words we do not see rows or columns, instead we see objects with properties. But there are some GUI components that work with dataTables and dataRows. As an example a datagrid. A datagrid needs a dataSet or dataTable to show...more >>

Finally which ORM tool?
Posted by AliRezaGoogle at 10/4/2007 11:49:51 PM
Hi Currently there are some good ORM tools like NHibernate and LLBGL. Microsoft is working on it's own one ( I think it's name is EntitySpace) but not released yet. I want to know members idea about selecting one of these ORMs: --Should we wait untill Microsoft release his own ORM? ( and ma...more >>

Distinguishing between data passed by vale or by ref.
Posted by Jay Dee at 10/4/2007 10:30:23 PM
Hi all, I am slightly confused about an odd result that douse not create an error, but also douse not give the result I would expect. My aim was to output data to a text file. If the data was passed by value, output the name and the data. If the data was by ref to output just the name a...more >>

writing a multimedia application
Posted by Talal Itani at 10/4/2007 9:22:33 PM
Hello, I need to write a C# multimedia application, and I am not sure which tools I need. I have the C# compiler. The application is to write audio files to attached MP3 players, through MTP. Is there a development kit, a product, that will make my job a little easy? I searched msdn2, b...more >>

ComboBox OnPropertyChanged problem
Posted by Gerrit at 10/4/2007 7:51:40 PM
Hi, I try to learn programming in c# with databinding controls. Now I have a problem with a ComboBox with the advanced properties for databinding, I want to set the DataSourceUpdateMode to OnPropertyChanged, but then the combobox does not display the right displaymember. Below is my sam...more >>

Uploading a File
Posted by Benjamin Vigneaux at 10/4/2007 7:36:20 PM
Hey! im working in ASP.net, SQL server with C# as language! The user is supposed to upload a file, either in .pdf or .doc format and that file should be stored in the SQL server database... I have no idea how to do that, could anyone drop me a hint or something? I not asking for the whole ...more >>

ContextMenuStrip owner
Posted by Lenusia at 10/4/2007 7:08:01 PM
In my program I dynamically create treeViews and dynamically add nodes to them. To each node I attach ContextMenuStrip which suppose allow delete selected node e.t.c. How from inside click event handling function to find which node was selected? sender is set to ToolStripItem clicked....more >>

Now Microsoft wants you to debug .Net....
Posted by jim at 10/4/2007 6:38:08 PM
Microsoft announced that it will be releasing its source code for the .Net libraries. But, don't get too excited at Microsoft's new SHARED source initiative. According to CNET (at http://www.news.com/8301-10784_3-9790863-7.html), "The source code will be released under Microsoft's Referenc...more >>



Odd program behaviour
Posted by Alistair George at 10/4/2007 4:41:55 PM
Unfortunately, this question will be very vague, because the problem is very vague. I have two projects doing the same job, one works doing drag and drop and the other doesnt. Have followed the program flow, and variables were showing in the debugger as having a text value, but the logical te...more >>

Old database system question.
Posted by Adam Goetz at 10/4/2007 3:12:32 PM
For a possible update of an old system, I'm trying to work out how to connect to a password protected Paradox database table. I've got a connection string that works with the non-password protected files in the same directory, but that one protected control file is critical. Anybody know h...more >>

How to develop "Once For Both Web And Desktop"
Posted by pmbcan at 10/4/2007 2:51:49 PM
There is an article titled : "Write Code Once For Both Mobile And Desktop Apps" at http://msdn.microsoft.com/msdnmag/issues/07/07/ShareCode/default.aspx This is nice. However, I would also like to see an article like "Write Code Once For Both Web And Desktop Apps". It would be extremely ...more >>

Opinions: Warn about online registration checks?
Posted by JT at 10/4/2007 2:30:47 PM
Hi, I would like opinions on a shareware issue. If shareware uses an online database to hold registration codes, which get copied locally and therefore only needs to check online if the shareware is not yet registered or if the registration code was lost, should there be an "Is it okay to go...more >>

RegistryKey.CreateSubKey wierdness on x64 systems
Posted by Bob S at 10/4/2007 1:55:18 PM
I create a subkey using RegistryKey.CreateSubKey and set a value. This happens at design-time so I was under the impression that the key would be created in the 32bit registry. However, the key and its values are found in the x64 registry also. Moreover, if I rename/delete/create values in ...more >>

ContextMenuStrip and MenuStrip sharing items...
Posted by Chris Shepherd at 10/4/2007 1:54:33 PM
Hello group, Using .NET 2.0 and I'm wondering if it's possible to have one common set of items for both a ContextMenuStrip (off a right-click) and a regular MenuStrip. Basically I need a specific menu on the MenuStrip to also be replicated on right click in a DataGridView. Seems easy to me,...more >>

Ongoing file read
Posted by Lilith at 10/4/2007 12:35:17 PM
I'm wondering if C#/.Net would have provisions for the followng. I have an outside application that generates a text file ongoing. I'd like to be able to open the file and read it into a stream that updates/appends whenever something is added to the end of the file. Ultimately I want to scan t...more >>

from the outside looking in
Posted by rodchar at 10/4/2007 11:40:02 AM
hey all, there are some times on our asp.net apps when people on the outside of the network can't see the app and those of us inside the network can see the app just fine. what would be the best way to troubleshoot this? is there a way from the inside of the network simulate what people w...more >>

DateTime Just Month and Year
Posted by Joe Tavares at 10/4/2007 10:55:04 AM
I am using the DateTime.Parse method to parse user entered dates. The dates can be just the year, Month-year and Month-day-year in a variety of formats in a variety of cultures. I immediately parse out the year case since I can determine that very easily (ie it is 4 digits) and store a boolean...more >>

DataGrid vs DataGridView
Posted by Soulless at 10/4/2007 10:38:28 AM
I realize now one of my problems seems to be I was working with DataGrids which come from .NET 1.x. I am now adding a DataGridView which will do what I need, however, there is one weird difference I cannot figure out. The old DataGrid has a caption property. It is a blue strip above the col...more >>

Mobile application
Posted by Alan T at 10/4/2007 10:27:30 AM
Anyone has sample mobile application written in C#? I would like to learn that sort of application development. If there is a little sample application written in C#, can be downloaded from internet into my pocket pc, I want this application can use activesync cradle connect to my desktop databa...more >>

Array.Clear vs List<>.Clear
Posted by Lee Crabtree at 10/4/2007 10:17:20 AM
This seems inconsistent and more than a little bizarre. Array.Clear sets all elements of the array to their default values (0, null, whatever), whereas List<>.Clear removes all items from the list. That part makes a reasonable amount of sense, as you can't actually take items away from an A...more >>

Search Entire Project/Solution
Posted by Soulless at 10/4/2007 9:28:57 AM
Is there a conveninent place to go to search the entire project/ solution for specific occurances of text. for instance, if I want to find where all occurences of "counter" was in my project, is there a search that will return a results set of the references? Thanks! ...more >>

Handle of COM object.
Posted by Piotrekk at 10/4/2007 9:00:30 AM
Hi I am using INCA RTX library which i've added to my project resources. Then i created an object i need to release it manually. I have found example in MSND - how to release com object without using Garbace collector ( because it's simply to slow ). Constuctor of MyResource which inherits ...more >>

cr10 - repeating columns
Posted by dll_wrk at 10/4/2007 8:59:03 AM
Hi all, I have a simple report with 3 columns, but I need to write those columns to the bottom of the page on the left half and then continue to write them on the right half of the page from top to the bottom. So, I need two columns of the columns :) like in newspapers for example. 1aaaaaaa...more >>

ApplicationSettingsBase, Shared between Machines?
Posted by at 10/4/2007 8:52:59 AM
Hello. I am trying to work with the Settings in .NET 2.0. I have a few settings in the VS2005 generated ApplicationSettingsBase class (Properties.Settings.settings). These settings are marked as user scope. I would like to share those user-defined settings between machines (The domain is no...more >>

Datagridview Combobox events
Posted by Dom at 10/4/2007 8:38:07 AM
I have a datagridview control, and one column is a ComboboxColumn. I simply create a ComboboxColumn, add items to it, then add the column to the Datagridview control. If I were working with a simple ComboBox, I could capture an event that fired everytime the selected item changed. Is that po...more >>

Getting TypeLib ID of a COM dll
Posted by at 10/4/2007 8:22:24 AM
Hello! I need to somehow extract the TypeLib ID from a COM-dll compiled using VB6. Is is possible or do I have to look it up in the registry somehow (ie by iterating over TypeLibIDs in HKEY_CLASSES_ROOT\TypeLib\ and matching the DLL path info? Please excuse any inaccuracies in this post, my...more >>

Datagrid checkbox states
Posted by Soulless at 10/4/2007 6:54:04 AM
Hi, I am very new to C# and am trying to figure out DataGrids. I have a DataGrid whos data member (I think that is what it is called) has a checkbox on it. The checkbox defaults to a check that is greyed. We want 2 states, not 3, on or off. Is this possible to do and if so, how? Thanks! ...more >>

dumb remove question
Posted by news at 10/4/2007 6:43:06 AM
Well here's a sample of the code: class someobject{}; ArrayList alist; alist = new ArrayList(); for(int i = 0; i<10;++i) alist.Add(new someobject()); OK now how do I get rid of the 10 objects in alist? Does Remove remove the object and delete it. Or does it just remeove it...more >>

Metaprogramming
Posted by Jon Harrop at 10/4/2007 6:04:01 AM
If you do metaprogramming in C#, is the generated code garbage collected or does it leak indefinitely? -- Dr Jon D Harrop, Flying Frog Consultancy http://www.ffconsultancy.com/products/?u...more >>

C# books
Posted by Sampangi at 10/4/2007 5:44:53 AM
Can anyone suggest me few good books on c# ? TIA, Srinivas ...more >>

C# Class Library: multiple classes
Posted by AA2e72E at 10/4/2007 5:29:02 AM
I have a class library which contains 3 classes; one exposes all its behaviours and the other two are used internally by the public class. My problem is that although I can create an instance of the subservient classes, I cannot see the methods in them from the public class. Could someone g...more >>

page events in C# INIT-LOAD-PRE-RENDER
Posted by mesut at 10/4/2007 3:13:14 AM
Hi colleagues, how are the page events handled in C#? In VB you have the handles keyword. and in C# all the params (object and EventArgs ) are the same for 3 eventhandlers below. a- How does the framework know which one is page_load, and which one is PreRender? Is it because of the name? ...more >>


DevelopmentNow Blog