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# > october 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 31

Problem with new Row on DataGridView
Posted by shahoo at 10/31/2007 11:45:22 PM
Hi, I have a DataGridView on a form and it is bound to a BindingSource. Some fields are necessary and so cannot accept Null values. My problem is that when I run the program and try to add a new row to the DataGridView and value of one of the necessary cells is missing, when I click anywhere on ...more >>

basic string encryption
Posted by j1mb0jay at 10/31/2007 9:05:48 PM
I have created some simple string encryption in C# to be able to store passwords in a database without them being stored in plain text. I have attached a encrypted passage from a book I like. Please let me know if it is really simple to crack. Regards j1mb0jay...more >>

binding source question
Posted by GS at 10/31/2007 8:51:04 PM
I have controls in the free form bound to databindingsource. Now I added a couple of columns in the database table and reconfigured the bindingsource accordingly. Then I bound the two new columns to two checkbox on the form. C# automatically produced bindingsource1 and 2. if I go back and man...more >>

Copy DataGrid columns values to text box
Posted by Soulless at 10/31/2007 8:27:38 PM
Hi, Is there a quick way to take all the rows from a column in a datagrid and copy them to a multi-line text box? I am hoping there is a quick method as opposed to looping through each row. Thanks! ...more >>

debugging service
Posted by Analizer1 at 10/31/2007 8:19:48 PM
the below is error when starting a service.... i need some help figuring this out.... has anybody had this type of error on starting a service Tks Analizer1 all comples well Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event Category: None Event ID: 5000 Date: 1...more >>

Looking for a pattern
Posted by Bilz at 10/31/2007 7:30:23 PM
Hello, I am looking for a good pattern. I have a rather large software app that makes use of a service manager for its many services... configuration, colors, data lookup, units, etc. Up until now the service manager has been a singleton and anyone who wants access to a service just asks th...more >>

Fastest way to move XML document into and back out of CLR function
Posted by DR at 10/31/2007 6:41:39 PM
Fastest way to move XML document into and back out of CLR function In SQL Server 2005 and Visual Studio 2005, what is the fastest way to pass an xml data type variable into a C# CLR function and retrieve it back out of the C# CLR function when the C# CLR function is done modifying it? I tr...more >>

Marshelling help
Posted by colin at 10/31/2007 5:55:52 PM
Hi, well ive written some code wich iterates through all the fields in my data structures wich I need to format to/from a file (wich has a complicated format) and I can identify some simple structures that are packed and sequenctial that I can just binary copy the whole structure, however ...more >>



Create AVI file
Posted by Peter Morris at 10/31/2007 5:44:03 PM
I have some code that generates Image instances from PNG files. I'd like to be able to output this as an AVI file from a sequence of images + a wav file. Any pointers? Thanks Pete ...more >>

How to "define" a struct
Posted by PLS at 10/31/2007 4:43:16 PM
I have a struct containing a few private members and a bunch of properties. When I try to use the structure like this ABC item; item.property1 = 1; item.property2 = 2; ... In total, the properties set will set every private variable. Yet the compiler gives me "Use...more >>

Comparing ArrayLists
Posted by JoshP at 10/31/2007 3:34:01 PM
Hi All, I am attempting to compare values in two arraylists to make sure all the values are the same. I am running into trouble with my code if both arraylists compare okay up until a point and I am looping using the length of the primary arraylist. For example: oApproved (3 elements here...more >>

Possible Bug in the .NET Framework, Please Advise
Posted by Computer Guru at 10/31/2007 3:26:52 PM
Hello All, I'm at my wit's end on this one, and would appreciate any help or insight that could be given. Environment: Windows Vista x64 ONLY Code: //START BUG string bcdedit = Environment.SystemDirectory + @"\bcdedit.exe"; Console.WriteLine(bcdedit); if (File.Exists(bcdedit)) Cons...more >>

viaual c# express ide config
Posted by colin at 10/31/2007 3:25:28 PM
Ive got a couple of questions 1) how do I set keayboard options to toggle column select mode like you can in brief when I try set the edit.briefselectcolumn it doesnt do anything unless i select brief rather than defualt then it changes everything else too like shift up doesnt extend the ...more >>

process.start gives stackoverflowexception.
Posted by archana at 10/31/2007 3:07:29 PM
Hiall i have derived class from process class and implemented one method in that i am starting process using this.start. Its giving me stackoverflowexception. Can anyone tell me why? please help me asap. thanks in advance. ...more >>

simple math
Posted by rodchar at 10/31/2007 1:25:01 PM
hey all, given: String value; how do you subtract 1 from value assuming it's a number? it's one of those days... thanks, rodchar...more >>

how to autoredraw panel?
Posted by Alex K. at 10/31/2007 12:32:03 PM
Hi all I set a panel's backgroundimage at design time. I have few textboxes on the panel. Every time I use right mouse click to copy/paste into these textboxes, the pieces of system popup menu stick to the background and can only be removed by minimizing / restoring the form, i.e. re-paint...more >>

Calling another method in C#
Posted by CMartin at 10/31/2007 12:12:00 PM
How do I call the "buttonRun_Click()" method in C#? I can do this so easily in VB but I have yet to figuere out how in C#. I keep getting errors. Thanks CM ...more >>

Status Bar
Posted by CMartin at 10/31/2007 10:20:01 AM
When I ad a toolstripstatuslabel to the status bar, is ther a way to have this one label right justified? ...more >>

toolStripStatusLabel3.Text = (DateTime.Now.ToString());
Posted by CMartin at 10/31/2007 9:50:02 AM
How do I get the value of DateTime to show two characters when it is inthe AM? What I get in PM = 10/31/07 12:34:22 PM What I get in AM = 10/31/07 2:34:22 AM I need: 10/31/07 02:34:22 AM To make my comparisons easier. Or better yet, I want to start someting after a certain date.time and...more >>

calendar control MonthChangedEventArgs
Posted by rodchar at 10/31/2007 9:22:02 AM
hey all, is there a way to convert/cast MonthChangedEventArgs to EventArgs? thanks, rodchar...more >>

Having problems creating a installer for my app due to permissions?
Posted by Pep at 10/31/2007 9:02:56 AM
Firstly, I'm not sure if this is the right group for this query, so please forgive me if I am wrong. My problem is that most users I distribute my software to cannot install it on their systems due to not having the correct administrator rights. I'm perplexed over this as I cannot reasonably ...more >>

Clearing the Debug window
Posted by JPS at 10/31/2007 4:48:37 AM
I am having trouble with this code. It is something syntactically, but I am not sure what. The first line will not compile. My ends result should clear the debug window. OutputWindow outputWin = new DTE2 dte.ToolWindows.OutputWindow; OutputWindowPane pane = null; ...more >>

How to fetch CPU and Memory Usage of IIS in C#
Posted by Ravi at 10/31/2007 4:08:01 AM
How to fetch the CPU and Memory usage of IIS in C#? Thank you in advance. Regards, Ravi...more >>

File.Move
Posted by coffeebasket NO[at]SPAM msn.com at 10/31/2007 1:05:49 AM
I have created an Windows Service application, and it is suppose to move downloaded files from localdir to a network dir but it fails. The same code in a consol application works just fine. I have tried username + password in the Windows Service application but still no luck. Could someone shea...more >>

Property missing
Posted by tshad at 10/31/2007 12:45:31 AM
I pulled this from my last question to hopefully make it more clear. After fixing my namespace problem I still need to find out why I am getting an error message: PageInit.cs(43,76): error CS0117: 'object' does not contain a definition for 'LastPageVisited' User is an object I ha...more >>

Adding stringcollection to richtextbox text
Posted by Claire at 10/31/2007 12:00:00 AM
Hi, Is there an easy/nice way to assign the contents of a stringcollection to richtextbox.lines rather than doing the following please? foreach(string str in _EmailErrors) { rtb.Text += str; rtb.Text += Environment.NewLine; } thanks Claire ...more >>

Using WebBrowser-Control in multi threaded apps (.Net 2.0)
Posted by Leon at 10/31/2007 12:00:00 AM
Hi there, I am trying to use the WebBrowser Control in a form which is being started in an own thread by the main form of my application. Unfortunately I am always getting an error in InitializeComponents stating that the ActiveX-Control 8856f961-340a-11d0-a96b-00c04fd705a2 cannot be initia...more >>

"The Remote server returned an error :(407) Proxy Authentication Required "
Posted by at 10/31/2007 12:00:00 AM
Hi All, I have an windows application created in C# &it is running fine on several of our customer. It does a httpWebrequest in the background. Everything was working fine but some customer are facing "The Remote server returned an error :(407) Proxy Authentication Required " { WebReque...more >>

Refresg image
Posted by zion at 10/31/2007 12:00:00 AM
Hello, How can I refresh gif animation image in asp.net page during page load. The image freeze and I want to force it to animate. Thanks ...more >>

?? 'new' and 'protected' Modifiers on Structs ??
Posted by Tom Baxter at 10/30/2007 11:33:15 PM
Hi everyone, Has anyone looked at section 18.1.1 of the C# spec? It indicates 'new' and 'protected' are valid modifiers on struct declarations. First, how can 'protected' be valid on a struct, since structs cannot be inherited? The compiler gives an error (as I expect it should) if you try ...more >>

html to powerpoint
Posted by bsg92618 at 10/30/2007 11:23:20 PM
i have seen many examples to save a ppt as html. is there a way to load an html file into a powerpoint file. the ppt must display the web page not the raw HTML thanks ...more >>

powerpoint saga
Posted by bsg92618 at 10/30/2007 11:09:50 PM
I work for a company that has very rigid security guidelines. I have been given a project to convert a PowerPoint presentation into a web site that looks exactly like the ppt. this part was easy. Then I have to provide a button that will convert the whole web site into a PowerPoint present...more >>

Serialization
Posted by colin at 10/30/2007 10:52:33 PM
Hi, I need to transfer data structures to/from a fixed file format, some of the format is quite easy its just a binary store of char/int/.../floats etc. however some of the fields are stored as variable size arrays of structures etc and some individual fields are stored as comressed. some ...more >>

VisualC# 2005 Express: Class Library Is it a COM obj or Managed code
Posted by ITrishGuru at 10/30/2007 10:28:19 PM
Hi All, I am writing an IDTExtensibility2 interface as a class library so that I can use it as an Add-in for Outlook 2003. I have the IDTE2 interface building perfect and it creates a .dll for me. How do I turn this into a COM object so I can install it as an Add-in for Outlook. I have ...more >>

Problem with Class name
Posted by tshad at 10/30/2007 10:19:25 PM
I am getting the following messages from my compile code: PageInit.cs(43,71): error CS0246: The type or namespace name 'User' could not be found (are you missing a using directive or an assembly reference?) PageInit.cs(43,76): error CS0117: 'object' does not contain a definition for ...more >>

Problem with class Not existing that does
Posted by tshad at 10/30/2007 10:09:37 PM
I get the following error: PageInit.cs(43,71): error CS0246: The type or namespace name 'User' could not be found (are you missing a using directive or an assembly reference?) The error is from the last line in this snippet of code ***************************************** using ...more >>

Generic maintanence of tables
Posted by Sehboo at 10/30/2007 8:58:53 PM
We have several tables that we want to maintain on our webpage. User should just pick the tablename from drop down box, and then page should then populate the grid with the data from that table along with "Edit" button. If they click on Edit then they should be able to do an in-line edit of t...more >>

Getting namespace errors on compile
Posted by tshad at 10/30/2007 8:08:15 PM
I have a file that I converted from VB.Net to C# that works fine in VB.Net when I compile but not in C# using the same libraries. The error I am getting is: PageInit.cs(9,7): error CS0138: A using namespace directive can only be applied to namespaces; 'System.Web.HttpCookie' is a ...more >>

Namespace question
Posted by Francois Malgreve at 10/30/2007 7:04:36 PM
Hello everybody, I have a pretty straightforward question regarding namespace. Is there anyone who knows why the following code does not compile on the line Type t = typeof(Name6.Name7.Name6.Class6) ? I am using Visual Studio 2006 by the way (.Net 2.0) As far as I know "Name6.Name7.Name...more >>

ComboBoxRenderer not painting correct on Vista
Posted by Brendon Bezuidenhout at 10/30/2007 6:59:45 PM
Evening, I have a slight erk with the ComboBoxRenderer running under Vista and was hoping someone could shed some light on this for me. I've created a custom control that inherits from Button - no problems there :) The problem comes with the actual painting of the custom button... The V...more >>

Networ components suggestion
Posted by Paolol at 10/30/2007 5:56:17 PM
Hi, I'm looking for some network components ( ftp,ftps.. ) any one can suggest me some good one ? ;) Thanks to all Paolol ...more >>

URGENT .NET requirement in Columbia, SC and Baltimore, MD
Posted by chhaya at 10/30/2007 5:53:43 PM
Hello there, This is Chhaya from Dibon Solutions Inc. We have the following requirements on .NET. Kindly respond to me if you would be interested in joining these projects. The availability has to be immediate since the client is interviewing right now. Location : Baltimore MD Number ...more >>

I get this error "Object reference not set to an instance of an object"
Posted by Mucahit ikiz at 10/30/2007 5:32:29 PM
Hello, First of all, I created Base Form called "tureyen_frm". Then i created a new form by inheritance using the Base Form. This name is "tureten" form. For each new form derived from the Base Form a , I created a class. And than some methods in Base Windows Form use in the the derivate ...more >>

Preventing Screen Saver from Windows Forms application
Posted by KK at 10/30/2007 5:23:09 PM
Dear All I want to prevent the screen saver getting activated when my application is running. I have the following code, but still screen saver is activated. What corrections I should make to prevent screen saver running to the following code. public class MainForm : System.Windows.Forms...more >>

How do i pass data from form 1 to form 2
Posted by AshParr NO[at]SPAM gmail.com at 10/30/2007 5:05:23 PM
Hi all, I have 2 forms, "Form1" & "Form2", i have a button that currently opens form2 from form1 and then hides itself: Form2 form2 = new Form2(); form2.show; this.Visible = False; and then the same on form2 to get back to my 1st form: Form1 form1 = new Form1(); form1.show; this.Vis...more >>

Workflow Foundation question
Posted by Jon Pope at 10/30/2007 4:58:03 PM
Is there a newsgroup for people working with windows workflow foundation? I've looked around MS's news server and don't see anything for either "workflow" or "work", etc. Cheers, Jon ...more >>

Database programminf question...
Posted by Andrew Meador at 10/30/2007 3:53:29 PM
I am working on an application that will store data in SQL Server 2005 Express. The database will reside on our server at the office. I need to write an application that can work with this data off site during the day and then synch the changes back to the database at the end of the day (or n...more >>

Setup Project File Path Options
Posted by Dave at 10/30/2007 3:27:27 PM
Does anyone know how to set a .NET Setup Project to have it look in the target directory where the installed files land up, and NOT in "C: \WINNT\system32"? After my Windows Service starts up i get the error: "Could not find file 'C:\WINNT\system32\ConfigFile.txt'" (as it's not there, it's in ...more >>

Config Files
Posted by Mick Walker at 10/30/2007 3:15:18 PM
Hi All, Does anyone know of any config file reader classes that I can implement within my application. I am not attempting to read the current applications config file, but other applications. I need to be able to add sub nodes to existing nodes within the document. I am not opposed to ...more >>

CGI
Posted by zion at 10/30/2007 3:13:26 PM
Hello, How cam i execute CGI application with some parameters within asp.net form? Thanks ...more >>


DevelopmentNow Blog