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# > september 2005

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

All these dirs, debug,bin, etc..
Posted by Jeff at 9/30/2005 11:27:45 PM
Hello Can anyone suggest a good place/article to learn about the basic configuration/structure of all the different directories that make up a (forms/asp,etc.) project? I create files in one place, then upon compilation many others are created. How do I know what are final output files, used on...more >>


Binding combobox with datareader???
Posted by Annie at 9/30/2005 11:05:28 PM
hello guys, I am trying to bind the combobox using a dataread as below: but it doesn't work?? Do While (reader.Read) cboTest.DisplayMember = reader.Item("au_lname") cboTest.ValueMember = reader.Item("au_id") Loop what is wrong here? help please ... ...more >>

Capturing a panel when its form is minimized
Posted by Carsten Klotz at 9/30/2005 10:25:13 PM
Hi, does someone know, if it's possible capturing the content of a panel, when its form has state "minimized"? Details: A panel contains a Webbrowser object (AxSHDocVw.AxWebBrowser). My actual application automatically navigates to some websites, makes a screenshot and transforms them int...more >>

Message Queuing in C#
Posted by tiger at 9/30/2005 8:20:26 PM
Hi, I have a question on MS Message queuing. I would like to check a message queuing to see if there is a message in the queue. That is if the queue is empty, I would like to send a note to a textbox. Thanks Tiger ...more >>

Service and folder polling
Posted by tshad at 9/30/2005 6:42:15 PM
I am trying to write a service that will send out emails whenever a file hits a folder. I know that email services do it. Is there a way to do this without constantly reading the folder to see when a file is put into it? I just want to be notified by an event that something has been put int...more >>

how to Check whether the application is running or not..?
Posted by kiran at 9/30/2005 5:51:57 PM
How to check whether the given application is running or not in the current machine. From, my cshartp program I want check whether the yahoo messenger process is running ro not..? if the process is running i want to open the yahoo messenger application through my csharp program.. I tried using...more >>

How to get filtered/sorted data from DataGrid
Posted by Tim at 9/30/2005 4:59:13 PM
Hi I am implementing some printing in C# and I need to get the data for it. I am using a datagrid. I can sort the data and filter it. I want to get a datatable of only the data visible in the datagrid. The underlying dataview holds all the records. If I have a dataview with 80 records in bu...more >>

Workflow products recommend require.
Posted by ABC at 9/30/2005 4:20:43 PM
My client request a workflow solution. They want the solution provide as: 1. Has a workflow diagram interface presents their roles, work and tasks. 2. Support .NET technologies for developers to enhance. 3. Has a workflow design to implement or modify the workflow sheets 4. Workflow Backend e...more >>



Success stories?
Posted by CNemo at 9/30/2005 3:38:07 PM
Hello everyone! Recently i've been asked, if i know any successful commerial software written in C#. To myu shame i don't know anyting like this. So i was pretty intrigued. Could you share your success with us? Links and may be very short thechnical description (basically i interested in ...more >>

Crystal Viewer and Printer Settings
Posted by Karthic at 9/30/2005 2:41:21 PM
When i right click on the .rpt file in the VS 2003, i see a property printer setting. It says "No printer" on the top and there is option to select printer and paper settings etc.. I want to know how will this affect a report rendered by a crystal viewer. I have a web page with a crystal vie...more >>

Form2 DataAdapter/DataSet
Posted by Rich at 9/30/2005 2:13:01 PM
Hi, I've done a drag and drop of a sqlDataAdapter and generated a dataset on a second WinForm (Form2) I'm opening as a dialog box. I can bind to it and retrieve results but I get an error when I try to use any BindingContext.Count/Position methods on the dataset. Any help greatly apprecia...more >>

Help, Cannot Create Class in C# 2005 Beta2!
Posted by BobAtUnisys at 9/30/2005 1:36:03 PM
After uninstalling Visual Studio 2005 Beta2, installing Visual Studio 2005 RC1, uninstalling RC1 and reinstalling Beta2 I am getting the following error: When I try and create a class I get a message box with the following error "Could not load type 'Microsoft.VisualStudio.CommonIDE.TemplateW...more >>

How do I add scrollbars?
Posted by MrNobody at 9/30/2005 1:05:03 PM
I have extended a Panel control and overrided the onPaint event so I can do my own drawings. Now the problem is when I draw things beyond the clip area I do not know how to activate scrollbars on the Panel... any ideas?...more >>

Refresh of loaded data DataTable inside.
Posted by Alvaro E. Gonzalez V. at 9/30/2005 12:35:42 PM
Hi; I'm building a control that has a DataTable's property type. The control contains treeview which is populated in foreach crossing rows of the DataTable established in the property. I require a mechanism so that when they change the loaded data of the DataTable these are re...more >>

Debugging C callable dlls from C#
Posted by skohnle at 9/30/2005 12:26:02 PM
I have a C# application that loads a C callable dll via DllImport. The function gets called fine, but I can not debug it (Step into it). When the dll loads, the symbols are not found, and also the break point has the "?" all the time. What is going wrong here? I have tried everything I ...more >>

Speed issues with filling a list view
Posted by Brian Henry at 9/30/2005 12:01:46 PM
I was wondering how you guys would handle filling a list view with something like 10,000 items which each have 10 sub items on them... there has to be major speed issues with that right? Yet, applications like outlook and such can retrieve and display tens of thousands of emails with virtually...more >>

displaying only 1 WMI object
Posted by D.Bot at 9/30/2005 11:46:42 AM
I have this to search every diskdrive there is on a computer. But now I want to show/acces only 1 diskdrive for example only the C:\ drive. SelectQuery query = new SelectQuery( "Select * from Win32_DiskDrive" ); ManagementObjectSearcher searcher = new ManagementObjectSearcher(query); f...more >>

Textbox question
Posted by CobraStrikes NO[at]SPAM al.com at 9/30/2005 11:34:08 AM
Is there a easy way to stop a textbox receiving focus ? if so how ? ...more >>

Design: help on CMV refactoring in a simple form app?
Posted by Francesc at 9/30/2005 10:41:02 AM
Hi, After some years programming libraries and web based applications I'm trying to program my first not-silly windows application (something similar to an editor but just to annotate text lines). After some trials just putting some code directly at the control events I tried to refactorize...more >>

checking for a null in a bit datatype field
Posted by Chris at 9/30/2005 9:19:06 AM
Hi, I have an SQL Query that loads a SQLDataReader object. The returned record has bit datatype columns that I use to provide true/false values. I can't get a definite answer googling on how to test if this field is null. I get casting errors, and can't check for null on a null data va...more >>

Postal code processing with .NET regex
Posted by Surfdog at 9/30/2005 9:07:57 AM
Hello all, I'm unable to figure out how to process the zip codes with regexes. We have a custom component that takes a find pattern, a replace pattern, and the input value, and will output the processed result string. At the moment we're trying to clean up some zip code data that has the foll...more >>

Intellisense hints on class constructor
Posted by Jim Starcher at 9/30/2005 8:57:12 AM
I cannot get the intellisense hints to work on my class constructors. Would you please tell me what I am doing wrong? public class MyObject { //Constructors /// <summary> /// Used to create an empty MyObject. /// Will use the default property values. /// </summary> publi...more >>

how to force convert string to long/double
Posted by wesbird at 9/30/2005 8:54:01 AM
Hi, I am new here. Please forgive me if I ask some question already got answered. I do search forum first but I did not find the answer. here is my question, in VB you can convert a string to long by CLng or to double by CDbl. How I can do it in C#? I tried (long)MyStringVariable and My...more >>

Chenge WEB page title
Posted by Val at 9/30/2005 7:58:04 AM
How do i programmatically change a title of a Web page in ASP.NET? Thanks...more >>

DateTime to DBNull.Value
Posted by Diogo Alves - Software Developer at 9/30/2005 7:34:09 AM
Hi, I am writing a class to work with a table that I have... I would like to initialize every var that will be used to nulls... I found a problem doing this to DateTime vars How can I add a parameter do my OdbcCommand telling that a DateTime will be null.... I really need this... Any...more >>

Method overloading does this look right to you?
Posted by Lenn at 9/30/2005 7:34:05 AM
I have the following method: public void Execute(TCPCommand command, out string outputResponse, out string error) { //snipped code outputResponse = "some message"; error = ""; } now I need to a new overload for this without error and output parameters: public void Execute(TCPCom...more >>

Reflection and Generics.
Posted by Rathish P S at 9/30/2005 5:01:13 AM
Hi friends, I am trying with Reflection and Generics in C#. But I get confused with some of these new features. I am trying to get the type of generic parameter with the type.Assembly.GetType(name,false,false) method. It is return as null. Can anybody tell can help me to find the basic ...more >>

Updating Excel Sheet
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 9/30/2005 3:47:31 AM
Hi all i am having application storing data in excel sheet. This applicaton is in C# .net. I want to update rows of excel sheet in C#. Can some one help me how to do it. please help me. Thanks in advance. ...more >>

System.GetType returns null
Posted by audipen at 9/30/2005 3:18:24 AM
I have a problem with System.Type.GetType method. If you try out the following code in C# console app .. System.Type t = System.Type.GetType("System.DateTime"); System.Type t1 = System.Type.GetType("DateTime"); t is set to the appropriate Type object but the second call returns null (when...more >>

object sender question
Posted by Steven Blair at 9/30/2005 2:02:38 AM
Hi, dgTransaction_SelectedIndexChanged(object sender, System.EventArgs e) That sender is actually the object that raised the event. So, in this case you could do: ((DataGrid)sender).Items[i].Controls[0].ClientID; //Do something meaningful here! What is the difference (if any) bet...more >>

Scope of properties
Posted by Dave at 9/30/2005 1:57:01 AM
I would like to make the get method of a property public, but the set method internal so that it is effectively read-only outside the assembly but read-write within it (sort of the nearest thing to a C++ "friend"), is this possible? Or is there some way of achieving the "friend" effect? -- ...more >>

CSharpCodeProvider generated EXE embedded with ResourceWriter generated .resources fails...
Posted by Jon Rista at 9/30/2005 1:12:29 AM
I have a project where I need to create a windows .exe by compiling code and linking in some resources. This program thats being generated is somewhat unconventional, and I'll explain how. I'm generating a very simple installer app that embeds referenced .dll files inside it, which are extract...more >>

Authentication
Posted by bernardpace NO[at]SPAM yahoo.com at 9/30/2005 12:56:12 AM
Hi, I need to authenticate users from the client part with the server using a username and password. Since authentication data needs to be secure, I was thinking of not sending any username and password to server. I read some articles about message digest. If I read correct, the process i...more >>

Dynamic call object in C#
Posted by Michael at 9/30/2005 12:29:04 AM
Hi all : in vb.net I know use the follow code can implement dynamic call Dim asm As [Assembly] = [Assembly].LoadFrom(<FileName>) Dim ty As Type = asm.GetType(<Object Name and class name>) Dim obj As Object = Activator.CreateInstance(ty) obj.popupmsg() how can I implement in C# ...more >>

Convert MFC 6.0 static libraries to managed application
Posted by Dani Peer at 9/30/2005 12:27:16 AM
Hi, We have few MFC 6.0 applications that are using many static libraries that are basically our infrastructure. Now we want to develop in C#, and we don't want to redesign all the infrastructure, that basically the libs are also using dependencies between them. From where to start ? and sugg...more >>

Converting float in C to C#
Posted by Meya-awe at 9/30/2005 12:17:38 AM
Hello there, I am using a 3rd party library and a function which requires a float value in one of its methods. My data is in a string format and i tried using Convert.ToDouble and Convert.ToSingle, but didn't work either way. The value of string is "-57475.4531". The help in VS .NET 2003 tells m...more >>

About Override Class Question
Posted by Sunny at 9/29/2005 11:24:09 PM
Hi all, The code as follow: using System; class A { public virtual void F() { Console.WriteLine("A.F"); } } class B : A { public override void F() { Console.WriteLine("B.F"); } public override string ToString() { ret...more >>

I got a 3 ICE messages at once
Posted by Abubakar at 9/29/2005 11:21:07 PM
Hi, working on a whidbey beta 2, C# smart devices project, I got the following 3 errors (note: the name of my project is "serialize"): 1) Error 322 Missing compiler required member '妭 .RequestMinimum' serialize 2) Error 323 Internal Compiler Error (0xc0000005 at address 59A6FDD6): likely...more >>

Sending an email too an emailaddress
Posted by D.Bot at 9/29/2005 11:04:01 PM
Hello, I searching for an easy way to send an email from my windowsapplication writen in C#. It's only for test purpose so it only needs to send an email with the subject "Test Mail" many thanks, Dennis ...more >>

HELP: Non-Responding Application
Posted by WJScott69 NO[at]SPAM Yahoo.com at 9/29/2005 10:48:34 PM
I have written an application in C# and have everything I want working except when I kick off the query to other machines VIA WMI it hangs the app until it completes or I kill it. I know in VB there is a fuction to use to allow the GUI to be interactive 9Move the window, Cance by clicking a butt...more >>

Is there a good C# / .NET OO graphics library?
Posted by queisser at 9/29/2005 10:14:27 PM
I need some basic graphics object functionality for my app. What I'd like to do is this: 1) Start with an empty graphics "surface" 2) Paste or insert-from-file metafiles or bitmaps 3a) Use the mouse to move and resize, maybe rotate the inserted graphic object. 3b) Click on previously inserte...more >>

SqlDependency in WinFormsApp
Posted by Stefan at 9/29/2005 8:34:59 PM
Hey all, I tried to use SqlDependency in WinFormsApplication to show up with new = = information upon a change in a SqlResult. The Problem I have is that the OnChangeEvent is fired when I create the = = SqlDependency, but not again afterwards. Any idea on that? Source: n...more >>

request.Headers.Clear() doesnt work correctly?
Posted by piotrek at 9/29/2005 7:20:47 PM
Hi I have a problem with http headers. Iam creating: private HttpWebRequest request = null; and: request = (HttpWebRequest)WebRequest.Create(server); request.Headers.Clear(); request.Headers.Add("GET", serverPath + " HTTP/1.0"); request.Headers.Add("Icy-MetaData", "1"); reques...more >>

keyboardHook question
Posted by farseer at 9/29/2005 7:02:47 PM
Hi, based on some posts i read, i am using a dll to allow me to do some keyboard hooking. this is being called from a C# compactfamework app, which doesn't support delegates. so, i am using a MessageWindow to send the key presses to the C# app. My question is: there are times, depending on ...more >>

Does delegate instantiate an instance of Delegate or MultiCastDele
Posted by Nima at 9/29/2005 6:58:02 PM
The documentation for the Delegate and the MultiCastDelegate classes tell me that when we have a line like: public delegate void CheckAndPrintDelegate(string str); it causes the compiler to generate a new delegate class named CheckAndPrintDelegate that inherits from System.MulticastDelegat...more >>

Switch messed up or there is a reason for the madness?
Posted by Meya-awe at 9/29/2005 4:51:45 PM
Hi, i am new to C#. I am using some code similar to the one below. I am declaring an ArrayList in one case block but the compiler complains about it already being used in the previous case block. Is this normal in C#? Assume that i follow this and in the first case block, i allocate the memory u...more >>

How to convert a date string to datetime value with custom date format?
Posted by ABC at 9/29/2005 4:50:09 PM
How to convert a date string to datetime value with custom date format? e.g. Date String Date Format Result (DateTime value) "05/07/2004" "MM/dd/yyyy" May 7, 2004 "01062005" "ddMMyyyy" June 1, 2005 "09-07-05" "MM-dd-yy" Sept 7, 2005 Is there any fun...more >>

Whats wrong with short code snippit?
Posted by Steve1 via DotNetMonster.com at 9/29/2005 4:38:13 PM
Hi all, Why is the last line of this code snippit pulling up with an error? Any help will be appreciated - Thanks, Steve. string str_SQLLayoutsPound = "SELECT * FROM Layouts ORDER BY Name"; OleDbCommand obj_SQLLayoutsPound = new OleDbCommand( str_SQLLayoutsPound, obj_SourceConn ); OleDbDa...more >>

communication
Posted by Peter Kirk at 9/29/2005 4:34:35 PM
Hi, does anyone have some suggestions to a good way to implement a solution to the following? I need to be able to communicate short text messages to hundreds of computers. That is, there is a "main administrator" sitting at his machine, and he needs to be able to send text messages simulta...more >>

How do you "#define" in C#?
Posted by James at 9/29/2005 4:30:43 PM
Hi all, How do you #define (as in C++) in C#? Many thanks, James ...more >>


DevelopmentNow Blog