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# > june 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 29 30

Custom Control with different control types...
Posted by forest demon at 6/30/2007 11:30:19 PM
i'm trying to create a custom control that contains multiple controls of different types(textbox, combox, checkbox, etc..) the examples i see derive from one type....for instance TextBox. ultimately, i need to bind to all the control types in my custom control. i.e. populate the controls with...more >>


static indexer
Posted by Andrus at 6/30/2007 10:17:54 PM
class myclass { public static object this[string index] { get { return "Row[index]"; } } } returns error modifier static is not allowed for this item. How to use static indexer ? Andrus. ...more >>

Instatiating A Class
Posted by OldButStillLearning at 6/30/2007 2:12:02 PM
I have a console application. The "main: driver instantiates a class which does all of the work. I decided that I wanted to create a Windows From which would call the class which was created in the console application. It has been forever since I worked with a Windows application, but the...more >>

Date Precision Problem
Posted by Gugale at Lincoln at 6/30/2007 1:08:41 PM
Hi, I am working on an application which uses date as a primary key. All my records are at least a few millisecond apart and are in the form "20070630T12:50:24.207". SQL Server has a precision of 1/3000 of second to store dates. I would like to bring down the precision of my data to match ...more >>

Constructor
Posted by OldButStillLearning at 6/30/2007 12:48:02 PM
I forget the right syntax.... If I Have multiple signatures for a constructor, but I want each to call a "main" version of the constructor...I can't remember how to do this in C#.... public MyClass(string a, string b) { Do something.... } public MyClass(sting a, string b, string...more >>

no boundary check ?
Posted by Boki at 6/30/2007 12:44:55 PM
Hi All, I saw my code jump out the function call directly without throw a boundary error.... no boundary check ? string[] str_member_id = new string[100]; str_member_id[id_count] = "sth"; // exit directly without throw a msg when id_cound=101; Best regards, Boki. ...more >>

webBrowser IndexOf, strange value.
Posted by Boki at 6/30/2007 12:36:07 PM
Hi All, Q1: the page total char is 2336 ( count by MS Word ), but IndexOf return 16xxx, it is larger than total lenght, interesting thing is when I use substring to get the string I want, it still works. Q2. Due 'at' return very large value, how to deal with overflow issue .... /* CODE...more >>

Import Email Contacts
Posted by Srinivasa Nadella at 6/30/2007 12:28:04 PM
Hi Can any one please help me out in getting the source code of Importing the Email Contact Lists from Yahoo or MSN or any email subscriber. This is very urgent for me. I tried in the Internet but I could not get any proper solution for this. I saw lot of web sites and almost all the apps ...more >>



Zooming and panning large images
Posted by Speedy at 6/30/2007 7:58:01 AM
Hi there, I am currently writing an application where one inspects images and annotates certain features. Thus, one has to zoom in (4x) and pan around. The features are marked with little red rectangles.The images are 2048x2048 pixels. It seems that I can find no efficient way to implement...more >>

Better way to write if (PenID.ToString() != "00000000-0000-0000-0000-000000000000")?
Posted by Ronald S. Cook at 6/30/2007 7:21:08 AM
Given that PenID is a Guid, is there a better way to write this? if (PenID.ToString() != "00000000-0000-0000-0000-000000000000") I thought I could do some sort of Guid.Empty check or something. Thanks, Ron ...more >>

stacktrace of a processthread
Posted by at 6/30/2007 5:00:47 AM
hi, i want to find out stacktrace of a thread that is only have its thread id (which have created in vc++ project), i can find processthread by searching in ids of System.Diagnostics.Process.GetCurrentProcess().Threads but how can find stacktrace while stacktrace constructor only accept system...more >>

error on conn.open()
Posted by M K at 6/30/2007 2:02:39 AM
I got this error and have no clue what to do. Error code( -2146232060 ) An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure maybe caused by the fact that under the default settings SQL Server does not allow remote connectio...more >>

Cant compile due to folder access
Posted by M K at 6/29/2007 5:10:10 PM
I keep getting this message Visual Studio could not copy a support file to this location.... Please verify the path exists and is writeable. I keep trying to set the read only bit on it but when i click Ok it goes right back. I tired subfolder, even the mydocs folder too.. still read o...more >>

tasks
Posted by tim djossou at 6/29/2007 4:59:27 PM
I would like to find all the WINWORD tasks running on my windows 2003 server and END them. Where can I find how to write such code in c#? Thanks ...more >>

DataBinding Question
Posted by ESmith at 6/29/2007 3:49:54 PM
I have a schema that defines a STRING variable: TimeLimit On my data collection form, there are two numericUpDown controls - one for hours, one for minutes. Internally, the program does the conversion, hours * 60 + minutes to get the TimeLimt in minutes. Is it possible to DataBind in thi...more >>

Using VS2005.net with adaper
Posted by TonyJ at 6/29/2007 3:31:15 PM
Hello! In VS2003 I could use the Toolbox to drag an adaper into the window form. This adaper was located under the Data section in the Toolbox. In VS2005 I can't find any adaper anywhere in the Toolbox. I mean that I save a lot of work when I can use the adaper that existed in VS2003. ...more >>

converting odd number digits to even number
Posted by Vinki at 6/29/2007 2:52:01 PM
Hello Everyone, I am trying to convert the digits to even number so for example if I have 3 digit number, I want it to be 4 digit and If I have 5 digit number, I want it to be 6 digit. How can i do it in C# Below is what I am trying to di number = 123 I want it to be 0123 and 23...more >>

What is the difference between "string" and "String" in C#?
Posted by Jeff at 6/29/2007 2:48:03 PM
I thought this would already be covered here, but my search turned up nothing. In VS2005, if I use "String" to define a new variable/class, it colors it in the Aqua color as it does other classes. But if I use "string", it colors it in Navy blue as in C# reserved words (e.g. private, void, fo...more >>

Is GCHandle.Alloc thread safe?
Posted by JA at 6/29/2007 2:22:02 PM
I use a method for threading that instantiates an object that is a wrapper to a DLL (written in C). The wrapper class is passed a byte array, and then does GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned); IntPtr ptr = (IntPtr)(handle.AddrOfPinnedObject().ToInt32() + buffer....more >>

Copying a derived type to another type that inherits from derived type Options
Posted by Bob Jones at 6/29/2007 2:21:06 PM
Ok, I am curious if this can be done in C# 2.0 via some internal .net functionality or if I have to do a coversion myself such as a copy construtor or override the explicit operator. I have 3 classes. ClassA ClassB which derives from ClassA ClassC which derives from ClassA as well I...more >>

Copying a derived type to another type that inherits from derived type
Posted by Bob Jones at 6/29/2007 2:16:54 PM
Ok, I am curious if this can be done in C# 2.0 via some internal .net functionality or if I have to do a coversion myself such as a copy construtor or override the explicit operator. I have 3 classes. ClassA ClassB which derives from ClassA ClassC which derives from ClassA as well I can...more >>

RegEx Help Needed
Posted by billy.murray NO[at]SPAM scomagg.com at 6/29/2007 2:12:18 PM
I have the following text inside a file which I am trying to parse. I am creating a new RegEx object as follows :- string strRegex = @"({S:\r?\n)([^}]*)(})" {S: INTERLOCK FAIL : Tie bar hoist - rotate anticlockwise I1-T/bar hoist slew handwind eng, input LS/TBHS/HWEa is LOW I1-T/...more >>

Socket locking up after inital use
Posted by Pain and headache at 6/29/2007 1:22:05 PM
Hi, I am trying to get a webpage using a TcpSocket instead of a standard Webrequest. Initial, it works fine but after the 2 or 3 request the tcpclient I start to get the following error: A connection attempt failed because the connected party did not properly respond after a period of ...more >>

Update on app launch
Posted by Looch at 6/29/2007 10:24:01 AM
Hi All, When I publish an application using C# express there is an option to have the app look to a URL for updates. What files are needed in the directory that would be used to update? Just the updated version of the .cs file(s)? Thanks for any help! ...more >>

Encode a String for Use in XML
Posted by Lamont Sanford at 6/29/2007 10:19:51 AM
Given a string, what's the best way to transform it into an XML friendly format? For example, say I have a string like "hulio /<vonNostram <-!" The less than ("<") and frontslash characters are confusing the third party program that is receiving this string, since these characters have spe...more >>

Compile error when using reference to own dll
Posted by Carles Vela i Aulesa at 6/29/2007 8:24:05 AM
Hi, I have a problem when I am trying to compile the .vb assembly to dll in VB studio 2005 Express Edition. I have my onw dll, which looks like: Public Class CL1 Public Shared Function FN1(...) As String ... End Function End Class (in .vb format) and I have another assembly,...more >>

Binding ComboBox to a BindingList Problem
Posted by Eitan at 6/29/2007 8:06:02 AM
Hello, I have a ComboBox named comboBoxSelChannel. I declared a structure named MySturct. public struct MyStruct { public int Index; public string Name; } I created a BindingList of MyStruct: MyStruc...more >>

Can we build HMI using ASP.NET web site?
Posted by Gouri.Mahajan7 NO[at]SPAM gmail.com at 6/29/2007 3:53:23 AM
Hello friends, Can we build the HMI using ASP.NET website? What will be the best way to build the HMI? Regards, Gouri Mahajan. ...more >>

Remember App. chosen in 'Open With...' dialog
Posted by Jeroen at 6/29/2007 3:49:26 AM
The group and search engines revealed many hints on how to use the 'Open With...' dialog, for example at: http://www.codeproject.com/csharp/openwith.asp Now in addition to a solution as presented in the tutorial above, I would like to remember the application that was chosen, so that I don'...more >>

Problem in Writting parameterised property in Managed C++
Posted by DebGuria at 6/29/2007 3:02:54 AM
I have written a managed C++ dll. I have to use that dll from C#, VB .NET and VB. It has got a parameterised propetyfor the very specific requirement. For example get_Pie(float f). When I am using that dll from another Managed C++ application, VS 2003/2005 IDE is displaying one property and on...more >>

sending events through AppDomain boundary
Posted by Builder at 6/29/2007 2:56:25 AM
Is is possible to send events through application domain boundaries (i.e. from one application domain to another)? ...more >>

Can Vb.Net do this?
Posted by jim at 6/29/2007 2:52:14 AM
I have a user that uses a built-in wireless ethernet card to connect to our wireless router and surf the internet from behind our router and uses a wireless Sprint card to connect to the internet when not in the office. I need to be able to detect when he is connected from the office and when...more >>

How does CLR distinguish worker thread and IO thread?
Posted by Morgan Cheng at 6/29/2007 2:46:19 AM
By default, ThreadPool has 25 worker threads per CPU and 1000 IO threads for each process. I am wondering how CLR managed to allocate IO asynchronous tasks to IO thread and other asynchonous tasks to worker thread. With the help of Reflector, I found that default implementation of Stream.Read...more >>

Problem in Writting wrapper in Managed C++
Posted by DebGuria at 6/29/2007 2:46:19 AM
We are writing a wrapper in Managed C++. Wrapper is based on a C dll. That wrapper will be used from .Net based application and VB also. Our initial understanding that a .NET Application developer will pass a delegate to the Managed C++ wrapper and in this wrapper, we have to cast the delegate...more >>

System.Web.Mail - Multiple address problem
Posted by quilkin at 6/29/2007 2:04:01 AM
I posted this 2 weeks ago but the thread has 'dried up' and I have new information. We are using system.web.mail with .Net 1.1 (.Net 2.00 version is under development) and some of our users are reporting that having multiple names in the 'to' field for sending emails (using smtpmail) cause...more >>

Exception Safety in C#
Posted by at 6/29/2007 1:54:44 AM
Hello: As an avid reader of C++ books, I know a lot of programmers out there are confronted with the challenge of exception safety. For those who don't know what it is, it is writing code in such a way that an exception will not cause a class to be left in an unstable state. For instance, y...more >>

How to get pixel information from a webbrowser ?
Posted by Boki at 6/29/2007 1:53:03 AM
Hi All, I am programming a message robot to Yahoo somewhere. I found it is impossible to leave a message directly. because 1. There are 2 security keys need to fit, the key only come with the web page when user already request it ( I means if we didn't request that web page first, we c...more >>

New diet pills
Posted by gogoglouugll NO[at]SPAM mail-dot-ru.no-spam.invalid at 6/29/2007 12:02:28 AM
Hello Bu Acomplia < href=http://education.beta.edgewood.edu/ed677/discuss/_disc2/00001a50.htm>Bu Acomplia</a> Bu Accutane < href=http://education.beta.edgewood.edu/ed677/discuss/_disc2/00001ab2.htm>Bu Accutane</a> [url=http://education.beta.edgewood.edu/ed677/discuss/_disc2/00001ab3.htm...more >>

how to pass Enum
Posted by kjqua at 6/29/2007 12:00:00 AM
Hi all, I am newbie in c# and i have a question. I try to work with serial port. and i will like to configure the serial port by a form I add in a ComboBox.parity some items like: None Odd Even Mark Space then i will like to pass the item value to serialPort.parity serialPort.pari...more >>

Double.toString from Java to C#
Posted by Dan at 6/29/2007 12:00:00 AM
What is the equivalent of Double.toString from Java in C# In Java new Double(4).toString() = "4.0" but in C# new Double(4).ToString() = "4" ...more >>

Update when using sql server doesn't work
Posted by TonyJ at 6/29/2007 12:00:00 AM
Hello! I trying to update a table using sql server but no update will be done. I don't get any error at all. Here is an extract from the code. Does this seems to be right. I have a Dataset and an Adapter private void Form1_Load(object sender, EventArgs e) { // TODO: This line...more >>

Number of Host Headers in IIS
Posted by Puja at 6/29/2007 12:00:00 AM
Hi all, Am not sure if this is the right place for this question but... Does anybody know if there is any limitations on the number of Host Header entry per Website in IIS 6.0? thanks puja ...more >>

Why CopyFromScreeen and not CopyToScreen?
Posted by bern11 at 6/28/2007 11:18:25 PM
CopyFromScreen has alot of cool options in the CopyPixelOperation enumeration. But, I don't get it. I want to overlay bitmaps using the various options, so I have to first draw each on screen then copy it to a graphics object???? Doesn't sound right, I must be missing something, what is...more >>

newbee need help on generic list
Posted by Raymond Du at 6/28/2007 11:03:38 PM
Hi, For the following code snippets: public static List<T> getListFromConfig<T>(List<T> objList, int uniqueID, string fileDirectory, string fileName, string configName) where T: new() { //some codes to add items to objList return objList; } I have the following q...more >>

Reflection question
Posted by Le Minh at 6/28/2007 10:32:21 PM
Hi all I'm writing an application using reflection feature of .NET Framework. My applicaiton need to accept a assembly name as input parameter and then must populate all methods and property from all class in this. I'm trying to use BindingFlags with GetMethods and GetProperties from System.T...more >>

We offer best Prada Shoes
Posted by Asanka at 6/28/2007 10:18:52 PM
We offer best Prada Shoes please to http://www.ebaysoho.com/Show.asp?id=387&Classid=122 ...more >>

Evaluate Enum
Posted by iwdu15 at 6/28/2007 9:54:00 PM
hi, im getting the powerstate of the battery usingSystemInformation.PowerState like so: PowerStatus power = SystemInformation.PowerStatus; if (power.BatteryChargeStatus == BatteryChargeStatus.Charging) //code here but the problem is, the enum is BatteryChargeState shows this ...more >>

I'm a Guitar enthusiast..
Posted by Asanka at 6/28/2007 9:26:54 PM
I'm a Guitar enthusiast.. Recently, i found a new good website www.ebaysoho.com who sell many famouse guitars,like Gibson,Fender, Epiphone. All goods looks nice, so wonderful. IF interedted, please get on and have a look. Great surprise will be waiting for you. ...more >>

Regex for 0001 to 9999
Posted by Sergey Poberezovskiy at 6/28/2007 8:34:01 PM
Hi, I need to validate a textbox to have exactly 4 characters that represent the number 0001 to 9999 (cannot be 0000). The regext I came up with rather long: ^(\d){3}[1-9] | \d{2}[1-9]\d | \d[1-9]\d{2} | [1-9]\d{3}$ and not easilily extendable should the need arise for say 5 or 6 numbered ...more >>

OT : MS Data Mapping Application Block
Posted by Wor Tony at 6/28/2007 8:24:31 PM
Does anyonw know if the application block mentioned in the title exists anywhere. Every link leads me to GotDotNet which is being phased out. Has this development survived? Cheers Wor Tony -- My Inbox is a temple - please remove SHOES before entering AP ...more >>


DevelopmentNow Blog