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 monday january 8

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

aspnet_wp.exe and COM+
Posted by MP at 1/8/2007 11:47:04 PM
Hi, I have a library in which I use the COM+ services dynamically for creating a Folder in the virtual directory of the Web Application on the Web Server. As ASPNET account does not have enough previlages I Impersonate a user account at run time that has enough previlages to create a fold...more >>


Overriding of method.
Posted by archana at 1/8/2007 11:33:52 PM
Hi all, I have one base class and 2 derived class and one method say xyz. in base class i declare xyz as virtual, but i want to override to override this method in derived2 class and not in derived1 class. but in derived1 class i want method with same name that is 'xyz'. but don't want to o...more >>

Something Wrong?
Posted by rcoco at 1/8/2007 11:01:47 PM
Hi, I'm just wondering if I'm on the write truck. this code is ment to look for an ID number in the datagrid that matches the the ID number that is in the textbox I created. But it's not selecting neither is it showing me any error. could some one help me please? private void bttok_click(obj...more >>

Question regarding initializing base class object to derived class object,
Posted by archana at 1/8/2007 10:32:58 PM
Hi all, I am confuse in concept of inheritance. I am having following 2 classes class base1 { public void abc() { System.Console.WriteLine("base1 abc"); } public void pqr() { System.Console.WriteLine("base1 pqr"); } public void xyz() { System.Console.Wri...more >>

Linked-List in C#????
Posted by bern11 at 1/8/2007 10:22:34 PM
Can anyone show me how to do a linked-list in C#? All I need is the basics - add an element and set the next & prev references. Show me that and I can figure out the rest. I know how to do it in C++, but I'm new to C#....more >>

Problems with try...catch
Posted by Jonathan Wood at 1/8/2007 9:56:05 PM
Greetings, I'm having an issue in C#. I'm using ADO.NET but that seems secondary to the issue. The following code: SqlConnection conn; try { conn.Open(); // ... } catch (Exception err) { // ... } finally { conn.Close(); } Won't compile. The compiler complains t...more >>

Calling Constructor conditionally
Posted by Karthik D V at 1/8/2007 8:53:07 PM
Is there any way to call the base class constructor conditionally. For Example class Shape { public Shape(int x) { } } class Rectangle : Shape { Shape(int x, int y) : base(x) { } } This works fine... But what if i need something like th...more >>

Drawbacks of precompilation over jit compilation.
Posted by archana at 1/8/2007 8:34:11 PM
Hi all, Can anyone tell me drawbacks of precompilation using ngen over jit compilation apart from that it generate native code for complete il code? thanks in advance ...more >>



Passing Objects by ref keyword as a convention
Posted by Deckarep at 1/8/2007 6:43:11 PM
Hello fellow C# programmers, This question is more about general practice and convention so here goes: I got into a discussion with a co-worker who insisted that as a general practice all objects should be passed by reference using the ref keyword generally speaking because as the writer ...more >>

Timeout expired. Max pool size reached.
Posted by Jake K at 1/8/2007 6:10:34 PM
I have a system timer that elapses every 10 seconds and must execute every ten seconds. Basically every 10 seconds I need to insert into a table. The following code, however, causes a "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have ...more >>

How to dispose dynamic menu items???
Posted by andylotus NO[at]SPAM gmail.com at 1/8/2007 5:58:25 PM
Hi People I have a WinForm program. The UI contains a ToolStripDropdownButton, which is associate a list of menu items of ToolStripMenuItem, created dynamically. Upon different scenarios of user operations, the DropdowButton need to clean up all its menuitems, and create new ones. Here the ...more >>

IWshRuntime library access to FileSystemObject
Posted by Valerie Hough at 1/8/2007 5:30:32 PM
Hi, How do I get access from C# to the WSH FileSystemObject? I can't seem to find it in the .NET v2.0 doc. Thanks in advance, Nigel Hough ...more >>

Datagrid TemplateColumn
Posted by Jake K at 1/8/2007 4:32:18 PM
I have an ItemTemplate in a datagrid that must use a conditional statement. The templatecolumns is as follows: <asp:TemplateColumn HeaderText="Listen To File"> <ItemTemplate> <asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="sound.gif" NavigateUrl='<%# DataBinder.Eval(Container, ...more >>

take first 10 elements in a char array....
Posted by roger_27 at 1/8/2007 4:31:00 PM
hey, I have a method that takes a char array of 10. I have a char array of 30. how do I make it send the first 10, then the next 10, then the final 10 ? I need help with my looping skills. thanks. I have this, but I get the index was out of bounds.... char[] char1 = {'1','2','3','4'...more >>

Need to sort a very large list of words
Posted by Frank at 1/8/2007 4:17:09 PM
I have a text file, one word per line. I want to arrange the lines alphabetically so I opened it into MS Word and asked Word to sort it. Word said that the list was too big for it. I figure I'll write a program to sort the file. But I wonder if Word can't handle it what things I'll run into an...more >>

External Process will not end correctly
Posted by Craig at 1/8/2007 4:09:00 PM
Hi Guys, I am trying to caputre the output for an external application. The idea is to use the System.Diagnostics.Process to run the exe in a process and redirect the output to a string. When I run the external command it works fine. But when i wrap it in a .net exe it fails to exit and ...more >>

BitArray bug or I am confused?
Posted by semedao at 1/8/2007 1:58:26 PM
Hi , I try the BitArray class to make Xor on 2 byte arrays. The result was that when I Xor 1with 2 I get 3 which is correct then Xoring 3 with 1 give me 0 (zero) when it should give me 2 ! but Xoring 3 with 2 give 2 which is correct... (should be 1) here is the sample code... BitArray...more >>

form_unload
Posted by Ringo at 1/8/2007 1:28:53 PM
How do I get code to run when I close a form? I know I can have a button and put the code there then close the form that way, but I have code that needs to run when the user clicks the X in the upper right of the form. In VB6 I think it is the form_unload event, but that does not seem to be the ...more >>

send email via simple mapi -> exchange 2003
Posted by Danny at 1/8/2007 1:02:43 PM
Hi Am trying to send emails via simple mapi. The application will be running on a machine which has outlook 2003 installed. My test app works but the file email is placed in the outbox within outlook, and does not get sent until a start outlook and process the waiting emails. Is there an...more >>

I can't get the value of an attribute in an xml file
Posted by roto23 NO[at]SPAM earthlink.net at 1/8/2007 12:26:56 PM
I am able to correctly XPath to the correct Node in the XML file, however when I try to get the value of an attribute on that node, it doenot work. intX gets a value of 1 so I am sure the XPath query is correct but this line retunrs an empty string... strDBFactor = NodeIter.Current.GetAttribu...more >>

TableAdapter.Update() does not really change the database
Posted by dani kotlar at 1/8/2007 11:58:55 AM
I run the following code: this.carsBindingSource.EndEdit(); this.carsTableAdapter.Update( this.vehiclesDataSet.Cars ); in order to save changes in the dataset to the database, but the changes don't take place in the database. Am I missing something? ...more >>

Class visible only within current project
Posted by google NO[at]SPAM insightfulmes.com at 1/8/2007 10:37:24 AM
Is it possible to add a class, coded within a separate .cs file, that is available only within the project? I hope that is clear. In more detail - I want to write a DLL for distribution that exposes one public class. I have some utilities classes that I would like to use in my public class b...more >>

Serves me right for trying something new!
Posted by boris.merryweather NO[at]SPAM gmail.com at 1/8/2007 10:01:28 AM
Hi, I'm VERY new to C#. I've bought a book (always a bad move) called "Build a Program Now. Visual C#" by Patrice Pelland. I got to chapter 4 without difficulty. I then started the project in chapter 4, "Create your own web browser in less than five minutes". I fell at the first hurdle (pag...more >>

Using template columns
Posted by Brett Wesoloski at 1/8/2007 9:48:57 AM
I am new to using template columns. I am just trying to create a data grid with a bound column and another column with a imagebutton in it. What I have always done in the past was to then create a datatable and bind that to the datagrid. Where is my code to bind the grid to the datatable....more >>

Sql Server 2005 problem
Posted by Andy at 1/8/2007 9:28:32 AM
Hi, Every once in a while, users get the following error from my application: System.Data.SqlClient.SqlException: A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) at Syst...more >>

Sql Server 2005 problem
Posted by Andy at 1/8/2007 9:28:12 AM
Hi, Every once in a while, users get the following error from my application: System.Data.SqlClient.SqlException: A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) at Syst...more >>

SqlConnection - Reset
Posted by John J. Hughes II at 1/8/2007 9:10:09 AM
Is there a way of resetting the SqlConnection with closing/opening it again. I am not seeing anything called reset. Regards, John ...more >>

need help on regular expression pattern
Posted by yoni NO[at]SPAM nobhillsoft.com at 1/8/2007 9:06:52 AM
Hi, I am looking for a regular expression that will find something like that "Word.word" But also: "Word.*" I came up with: \b\[?[A-Za-z_][A-Za-z_0-9]*\]?\.[?[A-Za-z_*][A-Za-z_0-9]*\]?\b each 'word' begins with a letter and can have numbers after it, and can have brackets. It all works,...more >>

Application Within Application
Posted by hufaunder NO[at]SPAM yahoo.com at 1/8/2007 8:34:30 AM
I have a Windows Form application that runs just by itself. In addition, this application should also be able to run within another application. In this second scenario it should appear as if my app is part of this other application. That other application only needs to be able to start and stop...more >>

Errors in generated ASP .NET Temporary files
Posted by j at 1/8/2007 7:58:38 AM
I am getting this error when trying to compile code generated using xsd.exe: The type 'TrailerList' already contains a definition for 'rCMSTrailerListRow' c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\photoblobws\4e7bb29f\6f50d4db\App_Code.vnsjeqin.4.cs What could caus...more >>

help with stored procedure and parameters.
Posted by vncntj NO[at]SPAM hotmail.com at 1/8/2007 7:10:25 AM
I'm trying to passing the Session["Locations"] value back to the store procedure, but I'm having difficulty understanding stored procedures and parameters. What I'm trying to accomplish is to have the Session variable passed through as a parameter to the Stored Procedure where I can test to see...more >>

c# bound a dataset to a datgridview with combobox
Posted by gba at 1/8/2007 7:02:58 AM
I have a dataset ontianing 3 columns (name,properties,type) I'm able to bound this dataset to a datagridview my problem is for the type column. What I like to have is a combobox containing tree choice (selection1,selection2,selection3) the issue is my dataset do not contain the collection o...more >>

run oracle stored procedure from c#
Posted by nicknack at 1/8/2007 5:54:39 AM
Hello. I have an oracle connection and I'm trying to run a stored procedure. The code for defining the parameters in C# is: ------------------------------ cmd.commandType = CommandType.storedProcedure; //Parameter 1: OracleParameter prm1 = new OracleParameter("c1",OracleDbType.VARCHAR2); pr...more >>

Load Form Filtered
Posted by BD at 1/8/2007 5:28:33 AM
I have a form that shows a datagrid view listing of workorders linked to customers by ID number. I want to Double-Click a row in this datagrid view to open form "Work Order" to a specific record related by 'workorderID'. I know how to do it, but I don't know how to code it for C#. Any help is...more >>

Windows Services and Enterprise library DAAB
Posted by Jac at 1/8/2007 5:23:30 AM
Hey, Is it possible to use Enterprise Library in a Windows Service? I work in VS2005 and made an Windows Service, but I don't see an app.config file. So, I created one appname.exe.config. Then I went to the enterprise configuration tool to set my connection string (I did the same in a...more >>

Strange behaviour with Directory.GetDirectories
Posted by pushpadant NO[at]SPAM gmail.com at 1/8/2007 2:33:50 AM
I have a code in C# for a console application. Some where in the code I want to get the list of sub-directories inside a particular directory so i use this code string[] strSubDirs = Directory.GetDirectories(strDir); When i put a breakpoint on the next line and do a quick watch on strSubDi...more >>

Stored Procedure Problem
Posted by dawson at 1/8/2007 1:54:38 AM
Hello, when I execute the following stored procedure in MSVS 2005, it request the three paramaters and returns the correct value/row from the database as expected: CREATE PROCEDURE dbo.clientLogin ( @user_email varchar(50), @user_password varchar(50), @user_id int OUTPUT...more >>

Minimizing a Application in C#
Posted by Ansu at 1/8/2007 1:36:38 AM
Hello All, Iam a newbie in .NET and i need u r help. My Question is "How to Minimize an Application in C#" I tried using the below code this.WindowState=System.Windows.Forms.FormWindowState.Minimized; but it minimizes only the current Form,but i want to minimize the Entire Applic...more >>

detect keystate
Posted by warbornster NO[at]SPAM gmail.com at 1/8/2007 12:40:08 AM
Hi, I want to detect wether the arrowkeys are pressed down or not. I would be happy if it would be as simple like "if (keys.Up == true) something()" but there seems to be harder than this. I would just like to detect the state, not start some kind of event. Is it possible ? ...more >>


DevelopmentNow Blog