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# > july 2006 > threads for thursday july 6

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

Handle network timeout in C#
Posted by Palaniappan at 7/6/2006 11:36:23 PM
HI, I need to set the timeout value for the sockets to handle network timeout in C#. I search for some API which is equivalent to that of the setSoTimeout() method in Java. Could any one of you please help me out? Thanks, Palaniappan. ...more >>

control display
Posted by Rain at 7/6/2006 9:13:01 PM
hi, im displaying around 30 user controls, small panels to be specific, in one form. the problem is when displaying, it displays the panels one at a time. I mean you can literally see them being displayed one by one but what i wanted was for them to be displayed all at once. This is because th...more >>

Some questions about handling exceptions and when to throw them
Posted by Steve at 7/6/2006 9:11:25 PM
I have read a couple articles online, read my Jesse Liberty book but I am still confused as to just what the best practices are for using exceptions. I keep changing how I'm working with them and it has now, after 15k lines of code resulted in a royal mess! It's my hope to ask some specific...more >>

Another Config Question
Posted by GitStudent at 7/6/2006 8:44:30 PM
C++ Programmer making the switch to C#, and learning as I go. Here's what I'm looking for. I want to have a config file with a section Group and that group have several elements in it. I want to read the members of those groups into an array or hash table. I would prefer to do it in the m...more >>

Need to return a string ( varchar(40) ) from MS-SQLSERVER stored procedure
Posted by Brian Parker at 7/6/2006 6:17:07 PM
I've been banging my head on this for hours and it's something that should be very very easy. I have a Stored Procedure in a MS-SQL 2000 server that returns a Varchar(40) and I want to grab that value in C-Sharp the easiest way possible. I've tried multiple ways, using ExecuteNonQuery, Exe...more >>

Logging onto a domain programatically.
Posted by UJ at 7/6/2006 4:21:06 PM
Is there any way to have a windows app log on to a domain behind the scenes to open the pipe to a server? I don't want the user to have to do it. TIA - Jeff. ...more >>

Windows authentication over remoting... possible?
Posted by ThunderMusic at 7/6/2006 3:48:20 PM
Hi, I have to develop an application that will consist of a service and a windows forms application... the service could be on a distant server but I need to authenticate the user as being part of the same domain. so when the application starts, I can send something to the remote service a...more >>

DataGridView Question
Posted by MJ at 7/6/2006 3:43:10 PM
Newbie question. I have a DataGridView which is bound to a manually created read only DataSet. One of the fields in the dataset is a primary key of the table. I simply wish to know which record is selected when the user double clicks a row as this will then open a detail view of the record in ...more >>



building c# with ant or nant
Posted by michael sorens at 7/6/2006 3:40:08 PM
So I have compiled a .dll file from a Visual Studio 2005 project containing a few dozen c# files. Now I want to automate this build using ant (have not yet looked at nant, but the rest of my complex build is done with plain ant). Could someone point me to any tutorial or other guide for ...more >>

Failed to call unmanaged functions in C++ dll compiled in Visual 6.0
Posted by trantanm NO[at]SPAM yahoo.com at 7/6/2006 2:15:02 PM
Hi everybody, I failed to call unmanaged functions in C++ dll from C# application. If I compile and produce the C++ dll file in .NET environment, I can call them from C#. Is the reason that the C++ dll file compiles on the different platform? Is there any way to correct the problem? Appreci...more >>

How does "new" work in a loop?
Posted by Tony Sinclair at 7/6/2006 1:37:47 PM
I'm just learning C#. I'm writing a program (using Visual C# 2005 on WinXP) to combine several files into one (HKSplit is a popular freeware program that does this, but it requires all input and output to be within one directory, and I want to be able to combine files from different directories...more >>

Inserting record into database and returning the ID of the new row
Posted by Dylan Parry at 7/6/2006 12:43:17 PM
Hi folks, This is really confusing me. I am trying to insert a row into a database, and then use scope_identity() to return the value of the ID column for the record I have just created. The code I am using is something like the below: --- Start --- // Build query this.command = this.conn...more >>

Windows Service
Posted by freddy at 7/6/2006 12:41:01 PM
Hi, I have created a service that has more than one user service i.e. ServicesToRun = new System.ServiceProcess.ServiceBase[] {new s1(), new s2()}; when I call ServiceBase.Run(ServicesToRun); only S1() gets executed I have created a seperate thread in each derived class (S1 and S2) but...more >>

Missing: C# class wizard?
Posted by PaulAtKP at 7/6/2006 11:08:51 AM
I just installed Visual Studio 2005, created a C# class library project, and went to use the Add Class wizard. I can't seem to find anything that would classify as a wizrd (no way to specify inheritance, visibility, namespace....) The online help refers to a wizard but all I get to specify is a ...more >>

Focuse all derived classes to implement a interface specified by the base class
Posted by Jinsong Liu at 7/6/2006 10:55:48 AM
I have a class which serve as a base class. I want to focuses all the classes derived from it implement a interface. Make it a abstract class is not a option since some XML serialization code need to initialize the class. is it possible? thanks...more >>

BMP to Metafile
Posted by Peter at 7/6/2006 10:13:35 AM
Does anyone have a c# or vb.net example of how to convert bitmap to Metafile - preferably without writing anything to a file ? Thank You Peter ...more >>

Strang problem with dataGrid - HELP !!!
Posted by Gidi at 7/6/2006 9:39:02 AM
Hi, i have dataset and a dataGrid. In the dataSet i have few tables and i run on each line, check if i need it, and then copy it to the dataGrid (by using dataGrid1[i,k]=dataSet[i,j].ToString(); ) sometimes is works just fine, and sometimes i get error message saying: " The ListManager's ...more >>

How to find the average duration from these values?
Posted by jarosciak NO[at]SPAM gmail.com at 7/6/2006 9:28:36 AM
Hi everyone, I need a little bit of help with this problem. I've got a time durations feed, which comes in this format (minutes:seconds): Example, there is only 5 values: 00:45 01:15 00:12 00:53 03:42 I need to find the average duration from these 5 values. Can someone h...more >>

Casting up to inheriting class from base?
Posted by Brett Romero at 7/6/2006 9:23:03 AM
Say I have a class inheriting some base class: BaseClass { void Foo() { Update(); } } Class1 : BaseClass { void Update(){} } How can I have the base class know which instance class has inherited it and use a method in the instance class? Only certain types of cl...more >>

what's the point of the 'using' construct?
Posted by Mike P at 7/6/2006 8:58:51 AM
I have only ever seen this used like this : try { using (SqlConnection conn = new SqlConnection()) { //db stuff } catch { } What advantage do you get from using this? And are there any other uses for this? *** Sent via Developersdex http://www.developersdex.com ***...more >>

Select cell problems with DataGridView in csharp
Posted by Karl at 7/6/2006 8:38:37 AM
Hi all, I'm reasonably new to csharp so you have to forgive me asking what may be a stupid question... As I said, I'm new to CSharp but in VB I was able to click anywhere on a DataGridView (so long as it was on a cell or header) and return the value contained in the first column for the sel...more >>

Performance loss in loading plugins in a seperate app domain
Posted by dandorey1 NO[at]SPAM gmail.com at 7/6/2006 7:58:21 AM
I'm currently in the process of writing a realtime telephony application. I've designed it with a fairly simply plugin architecture. When I first started reading about this the general suggestion was to load each plugin in a seperate app domain. However performance is a large concern for me. ...more >>

Source of Standard Button Graphics
Posted by randy1200 at 7/6/2006 7:46:02 AM
Microsoft seems to do a great job of using very nice button graphics for standard functions like Print, Print Preview, Close, etc. Can anyone point me to a source on the web for standard button graphics? I really like the Microsoft versions, but I'm open to all Thanks, -- Randy...more >>

[OT] User-Defined string Functions MS SQL Server 2005 T-SQL C# CLR
Posted by Igor Nikiforov at 7/6/2006 7:01:02 AM
User-Defined string Functions MS SQL Server 2005 Transact-SQL SQLCLR (VB. Net, C#.Net, C++. Net) Ladies and Gentlemen, I am pleased to offer, free of charge, the following string functions MS SQL Server 2005 Transact-SQL SQLCLR (VB. Net, C#.Net, C++. Net): AT(): Returns the beginning num...more >>

Combobox.backcolor dosn't work
Posted by Lars E. Nes at 7/6/2006 6:55:01 AM
Hi all. I am setting some color on my combo's: this.combobox1.BackColor = Colors.White; This only works when the combobox is enabled. How can i add color to a disabled combobox? Lars...more >>

Regular Expression: how to get Filename from Path
Posted by ano at 7/6/2006 6:51:02 AM
Hi, I tried to use to code to get a file name from a file path but it's working in all case. string t12 = "\"C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\Binn\\sqlservr.exe"; string p12 = @"^.*\\"; string r12 = Regex.Replace(t12, p12, ""); I got a correct answer for this c...more >>

Bitmap and MemoryStream
Posted by MLM450 NO[at]SPAM hotmail.com at 7/6/2006 6:49:22 AM
I am creating a bitmap using a memory stream. Is there any way to load the bitmap data so the memory stream can be disposed? Perhaps copying the bitmap in some simple, quick way? Thanks ...more >>

http Request
Posted by Iain Adams at 7/6/2006 6:46:51 AM
Hello, this is a sample app but it doesnt seem to work. I am trying to get my head round this. I have a html doc that goes: POST /webservices/Service1.asmx/HelloWorld HTTP/1.1 Host: 192.168.1.153 Content-Type: application/x-www-form-urlencoded Content-Lengt: 3495 this is a http request ...more >>

VS2005 data form qizard
Posted by Avi G at 7/6/2006 5:53:01 AM
Hi, i use VS2005 Pro and i can't find the "Data form Wizard" when i try to include it to my form, where can i find it , or maybe there is something else that do the same thing? i need to bind a MDB file to the form....more >>

Does FileStream.GetAccessControl exist?
Posted by Dave at 7/6/2006 4:46:02 AM
According to the help, under .NET2.0 the FileStream class has public members GetAccessControl and SetAccessControl, but when I try to call these on an instantiation of FileStream I get a compiler error. Oddly, the error says "System.IO.Stream does not contain a definition for GetAccessControl"...more >>

Browser compatibility problem...
Posted by conckrish NO[at]SPAM gmail.com at 7/6/2006 4:39:29 AM
Hi All, I have an asp.net application which contains one signup form.When I run in IE 6.0,its working fine as for my design.. But when I run in Mozilla, there are some 10 - 15 px extra bottom -padding between each textbox control.( I have placed the whole form inside a table and each ...more >>

Decompile .NET
Posted by Just close your eyes and see at 7/6/2006 3:40:01 AM
Hi all I am wondering how to protect .NET applications from being decompiled or in other word prevent it from reverse engineering I hope of any one can help Thx all...more >>

How do I catch a mouse click on the TaskBar?
Posted by Udi at 7/6/2006 1:44:26 AM
I need to catch any mouse click on the TaskBar. Any ideas? Thanks! ...more >>

VCSharp TreeView and DataBinding - Newbie...
Posted by Delme Greening at 7/6/2006 1:17:50 AM
Thanks in advance, not been programming for a very long time and am currently picking it back up by learning VC# in VS 2005. I have a DataSet retrieving data as follows: Ward District Walk ______________________________ Ward1 District1 Walk1 ...more >>

RichTextBox scrolling problem
Posted by Udi at 7/6/2006 12:59:21 AM
Hi, I need to update the last line of Lines in my derived RichTextBox. Since I can't do this: Lines[Lines.Length -1] = history[historyIdx] as string; I need to copy 'Lines' to a tmp array, change it and copy it back to 'Lines': : tmpTxtMatrix = new string[....]; Lines.CopyTo(tmpTxtMatr...more >>

Debugging a COM+ Application (C++) from within an ASP.NET page (C#) in Visual Studio 2005
Posted by Alrotem at 7/6/2006 12:00:00 AM
Hi, I work under Visual Studio 2005 (Windows XP Professional), developing web applications using ASP.NET (C#). Also, my company runs a few COM+ projects in C++ built into DLLs and registered as "Component Services" on the server machine. Those COM+ applications are adressed from within s...more >>

contextmenustrip
Posted by Alan T at 7/6/2006 12:00:00 AM
I want to attach contextmenustrip to a toolstripbutton and also to an item in a treeview, how do I do that? ...more >>

Controls alignment
Posted by Alan T at 7/6/2006 12:00:00 AM
I would like to know how do I align the controls on th Win form: Align TreeView on the left Align ListView on the client area Align datagridview to the right ? ...more >>

ToolStripContainer
Posted by Alan T at 7/6/2006 12:00:00 AM
I accidentally drop this control onto my form, how do I delete that ? ...more >>


DevelopmentNow Blog