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

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

more then one indexer per class
Posted by Yoramo at 11/30/2003 11:52:24 PM
Hello I have a class the containes several ArrayList's and I whold like to use a indexer for each one. I'm getting a compilation error. "already defines a member called 'this' with the same parameter types" can any one advice: can I declear more then one indexer? thanks Yoramo ...more >>

Equivalent of getch or getche in C#
Posted by Justine at 11/30/2003 11:05:02 PM
Hi All, Which is function equivalent to getch/getche of C++. Thanz in Advance, Justine...more >>

Executing DOS commands.... F1 F1 pls...
Posted by Justine at 11/30/2003 10:02:13 PM
Hi All, How can v execute DOS command while executing Console Application written using C#, like cls,dir commnads. Thanz in Advance, Justine...more >>

Reading stdout in C#
Posted by Ray Mitchell at 11/30/2003 9:35:16 PM
I would like to be able to read stdout from a command-line process I start from C#. Any suggestions/samples would be appreciated. Thanks, Ray Mitchell ...more >>

Need help setting up Solution
Posted by Ray Mitchell at 11/30/2003 9:27:49 PM
Hello, I currently have a .dll assembly and 2 .exe assemblies that both use the ..dll assembly. I currently have the IDE set up as 3 separate projects. I must always first build the .dll assembly, then the other two. What I'd like to be able to do is to set it up so that they all work toget...more >>

ManagementObject.Put() not persisting
Posted by David Clegg at 11/30/2003 9:10:24 PM
I initially posted this to .Framework.WMI a week ago but am yet to have a response... I am having trouble changing properties of a Windows Service application using the ManagementObject class (in particular the StartMode property). I can change the property and calling ManagementObject.Put do...more >>

Constraint violation messagebox of datatable
Posted by rakesh at 11/30/2003 9:08:03 PM
Hi, The default behaviour of the datatable when a data doesn't adhere to a constraint is to pop-up a messagebox and state the rule. I would like to disable this behaviour and if possible automate it so as to set the row errors. Is this possible? Thanks in advance... rakesh ...more >>

Setting the lifespan of a thread
Posted by Nicholas Beenham at 11/30/2003 8:55:32 PM
Hi all, Is there a way to set the lifespan of a thread. I am trying to start a process that may or may not have an outcome and want to finish it after a certain length of time finished or not. So I have Thread t = new Thread(new ThreadStart(targetMethod)); t.start(); how can I termi...more >>



Form, form, another form
Posted by fh1996 at 11/30/2003 7:56:20 PM
Form.Owner and Form.Parent, what's the difference between them? Form.ShowDialog() and Form.Show(), when to use which? Form.Activated(), what does it mean when saying a Form is "activated"? Thanks! ...more >>

Questions regarding assembly
Posted by fh1996 at 11/30/2003 7:51:41 PM
csc /target:module MyMod.cs What's meaning of "NETMODULE"? Is /target:module always going to generate xxx.netmodule? Does C# compiler only generate the following 3 types of files: .EXE, .DLL and .NETMODULE? When should produce .NETMODULE files instead of others? Is the only use of .N...more >>

Windows Media Player taskbar
Posted by Daisy at 11/30/2003 7:40:18 PM
Anyone know if it's possible to write toolbars for the taskbar like the WMP one (right-click taskbar -> toolbars -> media player)... It's very cool, and I'd like to do something similar for my app :-) Thanks :) ...more >>

Adding buttons to the form's title bar
Posted by Picho at 11/30/2003 6:03:04 PM
Hi all, Is there any .NET way (I am not rulling out API usage) to add button(s) to a form's title bar? I found some non-.NET solutions that did actually work in VB6 but not in the ..NET forms... I tried painting, but the paintaing area provided by the form is only the client area - no vi...more >>

Interop without interop
Posted by Tamir Khason at 11/30/2003 5:45:55 PM
Is it possible (if 'yes' - how) to transfer data from VB application to .NET application and v.v WITHOUT using Interop (very expencive process). I need to manipulate big bunches of raw data between VB6 and .NET application (both are running) - done benchmark: 1) XML dom - VERY BAD 2) Interop - ...more >>

How to install and register a 30 day trial
Posted by Brian at 11/30/2003 4:28:24 PM
I have a C# application that has an install and registration process. I need to create a robust 30day trial that can be register later. I have most of the work done, but I want to know the best way to store the date the product was installed, and then to retrieve this. I was thinkin...more >>

Winforms, multiples llamadas (multiple calls)
Posted by soke NO[at]SPAM datafull.com at 11/30/2003 3:47:03 PM
Existe alguna manera para realizar la llamada de un WinForm del proyecto B en un formulario MDI de un proyecto A. Es decir.... Formulario A de proyecto A debe generar una instancia de Formulario B del Proyecto B. Siendo Formulario A un formulario MDI father... Les agradezco mucho!! ------...more >>

Assembly Security
Posted by Philip Carnstam at 11/30/2003 3:07:58 PM
Hi, I am building an application where I want users to be able to build their own assemblies that they can implement and share in the application. The problem is that I want to add security to these assemblies. I want to allow usage of my assemblies, the System assembly and the System.Math as...more >>

Looking at the size of my two installed Frameworks . . .
Posted by Stan Shankman at 11/30/2003 2:26:58 PM
Greetings all, I was visiting my “Add/Remove Programs” window, and happened to notice a huge size disparity between the two installed Frameworks. Microsoft .NET Framework (English) v1.0.3705 -- 1.69GB Microsoft .NET Framework 1.1 -- 39.0MB What’s up with this?...more >>

How to convert C# Code to a XML file to parse it
Posted by Robert.Fischbacher NO[at]SPAM t-online.de at 11/30/2003 2:13:23 PM
Hello, does anybody know if there is a existing tool that can convert valid C# Code to a XML structure? I tried to parse a C# program to analyze the structure of the existing program code, but it's really, really very complicated. So, if there would be a existing tool that converts the C# fil...more >>

.Net is a pig
Posted by Mike Peretz at 11/30/2003 1:38:47 PM
I have tried everything to make .NET return memory to the OS. I use Dispose and GC.Collect() as much as possible. I understand that if the memory is available then why not take it and keep it. However, I noticed that memory is only returned to the OS when the machine is desperate for RAM, but at ...more >>

breakpoints with c# and asp
Posted by Brian O'Haire at 11/30/2003 1:31:17 PM
Hi I am trying to write an asp application using c#. If I create a console application with my code, I have no trouble setting break point in my code and using the debugging features. However when I put the same code into an asp.net web page, the break points are ignored. The trace tells ...more >>

Problem with TreeView-TreeNode
Posted by Jeroen Ceuppens at 11/30/2003 12:37:41 PM
Hi, I want to make something that adds a TreeNode to the end of TreeView, that TreeView Looks like + Level 1 + Level 2 + Level 3 - Level last The problem is, how do I know at which place I should add the node? It must be added on a deeper level as the last node befor...more >>

Image Columns in ListView
Posted by Marc W. at 11/30/2003 12:00:28 PM
Hello, I am trying to create a ListView object on my form with two columns. A small, 32 pixel wide column on the left for holding images, and a column that takes up the rest of the ListView on the right for storing text. My question is this: how do I store images in this first column? I see ...more >>

Controlling Downstream/Upstream over a network
Posted by Serdar C. at 11/30/2003 11:53:45 AM
is there a way that i can configure download or upload speed over a network.. for ex. there is a server machine with a limited UL/DL speed and 3 clients called A,B,C.. A is used for downloading files from internet so it has a higher download speed and lesser upload speed while B is used for web ...more >>

how to go from decimal to Octal numbers in c#
Posted by stanm NO[at]SPAM charter.net at 11/30/2003 9:22:56 AM
The convert method allows us to change any base number (bin, octal, hex ) to decimal, but how can I change a decimal value back to an octal number??? Thanks in advance Stan...more >>

how to go from decimal to Octal numbers in c#
Posted by stanm NO[at]SPAM charter.net at 11/30/2003 8:36:45 AM
The convert method allows us to change any base number (bin, octal, hex ) to decimal, but how can I change a decimal value back to an octal number??? Thanks in advance Stan...more >>

Upgrading from 1.0 to 1.1
Posted by Jason King at 11/30/2003 7:30:13 AM
Hello I have a copy of Visual C#.net running on version 1.0 of the .NET framework. Can anybody tell me how to set up Visual C# and the IDE to use version 1.1 of the framework? I can't find anything in the IDE or the registry or any tool or info at all, anywhere! Amazing. Many than...more >>

Read others Process Memory?
Posted by GRABLER Georg at 11/30/2003 7:12:30 AM
Hello everyone. A not too long time ago, i wrote a Post about "Reading process memory". Now, i got a good answer, about using the "marshal" class. I read over the class quickly, but i could not find a solution to write anothers process memory. As it was done in C++ (WinAPI) IntPtr hPr...more >>

How to write reg_binary to registry?
Posted by Allen Lee at 11/30/2003 6:20:53 AM
The Problem was that when I wanted to use C# to write a REG_BINARY data to registry, it came to me that the method SetValue() of class RegistryKey cannot let me specify the type. What must I do if I want to write a REG_BINARY data to registry? Thank you very much!...more >>

Problems on writing a specified type of data to registry!
Posted by Allen Lee at 11/30/2003 4:52:51 AM
The Problem was that when I wanted to use C# to write a REG_BINARY data to registry, it came to me that the method SetValue() of class RegistryKey cannot let me specify the type. What must I do if I want to write a REG_BINARY data to registry? Thank you very much!...more >>

PInvoke and structs question question
Posted by Carlos_Guzmán_Álvarez at 11/30/2003 3:28:00 AM
Hello: I'm trying to execute a function of a unmanaged dll using PInvoke, i have definied the function as: [DllImport(FbClient.DllPath)] public static extern int isc_dsql_prepare( int[] status_vector, ref int trans_handle, ref int stmt_handle, short length, string statement, sho...more >>

Cannot take the address or size of managed type
Posted by Jón_Sveinsson at 11/30/2003 2:25:54 AM
Hello everyone I have been trying to read and write struct to binary files, I'm using to functions to convert the struct to bytes and bytes to struct, I always receive the following error C:\Documents and Settings\jon.JONHS-LAP\My Documents\Visual Studio Projects\StructTest\Class1.cs(...more >>

Delphi's TDataSet replacement...
Posted by Julian Maisano at 11/30/2003 2:00:31 AM
Is there any C# class 'equivalent/replacement' for Delphi's TDataSet? I'm just thinking to translate an application mine, but it's based in a framework (also mine) that often uses TDataSets so I need to know if this could be done in C# without much of pain. To all you that don't kwnow anyth...more >>

When does a binding update its data source
Posted by alton.goerby NO[at]SPAM freenet.de at 11/30/2003 1:56:13 AM
Hello, im using a data bound numeric up down control, the problem is the binding updates the data source only if the numeric up down control looses focus, but i want it the binding to update the data source each time i change the value in the numeric up down control, any ideas? Greetin...more >>

Problem with wiring an event to a dynamic LinkButton
Posted by Bill at 11/30/2003 12:44:40 AM
I'm trying to dynamically build several linkbuttons and wire them up to a method called OnLinkClick . . . For the life of me, I don't understand why the code below isn't firing the event. LinkButton lbBC = new LinkButton(); phBreadCrumb.Controls.Add(lbBC); lbBC.Font.Size = 11; lbBC.Cs...more >>

Bitmap
Posted by jerry chapman at 11/29/2003 9:39:55 PM
I have program that creates a new bitmap each time I display a new image. The code follows: myBitmap = new Bitmap(cols,rows); While I was running it I received a warning about virtual memory being low. Was that because I didn't delete the old bitmap before I created a new one? If so, how do ...more >>

What am I missing by not upgrading?
Posted by ww at 11/29/2003 8:51:45 PM
I have been leaning C# for a month or so now. I'm enjoying it. However I don't have the newest version of viusal Studio.NET. You know, VS ..NET 2003. Will I miss much if I stay with my older version of VS .NET or should I really look into upgrading? If so, Why? thanks. -w w...more >>

How to identify the calling method of a method
Posted by Rakehs at 11/29/2003 8:24:22 PM
Hi, I have a method Show() which is invoked by several methods at different intervals. I want to identify the calling method within Show() whenever it is invoked. How do i do this? Thanks in advance Rakesh ...more >>

calc button size needed to show its text
Posted by srichter NO[at]SPAM autocoder.com at 11/29/2003 7:12:09 PM
is there a "GetTextExtentPoint32" equivalent in Windows Form or Font class? from the button text I would like to calculate the size that the button needs to be. thanks, -Steve...more >>

Draw functions
Posted by cody at 11/29/2003 5:44:32 PM
Hi, I'd like to "pass" a function, as I write it (for example x^2), to a member of class, which draws this function. I dont know how to do. thanks fulvio ...more >>

Cannot convert to System.IntPtr
Posted by Daisy at 11/29/2003 4:49:15 PM
Having a weird problem... Just moving some code into new classes & methods. Originally, I created a new instance of "Game" (my form), and it created a new DX Device using: _device = new Device(0, DeviceType.Hardware, _form, CreateFlags.SoftwareVertexProcessing, _presParams); This work...more >>

Moving Between Forms
Posted by Corey at 11/29/2003 3:59:33 PM
Dear All, I know there's a simple solution to what I want to do, but for the life of me I can't figure it out. I think it's because I've been corrupted by too long with VB6..... :) Any way this is what I want to achieve. FormA has a button on it that creates an instance of FormB. It then ...more >>

how can i capture the exit/close event when someone clicks the "x" button
Posted by Mullin Yu at 11/29/2003 3:15:46 PM
as subject ...more >>

HttpWebRequest GET with no Gzip?
Posted by poi at 11/29/2003 2:51:48 PM
I want to do an HTTP "GET" against a remote web server, and make sure that I get data back with gzip so the transfer is as fast as possible. It seems like gzip encoding only works with a "POST", and I can't "POST". This throws an exception "An unhandled exception of type 'System.Net.Proto...more >>

Sending command to COM port
Posted by Kev at 11/29/2003 2:30:03 PM
Hi all, I am looking for some examples in C# on how to communicate with COM port. Does anyone has any good examples of it? Thanks in advance. Regards, Kevin ...more >>

Interaction with a different application
Posted by Fabio Cavalcante at 11/29/2003 1:17:08 PM
Hi All! I have an existing application running on my machine and I need my application to interact with that one filling the fields (textboxes/comboboxes... ) for me and I'm really having problems passing the data do the application. Does anyone has any example I can use? Thanks ! Fabio ...more >>

Can I use Process to execute a console application without showing the command prompt
Posted by Mullin Yu at 11/29/2003 12:47:44 PM
But, I want is that I can have a Main app that will start a new process or kill one particular or all process. The process will open a console exe. But, I don't want the user to close the console windows by themselves, and force them to use the Main app. If I use Windows Services, I'm not sure...more >>

Info sul Server
Posted by Tricky at 11/29/2003 11:53:54 AM
La domanda è un po generica (e forse utopica).... comunque è possibile avere una serie di informazioni sul Server tramite C#? Temperatura CPU Stato HD (funzionamento corretto) Stato PiastraMadra Stato Alimentatore/ventole Stato della rete Programmi in esecuzioni e ... (non è finita)...more >>

2d editor in c#
Posted by jpmprb NO[at]SPAM sapo.pt at 11/29/2003 11:28:46 AM
I know almost nothing about c#, although I know C++ quite well (I think ;-)) and some Java. As it seems c# is a good alternative to Java, I am trying to decide if c# is a good option to the following: - A simple 2d graphical editor allowing the drawing of rectangles, circles, text objects, an...more >>

Hook
Posted by Omar at 11/29/2003 10:18:40 AM
Hi!! How can i make a global keyboard hook in c#?? thanks... ...more >>

Binary question
Posted by William Stacey at 11/29/2003 9:57:35 AM
Given any arbitrary byte (or int for that matter), is there a way to figure out: 1) The *number of one's set without a loop? Maybe some formula?. 2) Looking from left the right, if all 1's are continuous with not intervening 0's. 0's on the end ok. TIA -- William Stacey, MVP ...more >>


DevelopmentNow Blog