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# > november 2003 > threads for tuesday november 4

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

Third party grids, combobox, etc
Posted by Craig Kenniston at 11/4/2003 11:00:04 PM
Hi, I don't know if this is the proper place to ask this. I'm looking for components from 3rd parties that has a nice and powerfull dbgrid component as well as combobox, etc. I just don't know which products are available. From my Delphi background, I just know about devexpress.com, ...more >>


Getting the underlying Type of an Array Type
Posted by mhreynolds NO[at]SPAM mail.com at 11/4/2003 10:16:24 PM
Does anyone know how to get the underlying type of an Array type? Here's a bit of code demonstrating what I'm looking for... public Type getUnderlyingType( Type arrayType ) { if( !arrayType.IsArray ) throw exception //get the underlying type and return it } In Java you can ca...more >>

Enter makes beep in textbox (how to remove ?)
Posted by Cybertof at 11/4/2003 9:15:37 PM
Hello, I want to change focus from one textbox to another next to an 'ENTER' keypress. But each time the user presses the ENTER key in a non multine textbox, the systems beeps. How to remove this beep ? Regards, Cybertof....more >>

What's the right way to do this? (threading/AppDomains)
Posted by Mountain Bikn' Guy at 11/4/2003 8:45:10 PM
I need some advice on this. I am working on a fairly complex calculator app (C#) with lots of functions (and these functions in turn use math functions from an unmanaged C DLL). A calculation takes a lot of time (up to hours), and should run on a separate thread from the one that the GUI uses. Th...more >>

delegate and "+=" operator
Posted by José Joye at 11/4/2003 8:42:12 PM
The example at the end make me perplex... Looking at the msdn documentation, the inheritance tree that relates to "delegate" is as follow: Object<--Delegate<--MulticastDelegate. Unless I'm blind, there is no "+" operator as well for this class. To be able to combine delegates, I thought w...more >>

casting question
Posted by Kurt at 11/4/2003 8:26:23 PM
i just can't figure out why something im doing is not working correctly.... public interface IInterface { int someProperty { get; set; } } public abstract class II_interface : IInterface { private int m_someProperty; public int someProperty { get { return m_s...more >>

Terminating Systray Application On Shutdown does not work (it does not exit the app)
Posted by GoogleJon NO[at]SPAM VisualBasic.net at 11/4/2003 8:20:02 PM
I have written an application that lives in the systray but when I try to close windows or logout it does not close my application and therefore prevents windows from shutting down or logging me out. It is essential that I solve this problem but I have run out of ideas can anyone help (please!) ...more >>

Problems with GetString?
Posted by Simon at 11/4/2003 7:36:23 PM
Hi, Can anyone explain the following behaviour? private static int BUFFER_SIZE = 1024; private byte [] Buffer = new byte[BUFFER_SIZE]; private Encoding ASCII = Encoding.ASCII; private System.Net.Sockets.Socket mySocket; // Already accepted a connection... int Length = mySocket.Receive(Buf...more >>



One more question before I make my decision C# or Java
Posted by Ad Bec at 11/4/2003 7:32:42 PM
I know that this question has probably been asked before but I am not in the mood to search the forums I am already tired of doing that. I need an answer for my What are Microsoft corp. plans for C# . Will it replace C and C++? How about in respect to Java. I decided not to go java becauase t...more >>

NumericUpdown supporting Themes
Posted by Patrick Blackman at 11/4/2003 7:28:50 PM
Can anyone tell me how to get the numericupdown control to support themes? ...more >>

doubt in c sharp
Posted by Baskar RajaSekharan at 11/4/2003 7:25:04 PM
Please clarify My doubt.. 1) How to find out whether the component devekopment in Csharp is in Relase Mode or Run Mode? 2) Like Class Id in C++ , what the Unique Id for C-shap Component? ...more >>

Installing Question
Posted by John at 11/4/2003 7:10:21 PM
I have a package built in C#.Net. I have the deployment package all set. However, I have a file that needs to be installed in the project but I don't want it be overwritten by an older version of the file if a user updates it before another user runs the install. i.e.. Customer 1 installs to ...more >>

ArrayList deep/shallow copy question
Posted by Cybertof at 11/4/2003 6:51:32 PM
Hello, Can someone explain me what is the differences between these 2 lines of code : MyArrayList2 = MyArrayList; MyArrayList2 = MyArrayList.Clone(); MyArrayList/MyArrayList2 are aray lists of class objects implementing the CompareTo() method, so the list is sortable. What happens ...more >>

quick question on al.exe
Posted by tariq at 11/4/2003 6:24:00 PM
Hi, got a quick question on al.exe i have an assembly say library.dll without any strong name i have a sn pair say org.snk how do i sign library.dll with org.snk using al? tx -T ...more >>

Button handler parameters - more?
Posted by Jim Witt at 11/4/2003 6:06:14 PM
Ref: Win2000, .NET 1.1 Is it possible to set up a series of buttons, and when each is clicked it passes a parameter (MyButton.Text is fine) to a single event handler shared by all the buttons? 'ToolBar' is NOT an option. Thanks! ...more >>

is there a c# -> c++ code converter out there ?
Posted by Jon Rea at 11/4/2003 5:55:38 PM
is there a c# -> c++ code converter out there ? Hi people, I was just wondering if there is a C# to C++ converter out there. I have some working c# code and need to integrate it into a non-managed c++ program. The classes used are all user defined and use simple floats ints etc, so its just...more >>

How to overcome the limitation: Cannot pass 'argument' as ref or out, because ' argument ' is a marshal-by-reference class
Posted by Mountain Bikn' Guy at 11/4/2003 5:45:44 PM
It is known that one cannot pass arguments as ref or out in a marshal-by-reference class. My problem is that I have a C DLL (and C# wrapper) that I need to isolate in an AppDomain and then I need to interact with many objects in that DLL and wrapper by reference. (So the classes inherit from MBR...more >>

Chart.Export throws COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC.
Posted by Steven at 11/4/2003 5:42:41 PM
Hi there, I am trying to export a chart using the Excel11 object from C#. I can properly open workbooks and read cells, but calling Export() on the Chart object throws a COMException Exception: System.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC. a...more >>

getting fileinfo from remote computer shared directory
Posted by Uzi Baruch at 11/4/2003 5:33:58 PM
Hi! I need to get file information from a remote computer, the thing is, i need to use different credentials to get that information. My question is: how the add the credentials to my code, and with what objects this should be done. Thanks, Uzi ...more >>

capturing crash
Posted by cs at 11/4/2003 4:33:25 PM
How can I capture the events leading to my windows application crashing? would a big try catch around the Application.Run() do the job? in my head that launches a thread and if that thread crashes somehow my try catch wont do crap, maybe im wrong. So what do you guys do to capture a possible app...more >>

Empty a Datagrid
Posted by Imad Belabbes at 11/4/2003 4:16:21 PM
I just started working with C#. I have a combobox where upon selecting a product a grid is displayed in the form with a bunch of data. When selecting another product, I get an exception because the datagrid is not empty. How do I empty a Datagrid. Thanks, Imad. ...more >>

How to thread a class
Posted by Bryan Masephol at 11/4/2003 4:15:45 PM
Hi All I'm wondering how to thread my control class. I've got a main GUI class that calls to the control class to perform all the work ( database, processing, printing, ect... ). What I'm looking to do is to thread that control class so that the GUI dosen't "freeze" when a intensive proces...more >>

Comparing a Class with a Base
Posted by Guinness Mann at 11/4/2003 3:36:43 PM
If I have a class foo: public class foo { string baseString; public foo() { baseString = ""; } public foo(string s) { baseString = s; } public static bool operator==(foo lhs, foo rhs) { return lhs.baseString == rhs.baseString; } } And a derived class bar: ...more >>

Drag-n-drop
Posted by Dmitry Karneyev at 11/4/2003 3:24:28 PM
Hi! I use OnMouseDown event to begin drag-n-drop in listbox but when I call to ListBox.DoDragDrop(params) OnDoubleClick event is not working. What I need to do to force OnDoubleClick work? Thanks. ...more >>

format number
Posted by Ryan Moore at 11/4/2003 2:24:26 PM
how do I format the number of sig digs in the left hand side of a number? for example I want 1 to be 0001 thnx ...more >>

Class Question
Posted by Eric at 11/4/2003 2:23:46 PM
I have created a class based on an XML file using the XSD.exe .Net utility program. The class has all of the XML elements as properties of the class. I am wanting create a way to loop through each property based on the string name. Basically, the xml file will be deserialized into the class obj...more >>

Line spacing and DrawString??
Posted by drewtenn NO[at]SPAM yahoo.com at 11/4/2003 2:11:14 PM
I posted this to framework.drawing, but did not get any responses... Maybe here?? I am drawing some text using DrawString() and using a bounding rectangle so that when the string is too long it wraps automatically. I want to decrease the amount of space between the lines. How would I go abou...more >>

Best way to launch an application (with UI) on a remote machine??
Posted by Michael Howes at 11/4/2003 1:24:49 PM
I have a c# windows form that talks to a web service on a server that then can talk to multiple "agents" on different machines using web service calls. I want to be able to launch an application of the users choice on the remove, "agent" machine. I've discovered that Process.Start() won't ...more >>

fax service?
Posted by ll at 11/4/2003 1:24:40 PM
Hi, How to use the fax service API through csharp? It it a object in .Net? Thanks... ...more >>

Confused about GetCustomAttributes from FieldInfo
Posted by cnathaide NO[at]SPAM yahoo.com at 11/4/2003 1:08:49 PM
I am learning about attributes and at this point, I am completely confused. I have posted some code below. I do not understand the following points: 1) The TestAttribute does not appear for the StructureChanged field, i.e. the GetCustomAttributes() method does not return any attributes eve...more >>

Trying to load a dataset
Posted by jaime at 11/4/2003 1:01:21 PM
1 I load a text file into a dataset, after doing a bit of work.. 2 Now I have a dataset full of data that I like to transfer to a data base 3 My problem is that if the rowstate of the row is set to unchange, nothing happen!! :( ; 4 Is it posible to load / change this parameter to read Added? 5 ...more >>

beginner question
Posted by News charter at 11/4/2003 12:59:28 PM
I'm playing with MS Visual Studio C# I have a Combo box that drops down to let me pick a quantity value. called milkQnty However, my understanding is that C# treats this as an object. I want to use this value to multiply with the price to get the total. double milkPrice, milkTotal; milkP...more >>

accessing public members of different classes which i can't derive from..
Posted by Greg Merideth at 11/4/2003 12:43:57 PM
Using Visual C# I created two forms such as namespace test { public class SystemTray : System.Windows.Forms.Form { public createwindow() { stuff here; } public fadewindow() { stuff to fade here; } public displaystuffinwindow() { display stuff here; } } ...more >>

Adding an ArrayList to an ArrayList?
Posted by Gustaf Liljegren at 11/4/2003 12:43:37 PM
It doesn't seem to work. I get the error: System.NullReferenceException Object reference not set to an instance of an object. Here's the code: public ArrayList _rar; .... private void DoRAR(ArrayList array) { ... _rar.Add(array); ... } I tried ArrayList.AddRange() too...more >>

Resources for Regular Expressions
Posted by Reddy at 11/4/2003 12:37:56 PM
Hi, Can anyone suggest good resources on the net to learn "Regular Expressions". Regards, Srinivas ...more >>

Expiring a web page
Posted by sandman at 11/4/2003 12:13:47 PM
How do I make sure that the user goes "back" to an expired webpage? Is there a way to trap the Back button and load a different page with the "page has expired" message? margaret *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for ...more >>

How can i DO this
Posted by news.microsoft.com at 11/4/2003 12:10:38 PM
I have a struct but I have properties in that struct public and I want them to be visible in the designer for a user control so I have a property of SomeItem.Name, SomeItem.Value blah blah how can I retain that tree in the designer property window? ...more >>

how to avoid flickering in listview?
Posted by Joaquin Grech at 11/4/2003 12:01:45 PM
Hi I did alot of research on this on the web and msdn and I couldn't find anything. I have a listview showing as a grid (table looking, with rows and columns and no images at all, only text). I get the information to display on the listview from the network and I add items often and stuff. ...more >>

Regarding tab control...
Posted by Girish NS at 11/4/2003 11:51:54 AM
Hi, Is it possible to change the background color of buttons in the tabcontrol? I have set a custom background color for all the tab pages in the tab control and I want the same color for tab buttons also. Thanks, Girish ...more >>

USB NIC device driver
Posted by Roman S. Golubin 1709176985 at 11/4/2003 11:32:32 AM
Hello everybody! Can anyone say me about writing NDIS drivers and USB hardware clients with C#? It's posible? -- WBR, Roman S. Golubin ICQ UIN 63253392 golubin@arhcity.ru ...more >>

C# Magazine
Posted by Jim Cook at 11/4/2003 11:29:29 AM
I'm trying to locate a magazine that deals specifically with C#. Not a magazine that happens to have the odd C# article but a real C# Magazine with articles that deal only with C#...more >>

EventArgs pattern
Posted by Eric Cadwell at 11/4/2003 10:57:22 AM
What advantages do I reap by following the EventArgs pattern in defining custom event delegates? For example... public delegate void CustomEventHandler(object sender, CustomEventArgs e); public class CustomEventArgs : System.EventArgs { int index = 0; public CustomEventArgs(int Index) { ...more >>

How to create slide in menu bar?
Posted by 2003et at 11/4/2003 10:49:11 AM
Like VS.NET's left bar... Thanks in advance... ...more >>

Public Key changes on Rebuild All?
Posted by rplaire at 11/4/2003 10:47:41 AM
Hi there, Could someone help me over my lack of knowledge here? I am trying to find out why, when I use the same key pair, and the assembly version is constant, does the public key change with each Rebuild All in VS 2003? This sort of behavior will change the assembly strong name which is a B...more >>

ExecuteNonQuery
Posted by . at 11/4/2003 10:32:44 AM
Hi, I'm studying for a Microsoft exam. Can you tell me what will be returned if say I try to update a table in a database using something like: myCommand.ExecuteNonQuery(); and no rows are actually updated? Will it return zero? Thanks. ...more >>

Date Verfication
Posted by S at 11/4/2003 9:46:42 AM
Is there a good C# function to verify if a date is valid? Right now I am casting a date that is in string form (Convert.ToDateTime(dateString)) and catching an exception. This seems sort of lame. ??? ...more >>

Exiting a Thread
Posted by Maloney at 11/4/2003 9:29:45 AM
Exit thread in C#CF. I'm createing a thread and setting a class object for when to exit. Before creating the thread i check if the thread is running, if so set the flag to exit the thread. What is the proper way of waiting for the thread to exit. In C++ i would set an event and WaitForMulti...more >>

pinvoke -- making byte** more efficient
Posted by Ted Miller at 11/4/2003 9:08:45 AM
Hi folks, I've got an unmanaged routine I'm pinvoking to. It takes a pointer to an array of 3 pointers to bytes, typed as byte**. [DllImport("foo.dll")] public static extern void foo(byte **p3pb); unsafe { byte[] pB = new byte[3]; pB[0] = // irrelevent in exa...more >>

download the .net framework source
Posted by Josh at 11/4/2003 8:38:39 AM
Hello, Can Anybody tell me where can i possibly download the .net framework source code from ? -Josh... ...more >>

Close an MDI child window
Posted by guy_babbitt NO[at]SPAM fsafood.com at 11/4/2003 7:52:20 AM
I have an MDI application that starts an instance of a child form at application start. I have an event handler on a combo box checking for the selected value to change. When the select value changes, I call a method on the parent form to change some menu options, and then I need to close the ...more >>

Access base class fields using reflection
Posted by jonas.ekstrom NO[at]SPAM six.se at 11/4/2003 7:43:17 AM
Hi! Is it possible to access fields in a derived class using reflection? Code below works fine when I access it as a private member in the Page class, but not when accessing base class member through an interface reference. I have tried to change the snd argement to SetAttribute method fr...more >>

intercepting lines
Posted by Valery Polyakov at 11/4/2003 7:35:05 AM
I am drawing lines with a semi-transparent color (alpha=100). When these lines intercept, the color becomes more intense. Is there a way to avoid this, so that I would get the same intensity of color? Thanks a lot. ...more >>

How to access a 2-level deep base-class member
Posted by creepiecrawlies NO[at]SPAM hotmail.com at 11/4/2003 7:01:47 AM
Hey, I'm trying to access a function in my base class's base class. I want to skip one level in the hierarchy. class A { virtual void foo() { Console.WriteLine( "A::foo" ); } } class B : A { virtual void foo() { Console.WriteLine( "B::foo" ); } } class C : B { virtu...more >>

Books on C#
Posted by Ad Bec at 11/4/2003 7:01:19 AM
Hallo everybody! I have decided to start learning C# for several reasons. I don't have a background in C or C++ nor in Java. I spent 3 years programing websites using CFML and I was originaly inerested in Java although I never pushed seriosely at it. I would appreciate to hear as many proposal...more >>

Enum safety when casting from int
Posted by ktrvnbq02 NO[at]SPAM sneakemail.com at 11/4/2003 6:23:33 AM
Hi, Recently we had some code like this cause a failure: MyEnum myEnum = (MyEnum) (int) dt[row][field]; i.e. reading an int out of the database and casting it into a type-safe enum. The thought behind this construct was to enforce type safety and detect data corruption, which it only...more >>

FileNotFound exception when remoting
Posted by muntyanu NO[at]SPAM hotmail.com at 11/4/2003 6:05:31 AM
Hi All, I got exception when call Activator.GetObject( ... ) When I start my application I register Channel to communicate between two computers and register type ReceiverLocator for remoting in Bind() Then when I need to get reference to this object on remote computer I call Lookup and g...more >>

how to print a single line to a printer in C# without generating a page advance
Posted by pyearling NO[at]SPAM ndsuk.com at 11/4/2003 6:04:42 AM
Does anyone know how to print a single line to a printer in C# without generating a page advance? Thanks...more >>

Vertical Text box
Posted by i_love_nt4 NO[at]SPAM hotmail.com at 11/4/2003 5:45:39 AM
Does anyone know any way of having a vertically aligned text box? Thanks...more >>

Setting external SMTP Server in CDO
Posted by Von Shean at 11/4/2003 2:51:00 AM
I need to send ".mht" files to different recipients. I have saved .mht files using CDO. Now i have to send it across.. I have two options both have different types of problems Using CDO I have no idea how to set an external SMTP server since my host machine will not have any SMTP virtu...more >>

Create a graphical planner
Posted by Fabrizio at 11/4/2003 1:21:57 AM
HI, I need to create a form that shows a planner (with employees and working days ) where i can use a different colors for "busy" days and "available" days (i'll read the data from a Database). Is it an Excel sheet the only one way to create a Planner? Any other way? Thanks, Fabrizio ...more >>

File upload questions
Posted by Tomas Vera at 11/4/2003 12:04:21 AM
Hello All, I have some questions about how the file upload process works in a web app. Background: The user is filling out a tech support request form. On the form is a file upload control so the user can attach a log file. On the server, when the form is submitted, the log file needs to be ...more >>


DevelopmentNow Blog