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# > march 2006

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

implicit cast operator funny-ness
Posted by Pieter Breed at 3/31/2006 10:24:35 PM
Hi All, Please excuse me, but the bulk of my post will be a code post. It describes some weirdness with regards to the implicit casting operator. The crux of the problem is this: I want to set a property on a class that takes an interface instance. I have a class that can cast implicit to a...more >>

keyboard hooks in C#
Posted by Hema at 3/31/2006 10:20:06 PM
hello all, I am working on a project related to Internet Explorer. I want my application to be invoked by a keypress( single key stroke or a combination). But this must get invoked only when the IE browser is open. I learnt that SetWindowsHookEx must be used along with few others. But my doubt ...more >>

How to sort Hashtable by value and not key
Posted by max sharma at 3/31/2006 9:31:20 PM
Hi all, I am using hashtable in C# with keys of type string and values of type double. I am not able to find a way to sort them by value (descending to be precise) instead of key. Can someone please help me. Thank you all in advance, Max *** Sent via Developersdex http://www.developersd...more >>

How to access a pointer to an existing structure?
Posted by Sujoan at 3/31/2006 8:36:17 PM
Hi, Iam trying to implement the QueryStatus method of IOleCommandTarget interface. public int QueryStatus(ref Guid pguidCmdGroup, int cCmds, IntPtr prgCmds, IntPtr pCmdText) { object ocmd=Marshal.PtrToStructure(prgCmds,typeof(OLECMD)); } Basically, prgCmds is a pointer to an existin...more >>

DataGridViewColumns tab order
Posted by Dieter De Doncker at 3/31/2006 8:28:16 PM
Hi Is there a way to remove DataGridViewColumns from the tab order in a DataGridView ? Thx Dieter De Doncker ...more >>

Visual studio.NET problems
Posted by Z.K. at 3/31/2006 6:40:38 PM
I have Visual Studio.Net 2002 installed on my computer and now suddenly, it won't launch, I can not repair it, and I am unable to uninstall it either. When I try to uninstall it, or repair it, I get the error: setup.exe The parameter is incorrect. How do I uninstall visual studi...more >>

Creating Generic Class from 2 classes
Posted by tshad at 3/31/2006 5:45:13 PM
This is a little complicated to explain but I have some web services on a machine that work great. The problem is that I have run into a situation where I need to set up my program to access one or another (could also be 3) different web servers to use these Web Services. The Web Services ...more >>

C# Fundamentals Part 3: ReferenceEquals question
Posted by Marcel Hug at 3/31/2006 5:23:34 PM
Hi NG! In my book I have the following code simple and I tested it: public class Base : ICloneable { public int Age; public string Name; public Base(string myname) { Name = myname; } public Object Clone() { return MemberwiseClone(); } public static void Main(Stri...more >>



"Phantom" Warning Messages
Posted by Chuck Cobb at 3/31/2006 4:28:57 PM
I'm doing a CSharp project in VS2005 and I'm getting some strange warning messages. The problem is that the warning messages don't link to anything in my code so they are very difficult to track down. Some of these also seem to be "phantoms" where I think I've corrected the problem but the ...more >>

Object with callback destroyed ??
Posted by Geoffrey at 3/31/2006 3:49:32 PM
Hello, I have a project like that : ..... TestClass t; for (i=1;i<=x;i++) { t=new TestClass(params); t.Save(); } .... In the constructor of TestClass, if params has a particular value, I create a TCPClient, connect it to a serveur, and run a (asynch) beginread. When a read some...more >>

disabling controls by checking off a radio button when the form loads
Posted by helpful sql at 3/31/2006 3:42:12 PM
Hi, I have 2 radio buttons on my Windows form control. The radio button's CheckedChanged event disables or enables other controls on the form based on the value of the Checked property. When the form loads, I want to check off one of the radio buttons. So I put the code to check off m...more >>

VS2005: ASP.net forms designer: Intellisense
Posted by Martin Robins at 3/31/2006 1:42:10 PM
I have created an inherited control based upon the GridView control, however when I use this control within the VS2005 ASP.net form designer I can no longer access the intellisense for the base control (technically it is now in a new namespace instead of the original "asp"). I know I can cr...more >>

StringBuilder
Posted by KH at 3/31/2006 1:23:37 PM
API question... Why doesn't StringBuilder have IndexOf and other similar methods like String? I can't think of a good reason off the top of my head. Easy to write helper functions to do the same thing, but sure would be helpful in certain cases. KH ...more >>

Get all supported unicode points for a font in .net 2005
Posted by Gary at 3/31/2006 1:23:01 PM
I am wondering if .net2 has a handy function to return supported unicode ranges for given font file. I knew GetFontUnicodeRanges() API can do that. But any way to do it directly in managed code? Thanks,...more >>

Session management with AxWebBrowser
Posted by pgmanno at 3/31/2006 1:05:15 PM
Hello all, Here is my question. I have an AxWebBrowser (hereafter refered to as "Browser") control framed in a smart client. The smart client requires logon, and the web app that the Browser is pointing to requires logon and is using Forms Authentication. I have set up a web service so that...more >>

apostrophe in href path
Posted by Rose at 3/31/2006 12:15:03 PM
Hi all, I'm trying to create a clickable link, but the pesky apostrophe is preventing the link from getting displayed properly. I'm displaying the contents of a folder (with contains the apostrophe), with the filename as a clickable link. The files show up properly, but the link location c...more >>

Any free way to create unreadable exe file yet?
Posted by MrNobody at 3/31/2006 12:06:03 PM
I have not looked into this for a year or so, but I'm interested again in such a tool so I'm wondering if anyone knows of somethign out there that exists.. Basically I want to be able to create an exe out of my C# project like traditional c++ where the file is simply unreadable. Almost any ...more >>

Passing List<double> to a C++ Class Library from C#
Posted by jamie at 3/31/2006 11:42:24 AM
hi, I'm trying to pass a List<double> array from C# to a C++ class library but I get the following error: "No overload for method 'zzz' takes '1' arguments" My C++ method in the library has 1 argument: zzz(List<double> x) and i'm calling it from C# with: List<double> test = new List<do...more >>

Referenced assembly problem
Posted by Joe at 3/31/2006 11:33:01 AM
I'm trying to build a number of projects which depend on other projects from other solutions. All projects output class libraries. After each project is build I install them in the GAC. The problem I get is when I build a project that references one of these libraries. VS doesn't find the l...more >>

Use active directory to scan for software on a remote system?
Posted by Brian Henry at 3/31/2006 11:27:28 AM
In programs like Hyena, you can use AD to view programs installed on systems. How could I do something like this in .NET? I know there is a directory control, but im not sure how to query AD to get the installed software list on a remote system that is turned on. I posted this to .NET groups...more >>

Web Reference added, no intellisense?
Posted by Caine Chow at 3/31/2006 11:09:05 AM
I am working on a C# Class Library that does Remoting. I would like my library to call my web service so I added a Web reference to my service with out problems. I am encountering problems when I try to instantiate an object of the web service type. So say my web reference is named MyWebRef...more >>

Dipose() Doubts
Posted by Leandro Martins Berti at 3/31/2006 10:48:20 AM
Hi... I have a main MDI form where I load (in a menu click method) my MDI child forms, like in example below: private void tStpPrincipalUsers_Click(object sender, EventArgs e) { FormUsers frmUsers = new FormUsers(); frmUsers.MdiParent = this; ...more >>

Calling FTP process
Posted by Jim Heavey at 3/31/2006 10:44:03 AM
I want to write a console application which will connect to another machine and FTP files from that machine to mine. Does .Net have classes which would allow me to do this natively in the .Net platform? (Any examples???) If the .Net does not have any classes which allow me to do this na...more >>

Hide selected row in DataGridView
Posted by osmarjunior at 3/31/2006 10:11:38 AM
When I try to make the current row invisible, I got an error. I put a checbox that turns some rows visible/invisible. Then if the selected row is turning to invisible, it raises an exception. My code: foreach (DataGridViewRow row in myGrid.Rows) if ((bool)row.Cells[0].Value.Equals(false)...more >>

image encryption problem, please help!!
Posted by pachinco at 3/31/2006 10:09:54 AM
Hello, I am having a problem encrypting a tiff image..it always loses information after i decrypt and I know it has something to do with the encoding but i can't figure it out. Any help would be appreciated.. Here is the encrypt function: private byte[] Encrypt(byte[] bytes) { key = new byt...more >>

combo box drop down
Posted by Bob Allen at 3/31/2006 8:21:13 AM
Is there a way to drop down a combo box when it is loaded to show that it has been poplulated without clicking on the arrow? Thanks; Bob; ...more >>

Build number
Posted by Greg Smith at 3/31/2006 8:14:38 AM
Is there a way to read the build number when you compile? I would like to display the build number on the "About" screen. Any help is greatly appreciated. ...more >>

Any support in C# for zlib inflate/deflate?
Posted by MrNobody at 3/31/2006 7:06:03 AM
I need to use standard zlib inflate/deflate procedures... does c# support this? how/where are the relevant classes?...more >>

Reg : File Readonly
Posted by SivaprakashShanmugam at 3/31/2006 5:19:02 AM
Hi Can you please explain me how to make a text file as a Read Only which is already existing in local disk in C#. Thanks Siva....more >>

view state bug?
Posted by Red2 at 3/31/2006 5:08:35 AM
Hi All, I have a asp.net (c#) web form. It's using nested repeaters to build a test. So one repeater for questions, and the nested one for answers. The answers are all a radio button. Well on submit i check to see if the user answered all the questions. If they haven't i simple make a er...more >>

Generics, Collections, Casting
Posted by anders.forsgren NO[at]SPAM gmail.com at 3/31/2006 4:11:37 AM
This is a common problem with generics, but I hope someone has found the best way of solving it. I have these classes: "Fruit" which is a baseclass, and "Apple" which is derived. Further I have an "AppleBasket" which is a class that contains a collection of apples. So, some code: class Fru...more >>

Patterns anyone?
Posted by Jim Hubbard at 3/31/2006 3:48:45 AM
I am looking for patterns for a distributed .Net application for a small retail chain. The owner wants the stores to have access to all data (no matter which store it comes from) in real time. In the case of an internet outage, the store owner would like for the individual stores to still ...more >>

Can't call Mutex.WaitOne() again after Mutex.ReleaseMutex()
Posted by ano at 3/31/2006 3:18:02 AM
How to reset Mutex.ReleaseMutex()? I can't call Mutex.WaitOne() again because the Mutex status seem to be fix to ReleaseMutex(). Do I need to create new Mutex() every time after ReleaseMutex()? Thanks...more >>

A program to add, edit, remove records from Access Database..
Posted by Mr-E at 3/31/2006 2:05:38 AM
Hi all, I've been trying for a few weeks now to make a program in Visual Studio 2005 that has a combobox to select all the tables in a database. This is a part I already have. When you have selected a table the program should make a editbox for all the columns in the table with a fitting labe...more >>

is it possible to define the order in which winform user controls load?
Posted by Greg at 3/31/2006 1:49:24 AM
I have one control that absolutely must load before any other controls, due to some initialisation code within it. Is there a way of getting this control to load first? Moving the code from the load event to the constructor isn't an option to get around this issue. Any suggestions would be ver...more >>

XML and WebProxy
Posted by Andrew at 3/31/2006 12:30:44 AM
Morning everybody, I have an XML document located on a web address and I wish to create a C# program to read that XML document and process it - which shouldn't be that difficult yet I'm running into all kinds of problems because I'm behind a firewall. After much searching I found using WebP...more >>

Unicode, encodings, and asian languages: need some help.
Posted by apprentice at 3/31/2006 12:12:45 AM
Hello, I'm writing an class library that I imagine people from different countries might be interested in using, so I'm considering what needs to be provided to support foreign languages, including asian languages (chinese, japanese, korean, etc). First of all, strings will be passed to ...more >>

Command Line Programming
Posted by Martijn Mulder at 3/31/2006 12:00:00 AM
Does Microsoft Visual C# 2005 Express Edition support command line programming the way Microsoft Visual C++ 2005 Express Edition does? (thumbs up for that) ...more >>

Freeing memory in C#
Posted by Atul Sureka at 3/31/2006 12:00:00 AM
Hi, I want to free the object memory in C# - like we do using 'delete' keyword in C++. Lets say I have an object of some class and I want to explicitly free the memory. C# do not have any free or delete keyword to do so. Also I don't want to wait for the GC to be called. Is assigning an...more >>

Can find copyfile in c#
Posted by ad at 3/31/2006 12:00:00 AM
I am finding to copyfile in the online document. But I only find the namespace : Namespace: Microsoft.VisualBasic.FileIO How can I copyfile in c#? ...more >>

Prevent INamingContainer
Posted by Martin Robins at 3/31/2006 12:00:00 AM
I have a situation where I need to specify the names for some controls without the parent INamingContainer getting in the way - this is because I am using 2 hidden fields to pass data to another site but due to the use of master pages these fields are constantly being renamed. Does anybody ...more >>

partial namespace
Posted by Steph at 3/31/2006 12:00:00 AM
hello, can we do a partial namespace ? i want split my cs file (contain all my classes) in a lot of files and then compil their into my DLL... so in this case, is more easy to work : library.dll = library.net.cs library.fileio.cs library.xml.cs library.img_manipulation.c...more >>

A Call to pinvoke function
Posted by msnews.microsoft.com at 3/31/2006 12:00:00 AM
Hi i am using User32.dll in Visual stdio 2005. [System.Runtime.InteropServices.DllImport("user32.dll",EntryPoint = "SetActiveWindow")] public static extern long SetActiveWindow(long hwnd); [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "keybd_event")] public s...more >>

Sending Email through Exchange
Posted by Mr. Bean at 3/30/2006 11:05:27 PM
Hello, I have tried several code sample to send internal emails using the System.Web.Mail but all the mail was delivered to the 'Bad Mail' folder. I'm running 'Microsoft Exchange Server 2003'. If anybody could tell me what I'm I doing wrong or guide me to other techniques or articles? Plea...more >>

fuzzy logic with .net
Posted by Alberto at 3/30/2006 10:59:21 PM
Does anybody knows if .net has a library of classes to work with fuzzy logic? Thank you ...more >>

Import Namespace
Posted by moondaddy at 3/30/2006 10:33:13 PM
In vb.net its possible import a namespace into a project so you don't need to add it to the top of every class. Is there a way to do this in c# on a project level? ...more >>

Issue with propertygrid.
Posted by asjad at 3/30/2006 10:07:24 PM
I need to make my propertygrid readonly in some cases which obviously i am not able to do. So what i do is i make my propertygrid.enable = false and then tried to make its scrollbar.enable = true through reflection but it does not happen as their is no set in enable property. What i really need ...more >>

HI
Posted by luoxiaoyan at 3/30/2006 9:57:39 PM
Hi,my name's LuoXiaoyan. ...more >>

Send ctrl-c
Posted by William Stacey [MVP] at 3/30/2006 9:53:54 PM
How do you send Ctrl-C to a standard input stream? Just sending 03 does not work. -- William Stacey [MVP] ...more >>

PERFORMANCE QUESTION
Posted by Savas Ates at 3/30/2006 7:51:08 PM
I want to built a web page which is gonna have multiple languages. Which one is the best way ? Using a Xml file to store languages and their corresponding fields or Using a MS-SQL Database ? What do you recommend me to have best performance about multilanguage web-sites? ...more >>


DevelopmentNow Blog