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# > december 2004 > threads for sunday december 5

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

Domain Model - Collections/Transactions
Posted by aa7im at 12/5/2004 10:57:19 PM
I am trying to design a good domain model for a system I am working on but I am having a hard time trying to figure out how to deal with relations and transaction... For example if I create an Invoice object and then add LineItem objects to the invoice all in memory. How do I get everything t...more >>

Using DLLImport with a function requiring char *
Posted by Jason Bell at 12/5/2004 10:03:36 PM
I'm an experienced programmer, but a newbie to c#, so please be kind :) In a c++, unmanaged, DLL of my own making I have a function called void XGL_Core_SetCaption(XGL_Core * core, char * caption); Using DLLImport I've gotten all functions working except for the ones requiring char * . ...more >>

Sending email
Posted by GM at 12/5/2004 8:55:01 PM
How can I send email with data from a database field that contains formating? thanks, George ...more >>

Display html from database field
Posted by GM at 12/5/2004 8:35:05 PM
Is it possible to display html stored in a database field into a textarea? How can you display the html and allow editing? thanks,...more >>

bug... in InvalidPathChars
Posted by David Krmpotic at 12/5/2004 7:52:30 PM
string s = ""; for(int i = 0; i< Path.InvalidPathChars.Length; i++) { s += Path.InvalidPathChars[i] + " "; } MessageBox.Show(s); shows only " | < > but there should be at least two more: ? and * Can you confirm the bug or is that normal behaviour (how could it...more >>

Global application interrupt
Posted by Tamir Khason at 12/5/2004 7:35:52 PM
I need the way to interrupt (freeze) ANY program currenlty running at the computer, then to activate the application and return the previous applications state after my application execution. Is any way to do it managed? TNX -- Tamir Khason You want dot.NET? Just ask: "Plea...more >>

Damn frustrating problem :-(
Posted by Simon at 12/5/2004 6:51:11 PM
Hi everyone, I'm having a really weird problem. I'm sure its my fault and that I'm just being stupid but here goes. I hope someone can help: I have a collection class called RolesCollection. Which as you might expect holds Role objects. Instantiating the RolesCollection class calls some...more >>

How to Insert New Row Into DataTable or TableRow
Posted by kelvinweb NO[at]SPAM gmail.com at 12/5/2004 5:49:21 PM
Same as subject !...more >>



Session string error?
Posted by newsgroupie at 12/5/2004 4:47:08 PM
Hi Newsgroupies, Anyone know why this fails In WebForms? Session.Add("fExample", double.NaN); double fExample = (double)Session["fExample"]; if(fExample == double.NaN) { // The program does not come in here (as expected) ... } else { // The program co...more >>

Beginner: How do I make form visible again?
Posted by Dave at 12/5/2004 4:45:44 PM
I have a button on Form1 that hides the form and displays Form2: Form2 myForm2 = new Form2(); myForm2.Show(); this.Hide(); After I do some work in Form2 I want to close it and redisplay Form1. I can close the form with: this.Close(); But how to I invoke the Show method...more >>

Open file dialog with strange file name
Posted by sutcliffe_grant NO[at]SPAM hotmail.com at 12/5/2004 3:39:00 PM
I am needing to permit users to select files using the 'Open file' common dialog box. The format of the names of the files are along the names of: GB00((&X.001.jpg I am not able to show these files in the dialog box for selection. I do need to use filters (cannot use (*.*| all files) I tri...more >>

Beginner: Referencing a control on another form
Posted by Dave at 12/5/2004 3:35:44 PM
I have two forms, Form1 and Form2. From Form2, how do I reference the value in a control on Form1? Or perhaps a more specific question: Form1 contains a textbox with the value of 10. This form is hidden. Form2 is active and a user enters a value of 2 into a blank text box. How can I add ...more >>

having a hard time with things falling out of scope please help
Posted by sparks at 12/5/2004 3:26:50 PM
I am building a web ap and have a webform1 an agreement.cs and a files.cs going to an access database I am not having problems reading or writing to the database but I have hit a snag on how to keep my variables from falling out of scope to write back to the webform. in webform1 I am calling a ...more >>

Programming Practicies
Posted by Doug Durrett at 12/5/2004 3:24:04 PM
I'm an old VB6 guy and in VB6 I could Open up a DataConnection object as PUBLIC and use it anywhere in the application. What do I do in C# or what is the "right" way. should I be creating a new connection EVERY time I need something from the Database? Just basics.... Thanks In Advance. D...more >>

Hashtable, enum as a key
Posted by Mikolas at 12/5/2004 2:39:05 PM
When I use, enum as key with Hashtable the HT doesn't work properly. It works fine when I explicitly change the type to the undelying one. But it frustrates me, since I haven't seen anything about that in any doc and is it olny enum? thanks, mikolas...more >>

What is PeekChar() ???
Posted by Mikolas at 12/5/2004 2:35:03 PM
I was trying to use BinaryReader.PeekChar to "peek" the next byte, that works fine unless the byte value's above 127 .... is there anything I can do abouit it? thnx, mikolas ...more >>

.config
Posted by Doug Durrett at 12/5/2004 2:02:56 PM
New and Lost... I have a C# (Windows App) and I'm trying to get the .config file to work. The name of my application is FinalLogger I have FinalLogger.exe.config file in the same folder as the project files. For some reason it acts like I don't have a file, or like it can't find the conf...more >>

Forcing Explorer to close open windows in C#
Posted by Paul Steele at 12/5/2004 1:11:10 PM
Is there any way to check for open Explorer windows and if any are found, tell Windows Explorer to close them. I don't want a brute force method of killing Explorer and letting it restart. I'd prefer something a little less drastic. I suspect what I'm going to need is some API call such as S...more >>

recieving an array to the client
Posted by Johan at 12/5/2004 12:55:04 PM
Hello! I've got a little problem here. I'm sending an array with customers to the client who takes care of the array prints it out on the screen. The problem is that only the last element is being printed out and not the whole array. the return statement from the proxy looks like this: ...more >>

Threading problem (incredibly straightforward mutex usage not working)
Posted by Tyler Sample at 12/5/2004 11:44:32 AM
I've been having strange thread conflicts, and after moving the relevant mutex higher and higher I've finally determined that the mutex doesn't seem to be working at all. Here is the relevant code: private static Mutex previewMutex = new Mutex(); private static void preview (string source...more >>

Overriding newbie question.
Posted by CobraStrikes NO[at]SPAM al.com at 12/5/2004 11:23:37 AM
Hi, A control has privtae void MethodA() { //etc MethodB(); { // NO CODE, THE PROGRAM WHICH WILL INHERIT THIS CONTROL WILL PROVIDE THE CODE. } I hope this make sense, I have tried using virtual and override without success the control always calls its own methodB any help/th...more >>

Unmanaged DLL .NET Access to XML read/write routines
Posted by carbon_dragon NO[at]SPAM yahoo.com at 12/5/2004 8:07:40 AM
This is a followup to my question in doing unmanaged DLLs in .NET. I was able to create the DLL and the application was able to see it. So far so good. Now I need to make that unmanaged DLL read an XML file which contains a scenario I plan to follow within the library. Basically this DLL is an...more >>

Cant Connect to Data base
Posted by liranby NO[at]SPAM hotmail.com at 12/5/2004 5:56:58 AM
Hi every body I have a problem with accesses and visual studio. I've just installed XP and I can't get a connection with the Data base. I have this error and I don't know how to fix it The Microsoft Jet database engine cannot open the file 'C:\Inetpub\wwwroot\Manufactor\DBManufactor\dbmanufac...more >>

passing form controls to subordinate objects
Posted by _BNC at 12/5/2004 3:51:31 AM
This might be best for the comp.objects group, but I have a feeling that C# programmers encounter this often: You have a nicely partitiioned program with well-organized creation of objects, but now you need one of the objects to set a lot of values on form controls. Normally, with a limited n...more >>

Debug vs Release for large projects
Posted by _BNC at 12/5/2004 3:43:42 AM
Well, it started as a series of tools for supporting a project, but I've got a large number of project directories with .SLN files that are used by a rapidly-growing EXE. First question: What is the easiest way to switch between debug and release builds? Each of the support assemblies will h...more >>

new row in LABEL control?
Posted by Bad_Kid at 12/5/2004 3:26:03 AM
label.text = "bbb"; label.text += // new line ??? "\n" doesn't work... ??? ...more >>

Its the little things that really annoy me
Posted by Steve Le Monnier at 12/5/2004 2:21:34 AM
Is there any quick way of fixing combo boxes or radio buttons so that on an enquiry screen its possible to read their contents. As they don't have read-only properties the only method available is to use the enabled property, but this given an almost unreadable GUI. In the VB days we used to d...more >>

How to dynamically create schema for DataSet?
Posted by deko at 12/5/2004 1:44:23 AM
I will be using the XmlDataDocument class to create a typed DataSet from an XML file and an XSD file I've created that defines a few constraints and one relationship. The initial data from the XML file looks like this (but this is only a starting point): <Projects> <Project> <ProjectN...more >>

Events and Delegates
Posted by Manco at 12/5/2004 12:23:49 AM
I've read that events are a C# implementation of the Observer design pattern which states that: There is a source object providing an event, subscriber objects can subscribe to the event and the the source object is responsible for notifying all events, with 2 parameters part of the event, ...more >>


DevelopmentNow Blog