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# > november 2006 > threads for friday november 17

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

string problem
Posted by Mosquito Man at 11/17/2006 11:50:42 PM
string s("0101"); I can't change it into s=1101 by s[0]='1'; because string.this[i] is read-only, no assignment is allowed :-( thank you for your help ...more >>


How to tell user an int typed field/property has not been set.
Posted by zlfcn at 11/17/2006 11:40:31 PM
Hi all, In java, if a field is Integer type, we can assign it to null indicating that this field has not been set yet. How can we achieve that in C#? In C#, "int" is struct, we cannot set it to null. Thank you zlf ...more >>

Starting application like: C:\Direct -a -b -c <C:\Script.src > C:\log.txt
Posted by SMichal at 11/17/2006 10:42:48 PM
Hi, how can I start new process with this kind of application ? C:\Direct.exe -a -b -c <C:\Script.src > C:\log.txt As you can see...I'll start appliaction ConnectDirect with 5 paramaters -a = node -b = username -c = password C:\Script.src = input file with s...more >>

resize
Posted by Deniel Rose' at 11/17/2006 9:44:06 PM
How can I resize a list ? thanks ...more >>

How can I get the specific file handle information from a System.Diagnostics.Process.Start call?
Posted by forest demon at 11/17/2006 9:42:24 PM
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user selects? thanks... ...more >>

Has msdn2.microsoft.com become a bummer loading and mangling page display?
Posted by clintonG at 11/17/2006 9:21:10 PM
Why won't pages at msdn2 load? If they do finally load they throw object not found errors like crazy when using IE7. When the page finallty loads like literally 2-3 minutes after a request the page display is all mangled up. FF2 and Opra the same thing. <%= Clinton Gallagher NET...more >>

Member Variables Naming Convention
Posted by Jonathan Wood at 11/17/2006 4:27:51 PM
I was just wondering what naming convention most of you use for class variables. Underscore, "m_" prefix, camel case, capitalized, etc? Has one style emerged as the most popular? Thanks for any comments. -- Jonathan Wood SoftCircuits Programming http://www.softcircuits.com ...more >>

Visual Studio Find Window
Posted by Tommaso Caldarola at 11/17/2006 3:53:58 PM
I want to emulate the Visual Studio Find Window (window on top most per application but not modal), which properties I have to set? ...more >>



What keeps track of delegates?
Posted by jm at 11/17/2006 1:44:28 PM
If I have multiple subscribers to a delegate, what keeps track of them? Are they out there on the heap? When I declare a delegate: public delegate void MyDelegate (object myObject, MyObjectEventArgs myEvent); public MyDelegate SomethingHappened; and later I have two subscribers, what's ...more >>

sqlServer - ODBC - WebServices
Posted by TheMaxx at 11/17/2006 1:44:07 PM
I've created ODBC DSN for sql server. When i connect from win application works OK. When i make WebService (on same machine) that connects to that ODBC connection fails: Error: Server was unable to process request. --> ERROR [28000] [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed...more >>

Microsoft Outlook and ASP.NET
Posted by Dash Weh at 11/17/2006 12:23:13 PM
Does anyone know where to find a good tutorial for working with Outlook from an IE ASP.NET Application? Are there any stability issues I should be concerned about? I'm trying to create an Outlook Appointment in both a private user's mailbox as well as in a Public Folder from a submission on ...more >>

Is there an easy and direct way of creating an SQLServer table using the .Net dataset
Posted by Frankz at 11/17/2006 11:38:12 AM
Hi, I am new to this group so forgive me if this question sounds too newbie. :-) I am writing a C# program. One of its functionalities is to use a .Net dataset to create and populate a table in the SQLServer database. I suppose I can 1) iterate through the column names of the .Net datase...more >>

Easiest methods for copying and removing +elements+ of one ArrayList to/from another?
Posted by kenfine NO[at]SPAM nospam.nospam at 11/17/2006 11:12:14 AM
I have three Arraylists that hold strings corresponding to addresses of an e-mail list: ArrayList masterList ArrayList optInToMasterList ArrayList optOutFromMasterList I want to know the easiest way to add all of the +contents+ of one arraylist to another. masterList.CopyTo (optInToMa...more >>

Evaluation order question ...
Posted by Jamie Risk at 11/17/2006 11:01:11 AM
Is this valid? byte ptr[]; ... if (null != ptr && ptr.Length > 0) { ... } (It would be in C) Or should I break it apart: if (null != ptr) { if (ptr.Length > 0) { ... } }...more >>

Recursive relationships in data objects
Posted by lithoman NO[at]SPAM gmail.com at 11/17/2006 9:14:52 AM
I have been working with objects long enough to have the basics down, but some things give me fits, and this is one of them. Brief description: I have an airplane object, and each airplane has an owner. Likewise I have a customer object and each customer has a list of airplanes. The basic ...more >>

Passing Data between forms
Posted by Jason at 11/17/2006 8:47:10 AM
Hello I've got a very simple C# app, that has a datagrid, a text box, and a button which when clicked opens a second form... Form2 frm2 = new Form2(); frm2.Show(); When I place a datagrid, onto form1 I point to a DB called Test DB and then my text box, I modify the databinding property...more >>

Reading/Parsing an XML string: code review
Posted by Gina_Marano at 11/17/2006 8:43:59 AM
Hey All, There are many ways to skin a dog (I like cats so no cats) in .Net I have an XML string in the following format (without linefeeds): <remoteDir> <dir>MyDir</dir> <dir>MyDir2</dir> <file> <name>tst2_33520902.txt</name> <size>11277</size> <lastModTime m=\"10\...more >>

How do I suppress "Thread xxxx has ended with code 0" output durin
Posted by MrNobody at 11/17/2006 8:43:01 AM
I have tons of thread running and closing and this output is driving me nuts. How do I get ri dof it?...more >>

C# and Database Programming
Posted by Todd Jaspers at 11/17/2006 8:30:01 AM
Hey guys, I'm writing an application and I'm very frustrated right now. What I want to be able to do is have a form (regular Windows application), and have a series of drop-downs. What I'm doing right now, is running queries, and individually populating the boxes with the data. What...more >>

Best way to override AllowNull in a schema?
Posted by Martin Z at 11/17/2006 8:29:59 AM
I'm making a CRUD screen for an Oracle database... but problem is that the primary key in that table is populated via an autonumber, which in Oracle is done just with triggers and sequences. Suffice to say that ADO.Net 1.1 is unaware that this column is, despite appearances, optional - which is...more >>

Program a recorder in C#
Posted by jujulaustralienne NO[at]SPAM yahoo.fr at 11/17/2006 8:27:01 AM
I know many people have managed to this but no one has posted the code on the internet. I used the codeproject program: http://www.codeproject.com/cs/media/cswavrec.asp to start with. The problem is that this program records and plays back right away. What I want to do is to record and save it ...more >>

Posting Jobs
Posted by GailIntuit at 11/17/2006 8:26:34 AM
I am a new user to googlegroups and wanted to ask if I am allowed to post jobs to this group. I currently work for Intuit and am recruiting Software Engineers / Architects for California, Boulder CO, and Waltham, MA. All with either Java, C++ or C# experience. I do not want to post if this i...more >>

Complex UserControl, need help...
Posted by junk at 11/17/2006 7:51:04 AM
Senerio: I have a custom user control which contains two control arrays. The user control has a group box in which the two control arrays are dynamically built. The two control arrays are RadioButtons and PictureBoxes. Task: What I need to accomplish with this custom user control is to rear...more >>

Synchronized Scrolling between C# applications
Posted by Roe at 11/17/2006 7:07:11 AM
What is the best way using C# .NET 1.1 to have two (or more) applications perform a "synchronized" scrolling? These applications will all be C# .NET and will be on the same machine. The effect I need to create is if one program enables this "sync" feature, other instances of this application w...more >>

DllImport
Posted by Zoltan at 11/17/2006 7:06:24 AM
OS : Windows XP Professional Environment : MS Visual Studio 2005 Language : C# I am trying to call an unmanaged function that is in a dll written in C++. I did call the unmanaged fucntions already and i know almost everything. My problem is that i do not have those datatypes under C# that i ...more >>

Loss message on Socket Async mode
Posted by rockdale at 11/17/2006 6:49:53 AM
Hi, all Did not find a .Net Communication forum to post. I am soing a client/server message system and using C#.net socket and Async mode. Pretty much as described in article http://www.developerfusion.co.uk/show/3997/3/ But I have a big issue with this approach and I am not what did...more >>

problem with DataSet.GetXml() method
Posted by lucky at 11/17/2006 6:03:45 AM
Hi guys! i've filled the DatSet object and was trying to get xml data from it. i used GetXml() method for that. it worked fine when all columns of the datatable has data. it generates perfectly fine xml but when if one column in datatable has no data(null), the method doesnt generates xml for...more >>

Making (enhancing) a remoting system to become a web service sysem
Posted by Mike9900 at 11/17/2006 5:44:02 AM
Hello, I need to make my already implemented .NET remoting system to become a web service or any system in order to be usefull over the internet. My current system uses .NET remoting and can be used in LAN and not the internet. What are the best ways to make it use internet and be usefull?...more >>

MethodInfo.Invoke and TargetInvocationException
Posted by Lambuz at 11/17/2006 5:34:36 AM
Hi all, when I use MethosInfo.Invoke method I obtain a TargetInvocationException where inner exception is +{"classBase.OpenConn cannot be invoked directly" } System.Exception. I'm using the following class public abstract class classBase{ public static int OpenConn(){ .... } } publi...more >>

Creating DTS pacakage in dynamically
Posted by itarunachalam NO[at]SPAM gmail.com at 11/17/2006 3:15:37 AM
hi, How to create a "DTS pacakage" in sqlserver 2000 through .net code if you know please send me the code ASAP. Thanks Arun arun@glinfosolutions.com ...more >>

Finding control type in ASP .NET if you only know the control name
Posted by Joachim at 11/17/2006 3:15:02 AM
How can you find a control's type in ASP .NET (using C#, in Page_Load function) if you only know the control's name?...more >>

C# Compiling Question
Posted by NvrBst at 11/17/2006 2:48:35 AM
I'm wondering if this is possible... Basically say I have a lot of .cs files but only 1 of them changes. Is there a way (with the csc.exe, or VS.NET 2005, or another C# Compiler), that I can compile everything before hand, keep the object files of the unchanged .cs files, and just compile the 1...more >>

Stored procedure to transfer the data of one row to a single column
Posted by itarunachalam NO[at]SPAM gmail.com at 11/17/2006 2:33:20 AM
Hi friends, I have a table structure like this in SQL sever 2000. i want a stored procedure to transfer the data from "tblSurvey" table to "tblRespondent" table. Table - tblSurvey ---------------------------------------------------- columnHeading col1 col2 col3 col4 col5 | ...more >>

How to marshall parameters in winhttpopenrequest()?
Posted by selva at 11/17/2006 2:27:15 AM
hi i am using the following c# code in winhttp to open a http request Win32Api.WinHttpOpenRequest(Winconnection,"POST","/winn/01Primary/",null,"W= =ADINHTTP_NO_REFERER",WINHTTP_DEFAULT_ACCEPT_TYPES,0x00800000); and my function marshalling looks like [DllIm...more >>

Dynamic data casting
Posted by Trev at 11/17/2006 1:28:45 AM
Hi, I have a series of functions which do the following: ValidateData( args ); //args if of type ArrayList // Work out if the data is valid or not, and work out the type of args[1] - int, string, whatever? if((bool)args[0]) // valid data { WriteDataToDB( args[1] ); } However, it fail...more >>

file header of grafic-files
Posted by Frank Kociemba at 11/17/2006 12:38:02 AM
Hi NG, how can i compare, if a file ends with jpg,jpeg,gif,tif is really such a file and not an unnamed one. Is ther a solution or an example who to do it in c#? Frank...more >>

Seald classes
Posted by Adrian at 11/17/2006 12:00:00 AM
When classes are not being inherited from. Is there an advantage to be gained by making them "sealed", and, if so, what is that advantage? Thank you, Adrian. ...more >>

How to ensure thread-safety between inter-dependent database persistence managers.
Posted by news.microsoft.com at 11/17/2006 12:00:00 AM
Hi all, Assume we have two entity class. Class1: Name: House Property: ID:int Name:String Desktops:Desktop[] Class2: Name: Desktop And we have two corresponding Database Managers: HouseDBManager and DesktopManager If we want to insert a House instance into database, we ...more >>

OleDb DataFactory bug. Watch out.
Posted by Bob at 11/17/2006 12:00:00 AM
Hi, Using the OleDb factory. Asked it to insert 4K records into a SQLAnywhere database table. Runs out of steam at record 244 and starts writing corrupted versions of 243 primary index column until at 248 it hits a variation it has already written and fails with a non-unique primary index erro...more >>

DataGridView and CellContentDoubleClick event
Posted by beaker at 11/17/2006 12:00:00 AM
Hello, I have a DataGridView and I want to handle the CellContentDoubleClick event. No problem so far, but when I double click on a cell the CellContentDoubleClick event only fires if I double click over text, and not over any 'white space' in the cell. How do I get the event to fire wh...more >>

VS2005 UserControls
Posted by Robert Mago at 11/17/2006 12:00:00 AM
Hi, I have been using web usercontrols on 2003 for a very long time and i find them userful for modularity. Usually what i do is create a subfolder called 'UserControls' for example and placed the web usercontrols there ( i would change the namespace to *.UserControls.[control name] ). Howe...more >>

Remoting query
Posted by KAMAL at 11/17/2006 12:00:00 AM
Hi all, I have some problem in my .net project. In my project two systems will communicate by installation the client server application in them. They can be 1. Server1--->server2 (run client server application on each system) 2. Client1---> server1 ---> server2 (run client...more >>


DevelopmentNow Blog