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# > january 2006 > threads for tuesday january 17

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

Typedef in C#?
Posted by Fabio Cannizzo at 1/17/2006 11:55:28 PM
When you use generic, especially if nested, names can become very long. Is there a way around that, similar to typedef in C? E.g. something like class Mickey<T> {} "typedef" Mickey<T> MickeyT; Thanks, Fabio ...more >>

Communication between c# and java using SSL
Posted by yaron at 1/17/2006 11:40:03 PM
Hi all, I am building an application that use SecureSocket between java and c#. I found that java need a "keystore" to communicate while c# use cert like ..cer or .p12 or .pfx , etc. I have difficulties making them communicate. Can anyone gives examples on how to make the "keystore" using ...more >>

Windows Service Installation
Posted by Al at 1/17/2006 11:37:04 PM
Hi - I have a interesting issue that I am trying to resolve with a Windows Service I created. I am trying to allow the end-user to install multiple copies of the service on the same server (think SQL Server here, multiple instances on the same system). I am able to set the services name during...more >>

\n\r in text box
Posted by Ant at 1/17/2006 11:21:30 PM
Hi, I'm using \n\r to attempt to carriage return a string which will be displayed in a text box, however, the line remains one line. How do I cariage return a string being displayed in a text box? e.g. displayText = "Hello world line one\n\rHello world line two"; textbox.text = displayText...more >>

Structured Storage in .NET?
Posted by ERE at 1/17/2006 11:11:25 PM
I'd like to encapsulate several files -- mostly graphics files -- as a single file. Does .NET provide a convenient way to do this? COM provided structured storage -- but I definitely don't want to go there! Thanks, Dan ...more >>

Set Anchor on Mdi child
Posted by jh at 1/17/2006 10:05:49 PM
I am trying to create a simple mdi app with a form anchored down the left of the main form. In this "menu button" form I will have various buttons etc. (i.e. similar to lots of websites) However i cannot seem to achieve this. I have created an mdi parent, created another form and set its Md...more >>

How can an NT Service cause itself to stop?
Posted by dotnetprogrammer via DotNetMonster.com at 1/17/2006 10:04:29 PM
I have an NT Service written in c# (.net framwork 2.0). When it hits a certain error condition, I want it to be to cause itself to stop. How can I do this? -- Message posted via http://www.dotnetmonster.com...more >>

Form controls don't update in sync
Posted by Dick Swager at 1/17/2006 9:49:23 PM
I have a form with a progress bar and a label. The form launches a class that raises an event to indicate the progress. The event arguments contains integers to update the progress bar and a string to update the label. The event handler modifies the two controls with values from the argumen...more >>



Windows Service Functionality using IIS/Application Servers
Posted by nkunapa at 1/17/2006 9:15:49 PM
Hi: I am looking for any ideas/comments/suggestions on how a Windows Service kind of functionality can be acheived from a web application which which will run under IIS or for that matter any application server say Tomcat. I have a Windows service which should run every half hour and call four ...more >>

c# pocket-pc development problems
Posted by milk-jam at 1/17/2006 7:39:42 PM
I have 2 problems regarding my c# pocket-pc application made with vs2005. both are used in my other applications but i dont find a way to use them on my pocket pc version of the application. 1 How do i open my data in excel ?- did not fint any refrences to office in the pocket pc availabl...more >>

maximum .net process can use
Posted by Zen at 1/17/2006 5:56:13 PM
Hi, My production machine has 2G of memory, when aspnet_wp.exe goes up to about ~1.2G of memory usage, I start get out-of-memory exception. Other processes don't use as much memory and I added all the peak memory usage of all the processes (including aspnet_wp.exe), it goes up to no more th...more >>

Simple Inheritance question
Posted by relient at 1/17/2006 5:34:22 PM
Hi, I just started the chapter on "Inheritance" and I'm a bit confused so I have three questions: first, here's the code: using System; using System.Collections.Generic; using System.Text; namespace ConsoleProject1 { public class Base { public virtual void SomeMethod( )...more >>

multiple language support in C#
Posted by Lonewolf at 1/17/2006 5:32:46 PM
Hi all, in VC6, it was possible to mix multiple lang within the same project using different resource file adn resource only DLL, with Loadstring to change the UI string on the fly. I don't know what is the .NET way of doing that. Could someone please enlighten me on this?...more >>

Hover delay?
Posted by David Veeneman at 1/17/2006 5:30:43 PM
I want to introduce a one-second delay into the MouseHover event of a label. In other words, I want the user to have to hover over a label for one second before the label's MouseHover event triggers a response from the application. Here's what I've got so far: -- Add a timer control and ...more >>

how can i implement proxyservers in c#.net
Posted by TulasiKumar at 1/17/2006 5:29:47 PM
hi all, i have one requirement in my project.The requirement is i want to fix some domain sites in TcpIp like proxy servers behaviour.When ever end user passing the inforamtion of that domain sites,at that time i want to get the inforamtion and i ahve do some operations.How can i implement th...more >>

Threading problem with Garbage Collector
Posted by Christian Kaiser at 1/17/2006 5:14:50 PM
We have a component that has no window. Well, no window in managed code - it uses a DLL which itself uses a window, and this is our problem! When the garbage collector runs and removes our component (created dynamically by, say, a button click, and then not referenced any more), the GC runs...more >>

Transfer File via WebService
Posted by Mark Irvine at 1/17/2006 4:56:05 PM
Hi, I'm working on an application that needs to be able to transfer Excel files from remote users (using tablet pc's) to a central server. Is it possible to encode the Excel file in such a way so as to use web services to transfer the file? If not are there any other good solutions? Any...more >>

Cannot Convert Error Message - Newbie
Posted by Anthony D. Law at 1/17/2006 3:18:02 PM
I have created the following: [WebMethod] public SubjectProperty[] UpdateSubjectProperty(string _CDKey, string _UIKey, string _Subject) { SubjectProperty[] _SubjectProperty = _SearchController.UpdateSubjectProperty(_CDKey, _UIKey, _Subject); return _Su...more >>

explicit operator for a cast
Posted by John Richardson at 1/17/2006 3:17:07 PM
How does a custom casting operator work? I have a class that defines one, but doesn't work as expected (or perhaps, the way I want it to). I have the following example classes: ------------------ public class One : IOne { .... }//One public class Two { public One MyOne; .... ...more >>

Dialog Threading error
Posted by MAF at 1/17/2006 3:10:14 PM
I recently updated a simple program that uses a filedialog control to locate a file. When I try and run the following code I get this error: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute ...more >>

More then one array property?
Posted by Rainer Queck at 1/17/2006 3:02:17 PM
Hi NG, how can I implement more then one array property to a class? I have read about the Indexer, but as far as I can see this would only work for a Collection type of class like list or arraylist.... an I could only have one indexer per class right? Coming from Delphi I know array pro...more >>

Generic Collection of deferred generic types
Posted by Steven Cummings at 1/17/2006 2:48:54 PM
Hello, I've scoured this usenet group and didn't find anything specific to my problem, so hopefully this won't be a repeated question. I'm all but certain it's not. I would like to *declare* (not just instantiate at runtime) a generic collection whose element-type is a generic class too. Bu...more >>

ArrayList problem.
Posted by GTi at 1/17/2006 2:40:24 PM
If I use: ArrayList TimeScale = new ArrayList(); TimeScale.Capacity = 1000; TimeScale[20]="test 1" The last line trow me an error: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index Is there anything I don't get here? ...more >>

responding to user defined message from other applications
Posted by Lonewolf at 1/17/2006 1:31:31 PM
Hi all, please pardon me if this sounds too simple. Basically I need to have inter process communication, between a native MFC applicationa nd my C# program. Basically it works something like this, the MFC application is asctual a keyboard hook which translate keyboard combinations into sp...more >>

List<Type>
Posted by Rainer Queck at 1/17/2006 1:03:09 PM
Hi NG, I have a base class "Telegram". This class , as well as all descants have a static public field "public static int TelegramNo = <a tlg no>;" Now I added all descants of Telegram to a generic List<Type>: List<Type> tlgList = new List<Type>(); TlgList.Add(typeof(Telegram1)); Tl...more >>

Why is boolean column always checked?
Posted by Brett Romero at 1/17/2006 1:00:48 PM
I convert a collection to DataSet, reference the first table and throw that into a DataTable. The DataTable is used as a DataSource for a DataGrid. The DataGrid has an associated GridTableSyle. I use the RowChanged() event on a DataTable to capture changed column data. I get their values an...more >>

Rethrowing an exception and preserving stack trace
Posted by Lasse_Vågsæther_Karlsen at 1/17/2006 12:23:36 PM
If I got the following code: try { // something that might throw an exception } catch (Exception ex) { // Log contents of ex here throw; } this will rethrow the exception after logging it, however the stack trace from there on will show the line of the "throw;" stateme...more >>

CreateFromInstance fails
Posted by michael.cumming NO[at]SPAM gmail.com at 1/17/2006 12:09:12 PM
Hi all, The following call hr = appDomain->CreateInstanceFrom_3( assembly,type, VARIANT_TRUE,BindingFlags_Default,NULL,args,NULL, NULL,NULL,&objectHandle); is fails on some machines we are developing on. This is our first ...more >>

Create a discussion forum
Posted by Frank at 1/17/2006 11:44:12 AM
Hello, I would like to create a discussion forum. Anyone know of any good to decent articles/sources that would provide some sample code to get me started? Thanks in advance, Frank K. ...more >>

C# GUI event run a C executable
Posted by zenonk NO[at]SPAM comcast.net at 1/17/2006 11:07:27 AM
I have a C# GUI on a Windows XP machine. I need it to run a C executable which resides on a UNIX machine which is networked with the Windows machine. In C++, I think I could have done this with a System() call. Is there a way to do this in C#? thanks, Zenon ...more >>

create web drive
Posted by freddy at 1/17/2006 10:42:03 AM
I would like to create a virtual web drive like what xdrive has. I what this for personal reasons. I know this can be done I just do't know where to start. I would login to my webpage and have a virtual drive Like h:\%username% mapped to my desktop from my webserver....more >>

RadioButtonList Selection Resets On Postback
Posted by David P. Donahue at 1/17/2006 10:31:44 AM
I'm having a strange problem with a RadioButtonList (manually populated in the HTML, not data-bound) on one of my ASP .NET pages. I have the user select a value and click a button, then the code-behind's function for that button re-sorts a list based on the selected value. However, every p...more >>

Data Grid Auto Size
Posted by Microsoft at 1/17/2006 10:27:05 AM
I've been trying to find a way to auto size the columns of a data grid but I'm having some problems with it... I have a boolean column that are check boxes for the first column, but most of the ways that I've found cause it to become a text column. Does anyone have any ideas? Karl ...more >>

AssemblyConfiguration?
Posted by JSheble at 1/17/2006 9:37:22 AM
In the AssemblyInfo.cs file, what exactly is the AssemblyConfiguration used for? -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/...more >>

Using property to access elements of array?
Posted by pinetaj at 1/17/2006 9:27:48 AM
Hello, I have a question of using 'property' on accessing elements of array. There is an array member in a class. I'd like to restrict accessing the elements of the array through property. And also by annotating the set method of the property with user-defined attribute, i'd like to activate so...more >>

Newbie: capturing changed value of text field instead of default
Posted by Samantha Penhale at 1/17/2006 9:17:02 AM
On Page_Load I have set a default value to the field TxtDate.Text as shown below: TxtDate.Text = DateTime.Now.ToShortTimeString(); On the Click Event of my BtnSave I want to capture the default value if the user hasn't changed it, or the edited value of the field if the user has changed it...more >>

Socket ReceiveFrom Problem
Posted by Nuno Magalhaes at 1/17/2006 9:11:59 AM
Does the function below returns an UDP packet, for example, from the local machine? Why does it give me an error: "The best overloaded method match for ReceiveFrom... has some invalid arguments". Why this error? How can I receive a packet from a specific adapter, for example, my local machine...more >>

Fault on MSCORWKS on virtual server
Posted by Salvador at 1/17/2006 8:36:02 AM
Hi, I have a service that runs perfectly well on a normal server but when I install it on a virtual server the service suddenly stops (at random times), all the exceptions on my service are caught, the only entries that I have found are "The service terminated unexpectedly. It has done thi...more >>

Datagrid display records too slow
Posted by qilinw NO[at]SPAM hotmail.com at 1/17/2006 8:11:00 AM
In a winform I want to display database records using datagrid, with dataset for a couple of thousands records it seems very slow. I have read an article in group microsoft.public.dotnet.languages.vb. It uses datareader to solve this problem, it's a good idea. I have translated it in c# and want...more >>

downloading a large file!
Posted by DBC User at 1/17/2006 7:57:43 AM
Hi All, Quick question, in my program I need to download a large file (100MB) file. I would like to know how can I do this in segments so that if the download fails, I will able to download from the the place where the download fails. Thanks. ...more >>

calling a C# method asynchronously from VB
Posted by Lak at 1/17/2006 7:29:03 AM
Hi all I am trying to call a C# method (in a DLL) asynchronously from VB. I don't know how to do this. Any suggestion is appreciated. Thanks....more >>

eval, exec and passing function as parameters
Posted by Ido.Yehieli NO[at]SPAM gmail.com at 1/17/2006 6:25:30 AM
Hi all, I'm new to c# and .net and I have a few questions I did not manage to find an answer to: 1. what is the equivalent to the "exec" command in python/lisp? meaning: a string is given as input and the function execute it as a C# expression 2. what is the equivalent to the "eval" comman...more >>

Problems with IsSubclassOf
Posted by Paguro Bernardo at 1/17/2006 6:20:15 AM
Hi all, I'm building a user control in c#. This control has a property which can contain an instance of a user defined class which has to be a subclass of an abstract class A. I'd like the user of the control to be able at design time to select the value of this property from a dropdownlist s...more >>

Browse button
Posted by Alexandru Taeaha at 1/17/2006 5:30:02 AM
I want to create a button that will open a file browser dialog box for .exe files. also would apreciate if someone could give me an yahoo messenger id it would make my job alot easyer to contact soemone plz...more >>

Capture Icons
Posted by Just close your eyes and see at 1/17/2006 4:34:02 AM
Hello all i want to know how to capture the icon of a file or folder , or at least create shortcut icon for it , and then use it in my application thx all...more >>

Adding references: the details
Posted by _DS at 1/17/2006 4:17:16 AM
The two obvious methods for ref'ing assemblies are: Add a reference and 'Browse' for the actual DLL OR Add existing project to the solution, then add a ref to 'Project'. 1: I'd like to find out what the latter method is doing. I'm assuming that it makes sure that debug exe gets ...more >>

GetCharacterPlacement
Posted by Asaf at 1/17/2006 4:06:03 AM
Hi, Can any one can please post a code of how to use GetCharacterPlacement API with C#? Regards, Asaf ...more >>

HOW TO: Build a Connection String Programmatically
Posted by _DS at 1/17/2006 3:36:01 AM
There is an article on MSDN called: "HOW TO: Build a Connection String Programmatically in ADO.NET by Using Visual C# .NET" http://support.microsoft.com/default.aspx?scid=kb;EN-US;310083 The article outlines adding refs to MSDASC and adodb to a project in order to interactively generate and te...more >>

Unable to hide columns in datagridview
Posted by Stropher at 1/17/2006 3:23:48 AM
I have the following: this.dataGridViewBill.DataSource = tblResult; //hide the following columns this.dataGridViewBill.Columns[8].Visible = false; //email this.dataGridViewBill.Columns[9].Visible = false; //mobiltelefon When I run the programm, the columns are still displayed. I am de...more >>

C# 2005 Express: Menu Build | Publish
Posted by AA2e72E at 1/17/2006 2:59:01 AM
I have C# 2005 Express installed on a PC that is unconnected to the internet; therefore the copy is unregistered. I cannot see the Publish option under the Build menu option. Is this a penalty for not registering? Or is it that C# is not correctly installed? Any insights? Thanks....more >>

SMTPMail and server reply
Posted by Tim at 1/17/2006 2:26:39 AM
Hi all, I have a problem with SMTPMail as I want to evaluate the respone of the server, but unfortunately I could neither on the web nor in the MSDN find an example of it. There is no problem with sending the mails, however, I need to find out whether the server sent an error or said that e...more >>

How to ratate screen?
Posted by jor at 1/17/2006 2:02:02 AM
I want to rotate screen, but i don't know how to start. Have anyone even programed about this or known to refer to some information? Thanks....more >>


DevelopmentNow Blog