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# > january 2007 > threads for friday january 19

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

localisation of my program
Posted by Nikola Skoric at 1/19/2007 11:25:02 PM
I wanted to add a comboBox with list of languages which makes labels and captions on my buttons to change when user changes the language. Is there a realy easy way to do it? Of course, I can just make an ArrayList of captions and labes for every language and then just choose an appropirate A...more >>

how to get a tabbed view like VS2005
Posted by phil at 1/19/2007 8:48:26 PM
Bit of a newbie on C# and .Net I have an object with a List< 'things'> - each thing can be displayed in its own a control window. What I would like is a tab-view as in Excel where the users can add/delete/rename a new Sheet I've had a play with the standard tab-control but the UI on VS2...more >>

Protecting classes
Posted by David at 1/19/2007 7:29:56 PM
Hi, I want to be able to make a class only visible within the namespace, i.e. only other classes within the namespace will have access to it. I have tried putting a protected keyword against it. That doesn't work. I have tried nesting it inside the class where I want to use it, this sort ...more >>

Fun with printers
Posted by Frank Rizzo at 1/19/2007 5:39:47 PM
I have a USB printer connected to my PC. My winform app prints out some text using the typical print methods that are normally used. I will then turn off the printer or disconnect the USB cable. My application still prints fine and reports no error. Of course, then windows pops up a ball...more >>

Prefix methods
Posted by Rob at 1/19/2007 5:17:56 PM
Hi, Would it be safe to prefix private and protected methods and properties with and underscore? Would this cause any issues with other languages? Cheers, ...more >>

Database and Crystal Report in VS2003C#
Posted by Jason Huang at 1/19/2007 5:13:17 PM
Hi, Would someone tell how to connect my SQL Server 2000 Server to my Crystal Report which shipped with the VS 2003? The reason I asked is I can't find the Field Explorer in my Crystal Report. Thanks for help. Jason ...more >>

No "AvailableSpace" property for Win32_LogicalDisk
Posted by cmsimmers NO[at]SPAM gmail.com at 1/19/2007 4:13:07 PM
I'm trying to display the available space on a disk drive. This could be tricky if the user choose a drive on which they are limited to a quota. The "FreeSpace" property returns the total number of bytes on the disk, which could be significantly larger than the space actually available to the ...more >>

SMTP failure
Posted by Chubbly Geezer at 1/19/2007 3:06:19 PM
Hi I am using the following code to send an email from within my program:- MailMessage theMailMessage =3D new MailMessage("from@email.com", = "to@email.com"); theMailMessage.Body =3D "body email message here"; theMailMessage.Attachments.Add(new Attachment("pathToEmailAttachment")); theMailMe...more >>



Populate, save, repopulate same data set later
Posted by Benny at 1/19/2007 3:01:37 PM
I need to populate a table with information then in a seperate utility, in the same application, pull that data using the same criteria that was first used and update some values, unique to an id, then save it, also adding any rows that did not exist before. The user may exit the application be...more >>

Visual C# without XP SP2 ??
Posted by Neil at 1/19/2007 2:12:45 PM
Hi Is there a version of Visual C# or Visual studio i can use to learn C# without having to put XP service pack 2 on my PC (it's a work PC and we are currently only authorised SP1)??? Cheers Neil ...more >>

Increment socket receive buffer pointer?
Posted by O.B. at 1/19/2007 2:10:08 PM
In C# 2.0, I am processing data from a socket. There are cases, where I pull 12 bytes from the socket and determine that the next X bytes should be ignored, where X is determined by observing each 12 bytes of data. Currently, I am allocating a byte array of X bytes and using Socket.Receive(....more >>

A quick Newbie to NET question
Posted by Robert Meek at 1/19/2007 12:53:44 PM
I recently began working with NET via VS 2005 and the Chrome Object Pascal IDE add-on as I have no experiance with other languages. But i am picking up C# as I go along...a consequence of having to read C# code in the books I'm learning from. I'm used to creating and then freeing and...more >>

WEBDAV
Posted by Ram at 1/19/2007 12:44:59 PM
Hello, Looking for some webdav client in .net. Is there anything available as open source? Thanks Ram ...more >>

threading
Posted by hharry at 1/19/2007 12:32:54 PM
Hello All, I have designed an application with one UI thread which spawns one thread (THREAD 1). When THREAD 1 completes an event is sent to the UI signalling that the thread has completed. For performance reasons, I need to increase the number of threads. I now have one UI thread which spa...more >>

ClickOnce Staggered Updates
Posted by Jamey McElveen at 1/19/2007 12:24:58 PM
Hello, I would like to use ClickOne but we need to stagger our update process. Currently we are shipping cd's when it is time for an update. We stagger the release in waves of 250 each so our clients do not overwhelm our support staff with loading questions and new feature questions. Clic...more >>

Configuration File
Posted by Jay at 1/19/2007 12:01:45 PM
I want to store various text settings in a configuration file, that I will read into C# and make use of. Here's a simplified example of the file: #comment loop(var=1:5){ deviceundertest freq:5.6e6 power:3.7 analyser freq:5.6e6 span:1e3 resbw:100 atten:20 } As you can see, the config...more >>

Generics, System.ValueType and Complex Numbers
Posted by Ravi Shekhar at 1/19/2007 12:00:29 PM
Hello, So I'm doing some mathematical modeling and it turns out I need distinct imaginary and complex types to carry out complex contour integration. I want to have it in all three precisions (float, double, and decimal), and the code is highly redundant, but I can't seem to come up with...more >>

Preventing Logoff / Shutdown until C# Windows App is closed
Posted by mikemiller.innova NO[at]SPAM gmail.com at 1/19/2007 12:00:12 PM
I developed a C# Windows App that requires a user to input their real name and what they did to the server while they were online. I am going to launch the app att shutdown via a logoff script. I want to prevent the computer from logging off or shutting down until the app is closed. The b...more >>

combining a number of sound files into one filestream?
Posted by Milsnips at 1/19/2007 10:38:25 AM
hi there, any examples or is it possible to open say 3 wav files, and put all their file streams together into one filestream? thanks, Paul ...more >>

Is this possible with clickonce
Posted by Daniel at 1/19/2007 10:14:03 AM
Hey guys Ok i have a few probs with clickonce. User must have .net2 , i need them to also have dx and they must use Internet explorer as click once wont work in mozilla, firefox etc From some earlier posts i hope to have the dx issue sorted with some pre-requisites i am yet to try. Bu...more >>

ListView & Coloumn Managing [Win #C]
Posted by MikeY at 1/19/2007 10:09:59 AM
Is There a way of managing individual Listview columns when it comes to Color, Text size, etc.? If so, does anyhow have any helpful suggestions on how to do this feat? If So, there is a sample of my code below: private void Create_LV_Headers() { //Index Header ColumnHeader colHead; ...more >>

WebBrowser control as an HTML document viewer?
Posted by David Veeneman at 1/19/2007 9:39:30 AM
I'm writing an application that will manage a database of documents typed into the application by the user. Some documents will contain links to other documents. If the user clicks on a link, the application will get the linked document from the database and display it. The .NET 2.0 WebBrowser...more >>

Will a .txt file open ok from multiple locations if on a network?
Posted by Gary at 1/19/2007 8:35:18 AM
I'm writing a simple program to dish out incoming leads. I don't understand database programming in c# and this needs to be finished like yesterday - so i dont have the luxury of spending a couple of weeks reading up on ADO. I have used a simple technique in the past of storing data in a tex...more >>

XML reader/write
Posted by ba.hons at 1/19/2007 8:08:25 AM
Hello. I have built a windows service that has a filewatcher object, which checks when any XML files have been created or deleted from a certain directory. My problem now is i have to get involved with the XML ! which am new at! So when i receive the file, currently am just logging in ...more >>

CCW - Interop
Posted by Prad at 1/19/2007 7:52:58 AM
I was just wondering if anybody could guide me towards options of exposing a .Net dll so that it can be added to COM+ application. I haven't been able to use System.EnterpriseServices, because I can't strong name my assembly (due to third party references which are not strong named). Regas...more >>

problem with export data to excel. Helppppp
Posted by forumaic at 1/19/2007 7:20:29 AM
Hello, I am trying to export data to excel from datagrid, and I am getting an error: "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)." Error details: System.Web.HttpException was unhandled by user code Message=3D"The Controls collecti...more >>

Counting regex expressions
Posted by trashman.horlicks NO[at]SPAM btinternet.com at 1/19/2007 7:17:31 AM
Hi, I'm getting into a tangle with Regex in C#. If I had an expression like abc[1].def[2].ghi[3] etc. How do I count how many instances there are of "[ ]" and "." Thanks a lot! TH ...more >>

Creating ActiveX controls to be used by VB 6.0 programs
Posted by Henrik Dahl at 1/19/2007 6:51:34 AM
Hello! Is it possible to use Visual Studio 2005 or, secondarily, Visual Studio .NET 2003 to create ActiveX controls which may be consumed by VB 6.0 programs, i.e. dealt with on forms in the usual way? If yes, may you provide a hint/link for getting started? Best regards, Henrik Dah...more >>

The truth about LockBits
Posted by RT at 1/19/2007 4:56:23 AM
It was mentioned here that LockBits can sometimes be vulnerable to the GC. Though the implication of docs that I've seen regarding LockBits would imply that it is immune to the GC, I do have an app where a custom control seems to lose its buffer and starts displaying random data. Of course that ...more >>

Mouse events
Posted by Adeel at 1/19/2007 4:26:39 AM
Hi group! I'm trying to learn C# on my own... I'd appreciate it very much if someone can help me out here. I have a basic form without any controls on it... I want to catch mouse clicks (both left and right). When I select the form and go to the events tab (the bolt icon in properties), ...more >>

Is an Enum or a 2d Array the solution im looking for?
Posted by Gary at 1/19/2007 3:21:24 AM
I have a status text on my status bar which simply lists the logged in user name. the code that puts text into this is: stUserName.Text = "Currently logged in user: " + System.Environment.UserName; However our login names here are firstname, surname initial, like so: - freds I'd l...more >>

lists, get last item, 2 second question
Posted by Nick Valeontis at 1/19/2007 3:17:29 AM
Is there a way to get the last item added to a generic list? That is, without using the count property. Something to improve this code: schedule.jobs[schedule.jobs.Count-1].tasks.Add( ... ); With regards, Nick ...more >>

Enum constant for "Left + Right" click of MouseButton.
Posted by Chaitanya at 1/19/2007 2:38:56 AM
Hello, In my Application i want to know when user clicks both the "Left" and "Right" buttons of the Mouse. I am getting a number like this "3145728". But the MouseButtons Enum contains only Left, Right, Middle, None, XButton1 and XButton2. I am using .NET 1.1 version. How can i convert "31457...more >>

C # and C ++ learning curve
Posted by Peter NO[at]SPAM POLKO at 1/19/2007 2:31:21 AM
Hi Complete ass here trying to get his feet wet in .NET programming. I want to start easy, understanding what is talked about. Which of these two would be a better choice, if same, which one is consider easier to learn first? Thanks for any advice ...more >>

Will interop solve this problem?`
Posted by Gary at 1/19/2007 2:22:18 AM
I am getting the following errors. Retrieving the COM class factory for component with CLSID {0CD44B28-F861-11D0-9B45-006097B00E23} failed due to the following error: 80040154." The code that is generating the error is: act.CAIBaseView objBaseView = new act.CAIBaseView(); However the f...more >>


DevelopmentNow Blog