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# > april 2008 > threads for monday april 21

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

Font installation at runtim
Posted by aagarwal8@gmail.com at 4/21/2008 10:33:54 PM
Hi, I have a application where i am using a font which is usually not available in windows\fonts. I need to install this font on the clients machine where my application is running. I have put the font in my installer so that it gets installed in the fonts directory on installation. But the...more >>


Using System.Xml.XPath;
Posted by Tammy Nejadian at 4/21/2008 10:27:00 PM
Hi, I am using Visual C# window creating an application to read an xml file. At some point I need to use XPathNavigator and XPathNodeIterator however when I used those subjects I get error message . I add the "System.Xml.XPath" class however it either empty or not implemented. This problem ha...more >>

Hide/Show controls and Z-Order
Posted by Joe at 4/21/2008 9:33:15 PM
Hi All! I have a layout issue. My form has 5 components on it. The are each docked, Top, Left, Right, Bottom and Fill. There are also 4 splitters. My issue is that I want the user to be able to hide/show the different controls with their splitters. When the controls are hidden and then sho...more >>

Confused - Static member object whose class design assumes multiple instances.
Posted by pgrazaitis@gmail.com at 4/21/2008 8:46:25 PM
I cant seem to get my head wrapped around this issue, I have myself so twisted now there maybe no issue! Ok so I designed a class X that has a few members, and for arguments sake one of the members Y is the location of a file to be read. The original design assumes that this class will be ins...more >>

asp_wp.exe utilized 100% of CPU
Posted by Danny Ni at 4/21/2008 8:18:27 PM
Hi, I inherited a web project from other programmer. I notice on my dev machine every time I request a page in IE or FF the CPU jumps to 100%, all utilized by asp_wp.exe. I did some researches on the web, somebody suggests this could be due to database connection not properly dispose...more >>

open a connection to the pool
Posted by Tony Johansson at 4/21/2008 8:18:11 PM
Hello! How does this connection pool function actually ? As I have been told is that when the connection is returned to the pool the connection to the database is still open. What you do is that you just return a still open connection to the pool. When I open a connection I get an already op...more >>

A simple question about DataSet
Posted by Tony Johansson at 4/21/2008 7:48:39 PM
Hello! A DataSet is using XML to represent data that is stored locally. I just wonder how can I look at these XML data that describe the DataSet? //Tony ...more >>

DataSet and BindingSource
Posted by Tony Johansson at 4/21/2008 5:52:50 PM
Hello! I'm reading in a book about .NET and here they something that sound wrong but I'm not abolutely sure. They say that a DataSet contains methods to update data in the database is that really correct ? I have looked in the documentation for DataSet and it seems that there are no metho...more >>



Making an instance of an object available for all events and methods of a class
Posted by Andy B at 4/21/2008 3:25:18 PM
I am trying to figure out how to make an object instance available for all methods of a class. I tried to do something like this: public class test { TheObject Instance = new TheObject(); TheObject.Dictionary<string, string> = new Dictionary<string, string>(); .... } The first line (TheO...more >>

Active Directory, User Permissions, and .NET?
Posted by Spam Catcher at 4/21/2008 3:14:04 PM
Hello All, I need to integrate my application into Active Directory. My application has the concept of groups, users, and also individual permissions. Users can be part of a group such as administrators, but explicit permissions may also be set. Can active directory handle this too? F...more >>

Conection Pooling with multiple applications
Posted by ind_123 at 4/21/2008 2:42:36 PM
Can connection pooling be implemented for multiple applications? How is it done? ...more >>

Handling Keyboard Shortcuts
Posted by BD at 4/21/2008 1:41:19 PM
How can I duplicate the behavior of the operating system shortcut keys in my application? For example, my windows form has 5 controls (textboxes), the operating system will pickup which control has the focus and handle ctrl-c, ctrl-v, or any other shortcuts. I have the same shortcuts working i...more >>

Dictionary and std::multimap
Posted by Trecius at 4/21/2008 12:05:00 PM
Hello, Newsgroupians: I've a question regarding dictionaries. I have an array elements that I created, and I'm trying to sort those elements into various sections. Here's the template of my data type. DT { int nSize; ... } I'm trying to create a dictionary, which resembles a j...more >>

Service never starts only on Windows 2000 Server
Posted by ERobishaw at 4/21/2008 11:57:38 AM
A windows service I've created runs on all boxes except Windows 2000 server. The windows service initializes (i.e., the Service:ServieBase class gets constructed), but the OnStart() method never fires. On the same server, I have another service I've created which runs just fine. Both serv...more >>

Regex: How to find a "<" less than Symbol
Posted by chemicalcold0@gmail.com at 4/21/2008 11:18:33 AM
Hi there, since < has a meaning in c# for regular expressions and \< says it's an unrecognized escape sequence, I'm pretty lost parsing html tags without replacing them first with another character or string. Does anyone have a hint for me on how to get c# Regex class to find "<"? Thanks i...more >>

Where to store custom error log
Posted by Debbie.Croft@nospamforme.com at 4/21/2008 11:04:06 AM
I want to write some custom error messages to a log so that I can read them on the next run of the application and as the user to send them to me. Where the right place to store this log file? Which directory path is the right one - so that it's always writable regardless of the user's perm...more >>

Determine if Assembly Is Loaded
Posted by Verde at 4/21/2008 10:52:19 AM
Is there an easier way to determine if a specific assembly is loaded into the current AppDomain? I'm thinking that there has to be a way to do it without looping through all currently loaded assemblies, yet I couldn't find how to do it without looping. This is what I have: private boo...more >>

Extension Methods - first parameter ?
Posted by GiJeet at 4/21/2008 10:39:29 AM
Hi, just learning extension methods and the first parameter confuses me. I understand using the this keyword to indicate the class we wish to extend, but is the first parameter also used to catch something passed ? Or is is it just to specify the class we wish to extend? the reason I guess I'm...more >>

.NET remoting
Posted by Tony at 4/21/2008 10:27:48 AM
Hello! I'm going to buy a book about .NET remoting. Is it any major difference between .NET Framework 1.1 and 2.0 ? //Tony ...more >>

Linq. Select.
Posted by shapper at 4/21/2008 10:20:28 AM
Hello, How do I select 10 random records from a table? Thanks, Miguel...more >>

Want to define a constant along the lines of Math.PI
Posted by Chris Saunders at 4/21/2008 10:09:50 AM
I'm not very familiar with C#. I have a static class and would like to define some constants similarily to Math.PI. Could someone show me how to go about doing this. So far no luck searching. Regards Chris Saunders ...more >>

Regex Question
Posted by AMP at 4/21/2008 9:24:35 AM
Hello, I am coming back to a project and I dont remember what the following Regex says I do know it removes all \r\n from the string, but I dont see how. Can someone explain this one? Regex re = new Regex(@"([\x00-\x1F\x7E-\xFF]+)", RegexOptions.Compiled); string op = re.Replace(FileToParse...more >>

Regular Expression Question
Posted by Nightcrawler at 4/21/2008 8:50:10 AM
I have a regular expression that catches these patterns: value1 - value2 value1 - value2 (value3) value1 - value2 [value3] value1 - value2 "value3" As you can see value3 is always optional. The regular expression I use is: (?<Value1>.+)-(?:(?<Value2>.+)??(?<Value3>(?:\([^\)]+\)|\[[^\]]+...more >>

Convert a string
Posted by AMP at 4/21/2008 7:16:16 AM
Hello, I want to convert a string Array permanantly to a int Array. Everywhere in my code I have to use Convert.ToInt32 to use the data. I just want to change it once. Thanks Mike...more >>

While creating shortcut slash changes to backslash
Posted by Ilya at 4/21/2008 6:11:10 AM
Hi, all! Some weird thing happens... I'm trying to create a shortcut programmatically in C#. I need to create a shortcut with the "target" parameter using slash. Actually I'm creating a shortcut to a file using command line arguments, smth like: "C:\PATH\MyFile.exe" /param1 The problem is t...more >>

Generic type with parametherized constructor
Posted by Andrus at 4/21/2008 1:32:15 AM
I need to create instance of generic type when generic type does not have parameterless constructor. I tried code below but got error shown in comment. How to fix ? Andrus. abstract class QueryFactory<TEntity> { public string O1; public QueryFactory(string o1) { O1 = o1; }...more >>

error C2061: syntax error : identifier 'ref'
Posted by Pixel.to.life at 4/21/2008 12:30:46 AM
So I have this perfectly fine and running app, that uses managed C++ forms. Problem#1: [1] I pass a Bitmap reference to a class, hoping to modify it in one of the class's methods, so it reflects outside too. Something like this: // In a form's scope Bitmap ^m_Bitmap; // A separat...more >>

Problems with signed code
Posted by visual_devel at 4/21/2008 12:19:01 AM
Hello, I have a software that I sign with a trusted certificate of Verisign (both the assemblies and the MSI packages) following the Microsoft recomendations. In most of the cases I can install this software with no problems, but there are a certain number of places where the software ins...more >>

Refresh Linq Data Entities in the Model
Posted by Matthias S. at 4/21/2008 12:12:00 AM
hi there, i have generated a database model using vs and a *.dbml file. there are a lot of tables in the database and all of them are prefixed, like xxCustomers, xxOrders. for the generated entities i don't want those prefixes so i removed them in the design view of the model which works fine...more >>


DevelopmentNow Blog