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# > july 2003 > threads for wednesday july 9

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

Get member name
Posted by #Hai at 7/9/2003 10:58:53 PM
Hi, We have a long list of color name: Color.Red, Color.Green, Color.Green.... If I want to get the list of all color name (certainly by programming), how to that ? Thanks ...more >>


Dispose GDI+ object
Posted by #Hai at 7/9/2003 10:50:45 PM
Hi, I know that in C#, destructor is a finalize method. This means that the destructor is only called when the Garbage collector does it job. But the the GC is always does it job when the memory is full. Is there any thing wrong ? If it is true, now we consider GDI object (such as Image, Grap...more >>

conevrt dbf file to sql server 2000
Posted by dhivakar at 7/9/2003 10:44:40 PM
I need to convert the foxpro dbf file to sqlserver 2000 with the using of .net.(C# / VB.net) can any one help me regd this. like any code snip, or any useful links. Thanks in advance Dhivakar......more >>

How to select root node in TreeView?
Posted by someone at 7/9/2003 10:35:25 PM
Here is my code: TreeNodeCollection nodes = tvwFolders.Nodes; if (nodes.Count > 0) { // Select the root node tvwFolders.SelectedNode = nodes[0]; } I hope there is an easier way. I looked at TreeView.TopNode, but that is the top "visible" node. I would think that getting the absolut...more >>

"ArrayList does not contain a definition for Item" - Tell me I'm being stupid
Posted by Daisy at 7/9/2003 9:05:13 PM
error CS0117: 'System.Collections.ArrayList' does not contain a definition for 'Item' Only one answer in Google Groups, and I'm positive I'm using it correctly...! Posts is my ArrayList. I put in some posts: for (i = 0; i < 15; i++) { myPost = new Post(); myPost.Key = i; ...more >>

.NET and COM
Posted by J. Marcelo Barbieri at 7/9/2003 8:49:42 PM
a.. When creating COM component with .NET, what would be the limitations? Can I use try catch, constructors, destructors, etc? When running the components on COM+, I would need .NET Framework installed on the Application Server? Right? b.. Why there's no COM template in C# as I have in VB.NE...more >>

Exception Handling and Garbage Collection
Posted by J. Marcelo Barbieri at 7/9/2003 8:46:45 PM
a.. In Java, GC.Collect schedules the collection. As far as I know, in ..NET, it runs immediately after calling the method. Is that right? b.. Should I use exception handling (try-catch) to avoid inconsistencies that can occur in the Dispose method? For example, a connection is closed, and t...more >>

Globalizaton:
Posted by J. Marcelo Barbieri at 7/9/2003 8:43:39 PM
a.. How can I capture the event that happens when the user changes the language in Control Panel's Regional Settings to automatically refresh the interface of my application, which is configured for multiple languages? thanks very much, ...more >>



Enum.GetNames
Posted by J. Marcelo Barbieri at 7/9/2003 8:42:34 PM
a.. How can I return all the values in a enumerator. I tried like the following, but it doesn't work and there are no examples in the VS Help: enum test {a, b, c} Console.WriteLine(Enum.GetNames(test)); thanks, ...more >>

c# web server with persistent data
Posted by Jeff at 7/9/2003 8:14:26 PM
I am new to web services and want to expose a C# program through web services (soap or otherwise) that will have a service with cached data running on a server that clients can make requests to without instanciating the (data) classes locally. I see many examples of using web services where...more >>

5 seconds to load program
Posted by Tomomichi Amano at 7/9/2003 8:10:46 PM
NEWBIE : I am making a program (pretty small). BUt somehow, it takes about 5 seconds to load the program. I wonder what kinds of objects or codes make program to load slowly. ...more >>

PDF sdk......
Posted by Ollie at 7/9/2003 8:08:11 PM
Does anyone know where I can get an sdk to extract a PDF document as text, I know Adobe do one, but they want me to pay for it :( Ideally I would like a .Net (C#) version,but if not a good old C\C++ version will do Cheers in Advance Ollie ...more >>

C#(Quit the application) - shift+Ctrl+Q
Posted by Dev at 7/9/2003 8:06:48 PM
Dear Friends, I have created Application using VC#. How do to the following tasks? The user should not be allowed to exit the program: the start menu, end task and all other ways of exiting the program should be disabled. The Shift+Ctrl+Q (or other keystroke combination) should be the o...more >>

non-overridable operators...
Posted by Oscar Papel at 7/9/2003 6:32:40 PM
Hello, I have a c# class that holds a large matrix of data. I overrode the standard +, - operators but I also need to override the += and -= operators in order to avoid making a copy of the entire matrix. The code below should explain... From what I can tell, the ECMA spec does not allow fo...more >>

Web Service debugging ?
Posted by Dmitri Shvetsov at 7/9/2003 5:10:21 PM
Hi All, Did somebody see the situation when the VS refuses to debug the Web Service at all? I can't catch why, the initially created Web Service can be debugged very easy but after some changes in a source code, maybe the source code becomes bigger that some hidden threshold, the debugger can'...more >>

Hashtable.Item property
Posted by Andrew Chen at 7/9/2003 5:02:03 PM
Hi: I've tried to use Hashtable.Item property, which should return a value according to the key assigned. But it returns an error saying the function does not exist in the class (it did not show up under intellisense either when I typed in the letter). Can someone tell me if this is a ...more >>

ASP.NET user roles
Posted by JKJ at 7/9/2003 4:45:56 PM
After I assign a role to a user how can I read what role the user is in later on other than checking User.IsInRole ()? Is there a way to directly read the user's current role as a string value?...more >>

converting dates
Posted by at 7/9/2003 4:43:04 PM
How can I convert '07/04/03' to 'July 4, 2003'? thanks, VM ...more >>

GDI+ Challenge!!!
Posted by Supramanian Murugesan at 7/9/2003 4:36:24 PM
Hi, I have a challenging question in GDI+ graphics programming. I have a Panel Control painted with some rectangles and lines. Also I have some Label Controls inside the Panel Control. The Label Control can be moved inside the Panel Control. "But the Problem is when I move a Label Control...more >>

Get the name of the calling function of an executing function
Posted by Tony Liu at 7/9/2003 4:24:36 PM
Hi, I want to get the name of the calling function of an executing function, I use the StackTrace class to do this and it seems working. However, does anyone think that there any side effect towards this approach such as how would it works in multi-thread. Thanks Tony // call the HI...more >>

Displaying Contents of ArrayList
Posted by Beza at 7/9/2003 3:36:40 PM
I have an ArrayList which stores x number of "Policy" objects, where x is the number of rows returned from a earlier SQL query (therefore it is changeable). Each "Policy" has a few methods within it that returns values. How do I display a row of information for each "Policy" (stored in the ...more >>

Connecting to Oracle8i with ODBC?
Posted by John at 7/9/2003 3:27:27 PM
Does anyone have an example of how to connect to an Oracle 8i DB and run a simple select through ODBC? What DLLs should I need? Assume that the PC where the web werver's at only has the .Net framework and Oracle8i installed. John ...more >>

DataColumnStyle question
Posted by R Agam at 7/9/2003 3:24:22 PM
Hi If I use DataGridColumnStyle to add column style do I need to add the column also? or will it add the column already? Thanks, Ronen ...more >>

How to check if a Mutex is already locked.
Posted by creepiecrawlies NO[at]SPAM hotmail.com at 7/9/2003 2:25:42 PM
I'm setting up an interface where clients must perform external locking before calling certain commands. I do this to force them to specify the duration the action they performed must persist before any other threads can be allowed to perform some action. My object exposes a Mutex which is loc...more >>

Programming MMC using C# question?
Posted by Steve Reid at 7/9/2003 2:20:39 PM
Has anyone out there done this? I currently have a MMC application that is written in Delphi and we are considering rewriting in C#. I've been looking for info but haven't had much luck thus far. Any possible resources would be appreciated. ...more >>

question about web.config contents
Posted by John at 7/9/2003 12:16:00 PM
Does web.config save the last error message the page generated? I seem to be getting the same error regardless of the code. John ...more >>

Deserialization
Posted by Urs Vogel at 7/9/2003 12:15:54 PM
Hi I'm wondering if there's a technique to deserialize objects which were serialized with an earlier version of the class. Example: // version 1 class { string myString; int myInt; } is serialized to myobject.xml In an update version of my app, I need to deseriali...more >>

debugging web application from Internet Explorer
Posted by at 7/9/2003 11:35:59 AM
If I'm running a web application from my web server (//localhost) and I decide to modify the code with Notepad (mypage.aspx.cs), how can I tell the browser to load the last correction I made? I jut realized that, even if I made some changes to the code, I get the same error I did before (eg. I d...more >>

c# program file association
Posted by Jason Gleason at 7/9/2003 11:33:05 AM
I wanted to know how you would associate a file extenstion with a c# program. For instance, I wanted to allow a user to double click a .org file, and then have it open in my org program (which is an mdi app). Also, if the org program is already open, i wanted the clicked file to open as another ...more >>

flash player
Posted by Erdem ALKILIƇGiL at 7/9/2003 11:07:47 AM
hello Does anybody know how to embed a flash player in to a c# project? regards.. ...more >>

X509Certificate
Posted by Joe Kinsella at 7/9/2003 10:49:40 AM
I'm porting a small piece of Java that will fetch HTML from a secured web page. The Java code was purposely written to accept any client certificate - even out of date certificates. This was accomplished by implementing an X509TrustManager that accepted any certificate. I'm trying to underst...more >>

Custom Collection Confusion
Posted by craig at 7/9/2003 10:41:15 AM
Assume that you would like to create a custom collection class that is: 1. Strongly-typed (only holds Customer objects) 2. Read-only (user cannot add Customer objects) 3. Able to be bound to a winforms datagrid (must implement the IList interface). What would be a good way to create this...more >>

adding a reference path manually
Posted by at 7/9/2003 10:33:40 AM
I would like to add a reference to my project manually. Is there somewhere in the IDE where I can see and modify all of this project's references? Thanks, VM ...more >>

Memory usage. ( H E L P ! ! )
Posted by George Gre at 7/9/2003 10:15:13 AM
Hi, I wrote a c# programme that listens to incoming TCP requests and services them. This programme is meant to be running as long as the server its installed on is running. So we assume for ever(!). My problem is that I have it running for 2 days now on my pc (win2Ksp3 P4 2GHz,512MB Ram - fram...more >>

CheckBoxList Question - C#
Posted by Lakshmi at 7/9/2003 9:58:25 AM
Hello, I am using Visual Studio .Net and am new to web development. I have added a CheckBoxlist to my web form (.aspx) and am populating the checkboxlist from a table in the database and am selecting 4 options (as default) in the Page_load event of the form. Now when the user selects more op...more >>

Why isn't the If's statement, after the expression, being executed?
Posted by Rod at 7/9/2003 9:11:53 AM
I am writing a Windows Forms application and am testing the values of two different columns of two different records, to see if they are equal or not. If they are equal, then it is supposed to assign the value of true to a bool variable. Here is the relevant code snippet: bTmp = false; forea...more >>

XML comment problem with [ClassInterfaceAttribute(...
Posted by RickTemp01 NO[at]SPAM att.net at 7/9/2003 8:24:19 AM
Using XML comments with the following code works correctly: using System; using System.Runtime.InteropServices; namespace test { //[ClassInterfaceAttribute(ClassInterfaceType.AutoDual)] /// <summary>Summary description for temp1.</summary> public class temp1 { /// <summary></summary...more >>

MS Access database Help
Posted by David at 7/9/2003 8:24:15 AM
I have an inventory program. I want to scan a barcode, which will then run a queuery on a MS Access table and from that queuery populate the data text boxes. Here is a step through: 1. Scan Barcode 2. Barcode dumps number to text box 3. Scanner sends a tab to the computer 4. On Tab, que...more >>

<example> tag doesn't work
Posted by Jesper Odgaard at 7/9/2003 8:23:09 AM
Hi, When documenting my code using comment web pages from the visual studio .Net 2002 ide, it seems that it ignores the <example> tag. Except for this tag everything works fine. Can I customize the web pages to include examples? brgds Jesper. /// <summary> /// The GetZero method. ...more >>

C++ Wmi App to C# Wmi App - System.Mgmt Access
Posted by Jerry at 7/9/2003 7:24:37 AM
I have an existing C++ Wmi App developed with v6.0 that I am now converting to C#. To do so I need FCL Namespace System.Management but "Using System.Management;" bombs out with a build error saying "Management does not exist in namespace System". I have all the latest SDKs, am using VS ....more >>

Rendering HTML without using MSHTML/IE
Posted by Newsgroup Reader at 7/9/2003 5:03:43 AM
I'm trying to create a chat program, however I find it most of the time these days clients use HTML or some sort of markup language to render text on the screen. My question is how would I render HTML without using MSHTML/IE? I already have a feeling that I'll have to create my own control. How ...more >>

Random...
Posted by Hector Martinez at 7/9/2003 4:00:03 AM
I'm thinking about write a Math Random class for C#, anyone one can give some idea...? Thanks in advantage... Hector....more >>

Keyboard input
Posted by Ralf Toender at 7/9/2003 3:29:59 AM
Hi! Does anybody know how to send a keystroke C#? In C++ it's done by: keybd_event ( ... ) or SendInput ( ... ). What namespace does include this counterpart? Thanks Ralf...more >>

Grabbing tables and databases from SQL2000 using C#
Posted by Dizzzz at 7/9/2003 2:18:44 AM
I am creating a front end that will access a SQL database and I want to create a DROP DOWN control that will display the databases and tables available from a SQL2000 server. Much like the one in the Import/Export menus in SQL2000 Enterprise Manager. Does anyone know the class in C# to do tha...more >>

Control for InputBox in C#
Posted by Siddharth Prakash Phatarphod at 7/9/2003 1:05:18 AM
Hi, I am working on Windows Forms with C#. Cud ne one tell me which is the control in C# that I can use in place of InputBox in VB.NET for Windows Forms? Thanx in advance, Sid :) ...more >>


DevelopmentNow Blog