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# > january 2007 > threads for friday january 5

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

Why Nested Classes?
Posted by Jake K at 1/5/2007 10:16:19 PM
What purpose does nesting a class inside another class typically server? Are there conditions where this would be beneficial? Thanks a lot. ...more >>


DLL stringtable
Posted by Tom Bryant at 1/5/2007 8:39:09 PM
Hi, I have to read string out of an old dll. How can I open it and access the stringtables with C# ?...more >>

Virtual file system mapped to an explorer drive
Posted by CodeLeon at 1/5/2007 8:14:23 PM
I read in the topic:(http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/2a0a07f79b970482/45171cb6c66a79cc?lnk=st&q=C%23+create+virtual+drive&rnum=1#45171cb6c66a79cc) how to map a folder to a virtual drive, but how do I map a virtual drive to my applicatio...more >>

prevent dataview from re-sorting once sorted
Posted by dever at 1/5/2007 6:23:55 PM
How to prevent a sorted dataview, which bound to a datagrid, from sorting anymore no matter how you change the data values? My users want to sort the datagrid first (i did it by applying dataview.sort ="my sort expresion", then users will select rows and manipulate the data but expect datagrid...more >>

simple architec question asp vrs asp.net
Posted by andrewcw at 1/5/2007 5:39:00 PM
I have a an aspx page with an asp calendar aspx control sample that feeds a regular HTML input id ( text ).http://aspnet.4guysfromrolla.com/articles/030202-1.aspx I'd like to then pass this text value back to the code behind with a run at server button click event. In ASP I'd probably cal...more >>

ClickOnce - microsoft.mshtml
Posted by avanti at 1/5/2007 4:11:06 PM
Hi, I have an app that the users install from the ClickOnce installation link. One of the user is seeing the error: System Update Required: Unable to Run. The application requires that assembly Microsoft.mshtml version 7.0.3300.0 be installed in the GAC first. The machine has .NET framewo...more >>

encrypting serilized object
Posted by DBC User at 1/5/2007 2:28:24 PM
I have couple of object I serialise and store them in file between session. If you open the files you could see the string values. I want a way to encrypt the data so that if anyone opens the file they shouldn't be able to read it. Just to increase the security of the system. How can I do this? ...more >>

How to determine encoding of a string.
Posted by Frank Rizzo at 1/5/2007 2:00:21 PM
I read a string out of a database, which contains serialized objects. How can I determine the encoding of the string? Thanks...more >>



Bizarre error with no error information.
Posted by Zeya at 1/5/2007 1:04:31 PM
I am writing a C# program that uses MySQL as database and MySQL ODBC 3.51 driver. It works fine all the way except this scenario that needs to be addressed. 1. Get a set of records to process (this brings back a datatable in C# and works fine. It uses a limit of 30 records each time). 2. P...more >>

ClickOnce issue - a file cannot be found
Posted by avanti at 1/5/2007 12:20:19 PM
Hi, I use ClickOnce to publish and install an application in the company. I have a help file for the same in .chm format. It is part of the C# project as a 'content' file. I also tried as 'embedded resource'. It opens when the help link is clicked. The code looks like: string ex...more >>

Need help with windows form
Posted by newbie at 1/5/2007 12:08:38 PM
Hi, I have a windows form written in C#. The form has multiple textboxes and multiple buttons. I want to create a form where when the users clicks on a particulat textbox and then clicks on a button, a text is added to that textbox. How do i go about doing this when a user selects on any ...more >>

Prevent method from being debugged
Posted by ramadu at 1/5/2007 11:29:18 AM
Hi, I have a utility method in one of my applications which is used extensively across the application (and it works well). The problem is that while debugging using Visual Studio, I sometimes forget to skip debugging for that method (i.e. press F10 instead of F11) and I end up debugging into...more >>

IIS / Remoting / SqL Server authorization
Posted by Tommaso Caldarola at 1/5/2007 10:53:14 AM
I have a custom object host on IIS, windows authentication enabled. The problem raises when the remote object, invoked by the client, tries to connect to SQL Server, I get 401 error (Authorization denied). What do I have to set in order to connect to database? ...more >>

Listview problem
Posted by Pete Kane at 1/5/2007 10:37:55 AM
Hi All, I'm having a problem retrieving subitems from a listview using the string indexer method, my code for filling the lv is as shown below // take it as read there is data in the dataset. foreach (DataRow dr in this.dsArt39Benefics.Tables[0].Rows) { lvi = new ListViewItem(dr["Be...more >>

Regex: replacing \n and spaces
Posted by Trev at 1/5/2007 8:31:34 AM
Hi everyone, I'm having some problems using Regex; I have a long string that is delimetered in a random fashion by a combination of spaces and \n's for newlines. I have five possiblities: // Character can be a-zA-Z0-9 plus any non-alphanumeric character (. , \ [ ] etc.) // five possibilities...more >>

overloaded constructors
Posted by esebastian NO[at]SPAM esolutionsgroup.ca at 1/5/2007 8:24:55 AM
hello all, This is probably fairly simple but i can't get it to work. I have a database wrapper that i created to encapsulate the ado functionality. I have 1 constructor that does not take any parameters and now i want to create another constructor that takes an SqlTransaction as a parameter an...more >>

Convert (managed) FILETIME to (unmanaged) FILETIME
Posted by rob.zumwalt NO[at]SPAM gmail.com at 1/5/2007 7:57:21 AM
Hi All, I have written a wrapper around a C++ class to make it available to C#, built into a dll. This has gone just fine, but one of the methods in the C++ class takes a FILETIME pointer as an argument (from windows.h). For example: timer.h (C++) ------------ #include "windows.h" p...more >>

New file creation with Microsoft Application Block logger
Posted by pavel.orehov NO[at]SPAM gmail.com at 1/5/2007 7:40:44 AM
Hi, I am using the logger from Microsoft Application Block library. I whould like to know how can I set the configuration so that new log file will be created each time my application starts. Thanks, Pavel ...more >>

Serializing datasets
Posted by Phil Townsend at 1/5/2007 7:22:19 AM
I have a unique situation where I need to serialize a dataset to memory so that it can be inserted into a SQL2005 table with a column having XML datatype. Some restrictions are preveting me from serializing this to a file. What would be the best way to go about this? thanks! *** Sent via D...more >>

Use Form Constructor or Load event?
Posted by garyusenet NO[at]SPAM myway.com at 1/5/2007 7:07:50 AM
I was originally taught to double click the form, to get to the load event handler and in there put anything I want to happen when my form is opened. However, today whilst reorganising some code for clarity it struck me that I could just have well put this code in the forms constructor. The c...more >>

Compiling with the framework64 with Visual Studio 2005 (Warning CS1607)
Posted by Eric at 1/5/2007 6:59:15 AM
Hi, I want to generate a dll for x64. In the project, I specify the platform target x64 but VS2005 use the win32 framework. Here is the warnings that I get : C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /nowarn:1701,1702 /platform:x64 /errorreport:prompt /baseaddress:2...more >>

extracting integers from datarows
Posted by apandapion NO[at]SPAM gmail.com at 1/5/2007 6:30:42 AM
I have an integer value inside a datarow. Is there a more graceful way to extract it than this: int value = Convert.ToInt32(datarow[datacolumn].ToString()); It's already an integer. Is there a way around the conversion? ...more >>

C# - Test for Equality Among Several Strings
Posted by dwohlfahrt NO[at]SPAM gmail.com at 1/5/2007 5:37:14 AM
Hi All, I've spent the last few hours looking for a simple yet clean method via C# that will allow me to test whether three or more strings are equal (by value, of course). I've been forced to go with the obvious (but ugly, if you ask me) method below: string a = "test"; string b = "tes...more >>

Wireless Networks - Is this even possible?
Posted by justsome_newbie NO[at]SPAM yahoo.com at 1/5/2007 4:34:34 AM
I'm wanting to create a simple program for my computer at home. I would like to keep my wireless network disabled and then only enable it when a certain program starts (internet explorer or firefox), and then disable the network when the program closes. Trapping when ie or firefox starts isn't a...more >>

Change the colour of the disabled state of a control?
Posted by garyusenet NO[at]SPAM myway.com at 1/5/2007 3:53:06 AM
I'm using krypton toolkit which has allowed me to make a cool looking form. However, when I set my textbox to disabled it is 'greyed' out. The grey colour isn't in keeping with the office 2007 style look of my form. How can i change the colour that control assumed when it's disabled? Thanks! ...more >>

Quick way to reference ALL controls on form?
Posted by garyusenet NO[at]SPAM myway.com at 1/5/2007 3:47:41 AM
I want to disable all controls on form barring two buttons. I have about 20 controls. Is there a way I can reference all controls on the form in one go? So I could then do something like.. AllControls.Enabled = false; mybuttoncontrol.enabled = true; Otherwise I have to write out manually...more >>

Authenticate user in OpenLDAP with username and password
Posted by dorrit.Riemenschneider NO[at]SPAM communardo.de at 1/5/2007 3:23:25 AM
I need to validate a user with username and password against our OpenLDAP active directory. This is my code: Private bool ValidateUser (string username, string password) { DirectoryEntry userEntry =3D new DirectoryEntry( ldapPath, username, password, Authe...more >>

possible solution of web form rename problem
Posted by prabhat tiwari at 1/5/2007 2:44:24 AM
if u r failing to rename ur form then do one thing there is a folder vswbcache it contain all project in cache so just delete ur project from the cache then u can rename the form. ...more >>

Disappearing of controls on custom control on compile time
Posted by rizwanahmed24 NO[at]SPAM gmail.com at 1/5/2007 2:12:19 AM
Hello i have created a custom control. i have placed two template controls on it. One is check box and second is picture box. The custom control also contain two picture boxes as property. These picture boxes can be filled at design time. I want my custom control to act as container. I drag t...more >>

Failed to rename!
Posted by rcoco at 1/5/2007 1:35:39 AM
Hi, I've failed to rename my web from. I want to give it a new name and replace webform1. could someone help me please. ...more >>

IIS SQL Injection woes...
Posted by sinbuzz NO[at]SPAM gmail.com at 1/5/2007 1:12:22 AM
Hi, I'm curious about the best way to avoid SQL Injection attacks against my web server. Currently I'm on IIS. I might be willing to switch to something like Apache but I'm not sure if SQL Injection is is a generic enough of an attack to cause me worries once I make the switch. Also,...more >>

How to read web.config from console application
Posted by bibhuti.nilesh NO[at]SPAM gmail.com at 1/5/2007 12:43:01 AM
I want to read web. config file and need to get values of appSettings through a console application ...more >>


DevelopmentNow Blog