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# > october 2003 > threads for friday october 24

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

Regular Expression
Posted by Buddy at 10/24/2003 11:18:50 PM
Can someone please show me how to create a regular expression to do the following My text is set to [vbl] MyColumn{1, 100} Test I want a regular expression that sets the text to the following [vbl] testMyColumn{1, 100}Test Basically I want the regular expression to add the word test ...more >>

Windows Control Library Template for smart device project
Posted by Comcrap at 10/24/2003 9:58:15 PM
I'm trying to create a custom control for a smart device, and all the walkthroughs on msdn list a "Windows Control Library" project type under the smart device application wizard. I don't have this project type option. The only thing I could find on msdn was at: http://msdn.microsoft.com/libr...more >>

How can I traverse a list of properties of a class ?
Posted by Tim Conner at 10/24/2003 9:47:33 PM
Hi, I have a class that has defined like 30 string constants. I need to test a string against each one of this contants to see if it matches any of them. I was thiking to have this constants in a StringCollection, or String[], but I really don't want to duplicate code, since this list c...more >>

Is Descendent
Posted by Marco Rego at 10/24/2003 7:15:29 PM
How do I know if a class is descendent of another one, not necessaraly his direct parent ? In my case, I need to know if a certain class descends from Control. Thanks for any help. _____ Marco...more >>

PDB File -- Needed on End User Machine?
Posted by Harry Whitehouse at 10/24/2003 5:39:34 PM
I understand that the PDB file is for holding debug and link optimization code, but I'm wondering if I'm distributing my finished application to users who just have the framework (and not full SDK), if the PDB is necessary or has any value. Does anyone know? TIA Harry ...more >>

Call a function whose name is stored in a string?
Posted by Hugh at 10/24/2003 5:05:42 PM
Hi all, Is it possible to execute a function by getting the name of the function to execute from a string? For example: string FunctionName = "MyFunction"; which would execute MyFunction(). Any help appreciated, Cheers, Hugh ...more >>

IHtmlEditHost sample
Posted by Fatih BOY at 10/24/2003 5:00:29 PM
Hi, How can i use IHtmlEditHost, is there any sample or tutorial written in c#?? ...more >>

Problem with serialization of polymorphic array
Posted by Michal Piatkowski at 10/24/2003 4:27:33 PM
I have a problem with serialization of a polymorphic array. It has attributes defined XmlArray and XmlArrayItem for XML serialization. The attribute specifies Type1 but as my array is polymorphic I really want to have more than one type inside of it. So I have objects of Type2, Type3, etc....more >>



DataGrid - KeyPress event
Posted by john sutor at 10/24/2003 4:27:20 PM
When moving up and down with the arrow keys on my DataGrid, I cannot get either the Keypress, KeyUp or KeyDown events to respond. I am putting breakpoints in to capture the event but they never get fired. Any input will be helpful. JOhn ...more >>

PropertyGrid
Posted by Zoury at 10/24/2003 4:09:53 PM
Hi! Is it possible to use the PropertyGrid control without bind it to a control? As if it were a standard list? I would like to add "properties" in it but i never know what it will be. For now I use a DataGrid with 2 columns in it where the first one as the ReadOnly property property set to...more >>

Detecting a network connection
Posted by Scott Leonard at 10/24/2003 3:46:15 PM
Hello - I'm writing an application that will be used on "sometimes connected" devices (laptops, tablets). In C#, what is the best way to detect whether a network connection is present? I'd rather not rely on a network request timing out - the detection process must be very quick. Thanks ...more >>

No operators defined on ushort
Posted by Axel Dahmen at 10/24/2003 2:35:52 PM
Hi, I want to start a technical discussion on the fact that C# doesn't define any mathematical operators on other integral types than int. Simple things like the following just aren't possible in C#: ushort a,b,c; a = b = 0; c = a - b; Whatever integral data type you use...more >>

Adjust code access security rights programmaticly or through script?
Posted by jeremy NO[at]SPAM pdq.net at 10/24/2003 2:34:18 PM
Does anyone know if it's possible to programmatically modify .NET 1.1 Configuration Code Access security? Our ideal is to have a MSI installer package that the user can run that will adjust the Local Intranet security zone to be Full Trust so .NET WinForm applications can be launched though http...more >>

my own protocol like appHelp://somepage.html
Posted by Fatih BOY at 10/24/2003 2:29:52 PM
Hi, How can i register my own protocol like app-help://somepage.html which searchs typed files under a predefined folder (like document folder under installation root) ? Fatih BOY ...more >>

winservice on VS.NET
Posted by cs at 10/24/2003 2:09:15 PM
I started a winservice on VS.NET and it was all going fine, I wrote over 500 lines of code and wanted to test them without installing the service, so I added a main method and set a starting point to my project, now I have taken both those things out and when I compile no exe is made and it says ...more >>

Application.Exit
Posted by Karin at 10/24/2003 1:55:07 PM
Are there any situations when you cannot use Application.Exit? I have a class Error with a static function LogError and a static counter Errors. If more than 10 errors occur during 1 minute I want to shut down the program but Application.Exit() doesn't do the job. Any ideas? Thanks! /K ...more >>

Null out original reference?
Posted by RMD at 10/24/2003 1:02:17 PM
I need to be able to keep a list of object references, and null them out one by one at a later point in time. I realize this can be dangerous, but I have my reasons. I can't figure out, however, how to keep what is essentially a reference to a reference. I want to store my objects in an ArrayL...more >>

questions: c# and c++
Posted by Anne at 10/24/2003 1:01:14 PM
I have a c# application to call some c++/c API calls. Anyone can shed some light on how to do it? ...more >>

Problems getting to querystring params with .Exe launched from IEExec/SmartClient deploy
Posted by jeremy NO[at]SPAM pdq.net at 10/24/2003 12:51:59 PM
I have a WinForms based application that I'm launching over http (Microsoft's buzz word for this is aparently "SmartClient"). I had an issue trying to get parameters passed in through the URL that I thought I had solved. For example, let's say I wanted to do this: http://myserver/appdir/mywinf...more >>

ListBox
Posted by Dmitry Karneyev at 10/24/2003 12:30:11 PM
Hi! Could anyone tell me how to select listbox items by right button of the mouse? It works originally only with left button. Thanks. ...more >>

-- or ++ operators on ReadOnly property
Posted by Sacha Faust at 10/24/2003 12:27:31 PM
if you have a ready only properly like string.Length and I do --(string.Length) I get a compiler problem saying that I can't modify the value of the readonly property. From my understanding, the -- operator should be decrementing the value return by (string.Lenght) and not string.Lenght direc...more >>

Ask a Language Designer: boolean: C# vs. Xml
Posted by Metro Sauper at 10/24/2003 12:12:21 PM
Why is the default text representation for booleans in C# 'True' and 'False' whereas in xml it is 'true' and 'false'? It seems like it would make sense to have them both the same. Metro T. Sauper, Jr. President Sauper Associates, Inc. ...more >>

Object name as variable
Posted by Sorin Sandu at 10/24/2003 11:37:13 AM
How can I declare a new object with a variable name ? I'm trying to add many objects with s for each loop for .... Object varname = new Object() ...... ...more >>

Strong name signing and Interop.Word
Posted by Ben Empson at 10/24/2003 11:32:23 AM
Hi all. I am trying to write a Windows User Control that I can deploy over the internet in order to automate Word. I am getting data from SQL Server to write a report. I have managed to get to the point of having a working control that does everything I want. I am now looking at deployme...more >>

App. Installation/Update through an url ?
Posted by Cybertof at 10/24/2003 11:20:14 AM
Hello, I have build a simple C# application. Is it possible to : 1- Make it available through an url (http://.....) 2- When the user clicks the link, the application would be downloaded/installed/launched.If the application is already installed on the pc, it checks the version with t...more >>

HTTP Modules & Handlers or ISAPI?
Posted by PCC at 10/24/2003 11:13:54 AM
I need to be able to redirect web requests from certain parties to specific content. In the old days I would have used ISAPI to do this. Now days I am wondering if I should be doing this using HTTP Modules & Handlers or ISAPI. All the machines are running IIS6 and have the .NET framework instal...more >>

How to send Messenger popup via ASP.NET?
Posted by Adam Smith at 10/24/2003 11:07:36 AM
Does anyone have any example how to send a popup to a Windows messenger client from an asp.net page? Thanks in advance Adam Smith *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

*** New C# Language V2.0 Specification Now Available ***
Posted by Eric Gunnerson [MS] at 10/24/2003 10:43:19 AM
You may download the new specification at the C# Developer Center (http://msdn.microsoft.com/vcsharp/language). There is a discussion forum for the C# language on that same page. If you don't own a copy of MS Word, you can download the free viewer at: http://www.microsoft.com/downloads/det...more >>

Exception when using EnvDTE. How to fix?
Posted by Christina Androne at 10/24/2003 10:37:15 AM
Hi Has anybody encountered this: EnvDTE.DTE env = new EnvDTE.DTE(); raises this exception: {"COM object with CLSID {3C9CFE1E-389F-4118-9FAD-365385190329} is either not valid or not registered." } Cruising over the internet I have found out that this happends only when the framework ...more >>

instant messanger in C#
Posted by Laxmikant Rashinkar at 10/24/2003 10:36:22 AM
Hi, I would like to write an instant messenger program. I thought I would use a textbox for the text, so I can easily scroll up and down. But the problem is that I cannot use multi colored text inside a text box. So is using a panel the only way out? Assuming I used drawstring() to displ...more >>

Throwing exceptions from a custom configuration section handler
Posted by Thomas Koch at 10/24/2003 10:18:54 AM
Hi there - I have created my own implementation of System.Configuration.IConfigurationSectionHandler in order to have a special configuration section in an App.Config file that configures my framework. When a user makes an invalid configuration in this section I throw a meaningful exception, e...more >>

Check session object?
Posted by LL at 10/24/2003 9:58:38 AM
Hi, Where is the best place to check the session's object, if it's null, then redirect the user to login page? put into every page's load event? Thanks. ...more >>

Reading XML string from HttpRequest
Posted by Daniel Rimmelzwaan at 10/24/2003 9:57:37 AM
I am having trouble getting the XML out of an HttpRequest object. I am sending the XML from biztalk into my aspx page, after which I want to take the XML out of it and process it using a MSXML.DOMDocument. I understand that in the Request object, it is stored as a binary, and I can't figure ou...more >>

IE Automation
Posted by Daniel B. Harwood at 10/24/2003 9:38:01 AM
Using C# Standard Edition 2003 (a bargain!), I have written a multi-threaded Windows forms application which checks Web sites of interest for newly posted Web pages. On detecting a new page it announces it using the Speech API (mini tutorial on speech at bottom). I opted to check each Web...more >>

How to get Text from HyperLink in DataGrid?
Posted by Daily at 10/24/2003 9:37:54 AM
How to get text from clicked HyperLink in Datagrid? and Is possible returning to another aspx file? how?...more >>

Connection String
Posted by Dmitry Karneyev at 10/24/2003 9:33:28 AM
Hi All! I've got an ado.net app with several win forms. In the first form (form1) I connect to DB and in other forms I use connection string generated by the form1 and stored in sqlconnection object of form1. If I use windows authorization of SQL Server everything works fine, but when I us...more >>

C# and OLEFormat.Object?
Posted by Mark at 10/24/2003 8:53:01 AM
I have a C# add in that inserts a custom active x control into a worksheet. Once the object is inserted i can locate the object through both Shapes and Worksheet.OLEObjects. What I can't do is figure out how to use the object programatically. I added a reference to the object in the V...more >>

COM object with CLSID {...} is either not valid or not registered
Posted by Cristina Malavasi at 10/24/2003 8:51:18 AM
Hi a have a COM dll made in C++ (I don't have the source code) I used tlbimp to create a managed .NET assembly dll... I reference this dll and import it with "using myDll" then I make an object (myDll.myDllClass dll=new myDllClass() and then I can see the methods implemented on the dll... until ...more >>

IsNumeric
Posted by Tom at 10/24/2003 7:44:56 AM
I need a way (Server Side) to check if a text box's value is numeric or not. Can anyone assist? Thanks Tom ...more >>

Registry Monitor/Comparison
Posted by Jonny at 10/24/2003 4:52:33 AM
Does anyone know of a good Registry Monitor or Comparison tool or code in c# ? It doesn't have to be realtime like regmon. Thanks in advance, /Jonny ...more >>

bug using Application.EnableVisualStyles() with datetimepicker control
Posted by Guy at 10/24/2003 3:56:32 AM
I have extended the datetimepicker control to incorporate a ReadOnly property. I have used the new keyword to implement my own version of the value property, so that if readonly == true then it will not set the value of the control and will leave the checked status of the checkbox to false ...more >>

Accessing MS SQL server from c#
Posted by Raja Gopal at 10/24/2003 2:18:27 AM
Hi, I have a regestration form in a form through which users enter the information . I have to insert this data into database. I am using asp.net with C# in visual studio .net. I am using MS SSQL server database .Can anyone please help me by giving me code or other resources on the web...more >>

Ordering xml using xsl in c#
Posted by Si at 10/24/2003 2:13:59 AM
Hi, I have a xml dataset I'd like to order, and save in that order. I've written an xsl to do the transformation, but because the xml file has a xsd namespace, it doesn't work. A cutdown version of the xml file looks like this: <?xml version="1.0" standalone="yes"?> <hsPrinters xmlns:...more >>

struct -> null
Posted by Dirk Reske at 10/24/2003 12:49:20 AM
Hello, if I have a P/Invoke method: open(STRUCT1 str, STRUCT2 str2); is there a way to pass <null> for a struct in C#? How can I solve this? thx ...more >>

Getting a DataRow From A DataTable
Posted by Eyal Cohen at 10/24/2003 12:36:33 AM
Hello, I Have A Datatable With Rows Full With Data and i want to get or address a specific row using an index number. i vb.net its easy but in c# i cant use a number to get the specific row i want. i want to do something like datarow=Datatable.rows(4) to get row number 4 thanks Eyal...more >>

Print Error Win98
Posted by David Sabo at 10/24/2003 12:16:59 AM
Hi all... I having trouble printing on Win98. I cannot print more than once if I'm lucky in win98, when the printdocument.print() is executed the following Exception is raised. It doesn't start to execute the method raised by the event PrintPage. ************** Exception Text **********...more >>


DevelopmentNow Blog