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

Reading config file other than web.config
Posted by M Irfan at 4/16/2007 11:57:41 PM
Hello all, Recently I have started working in .NET 2.0. I am developing a web service application that references a DLL component written in C# 2.0. The component has its own config file which contains settings related to business logic coded in that component. I can reference and load the co...more >>

Compile time constants
Posted by newscorrespondent NO[at]SPAM charter.net at 4/16/2007 11:43:43 PM
Is there a way with Visual Studio 2003 and 2005 to list the name a value of compile time constants like those created with #define statements. Right now I have the need to use the same C# code in 2003 and 2005 and need to know which version is doing the work. I could create one but if there is ...more >>

Modify a const string via reflection/unsafe code?
Posted by wizofaus NO[at]SPAM hotmail.com at 4/16/2007 11:19:49 PM
Given the following code: public class Test { static unsafe void StringManip(string data) { fixed (char* ps = data) ps[0] = '$'; } public const string Const = "Const"; public static readonly string ReadOnly = "ReadOnly"; static void Main(string[]...more >>

Open last form if application starts
Posted by Andrus at 4/16/2007 6:57:44 PM
I have WinForms MDI application. MDI child forms are created by menustrip click enent handler AppDesktop.FormMgr.Show(new ChildForm1("param1", "param2") ); Every MDI child form "childform1" may have separate class with different name and different number of parameters. When application in ...more >>

Attaching Class Files To Each Other
Posted by rlrcstr NO[at]SPAM newsgroups.nospam at 4/16/2007 6:09:35 PM
I have a class that I started writing, then decided to have it inherit = from UserControl. I edited the class declaration to make it a partial = class, but when I edit the designer, the changes are place in the main = ..cs. So I created a Designer.cs file and added all the code that's = typical...more >>

Hardware question
Posted by L.W.C. Nirosh at 4/16/2007 5:18:08 PM
I just got this question form a client and I cannot figure out a answer .. can some one help me out here.. He need me to give the hardware configuration for a server that host a system which does this... An application that could potentially host 500,000 registered users that wou...more >>

Help! How many layers in my app?
Posted by Burt at 4/16/2007 4:01:03 PM
There's an architect at my 200 person company that advocates having many layers in all my C# apps. He wants web services, use case handlers, facade layers, data gateways, etc. When I ask why all this complexity is necessary, he gives me what if scenarios: "What if you ever want to access the b...more >>

I need help with asynchronous calls in C#
Posted by intrader at 4/16/2007 3:57:54 PM
What I have is a class A with a method Foo. I would like to create a thread that instances A and then calls Foo asynchronously while performing other duties. I think that the solution is to write an asynchronous version of Foo so that the caller can pass a callback as in the signature: p...more >>



More RegEx Questions
Posted by Shawn B. at 4/16/2007 3:29:44 PM
Greetings, Lets say I have the following expression: (<A|ABBR|ADDRESS|APPLET(\s){1,}(.*?)>(.*?)</A|ABBR|ADDRESS|APPLET) Such that it'll match any HTML tag that opens with the above specified (simplified for brevity) and the closing tag as well. Assuming that I had a list of opening pos...more >>

ForEach - controls - order...?
Posted by JamesB at 4/16/2007 2:59:11 PM
Hi, I have a foreach... on a bunch of checkboxes in a groupbox. What order will this work in? I have to leave my processing on two of the checkboxes until after the others... is there any way to determine/alter the order it works in? ...more >>

Property renaming?
Posted by Johnny Jörgensen at 4/16/2007 2:18:14 PM
Is there any way of renaming the properties of standard controls. I want to create a TextBox control inherited from a normal textbox control, but I want to use the property for something else. Let's say the program sets the Text property to "Mickey", then I want the TextBox to Show "Donald"...more >>

Distributed chat server
Posted by Ronald Green at 4/16/2007 2:14:03 PM
Hi, I have this theoretical problem: Say that I need a chat server that also has a database where it saves all conversations. However, I need several servers for availability and load balancing. Now arises the problem of how to synchronize the servers in the shortest interval (synchronize dat...more >>

Usercontrol Property loses value at runtime - I don't get it?
Posted by Johnny Jörgensen at 4/16/2007 2:11:21 PM
Hi y'all I've got a custom control that is inherited from a normal TextBox. To that, I've added a new property that I call "Units", Which is a collection class containing members of a "Unit" class. When I put my Textbox on the form, I can access the "Units" property from the IDE's proper...more >>

Communicating over a network
Posted by pigeonrandle at 4/16/2007 1:54:18 PM
Does anyone have anything to say about using xml to communicate between client and server over a tcp network connection? If the data i am sending is reasonably small, then i presume the added overhead of processing the xml is negligible (in comparison to just reading integers and strings, etc of...more >>

DataView case sensitive
Posted by Tomo at 4/16/2007 1:41:51 PM
I need to search data in DataView with RowFilter property but I need that searching is case sensitive. How can I do that? ...more >>

Mr. Mcmohan gets his head shaved
Posted by foto at 4/16/2007 1:13:21 PM
Mr. Mcmohan gets his head shaved http://www.teenwag.com/playvideo/4064 ...more >>

Threading & Events Causing Cross Thread Problems
Posted by JasonX at 4/16/2007 12:40:21 PM
Im having problems with my program, in that if I close the main form while my new thread is doing work which involves writing to the main form, then I get an error about a disposed object. To fix this, i have added an event, with the aim the main form subscribes to the event when it is crea...more >>

Executing lenghty code in another process
Posted by Victor Rosenberg at 4/16/2007 12:28:24 PM
Hey guys How can I painlessly execute some heavy processing in another process, so the main application may still be closed, but the processing will continue until its done? Also, how can progressing events be implemented in this scenario? Thanks in advance ...more >>

Turning Off .NET Control Sound When Tab Key pressed.
Posted by mikebabb NO[at]SPAM cableaz.com at 4/16/2007 12:18:54 PM
I have overridden the IsInputKey method on several .NET controls to allow and handle tab keypresses. However, now, when the tab key is pressed an audio alert is sounded. Can anyone tell me how to turn this off? ...more >>

string help
Posted by rodchar at 4/16/2007 11:46:19 AM
hey all, if i had a list like ColorRed TestBlue NumberTwo What's the easiest way to insert a space between each word? thanks, rodchar...more >>

launch a thread with a NON-VOID method?
Posted by titan nyquist at 4/16/2007 11:18:52 AM
I have launched threads with void methods, like so: TestClass testClass = new TestClass(); Thread testThread = new Thread(testClass.Launch); testThread.Start(); Where testClass.Launch is void, this works. I want to make testClass.Launch return a value (bool). Can I do this? Titan ...more >>

Tray process question
Posted by DBC User at 4/16/2007 10:58:34 AM
I have written a tray program and I want the program to perform some scheduled job like copying files etc., My question is, if the user leave the computer on but the program in hibernated mode, will the program will run? Lets say, my tray program checks the timer and if it is 8:00PM, then it sh...more >>

Hiding the windows taskbar.
Posted by Mufasa at 4/16/2007 10:51:09 AM
Is there a way to hide the windows taskbar. Or change the option to auto hide it ? Thanks. ...more >>

local keyboard hook
Posted by bizcor at 4/16/2007 9:42:41 AM
Is it possible to do a local keyboard hook to a process running in a new thread. The process is a command line application and is instanciated when a button is pressed on the main form. I have had the hook working Globally, but this means that the hook logs keystokes from the main app as well as...more >>

Inheritance from SPFile class.
Posted by Guillaume at 4/16/2007 8:58:43 AM
Dear All, I am trying to make a class that inherits from SPFile sharepoint class: public class NDFile : Microsoft.SharePoint.SPFile { ... } When compiling, I get the following error: "The type 'Microsoft.SharePoint.SPFile' has no constructors defined" As Sharepoint documentatio...more >>

Selecting rows on a datagrid via code
Posted by ewingate NO[at]SPAM gmail.com at 4/16/2007 8:35:41 AM
I have a form with two text boxes, a button, and a datagrid control which is bound to my SQL DB. There are two columns on the datagrid, one for each of the textboxes on the form. I have already implemented code which will put (both ints) data from the two columns into their respective text boxes...more >>

get only dates within current month?
Posted by soni2926 NO[at]SPAM yahoo.com at 4/16/2007 8:28:19 AM
Hi, I have a web application, asp.net and c# done in 2.0, which is going to return rows from the db with dates or certain events. The db is going to have events dates for the entire year, but on the site we just want those events for the current month. Is there a way to check this, check as e...more >>

Proper way to handle UnauthorizedAccessException
Posted by cbmeeks at 4/16/2007 7:22:23 AM
I have a project that gathers a list of directories on a computer. When it hits hidden, protected directories (like c:\system volume information) it throws an UnauthorizedAccessException error. As a quick fix, I've captured that error in a try/catch block and just ignored it (including ignorin...more >>

tiff image in an Image control
Posted by Rinu Gopalakrishna Pillai at 4/16/2007 6:56:01 AM
Hi, I have a C# Web application , in which I need to show tiff image in an image control.The image loading is from a bitmap object and not from a file. Please advise me .... Thanks and Regards Rinu ...more >>

Generics lists and cloned combobox controls
Posted by Lonifasiko at 4/16/2007 6:38:13 AM
Hi, I'm having quite a strange behaviour when using Generics classes and ComboBox controls in Winforms applications. Hope somebody has seen the same behaviour. Two combobox controls in my form. I want to load them with same data. I've got a generics list full of drinks (List<Drink>). If ...more >>

unicode xml file
Posted by Nand Kishore Gupta at 4/16/2007 4:40:04 AM
Is there a way to create an xml file in unicode format in MFC. I want to write some content in XML file using MFC. The contents may be in different languages. Thanks in advance. -- Nand Kishore Gupta...more >>

VS2005 + Vista?
Posted by Bishop NO[at]SPAM OnTheBoard.com at 4/16/2007 3:08:54 AM
So what is the best version of Vista to use with VS2005?...more >>

different values for debug and release
Posted by eladla at 4/16/2007 1:56:02 AM
Hi. I was wondering if it was possible to give a variable different values depending on if the code was compiled in debug or release? i.e. if the code was compiled in debug: string strConnection = "Server1"; if the code was compiled in release: string strConnection = "Server2"; Thanks!...more >>

Continuing SQL Express problems
Posted by RichGK at 4/16/2007 1:55:03 AM
I recently posted about my problem with connecting to a SQLExpress database from my C# application. One of the suggestions made to me was to download the Server Manager for SQLExpress so that I could create user accounts this way. Unfortunately, the database that was created from within Visual...more >>

Format a field into currency
Posted by peter NO[at]SPAM eway.com.au at 4/16/2007 1:05:23 AM
Hi, I currently have a field which stores an amount in the database as an integer. It is stored as cents, so 155 in the databse it is really $1.55. Problem is when I Bind it to a datagrid using the Text='<%# Bind("RecurringPaymentAmount", "{0:c2}") %>'>, it displays as $155.00 instead of $1.5...more >>

alternative for VB.NET module in c#?
Posted by Milsnips at 4/16/2007 12:00:00 AM
hi there, in my vb apps, i used to use a module where i stored global variables, but in c# this doesnt seem to exist, what i want to do is create global sqlcommand,sqlconnection variables that can be reused from anywhere within the app. please advise. thanks, Paul ...more >>


DevelopmentNow Blog