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# > march 2008 > threads for wednesday march 19

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

How to Using HTC in Firefox Browser
Posted by Tigger at 3/19/2008 10:33:24 PM
Hi,everybody I programed a web control using C# and htc. I only allow user input the number in my control.I tested in IE6,it is good.But i tested in firefox2.0,the htc had not loaded by browser. How to using htc in Firefox browser? Thanks Fenni...more >>


asp:DropDownList and Javascript
Posted by Britain Crooker at 3/19/2008 9:53:09 PM
First - my MSDN Posting Alias isn't defined yet because the MSDN site is having problems, it came back with " We were unable to communicate with the Managed Newsgroups registration system". I have an ASP.NET website using C#. One page has two asp:DropDownList controls, one that controls th...more >>

Multiple StateImageList
Posted by Wallace at 3/19/2008 9:07:38 PM
Hi, In a treeview, I want to display tree nodes with multiple state. Like a node with two state like active/inactive and checkedin/ checkedout icon. Is it possible to do with multiple stateimagelist? Else someother way to accomplish this? Thanks in advance. Thanks, Prince...more >>

running threads
Posted by garther at 3/19/2008 5:32:14 PM
Hi I'm writing an application which basically takes images from pixelink camera and does some calculations on them. I need to monitor the status of the system for 2 things: presence of camera and connection to SQL server. I also have a preview feature. Right now it's all being done b...more >>

Can a SortedList be accessed with a negative index?
Posted by Jen at 3/19/2008 5:28:07 PM
I'm looking at some old C# code and I found a line where a SortedList is being accessed with a negative index, like so: groups[-1]; My C# skills must be getting rusty. How can that work? What does it do? ...more >>

.NET UTC DateTime
Posted by Jon Slaughter at 3/19/2008 4:16:39 PM
Is there a DateTime like object in .NET that handles UTC also? That is, the object contains the timezone and can properly compare between them. Or how does one go about handling them if not? My info is date/time/UTC(like, say +2:00 (EST)) and I want to do the least amount of work to use tho...more >>

Web Service Client can not send a Client Certificate
Posted by Ricardo Q.G. at 3/19/2008 3:34:11 PM
I'am having a really hard problem: a business partner have a web service that expect a client certificate attached to the request. At my client side (asp.net 1.1), as far as know i can atach a client certificate by using "ClientCertificates.Add" on the client proxy public class ProxyClient...more >>

Errors computing modulo
Posted by K Viltersten at 3/19/2008 3:16:55 PM
I get arithemtical error computing this. int modulo = -2 % 3; The computer returns -2, as far i can see. The correct value should be 1. -- Regards Konrad Viltersten -------------------------------- sleep - a substitute for coffee for the poor ambition - lack of sense to be lazy ...more >>



System.Timers.Timer
Posted by Bsmengen at 3/19/2008 2:38:00 PM
I create the timer like this: StreamingTimer = new System.Timers.Timer(); StreamingTimer.Elapsed += new System.Timers.ElapsedEventHandler(StreamingProc); StreamingTimer.Interval = 1000; StreamingTimer.Enabled = true; StreamingTime...more >>

Obfuscator
Posted by Peter Morris at 3/19/2008 2:27:37 PM
Hi all I am happy to say that I was recently proven wrong in this group about obfuscation. Now my boss wants to help protect the source to his application so my question is, what was the name of the tool used to obfuscate the DLL published? Thanks Pete ...more >>

Managing TODOs in your source code
Posted by probashi at 3/19/2008 2:08:50 PM
Hi, In my code I have TODOs all over the solution/projects (like the following) //TODO: Refactor to Factory Pattern _service = new ServiceStub(); These are the target of my refactoring as the first cut is done (i.e. all the tests are passed). Is these any easy way to manage these TODO...more >>

Generic List<> change events
Posted by Mike D Sutton at 3/19/2008 1:53:12 PM
I'm frequently using generic lists to represent child lists in my current system, and often require a bi-directional link between them (so a child knows it's parent as well as the parent having the list of children.) Currently I'm providing a "new" implementation of Add() and Remove(), which set ...more >>

Best practice for multi tier apps?
Posted by rbrowning1958 at 3/19/2008 1:42:19 PM
Hello, In the process of setting up my first multi tier app with .NET 2.0. I'm sure this is a classic setup and if someone could confirm I have the basics right would be much appreciated. 1. Application will have web and fat client access to the same sql server database. 2. I want to use s...more >>

Disassemble dll to get .cs files
Posted by icanhelp33@gmail.com at 3/19/2008 1:33:57 PM
I asked a contractor to work on a web project for me. This was 2 months ago. He gave me all the files. The contractor was telecommuting from his come country. He uploaded all the code to me ftp site. The website was runing just fine. Now I have to make some changes to the code. The contractor is...more >>

Tool-tips with Pushpins
Posted by taylorkand@gmail.com at 3/19/2008 1:10:15 PM
I am working on a map display which is linked to a database containing information on our trucks. I.E. Lat/Long, Customer, Truck number, Product, etc... I have a form with mappoint control and can get the map to display with many Mappoint pushpins at the locations of our trucks. What I am try...more >>

Read/Send email
Posted by asharda@woh.rr.com at 3/19/2008 1:08:52 PM
Hello, I would appreciate if anybody can provide some links/suggestions/ guidelines on how to go about handling the below scenario (i tried looking the net, reading about MAPI, but not sure if it's applicable with ms2007 and C#/vs2008 setup). Question: If i have to write a program to read e...more >>

ASP.Net and Thread.GetNamedDataSlot
Posted by Aamir Mahmood at 3/19/2008 12:52:53 PM
Hi, Is is safe to use Thread.GetNamedDataSlot function inside a ASP.Net application? I am afraid if IIS manipulates the threads and my DataSlot is lost in that. Thanks. AM. ...more >>

Setting folder permissions
Posted by David at 3/19/2008 12:37:02 PM
Hi, I am creating a windows service. This service has a filewatcher on it. When I drop a file, I want to parse the filename then create the directory. The directory will be in a filestore server so I am passing in a UNC path. The filestore directory will then also be a virtual directory wi...more >>

Falling through on switch-cases
Posted by K Viltersten at 3/19/2008 12:33:28 PM
Is it possible to make C# fall through in switch statement? I was expecting it was possible, why would we need a "break" otherwise? But apparently, i get errors when i try to do that. -- Regards Konrad Viltersten -------------------------------- sleep - a substitute for coffee fo...more >>

How to configure a client/server in development
Posted by Bob at 3/19/2008 12:08:09 PM
Hello, I need to develop an application in ASP .NET (C#): this is my first time. The application will be very simple, but I need a third-party control for generating PDFs, and I have chosen one (Websupergoo). I have VS2005 on my PC, but I want to save the project on my development server (s...more >>

Weird Literal rendering behavior
Posted by Scott L at 3/19/2008 11:46:02 AM
I have a button and a literal on my page (among other things but *I think* this functionality is pretty much isolated). 1. In Page_Init I set literal.Text = "PAGEINIT" 2. In the button's click method I set literal.Text = "BUTTONCLICKED" 3. In Page_PreRender I verify that literal.Text == "...more >>

Can i avoid typecasting all the time by overloading an operator
Posted by K Viltersten at 3/19/2008 11:26:32 AM
I'm working on a project where i use a lot of sbyte-type variables. I notice that most (all?) operators tend to cast the result into int type. While i can easily recast e.g. sbyte something = else % 10; into sbyte something = (sbyte)(else % 10); it make the code look less read...more >>

Assembly.LoadXXX methods and GAC
Posted by Dilip at 3/19/2008 11:12:54 AM
I have a situation at work that has me wondering if GAC is causing more harm than good in my particular scenario. Our application depends on a third party dll that is installed in the GAC. This assembly seems to change its build/revision portion of its version numbers with every new iteration...more >>

How can I install ADODB Version 7.0.3300.0 Into GAC ?
Posted by Diego Armando Maradona at 3/19/2008 11:04:02 AM
My application is being installed via clickonce in our network, some clients can install but some are catching below error, This application cannot be installed or run, This application needs ADODB version 7.0.3300.0 compilation installed in GAC. ( The real error text is not in english, so...more >>

COM Interop - Access to the path XXX is denied.
Posted by Matthias S. at 3/19/2008 9:42:20 AM
hi there, i have a small class library which accesses some text files (read/write). the class library provides a COM interface, because it will be used in good old asp pages. in my test (console) application everything works fine. but once i use it (via CreateObject) on an asp page, instancia...more >>

Stupid error with get/set on properties
Posted by K Viltersten at 3/19/2008 8:34:48 AM
Can someone, please, tell me what is wrong with this code?! I get stuck on the "set" method of the property. public class Start {[STAThread] public static void Main () { Something some1 = new Something (); Something some2 = some1.doSome (); }} class Something {public Someth...more >>

Configuration Files Location Problem
Posted by Matthias S. at 3/19/2008 6:28:51 AM
hi there, i'm building a small class library which will be used from classic asp (com interop), asp.net and for testing purposes from my console test application. the class library requires an app.config which i have created. a couple of settings are added to it. now my problem: in my con...more >>

Stringbuilder class
Posted by Jon Slaughter at 3/19/2008 6:17:02 AM
If StringBuilder has the ability to Insert and Remove then why not EndsWith and StartsWith? Hell, why not even something like Substring and Split which would return strings(or even stringbuilders) To me this class seems to be the most useless class? I'm building up a very large string from...more >>

Working an enum
Posted by K Viltersten at 3/19/2008 6:10:35 AM
I've create a class Clock for entering handling directions. It has twelve values, 0 through 11, and methods for jumping back and fort in time. As it's now, i use a method for controlling the pass over midnight. void doJumpAhead () { this.time++; if (this.time > 11) ...more >>

about the Uri relative path
Posted by fairyvoice at 3/19/2008 6:02:00 AM
hi, i just want to know when i new a Uri instance using the UriKind.Relative para in construtor, where is the root path, for example, a local file Uri u=new Uri("a.txt",UriKind.Relative); then where is it? I thought it would be in the "object\debug" directory where the exe file exists but no...more >>

Sorting a list by DateTime stamp -- please help...
Posted by almurph@altavista.com at 3/19/2008 4:22:07 AM
Hi, I have a list object called "myList" with the first item a string and the second a DateTime. Something like this: "some text 1", 19/03/2008 12:56:36 "some text 2", 19/03/2008 10:56:36 "some text 3", 19/03/2008 11:56:36 "some text 4", 19/03/2008 13:56:36 I would like to sort "m...more >>

Using LINQ to see if Item already exists in listview
Posted by Gaz at 3/19/2008 4:10:43 AM
Im trying to use c# and linq to simplfy searching through a listview but cannot get it to work can anyone help? here is what i got so far which doesnt work. var qry = from L in listviewname.items.all where l.item.value == "123" Select L.item.value; ...more >>

Remoting timeout not working
Posted by Kosmo at 3/19/2008 3:36:00 AM
Hi, When the remoting server is not available (it is unreachanble/ closed/ non-existent), making a call on the remoted object takes 45 seconds, and this timeout value cannot be changed. MSDN says this problem is fixed by setting the channel timeout property, but this doesn't work. ...more >>

Detecting automation of my application (bot-protection)
Posted by docholiday@lafrontera.de at 3/19/2008 2:22:06 AM
Hi, I have been researching this for quite some time now, but I cannot seem to find any good articles or discussions about this topic - perhaps I am only searching for the wrong terms. My question is as follows: I want to prevent the user from using automation in order to control an applica...more >>

embedded DB
Posted by Christopher Pisz at 3/19/2008 12:35:02 AM
(cutnpaste from http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3027050&SiteID=1) No one seems to ever use these forums! I started migrating from C++ and want to use C# with an embedded database in my application. My search pointed to MS SQL Server 2005 compact edition. I go to down...more >>


DevelopmentNow Blog