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 2005 > threads for monday october 3

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

Most popular programming language?
Posted by James++ at 10/3/2005 10:13:30 PM
Hi all, I have been recently assigned the responsibility to conduct a survey, the aim of which to find the most popular programming language. I know that many of you program only in C#, but will be conducting this survey in other groups. The outcome will determine the plans for the future for...more >>

Could someone help??
Posted by Scott at 10/3/2005 9:39:01 PM
I am trying to convert a RTF File to a Post Script file to be sent to the printer. I can write this program in either C# or VB.NET. Please help.. Thank you, Scott....more >>

Terminating an IP Connection
Posted by Nuno Magalhaes at 10/3/2005 8:48:59 PM
What is the best way for terminating an IP connection? Say, I've got an IP number 198.162.1.100 trying to connect to a port, how can I terminate the connection in a simple and effective way done in C#? Thanks for any help, Nuno Magalhaes. ...more >>

ClickOnce & Apache
Posted by Cyber Sinh at 10/3/2005 8:31:32 PM
Hello, Can I use ClickOnce with apache? A MVP said me that it is impossible because of wrong header with it... Is it correct ? If yes, can I use a PHP script to personnalize the header returned? Thanks for your response...more >>

Exit application from a menu
Posted by Zack Whittaker (R2 Mentor) at 10/3/2005 8:22:32 PM
I think I'm starting to get the hang of this you know... bit by bit things are starting to get much easier! :oD Just wondering though, I've got a nice menu with popup dialogs with about boxes... ahhh... but how can I put an "Exit" feature on my main menu at the top so that they can quit the ...more >>

Printing: preview perfect, printout misaligned
Posted by Tim at 10/3/2005 8:08:19 PM
Hi, I have created some code for printing a column report. The default page size is 850 x 1100, which is correct. The print preview looks perfect. The data is positioned exactly where it should be. (centered) When I go to print however, the data is shifted to the right. About a margin's ...more >>

Wondering how to be notified when datasource changes within an inherited datagrid?
Posted by Jim at 10/3/2005 7:42:08 PM
I have a class that inherits from the DataGrid class. I want to know when the datasource of my datagrid has changed, but want to execute a function within my extended datagrid class. For example: If you drag out a datagrid onto a form, you can assign an event handler to "DataSourceChanged"...more >>

How to convert to a DLL?
Posted by gregory_may at 10/3/2005 5:05:22 PM
I came across this wonderful article on Named Pipes, I would like to use it to integrate into some existing VB.Net code. Does anyone know how I would get started converting this into a DLL? (Or a direct conversion to Vb.Net?) http://www.codeproject.com/csharp/DotNetNamedPipesPart2.asp Th...more >>



Rounding a number up
Posted by CsharpNewcommer at 10/3/2005 4:29:02 PM
Hello, In C#, how can I roundoff 41.8376 to 41.84? Oh these fields are casted as double. Thanks...more >>

Problem in launching process from a windows service!
Posted by Nick at 10/3/2005 4:25:30 PM
hi, all Recently, our server which is a windows service got a problem. This windows service will launch a process to process user's data each time when a user connection comes in. The problems, once our service lanunches about 50 process, it starts to get errors say got an unexception or the pr...more >>

Multiple threads in unit test
Posted by Bryan Ax at 10/3/2005 3:53:27 PM
We have some code that's having problems when multiple applications running as different identities try to hit this code - the code creates a Mutex, and when the second identity tries to access it, it fails because the Mutex currently has the permissions of the first identity, along the lines of...more >>

File Shares
Posted by JJ at 10/3/2005 3:25:07 PM
Hi, I have a need to read in a file share parameter from a config file to supply a path to a database file. For ex. "\\fileserver1\database\db.mdb" I can't just supply this to a connection string in c# to access the database. The connetion would just throw an error, so what do I need to...more >>

Need XPath help
Posted by Richard at 10/3/2005 2:55:04 PM
Hi, I am trying to use an XmlDocument object to manipulate the default database instance node of the enterprise template library dataConfiguration section from a custom installer step: <?xml version="1.0" encoding="utf-8"?> <dataConfiguration> <xmlSerializerSection type="Microsoft.Pr...more >>

Namespace and Class name conflict
Posted by Wayne at 10/3/2005 2:54:57 PM
I have the following Namesapces (only for example, would not name them this way in production code) Wayne.Test.Data Wayne.Test.BR With in Wayne.Test.Data name space I have the following class: public class Test { public Test() { } } and in Wayne.Test.BR I have the followin...more >>

class for DB connection to return dataset
Posted by kevin NO[at]SPAM questionmark.com at 10/3/2005 2:38:38 PM
I'm new to C#, so forgive me if this is n00b stuff. I've been researching creating classes to hold commonly used methods, etc across multiple WebForms. To a degree I understand this and managed to get a "Hello World" example running where in my common.cs file I had: public class dbConnection {...more >>

variable size?
Posted by TheMadHatter at 10/3/2005 2:24:02 PM
yello, Quick Q: With regards to ram use, there really isnt any memory savings if I use type bool, vs int....... is there? If I remmeber correctly from a microcontroller course, the smallest addressable unit is an int. All rules still apply for todays machines, right? Thanks in advance....more >>

SDN & Blocked Persons list
Posted by Mesan at 10/3/2005 2:17:37 PM
Just curious what members are doing in terms of ensuring that your businesses don't work with people/entities on the SDN & Blocked Persons list. Anyone have good ideas of where to start/resources available? Curious, Mesan ...more >>

Alternate to Conditional Compile Statements?
Posted by Robert W. at 10/3/2005 2:06:09 PM
I have a library that I'd like to have both a WinForms app and a CF app utilize. Generally the code is very compatible but sometimes there are some differences. At first I thought I could use conditional statements like #if (POCKETPC), #else, and #endif to differentiate different code cons...more >>

C# developers going back to vb.net
Posted by Kevin at 10/3/2005 1:06:09 PM
I don't know if I should even start this topic but here goes. I'm an ex vb6 developer, now developing in C#. The reason why I started developing in C# is because the company that I worked for at the time standarised on C#. Many of my friends working in previous companies that I worked for are ...more >>

GetMenuItemInfo MENUITEMINFO question
Posted by murl brown at 10/3/2005 12:37:43 PM
I'm trying to get the text of a menu item in a context/popupmenu in an external application. I have a simple mouse hook catching the right click, and then the left click on the context menu that was opened by the application, however the GetMenuItemInfo() method is returning an error code 87, in...more >>

Axbrowser will not display with a .aspx.cs
Posted by chawes40 NO[at]SPAM yahoo.com at 10/3/2005 12:30:14 PM
I have a .aspx class and I'm trying to add a axbrowser to this page so that it will display my results in IE format. But I get an error when I try to add the axbrowser to the class. I'm not sure why this is happening. ...more >>

Determining the current global cursor
Posted by Paul Steele at 10/3/2005 11:39:05 AM
Is there any way in C#/.NET to determine what the current global cursor is being displayed? The .Net method Cursor.Current only applies to the running application. I want to access the cursor even when my program is not in control. I've done some reading and the best I've come across is the Wi...more >>

Performance of handling WndProc
Posted by iamnader NO[at]SPAM gmail.com at 10/3/2005 11:16:29 AM
Hi, Has anyone done any performance analysis of handling WndProc in C#? It seems like there must be significant overhead in jumping between native code and the CLR for every single Windows message. Thanks, Nader ...more >>

C# ASP.NET SQL Command running stored procedure
Posted by Samantha Penhale at 10/3/2005 11:12:04 AM
Hello, Thanks in advance for any insight you can offer. I've a ASP.NET project written in C#, two web forms, a lovely gob of using statements. I originally had one webform with all my fields and datagrid stacked, and thought it would be cleaner to server.transfer to another webform when I w...more >>

newbie question (c++->c#)
Posted by .:alex:. at 10/3/2005 10:56:45 AM
Hello, I'm just starting to learn C# and I'm an C++ programmer. First of all I'd like to know, which are the similarity between C# and C++. in C#: there is class forwarding(how to use?), inline functions, global functions and params... Regarding STL, how to replace a map (CMap for MFC),...more >>

getting arraylist elements with same value (not trivial. you have to read!)
Posted by The Crow at 10/3/2005 10:40:36 AM
i have a arraylist. say it contains integer values. i want to be able to inform user, which indexes in the array contain same values. but there can be N different values, and M different indexes having the same value. actually i will do this with javascript array to inform user which input's ...more >>

Stacktrace constructor hangs
Posted by Kurt Biesemans at 10/3/2005 10:28:39 AM
Hello, I have a line code : StackTrace stackTrace = new StackTrace(false); When I run the project in debug, the application keeps hanging on this line. My Environment: Windows 2003 Server Standard SP1 Visual Studio 2003 SP1 Any help is welcome Kurt Biesemans ...more >>

Desktop Shortcut Properties
Posted by Steve Teeples at 10/3/2005 9:51:13 AM
Is there a class within C# that will allow me to look at the properties of a shortcut on the desktop? I'd like to look at the start locations of specific shortcuts. -- Steve...more >>

Looking at shortcut properties
Posted by Steve Teeples at 10/3/2005 9:50:02 AM
Is there a class within C# that reveals the properties of a typical shortcut on the desktop? I'm looking for the information about the "Target" and "Start in" fields within a shortcut. -- Steve...more >>

CSS to .NET components
Posted by John Straumann at 10/3/2005 8:27:22 AM
Hi all: Does anyonw know if it's possible to apply CSS classes to .NET components while designing UIs? Thanks. John [MSFT] -- This posting is provided "AS IS" with no warranties, and confers no rights. Use of any included script or code samples are subject to the terms specified at ...more >>

MS Word thesaurus and Web Application
Posted by hammad at 10/3/2005 8:24:05 AM
I had made a .NET Application that use microsoft Word thesaurus using msword file when i made windows application it works well but when i try web application it make exception that i have no suffcient previllage to access the COM Component any help!!!!...more >>

Enum items getting unwanted prefix
Posted by MLM450 NO[at]SPAM hotmail.com at 10/3/2005 8:11:00 AM
I am converting a C++ control to C#. When a C++ host app is compiled with the tlb file of my new control, it changes my public enums. Each item in the enumerator list has the enum name added as a prefix. For example: My C# code has this... public enum SIZE_OPTIONS { szZoom = -1, szFitW...more >>

Run an Application from Windows services
Posted by Dhans at 10/3/2005 8:10:04 AM
My requirements are, 1) To run a windows application (Which allows user to interact with that) inside a windows service. For that how do i set the service type to InteractiveMode by programatically ? 2) The application to be started my change in feature, so that I need to get that applicatio...more >>

find matching parentheses in a string
Posted by UK at 10/3/2005 7:27:02 AM
I want to extract the text within the matching parentheses. Eg Input: (S1 > 1 and S2 in ('a','b','c') and (S5 > '05/27/04' and S5 < '05/27/05') and (S4 = 'hello' or S4 = 'world') and (S_price - S_price2)) or (S1 > 1 and S3 = '12/12/03' and (S5 > 1) and (S_price - S_price2)) or (S1 > 1 and S...more >>

Can't get scrollbars to show up
Posted by MrNobody at 10/3/2005 7:24:03 AM
I'm doing some custom drawing to a Panel object overriding the onPaint, and the stuff I draw usually goes beyond the ClipRectangle of the panel's current size- so I set autoscroll to true yet it never shows scrollbars. I also tried putting my custom Panel inside of a regular Panel with Autoscr...more >>

Windows Service Question
Posted by Raed Sawalha at 10/3/2005 6:52:09 AM
I created a windows service in OnStart and created a thread like mainThread = new Thread(new ThreadStart(Run)); mainThread.Start(); in Run () while(true) { //do something } the problem that Run wont called else one time just when i click Start then never called why?...more >>

treeview image behavior
Posted by gremlin321 at 10/3/2005 6:36:01 AM
i have a very odd behaving treeview. i use image list with a bunch of icons and as nodes get added to a tree i assign image index to each node. everething works fine, no problems there. now, when i click on any node it's icon changes to icon with index 0 in image list, and as i move to another...more >>

Renaming table in C#.
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 10/3/2005 5:46:40 AM
Hi all I ma having application in C# which is using MS Access as a bckend. i want to rename table of mdb file. i don't know how to do it. Can some one help me. Please help me. Thanks in advance. ...more >>

Getting "FileNotFoundException" when initialize a Word ApplicationCalass variable
Posted by ksskumar2000 NO[at]SPAM gmail.com at 10/3/2005 4:08:41 AM
Hi, I have added following two reference under COM tab, Microsoft Office 11.0 Object Library Microsoft Word 11.0 Object Library The software I have used: Visual studio 1.14 Microsoft Office 2003 I have installed Office XP PIAs My program: using Microsoft.Office.Interop ; ...more >>

Restricting entry in textbox
Posted by Altramagnus at 10/3/2005 3:10:47 AM
I have searched throught the newsgroups on how to restrict entry in textboxes, for example, I only want the textbox to only accept numberic. The standard answer is to use the KeyPress event. However, this do not address the paste event User is still able to copy and paste any characters. H...more >>

Problems with System.Net.WebClient
Posted by Pepe at 10/3/2005 3:06:47 AM
Hi! I have a program that excutes the following code: DirectoryInfo diretorio = new DirectoryInfo(@"C:\teste"); FileInfo[] arquivos = diretorio.GetFiles("*.xml"); for(int contador=0;contador< arquivos.Length;contador++) { lblMensagem.Text = "Uploading files... "; ws.UploadFile("http...more >>

Hashtable cloning :: deep solution using serialization
Posted by oDDskOOL at 10/3/2005 1:35:22 AM
I realized today that the Hashtable.Clone only produces a shallow copy... that makes me go mad that M$ doesn't even provide a deep copy ctor for the Hashtable class ! mighty tech ducks might reply "oh but what if the types in hastable don't have copy ctors defined? that could lead to dangerous...more >>

Notifying the user of the current action
Posted by Stropher at 10/3/2005 1:02:04 AM
Hi! I have a db-query which takes too long to complete. In this process, it will not be bad notifying the user that something is being done so as to exercise some patience. How can I realise this? With the help of thread, but how? Thanks in advance... Stropher ...more >>

dumb question.. please help!
Posted by dhnriverside at 10/3/2005 12:55:02 AM
Hi peeps Ok, so I thought I'd have a go at making a console app in VS2k5... I haven't written any windows apps for years, let alone dos apps (been web programming) and I've hit a dumb error... "An object reference is required for the nonstatic field, method or property [propertyname]" ...more >>

Input Validators
Posted by Josema at 10/3/2005 12:41:05 AM
Hi to all, I have in a website a lot of small applications with validators... Today all the validators in this mini applications doesnt work correctly... the validators check correctly if the input data is not correct, but the problem is that if anybody enters correct data the form is not ...more >>

Writing a Chess Program
Posted by David K at 10/3/2005 12:36:03 AM
Hi all I am tasked to write a chess program as a leisure exercise for an educational institution. Is there anyone out there that can assist and maybe show some additional pointers. Thanks...more >>

Message Queue in C# : Priority
Posted by tiger at 10/3/2005 12:18:12 AM
Hi, I have a question on Microsoft Message Queue. How do I give higher priority to messages and get it process before others. I will like to use the mechanism supplied by the queue service rather than relying on reading all the messages and ordering them. Below I have a simple send and recei...more >>

Date Time question
Posted by Zach at 10/3/2005 12:00:00 AM
I would like to express the time with the time continually changing. I can get it to show once, but then it stays that way, using a loop jams. Is there a way to do this? ...more >>

add button into datagrid
Posted by Michael at 10/3/2005 12:00:00 AM
Hi all : I want to add button , dtpicker and combo box into datagrid. I don't want use 3rd party and I want write my own columnstyles. any reference / site to teach me how to do it ? Thanks for your help ...more >>

Saving 16bpp TIFFs ?
Posted by Todd Gibbs at 10/3/2005 12:00:00 AM
Hi Guys, Does anyone know how to save a 16 bits-per-channel TIFF (48bits per pixel) ? I can save them as 24bpp RGB or 32bpp ARGB but cannot find how to save as 48 bits per pixel. Im sure TIFF supports 16bits per channel. Thanks in advance. Todd. ...more >>

How to check multiple instances of an application..?
Posted by kiran at 10/3/2005 12:00:00 AM
How can I check whether a application is laready running in the current system...? I want to check when the application is in "hidden" state. first instance window style is "Hide" . When ever user trying to open a second or new instance .it should detect the first instance automatically and...more >>

C# ListView Question
Posted by Jason Huang at 10/3/2005 12:00:00 AM
Hi, I have a ListView MyListView, which now has 5 rows and 3 columns. Saying int m, int n represents row 4 and column 2. How do I retrieve these two indexes, so that m will be 4 and n will be 2. Thanks for help. Jason ...more >>

Decimal.ToString Method
Posted by David Dvali at 10/3/2005 12:00:00 AM
How can I convert decimal value exactly to such format "0.00" (exactly with dot, with ignoring of regional settings)? ...more >>

How to read the connection string?
Posted by ABC at 10/3/2005 12:00:00 AM
How to read the connection string from web.config? I known .NET framework 2.0 has new features about connection settings, but I don't know how to use. Thanks ...more >>

DataGrid with a table style does not refresh properly when changing the datasource
Posted by Shawn Benson at 10/3/2005 12:00:00 AM
I have a Windows form where a user enters an order number which returns a dataset that is bound to a datagrid. The problem is when a user clicks on a cell in the datagrid, then enters another order to get information for, everything is updated with the new data except the cell in the grid that w...more >>

ASP.NET Get url of seperate frame?
Posted by Gav at 10/3/2005 12:00:00 AM
Hi all, I am currently changing a project so that it uses framesets/frames etc and in my code I use: Url urlPage= HttpContext.Current.Request.Url; urlPage.AbsolutePath; in order to find which page I'm looking at, however now I have changed this I would like to find out which page is lo...more >>

Date Time question
Posted by Zach at 10/3/2005 12:00:00 AM
I would like to express the time with the time continually changing. I can get it to show once, but then it stays that way, using a loop jams. Is there a way to do this? ...more >>

using and array
Posted by Marco Segurini at 10/3/2005 12:00:00 AM
HI, Is there a way to declare an alias for an array type? using typeInt32Array = System.Int32[]; TIA. Marco....more >>

Simple Input Dialog
Posted by James Alba at 10/3/2005 12:00:00 AM
Hi again all, I was wondering if there was a simple built in dialog box that contained only a textbox and an ok button? Just like the MessageBox.Show(...) class/method. Or do I have to make it "old school" and create it myself? Does anyone have a premade simple one? or link to one? Tha...more >>


DevelopmentNow Blog