Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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# > february 2007

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

Bitmap.LockBits fails to work as advertised..... !?
Posted by TheMadHatter at 2/28/2007 11:53:02 PM
I dont know if I missed something in documentation, but I was having a problem with "Bitmap.LockBits" and was wondering if anyone else has discovered it too. According to everyones examples including some of the MVP's website examples, one could use unmanaged code to manipulate a bitmap by ...more >>


Caching Visited Web links.
Posted by Mugunth at 2/28/2007 8:32:15 PM
Hi, I want to write a program that could cache all the pages accessed from a computer, irrespective of the browser. Is it possible to intercept the port number 80 for this? How can I do this in C#? Is there any other way? Regards, Mugunth ...more >>

How to catch a click on webbrowser :(
Posted by Aleyna[] at 2/28/2007 7:32:38 PM
Hi I want to catch the clicks for a special hyperlink on a webbrowser component in order to activate the print setup section of my program. I cannot use javascript because I must handle the printable document, in fact, create it dynamically using program. I got stuck here, how can I do that...more >>

TypeInitializationException / forcing all static c'tors to run on startup
Posted by Zytan at 2/28/2007 6:22:38 PM
I just got a TypeInitializationException exception. Why it is a common cause for this? The InnerException is System.FormatException, although I don't see anything requesting something to be formatted. I'm trying to invoke the use of a class, to force its static c'tor to run, which will run...more >>

For .net 1.1 checked ListView, how to get the effect of an OnCheckedChanged event?
Posted by sherifffruitfly at 2/28/2007 5:31:45 PM
Hi all, I want to run code every time the user checks/unchecks an item in the ListView, but I don't see an event for that in VS. What's the standard way to achieve this? Thanks, cdj ...more >>

Private search for .Net Developers
Posted by fastrecruiter NO[at]SPAM gmail.com at 2/28/2007 5:05:06 PM
Greetings, I have .Net Developer (Permanent, Full-time) positions available in Los Angeles, CA. The company is a major player in internet networking and is the fastest growing website in the world with 300,000 new international users signing up everyday. We are working with a great salary r...more >>

Private Search for .Net Developers
Posted by wayne.j.lim NO[at]SPAM gmail.com at 2/28/2007 4:47:04 PM
Greetings, I am a recruiter with Crescent Solutions and I am interested in speaking with you regarding a .Net Developer (Permanent, Full-time) position available at our client located in Los Angeles, CA. The client is a major player in internet networking and is the fastest growing website i...more >>

List View Sorting Question
Posted by Adrian at 2/28/2007 4:23:06 PM
In VS 2003 I could sort a column in a list view using the code below, hover, in V2005 I get this error: Error 1 Using the generic type 'System.Collections.Generic.IComparer<T>' requires '1' type arguments What to do? Please tell me concretely how to get rid of this error in terms of code. ...more >>



code produces compiler error, consistently. can i help more?
Posted by Zytan at 2/28/2007 3:42:00 PM
I've sent the error report. But does that contain my code? I would imagine not, since it's a privacy concern. Can they really fix the problem without code? Maybe, but maybe not. I don't care if they have my code. It's just a test app anyway. Is there any way to send a *better* error repor...more >>

Connect to a SNMP device by WMI
Posted by Rainer Queck at 2/28/2007 2:58:56 PM
Hello NG, I would greatly appreciate a code sample on how to connect to a SNMP device using WMI. Regards Rainer Queck ...more >>

How do I separate form code and put it into classes?? inheritance?
Posted by roger_27 at 2/28/2007 2:57:05 PM
hey, how do I take form code and put it into separate classes? more specifically, I want to create like a panel class, and put buttons in it and give these buttons click events. and all my form has to show is the empty panel. then tell the panel to inherit from the panel class so it has all t...more >>

Checking for a decimal digit
Posted by Jay at 2/28/2007 2:30:22 PM
I want to check if a character is a decimal digit (0-9). I've found Char.IsNumber() and Char.IsDigit() but couldn't work out from Help how they differ. Also, do I need to worry about how digits get converted when typed into keyboards in different countries? Can I assume that Char.IsNumber() ...more >>

Graphics help
Posted by Ringo at 2/28/2007 2:02:08 PM
Please excuse the long post, but I have an issue and don;t know how to describe it without describing the app. I have an app that reads data fro the serial port and draws it on the screen. I have a timer set up, and when the timer fires it either calls Simulate_read_sensor() or read_sensor() ...more >>

Access <object> from Code Behind (Flash Movie)
Posted by Brad at 2/28/2007 1:53:38 PM
I have several movies being presented to the web on a single page and each one is dependant on a link selected. On the .aspx page I have the following code for a single movie. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= <OBJECT id="fMovie" runat="server" codeBase=http://...more >>

IClass for Interface: what's an interface?
Posted by Zytan at 2/28/2007 1:35:34 PM
Aren't all classes interfaces? What constitutes an interface (and with it, the "I" prefix distinction)? Zytan ...more >>

What does Visual J# .NET have to do with my C# Application?
Posted by DaBrain at 2/28/2007 1:35:03 PM
I have written an application in C#, when I created a setup project and tried to install it on another test machine it said: "This setup requires the Microsoft Visual J# .NET Redistributable package version 2.xxx" Is this normal? Or did i screw up my setup project? Any help would be grea...more >>

System.Collection.Generic.Queue - Where did SyncRoot go?
Posted by Min Yong at 2/28/2007 1:33:18 PM
I'm not sure if I've just lost it but, I no longer see the property SyncRoot on a Queue. I see that it's a member of the ICollection Base Object, but it's not exposed. Was this intended? Besides writing a wrapper class for Queue, what is the intended way to lock the queue to enforce proper ...more >>

TCP Client/Server Image Transfer
Posted by Clayton at 2/28/2007 1:29:57 PM
Hi all, I'm trying to send an image using a TCP socket. The client connects to the server without any problems and start to receive the data. The problem is when I try to convert the stream to an image using FromStream() method, I get an OutOfMemory Exception. Can anyone help me out? Really i...more >>

Scrolling Form windows CF Control
Posted by iKiLL at 2/28/2007 1:03:07 PM
Hi All I am Developing in C# with VS2005. I am Developing a Windows Mobile Forms Application with the CF2 My problem is that when the Input panel is displayed my screen does not scroll. I have found some code using an Panel and a scroll bar that will make the screen scroll...more >>

CSharp
Posted by Mark Campbell at 2/28/2007 12:39:14 PM
I need help for a problem regarding CSharp. Could anyone tell me what it is? markcampbell@assess4.co.uk...more >>

How to invoke a custom event in a derived control?
Posted by Dan Soendergaard at 2/28/2007 12:09:24 PM
Hello fellow developers, I've created a control which derives from the .NET TextBox. I then wanted to add two events to the new control, so I added the following to the control code: public event EventHandler InvalidValueMatched; public event EventHandler ValidValueMatched; But when one ...more >>

What is the best way to stop a Socket.BeginAccept call?
Posted by darthghandi NO[at]SPAM gmail.com at 2/28/2007 11:58:15 AM
I've created a class to listen to all interfaces and do a BeginAccept(). Once it gets a connection, it passes the connected socket off and stores it in a List. Next, it continues to listen for more incoming connections and does the BeginAccpet() again. It does an infinite loop this way. My q...more >>

DragOver vs DragEnter
Posted by Gary Brown at 2/28/2007 11:14:15 AM
Hi, I just implemented drag drop in one of my programs. In researching there are implementations that use DragEnter, a few use DragOver, and a some use both. From the available documentation it is difficult to tell just why this is. Can someone clarify? Thanks, Gary ...more >>

How to change my PC name?
Posted by Billy Bob at 2/28/2007 11:13:57 AM
Hello I'm looking for a way to change my system name via c#. I know I'll need to use WMI, anyone have any examples? WMI has never been fun for me to use. ...more >>

Win32_Service System.InvalidCastException
Posted by auldh at 2/28/2007 10:10:23 AM
i trying to collect windows services. i'm getting inconsistencies. the collection works every time locally. but remote collection yields different result depending on my lab environment. 1) in the same domain i start the collection on the remote machine i can get some 19 services without a p...more >>

How to use a WCF service in IE?
Posted by james at 2/28/2007 9:52:23 AM
Does anyone know how to access a WCF service in Internet Explorer? I want to browse to my service to make sure it is returning good data, and I think I am browsing to the wrong address. I have a simple Interface [ServiceContract] interface IWebService { [OperationContract] ...more >>

Newbie question on the PropertyGrid Control
Posted by Dom at 2/28/2007 8:53:00 AM
Can the PropertyGrid control be customized? I want the user to click on an object, eg, a text box, and then have the property box come up with my own list of properties that make sense only within the application. A property might be "Type of Question", and values should appear in a drop dow...more >>

Image transfer
Posted by Clayton at 2/28/2007 8:47:53 AM
Hi all, Can anyone give me a brief description of what I need to do to transfer an image from a client/server application using C#? When I googled, I found that first I need to convert the image into a stream and than tranfser it. Is that right? How I'm going to convert back the stream to an ...more >>

C# naming conventions (is m_varName used?)
Posted by Zytan at 2/28/2007 8:47:32 AM
Is the m_variableName used for data members in C# classes? Since everything is in a class, it seems that it becomes pointless. What is the general naming conventions? What are your personal thoughts? I've been using m_variableName, but I think I'm going to drop it. I've also been prefixi...more >>

Scan for new or modified files
Posted by gdubois NO[at]SPAM deloitte.vg at 2/28/2007 8:25:44 AM
Hi all! Is there an easy way to scan files on network, and find out which files are new or modified? (VS2003, C#) I am trying to create a program to help myself manage the network. I am pretty sure some programs are available (backup programs) but I would like to do it myself... with help...more >>

Inheriting from XmlElement
Posted by Varangian at 2/28/2007 7:02:26 AM
Hello something I want to ask...... why on earth you cannot inherit from XmlElement???? .... or you can but XmlElement constructor is protected or private and so you cannot define an empty constructor. Even when I tried building a constructor with the exact parameters like XmlElement it would...more >>

adding lines to a multiline textbox...
Posted by trint at 2/28/2007 6:54:17 AM
My code is just adding to the first row instead of adding to the next: TextReader tr = new StreamReader(@"C:\Program Files \webResponse3\websiteLog.log"); string lineTime; //string[] namesTime = new string[3]; int i = 0; while ((lineTime = tr...more >>

Problen with MissingManifestResourceException
Posted by Michael Haberichter at 2/28/2007 6:15:53 AM
Hallo, I have a problem with a MissingManifestResourceException. I'm trying by days without finding any solution. Shortly the context: I have a .Net application (APPL_1), which does the following: - purpose: generate resources file in Online dialog for a VS 2005 project - gets as paramete...more >>

put icon in my app
Posted by trint at 2/28/2007 5:35:35 AM
I have c# 2005 express edition and I can't find the icon creator so I assume theres not one...How can I put an Icon in my app please? Thanks, Trint ...more >>

XmlSerializer on properties and indexers containing private fields, how to do?
Posted by Beorne at 2/28/2007 3:07:25 AM
I have to use XmlSerializer to serialize a class and I've found big problems serializing properties and indexers. I assumed that if you serialize a class with public properties (or an indexers) containing a field, even private, the serialization process would serialize that field too assuming ...more >>

how to use inbuild crystal report in dotnet2003
Posted by alok at 2/28/2007 2:37:49 AM
sir i am facing the some problem in my report!!! like i hd make a report on my laptop..without using dataset. next time when i implement that report on another system it create a problem...like server erorr!!!!!! Is there any new technique to remove this problem without using xml or dataset.......more >>

Finding all child classes.
Posted by Allan Ebdrup at 2/28/2007 12:00:00 AM
I would like to use reflection to find all classes that inherit from my current class, even if they are in another assembly I want to find them if the current project has a reference to that assembly. The reason for this is that I want to check some attributes of all child classes and have th...more >>

Manipulate / Strip String
Posted by G at 2/28/2007 12:00:00 AM
Hello, Does anyone have any code handy which will take a certain part of a string and save it as an independant string? For example: "Thank you for visiting our web site. You were sent here by Michael Smith from Aberdeen who thought you would find this page interesting." If I wanted...more >>

Create a child process where main process runs As Administrator
Posted by Fred Heida at 2/28/2007 12:00:00 AM
Hi, Question on Vista Run As Administrator. If i have exe which creates a child process, using the Process class, and this exe is Run As Asministror, is there a way to have the child process also Run As Asministror with out confirmation for this (as this is already doen my the main process...more >>

how to lock the selected records using C#?
Posted by marxi at 2/27/2007 10:58:13 PM
Now I need to lock the selected records for some time and others can not update these records meanwhile. How can I do? any help will be very appreciated!! -- marxi...more >>

Acess ADAM by IIS server
Posted by datta.adsule NO[at]SPAM gmail.com at 2/27/2007 10:23:06 PM
How To acess Adam from IIS server service provider... ...more >>

How to modify app.config
Posted by alberto at 2/27/2007 9:15:48 PM
Please, I need a example about how to modify the app.config with the class ConfigurationManager. Thank you very much. ...more >>

Confusion regarding C# and C#.net
Posted by archana at 2/27/2007 8:52:11 PM
Hi all, Can anyone tell me is tehre any difference between c# and C#.net any help will be truely appreciated. ...more >>

Validating a "PropertyGrid" row
Posted by John Brown at 2/27/2007 8:03:47 PM
Hi there, I've got an "int" property in one of my objects that I need to conduct a range check on in a "PropertyGrid" (whenever the user attempts to leave the row). I know how to do this using the "TypeConverterAttribute" for user-defined types but I'm not sure how to handle it for built-in...more >>

MI5 Persecution: Troubling Censorship Issues 20/8/95 (4738)
Posted by MI5Victim NO[at]SPAM mi5.gov.uk at 2/27/2007 6:55:23 PM
Fred Read (postmaster@foxhouse.demon.co.uk) wrote: : He posts this drivel every week or so to a number of groups that : I subscribe to and nothing seems to stop him. *ALL* of his posts : are off topic and unwelcome to the groups he posts to. : We have complained about him to his postmaster ...more >>

Retrieving a string from a dropdownlist with an index
Posted by marathoner at 2/27/2007 6:53:09 PM
I have added about 10 strings to a dropdown listbox. I would like to know how to retrieve a string based upon the index I give it. What member function do I use? Marathoner ...more >>

DateTime.Parse with custom date format
Posted by schouwla NO[at]SPAM yahoo.com at 2/27/2007 5:54:46 PM
How do I use DateTime.Parse or DateTime.ParseExact to create a DateTime object from a string? I tried this without luck: string dateString = "27-02-2007"; // DateTime dt = DateTime.Parse(dateString); // Throws a FormatException exception IFormatProvider culture = new CultureInfo("fr-FR", t...more >>

DateTime.Parse with custom date format
Posted by schouwla NO[at]SPAM yahoo.com at 2/27/2007 5:54:33 PM
How do I use DateTime.Parse or DateTime.ParseExact to create a DateTime object from a string? I tried this without luck: string dateString = "27-02-2007"; // DateTime dt = DateTime.Parse(dateString); // Throws a FormatException exception IFormatProvider culture = new CultureInfo("fr-FR", t...more >>

MI5 Persecution: Stand up for Free Speech 14/8/95 (2083)
Posted by MI5Victim NO[at]SPAM mi5.gov.uk at 2/27/2007 5:34:49 PM
From: rji@cheetah.inmos.co.uk (Richard Ingram) Newsgroups: uk.misc Date: Mon Aug 14 10:08:32 1995 Some cencorship loving bore wrote : > In article <GEVANS.95Aug14094119@mvagusta.uk.tele.nokia.fi> gevans@mvagusta.uk.tele.nokia.fi (Gareth Evans) writes: > > His sysadmin is also next to use...more >>

ListView SubClass Problem
Posted by Stuart at 2/27/2007 5:26:18 PM
Hello, We are trying to subclass the ListView control and have a collection of a class as the Items. Our implementation works at runtime. However at design time if the user adds elements, we can not see them in the visual studio designer. Any help would be appreciated. The class is Na...more >>


DevelopmentNow Blog