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# > august 2003 > threads for wednesday august 20

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

Machine Debug Manager
Posted by -_- at 8/20/2003 10:16:31 PM
How can i set this service to stop once VS.NET exits? -- -_- -- ...more >>

how to wire up 2 trace listeners to the same windows app?
Posted by pokémon at 8/20/2003 10:05:05 PM
Ok, I am baffled by this one: I have 2 custom trace listeners (classes that inherit from System.Diagnostics.TraceListener). I want them both to listen to the same Windows application. How should I go about doing this? Do they need to be in the same AppDomain? Do I need to create an AppDomai...more >>

can't invoke the constructor of the base of an inherited class (convert vb code to C#)
Posted by Chris LaJoie at 8/20/2003 9:57:38 PM
I wrote a class in VB that inherits from a MenuItem, but I'm having difficulty converting it to C#. this VB is the code that must be converted: Public Sub New() MyBase.New() Me.OwnerDraw = True End Sub That vb code works perfectly fine, and does what it's supposed ...more >>

scroll a listbox
Posted by purplenachos NO[at]SPAM yahoo.com at 8/20/2003 9:51:24 PM
Hello, I have a Form with a ListBox in it. I'd like to be able to scroll the ListBox even when it's not in focus. ie. when i scroll the mousewheel when my focus is on the form, I'd like the ListBox to scroll. Now, there are two ways I would think would work. The first is if I can resend the M...more >>

User Controls disappear
Posted by Michael Polen at 8/20/2003 9:39:48 PM
I create a user control (actually a several). Everything is fine. I use it on a form or two. Everything is fine. All of a sudden when I make a change and rebuild, it can't find the control anymore. SAME PROBLEM OCCURS WITH C# OR VB.NET??????? Error Message: The user control ... could not...more >>

Language inadequacies
Posted by Darren Oakey at 8/20/2003 9:22:57 PM
Hi all, I just thought I'd throw down what I think are the three biggest language inadequacies of C#, hopefully so that people will jump on the bandwagon and lobby MS to fix them! So - in order: *** 1 - lack of const *** I know this has been mentioned before, so I won't get into it, but real...more >>

Databound combobox
Posted by jan v at 8/20/2003 8:53:09 PM
Hi everyone. I have a user control with 2 comboboxes these comboboxes are Databound to the same datatable.. Wheb 1 add 2 of thos usercontrols (not the comboboxes but the usercontrol itself) to one form and change the value in one combobox, then they all (4) change there selected value. Does a...more >>

Where to find typical Windows toolbar icons?
Posted by Quan Nguyen at 8/20/2003 8:51:11 PM
I'm trying to look for the icons/images (New/Open/Save, Copy/Cut/Paste...) typically used in toolbars in Windows applications, such as MS Word. I'd appreciate if anyone can point me to a webpage that have those images. Thanks....more >>



Chad Myers is back again
Posted by Notmaster78 NO[at]SPAM yahoo.de at 8/20/2003 8:43:12 PM
Ladies and gentlemen, On August 12 2003 Chad Myers returned to the Microsoft-C#-newsgroup. But Chad Myers has a double life on usenet. Here is the "other Chad Myers" From: "Bart" <BartBartBart@coldmail.com> Newsgroups: comp.os.linux.advocacy Date: Fri, 25 Jul 2003 02:05:02 GMT NNTP...more >>

How to check the file availability on server
Posted by Anil at 8/20/2003 8:08:43 PM
Hi All, We have hundreds of images on our server. Depending on the ItemID (fetched from database) we display the image to the client. For ex. if the ItemID is 20045 then, we display the image 20045.jpg But for certain items, we don't have image. So, is it possible to check the image is avai...more >>

Creating an Array from a multidimensional array
Posted by NO[at]SPAM nospam.com at 8/20/2003 7:04:07 PM
Hi, If Im using Jagged arrays, the following is possible: int[][] arr = new int[10] for(int i=0; i<10; i++) { arr[i] = new int[10]; } int[] arrB = arr[3]; How can I achieve the same thing (i.e. create a single dimensional array by assigning a copy of some row of a multidimensio...more >>

Problem with app.config from dll
Posted by Bragadiru at 8/20/2003 6:59:37 PM
I have a solution with 2 projects: a class library(my.dll) + a windows application (mine.exe). In exe project I have a reference to the dll. In both I have app.config files, BUT only mine.exe.config file is generated in \bin\Debug\ folder of exe app. What can I do to generate my.dll.config from ...more >>

Dataset to XMLDocument and Vice versa
Posted by Matt M at 8/20/2003 6:08:10 PM
Hey, I'm trying to pass an XML document from a webservice to another assembly. What I'd like to do is pass either an XML document or a dataset, so I figure that if I can turn the Dataset into an XMLDocument, then in my assembly, return that XMLDocument back to the dataset (if it is one), I w...more >>

Hello
Posted by Arthur Roodenburg at 8/20/2003 6:03:54 PM
I am looking for an example of a C# property page shell extension. There is a microsoft example regarding shell extensions, but it does not tell me how to create property page extensions unfortunately. Does anyone know where I can find one? ...more >>

Dynamically loading raw XML from SQL2K into an XML doc (ASP to C#)
Posted by Frank Drebin at 8/20/2003 6:02:29 PM
In ASP, I have something like this: Set conn = Server.CreateObject("ADODB.Connection") Set cmd = Server.CreateObject("ADODB.Command") Set adoStream = Server.CreateObject("ADODB.Stream") conn.Open strConnString Set cmd.ActiveConnection = conn cmd.CommandText = st...more >>

invalid cast exception
Posted by Giulio Santorini at 8/20/2003 5:32:34 PM
Hi, I've got a little problem with my C# WinForms test application. I would like to have a ComboBox showing a a visual value and some hidden values. So I build a class able to store thoose values. This class called ListItem have got two private variable, one is a string containing the vis...more >>

Thread Exercise for the gurus
Posted by Alvin Bruney at 8/20/2003 5:17:43 PM
I have an array list of queries. The arraylist is variable, anywhere from 10 to 10000 or more. I'd like to spin threads to take chunks of 500 queries out of that array list, no more than 10 threads (context switching reasons). if it's less than 500 i spin only one thread. I am having trouble b...more >>

typeof
Posted by boxim at 8/20/2003 5:14:47 PM
hi all, If i've got an object which is of type MyTextBox which is derived from System.Windows.Forms.TextBox, then in another class i want to check the type of the control passed to one if methods, i.e public void DoSomethingWithControl(System.Windows.Forms.Control _control) { if (...more >>

Editing code while running
Posted by Investigative_Reporter NO[at]SPAM hotmail.com at 8/20/2003 5:01:35 PM
Is there anyway to change (modify, edit) your code while your C# .NET solution is in the RUN (F5) mode? Meaning ... If you have a breakpoint and want to change a line on down below. If I do that and continue to run I get a message saying ... "The code changes you have made will not b...more >>

C# and XmlTextReader.GetAttribute bug?
Posted by Willie B. Hardigan at 8/20/2003 4:43:09 PM
I have an XML file like so.. <?xml version="1.0" encoding="utf-8" ?> <zap> <data><string>abc</string><hex>a110ff</hex><rnd min="0" max="10"></rnd><string>xyz</string></data> </zap> and i have a function that reads it as follows... //------------------------------------------...more >>

VBScript functionality in C# application
Posted by R.Balaji at 8/20/2003 4:36:14 PM
Hi, Currently we are developing a C# application which does some standard validations (datatype/range/min lengh/max length etc.) on the form data. We are planning to provide a VB scripting feature, so that the user can specify his own validation for the form data. The system requirement is , ...more >>

Best DataGrid ?
Posted by Herve MAILLARD at 8/20/2003 4:32:39 PM
Hi, What is the best (free) datagrid for .NET ? Thanks, H. MAILLARD. ...more >>

short question: Get user specific folders
Posted by timtos at 8/20/2003 4:32:14 PM
How do I get the user path of the current user with C#? (X:\windows\documents and settings\USERNAME\) Thanks a lot in advance! timtos. ...more >>

How to Serialize 'null'?
Posted by David Sworder at 8/20/2003 4:28:54 PM
Hi, I've created a UserControl-derived class called MyUserControl that is able to persist and subsequently reload its state. It exposes two methods as follows: public void Serialize(Stream s); public void Deserialize(Stream s); Within the MyUserControl class, there is a f...more >>

Capturing the plain-text output of a stored procedure
Posted by Dimitris at 8/20/2003 4:20:18 PM
I'm using ADO.NET to call a stored procedure that runs the "BACKUP" command on selected databases. Is there any way I can capture the text output of the stored proc and return it to ADO.NET for displaying in my application? When I run the stored procedure from SQL Query Analyzer, I get an outpu...more >>

Float to int conversion error
Posted by Richard Thrasher at 8/20/2003 3:41:12 PM
Writing my very first C# program, I found what appears to be a compiler error. The statement int temp = (int)(100 * 36.41); assigns the value 3640 to temp. I've tried this code with various numbers in place of 36.41, but 36.41 is the only number I've found that produces the error. My...more >>

reflection, base class private properties, etc.
Posted by Sunny at 8/20/2003 3:30:52 PM
Hi, I have an old problem which I couldn't solve so far. Now I have found a post in that group that gave me an idea, but I can not fully understand it. The problem is: I'm trying to use a Windows.Forms.UserControl in a COM environment, i.e. I want to host that control in a COM host. So far, so ...more >>

FolderDialogBrower with Window 2000
Posted by Barry Pierce at 8/20/2003 3:06:41 PM
I have created a simple program to open a FolderDialogBrower box. I'm trying to use the FileBrowserDialog to select a network folder using UNC path names. The only option that seems to work is to set this.FolderBrowserDialog1.RootFolder = System.Environment.SpecialFolder.DesktopDirecto...more >>

Sending Mail in .NET on 9x machines
Posted by Nick Hauenstein at 8/20/2003 3:05:27 PM
Hello, Is there any way, components, or assemblies (entirely free, and freely commercially distributatable), to send mail using the SMTP protocol in C#? My want list is basically this: - Unlimited message size - Unlimited attachments (of unlimited size) - Can send through a rem...more >>

beta 2 to enterprise architect
Posted by David Cruz at 8/20/2003 2:55:36 PM
Hello to all!, i have been doing a proyect with c# beta 2, and i change it to enterprise architect, but it throws me a lot of errors. Could someone tell me about the problem?, what do i need? Thanks... Dave....more >>

private System.ComponentModel.IContainer components;
Posted by Edward Yang at 8/20/2003 2:43:12 PM
The designer generates this class member variable but never assigns it any value. private System.ComponentModel.IContainer components; What is the purpose to have this 'useless' variable here? ...more >>

FileStream problem
Posted by Mike Robinson at 8/20/2003 2:40:12 PM
The Win32 SDK had a great function called "ReadFile" that was a model of simplicity. Now I'm starting to use the new .NET Framework, which is supposed to be an improvement but the file reading is (as far as I can tell) nowhere near as good. FileStream fs=new FileStream(FName); fs.BeginRead (...more >>

How to Set Up a Private UDDI Server?
Posted by Greatfree at 8/20/2003 1:32:13 PM
How to Set Up a Private UDDI Server? Dear all, I attempt to set up a private UDDI server using .NET. But I didn't find out enough information on the problem. Anyone can give me some resources on the Web or any book talks about the issue? I would like to use the UDDI server to publish my Web...more >>

Why do the Direct X samples use mainly c++?
Posted by jackolantern33 NO[at]SPAM hotmail.com at 8/20/2003 1:14:27 PM
Like video capture... When you download the Direct X 9 SDK, there are like 12 samples for progs for DirectShow in C++, but only 2 in managed languages. Can you do everything in c# you can do in c++, in DirectX? How does one "convert" these c++ languages to c#? I'm not as familiar with c++ a...more >>

Working with windows service in c#
Posted by R A at 8/20/2003 12:35:01 PM
Hi I have created a windows service. I need the service to monitor some file status for any changes in the file size. How can I have the service execute the monitor function lets say every 10 seconds? do I need to create a seperate thread for that? I can't use the service events such as OnStar...more >>

Data Grid Columns
Posted by Ann Marinas at 8/20/2003 12:34:18 PM
Hello, everyone! I was wondering about data grids the other day, and I've got a question about it...... Can you hide columns in your datagrid even if the datagrid is binded? Thanks! Ann ...more >>

How to run the C# Console application as services?
Posted by Joe at 8/20/2003 11:56:15 AM
Dear Friends, How to run the C# Console application as services? I have a console application.I want run this application as background services.User don't want see the command propmt. If anyone knows please let me know. Thanks, Joe ...more >>

FOR PRO ONLY
Posted by Kate Luu at 8/20/2003 11:34:15 AM
Does any Pro out there know how to create an image or the picturebox in the runtime with sizing handle, so the user can size and resize the image or picturebox any way they want at runtime. Any help is deeply appreciated. Thanks you all in advance... Kate ...more >>

Feedback Please
Posted by John at 8/20/2003 11:26:01 AM
I know this is off the subject but I am looking for a good laptop to develop on. And I am wondering what others are using and reccomend! I am really looking at the Toshiba Tecra S1 and the IBM Aseries and T40. Thanks ...more >>

Regular Expressions
Posted by John Smith at 8/20/2003 10:38:05 AM
Hello all: I was wondering if someone had a good regular expression for a phone number. I came up w/on that does validation to the point of having an optional area code, but I would like to restrict the length of the entire number entered. For example, if they enter an eight digit number it...more >>

Deriving an event
Posted by Carlos E. Hernandez at 8/20/2003 10:33:23 AM
I have a base class which have a delegate, and an event. I want to derive this class and raise the event, so the consumer of the class will get the event? But I get the following error C:\Documents and Settings\Carlos\My Documents\Visual Studio Projects\MetodosN\Classes\PuntoFijo.cs(143): The ...more >>

Help to select an Architecture
Posted by Champika Nirosh at 8/20/2003 10:12:31 AM
Hi All, We have developed stand alone application and it was started small and now has become big and we are on our way to structure it. (Thought a backward process we got to do it) So right now we have some hanlder class which keep details (properties) of each models and they are responsib...more >>

DatTables
Posted by Steve Bezner at 8/20/2003 9:23:34 AM
I have a System.Data.DataTable in memory in which I would like to change the value of a column for all rows. Is there a method to change all rows to a specified value? I know I can loop thru all the records (see below), but I would like to update the datatable with 1 statement, perhaps an sql...more >>

Determine the object (parent?) from an inherited class.
Posted by dsandor at 8/20/2003 9:03:41 AM
I have a class that is inherited by another class. Let say: public class vehicle { public string color { get ... set ... } } and.. public class truck : vehicle { property int wheels { get... set... } } From within the vehicle class I would like ...more >>

How to make a shared class that holds cacthed data?
Posted by Trung at 8/20/2003 8:48:08 AM
Hi everybody I write a class named SharedClass that holds catched data that would be available for all clients by using static method/member. This class is registered in the assembly folder. And I write 2 client applications Client1 and Client2 that use SharedClass. But Client2 cannot get t...more >>

EntryPointNotFoundException
Posted by BetaTesterWannabe at 8/20/2003 5:31:30 AM
I'm trying to get an unmanaged dll to run in c#. I have an unmanaged c++ dll fileParser.dll . I write a managed c++ dll fileparser_mcpp.dll, which is essentially a wrapper. I call a function in fileparser_mcpp.dll from a c# client and the message dialog appears... //----------------------...more >>

C# Book F1 F1
Posted by Amith Justine at 8/20/2003 4:54:18 AM
Hi all, Can any one suggest a Good book on C# which gives a good base as well as Advance topics. Thankz Justine...more >>

Controls in a form
Posted by Alessandro Rossi at 8/20/2003 3:56:24 AM
My problem is to scroll all the controls in a form. The problem is: If there are controls that contains still others controls, that contains still others controls ecc... how can i write an iteractive procedure to scroll all the controls in the form? Thank you so much Alessandro Rossi...more >>

C# and XML
Posted by jorg at 8/20/2003 3:15:20 AM
Hi .. How Can I read the information if they are in XML format , and how to extract the Atrbute Values ... How to do that by using the C# code .. thanks...more >>

Accessing Form Methods
Posted by 0 x deadbeef at 8/20/2003 2:33:59 AM
I have constructed the following form: public class Form1 : System.Windows.Forms.Form { //code here to declare components .... public void GenerateNodes() { FillDirectoryTree(tvwSource, true); FillDirectoryTree(tvwTarget, false); } public Form1() { // // Required for Window...more >>


DevelopmentNow Blog