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 2005 > threads for tuesday july 12

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

GetElementsByTagName() function to be case insensitive
Posted by Nikhil Ekke at 7/12/2005 11:52:28 PM
Hi, I am parsing an XML file. I am using the function GetElementsByTagName() function. But I want this function to give me the XMLNodeList which is case insensitive. Suppose there r nodes like this <time/> <Time/> <TimE/> it shd return all of the above. Can somebody pl. help me Re...more >>


Can't use Image.FromStream in CF
Posted by Saya at 7/12/2005 10:46:08 PM
Hello, This is a repost 'cause I haven't solve the problem: I can't use the System.Drawing class 'Image.FromStream' in the CompactFramework environment. What I've done with respect to Brendan's suggestion is as follows: Brendan, thanks for the reply! I'm a little bit further now, but not yet...more >>

ENTER key falls through to unwanted handlers in Web App
Posted by Robert Dickow at 7/12/2005 10:13:05 PM
I have some ASP.NET Web App pages on which there are web forms with textboxes and buttons for 'Cancel' and 'Submit' and such. All works great. However, it a user uses the ENTER key in either of two textboxes, the postback 'falls through' to one of the 'Cancel' button handlers, and exits the ...more >>

How to bind a range of local port for client socket
Posted by Franky at 7/12/2005 9:28:02 PM
I need to specify a range of outgoing port numbers (i.e., 20000-21000). Is there any way to bind this range so that when system picks up a free port, it will only pick one from this range? I know I can bind a specific port number but I'd rather let the system pick up an available one from th...more >>

Dimensions of an image in the picture box
Posted by Frank Rizzo at 7/12/2005 9:14:57 PM
How can I retrieve the dimentions of the image that's been loaded into a picture box? Thanks...more >>

Job Fails - Security Issue
Posted by Jim Heavey at 7/12/2005 4:37:04 PM
Hello, I have a console application which I run from a server. When I remotely log on to the server and sumit the application it runs just fine. When I schedule the job and use my login ID and password, the job fails when it attempts to access a shared drive. I'm not sure why. There must b...more >>

Declaring a variable that is a datetime datatype
Posted by .Net Sports at 7/12/2005 4:29:21 PM
I'm trying to initialize a variable inside a PageLoad in visualstudio.net : mytoday = DateTime.Now; ...and the error (or Build Task error) says : The name 'mytoday' does not exist in the class or namespace 'myProject.myfilename' when i try : datetime mytoday = DateTime.Now; I get an err...more >>

Dependency problem
Posted by Chris at 7/12/2005 3:32:34 PM
I have a project that I have been messing with for a while. I get a message in my task list that says: "The dependency 'ICSharpCode.SharpZipLib' could not be found." I added this library in a while ago but removed it. I can't find where the dependency is. The solution builds just fine. T...more >>



conditional hyperlink in datagrid
Posted by Kumar at 7/12/2005 3:06:03 PM
Hi Folks, I have a question regarding conditional hyperlink in datagrid. I want to display Hyperlink if my QID values in (1,4,5,6) other wise i want to display just Qdescription with out hyperlink. <asp:hyperlinkcolumn headertext="Question" SortExpression="QDescription" datatextfi...more >>

c# interop question-- QueryInterface trouble
Posted by Jim Bancroft at 7/12/2005 2:05:13 PM
Hi everyone, I've recently ported a COM component into .Net using a runtime callable wrapper. The component in question is SQL Server's DTS package, if that helps. The import worked well enough....now I'm having some trouble using the component. Specifically, this code below from VB6, ...more >>

How to pass "this" as a parameter?
Posted by Vern at 7/12/2005 1:06:03 PM
I'd like to make the following a generic method that all my forms can call to validate all the fields on the form. So how do I pass the form object that is represented as "this" in the following code, and how do I retrieve the list of all controls and child controls on that form (since I don'...more >>

BUG/PRODUCTION-DOWN: UserControl running from HTML not working.
Posted by ATS at 7/12/2005 12:38:15 PM
BUG/PRODUCTION-DOWN: UserControl running from HTML not working. Someone please help, I have a production down situation. For whatever reason, UserControls are not owkring from HTML/IE. When script tries to run a UserControl's method or use a property, IE gives an error "Object doesn't supp...more >>

equivalent C# code for this VB.NET code..
Posted by Maheshkumar.R at 7/12/2005 12:30:24 PM
Hi groups, =20 Can anyone give me the equivalent C# sharp code for this VB.ET code, :: VB.NET :: If Not Me.ActiveMdiChild Is Nothing Then Dim child As IMDIChild =3D DirectCast(Me.ActiveMdiChild, = IMDIChild) child.calculate() End If --=20 C# ?? ...more >>

Connect to SP in remote SQL server
Posted by Mike L at 7/12/2005 12:30:03 PM
I'm able to connect to my stored procedure in my local database but not able to connect to my stored procedure in the remote database. I use several different UserID and Password that all should work. It also fails when I try a different SP on the remote server. All local SP work. I copy ...more >>

How can i process windowmessages in .net ?
Posted by dulo at 7/12/2005 12:06:17 PM
I want to prevent a window from becoming active in some situations ( for my multiwindow ( docking ) application. I want to mimic the behaviour of devdstudio2003. If you click into the menubar of the mainwindow if an undocked window is active mainwin does not get active. I got a tip to handl...more >>

Database Project Forces Login Upon Solution Open?
Posted by BrianO at 7/12/2005 11:58:15 AM
What gives? No matter what I try the Studio Solution will not open without demanding a database login. I need this to stop for automation purposes. TIA - Brian ...more >>

ISO-Latin Encoding
Posted by Andy at 7/12/2005 11:19:04 AM
I am trying to write a for loop that will print all the ISO-Latin characters to a database. However: I am not sure exactly how to go about printing the ISO-Latin character set. Would anyone be able to give me some pointers? I think I have to use Encoding eISOLatin = Encoding.GetEncoding(28...more >>

two-dimensional string array help...
Posted by trint at 7/12/2005 10:53:43 AM
I have 14 strings in each row that I need in a two-dimensional string array and I know how many rows I've got. I have two questions please: 1. How can I assign 14 string values in 14 elements per row, and then process each row at a time? int iNR = 379524;//<--Rows // ...more >>

Math expression
Posted by Rodrigo Ferreira at 7/12/2005 10:52:36 AM
I have a textbox and when i click in ENTER if i have a math expression inside the textbox, it has to calculate the result. Supose i have: 123+456+789 My code return well this result, but if i have 123+456*789 occurrs a problem because first calculates de 123+456 and then 579...more >>

Adding all the values for each day of the week
Posted by Chumley Walrus at 7/12/2005 10:42:24 AM
IN a c-sharp program that displays results in a datagrid, I have daily sales records that i need to grab out of a database, but I only need to grab those from the present week (starting on Monday). I will need to add those daily sales amounts and lump them in one sum. I'm trying to use sql strin...more >>

"new EventHandler(MyMethod)" allocates object on the heap?
Posted by Bruce Wood at 7/12/2005 9:37:32 AM
In messing about with weak reference delegates, I think I've figured something out. It seems painfully obvious now, but I just want to be 100% sure. When I say: collection.ItemAdded += new ItemAddedEventHandler(this.Collection_ItemAdded); ....that "new" is creating a small object on the ...more >>

using smartcard
Posted by St at 7/12/2005 9:20:07 AM
Hi, I am new in smartcard programming. Could you tell me where I can found a tutorial please ? I am trying to read the pin code of the smartcard... Thanks for your help. St...more >>

Terminology
Posted by Peter Kirk at 7/12/2005 9:07:19 AM
Hi there I just want to make sure I have some basic terminology 100% correct. It concerns the term "default constructor" vs "no argument constructor". In c# is it correct that the "default constructor" is a no-argument constructor which is provided by the .NET platform for a class if the ...more >>

Binding to data from controls
Posted by Michael Gorbach at 7/12/2005 8:55:36 AM
Iv got a settings object (class) for my program that is beginning to get pretty complicated and large. Im begining to get tired of maintaining a user interface with functions that put and read fields and propoerties of this object to/from textboxes. Can I use some kind of data binding to either ...more >>

How do you override a virtual property in a generic class?
Posted by Geoff at 7/12/2005 8:51:54 AM
....Or, to put it another way, why doesn't something like this work? public class RecordCollection : List<Record> { //Some code snipped public override int Count { get { return someCustomCount; } } } The error the compiler gives is 'cannot override inherited member 'Sys...more >>

Application Design
Posted by Matt at 7/12/2005 8:40:04 AM
Trying to develop asp net application (C#) as dynamic as posibble. When i add Buttons,textbox,selectbox or change the lay out of the asp net pages, would like to do minimal changes on components as posibble. Using class files to achive back processes.(click button, fill dataset etc) not using c...more >>

Refresh paren't window's grid when child window closes
Posted by Prisy at 7/12/2005 8:21:02 AM
On closing the child window i was able to refresh the parent window using the following code in javascript: opener.document.location.href=opener.document.location.href; Is there a way to refresh just the grid in the parent window while closing the child window? -- Thanks Prisy...more >>

Object parameters
Posted by Michael Gorbach at 7/12/2005 7:13:11 AM
Hi, I'm writing a simulation program and i have main form which controls the simulation ... it has a private field which is the simulation object (type simulation). I am using two subforms for different views of the simulation, each of which is inside the main form. The simulation is passed int...more >>

Why doesn't VS.NET navigation to var definition?
Posted by brett at 7/12/2005 6:56:43 AM
Sometimes when I right click on a variable and select go to definition, I get a message that VS.NET 2003 cannot navigate to variable. For example, if you paste the following code into an empty class file and right click on, strcomposedmessageid, you'll get the error: private void doRequests(F...more >>

ThreadPool
Posted by John at 7/12/2005 6:56:20 AM
Is there a way to know the name (or hashcode) of the thread that will be used by ThreadPool.QueueUserWorkItem ? The reason for that is that i want to update clients with ordered data. I mean that when i send some info to client A (say '1'), i do not want to send it anoter info (say '2') until ...more >>

How do you see the compiler command line in c#?
Posted by billben74 NO[at]SPAM hotmail.com at 7/12/2005 5:50:27 AM
Despite advances in devstudio .NET building large projects can still be difficult. Is there a way, perhaps using EnvDev class or some other class that would allow output of the "command line" that is being used to compile a C# project. This would be very useful as one could explicitly see whic...more >>

- Service Pack 2 required to load Visual Studio 2005 Beta? Say it isn't so
Posted by -RG at 7/12/2005 5:06:40 AM
Just decided to load the VS 2005 beta 2 DVD and got a message on install about SP2 required. Then abort. I really don't need or want SP2 yet. Why would they need SP2? Is there a way around this? ...more >>

Serializing static class members
Posted by Nido at 7/12/2005 4:23:52 AM
i have a class one of the member of the class is static to share information amoung the objects. i have made the class serializable. here i have a problem by serializing objects, information with in the objects is saved. but i also want to save the information contained in static member. is ther...more >>

Bug on usercontrols?
Posted by Salvador at 7/12/2005 4:14:06 AM
Hi, I don't know if anyone had the same experience, but suddenly on one of my usercontrols in my windows app is not allowing me to interact with the controls. I have a listbox and a combo box and can not access them when I run the application. I have another usercontrol with some controls and...more >>

IEnumerable<T>
Posted by Gawel at 7/12/2005 4:06:29 AM
Hajo, compiling below code I get following error: Error 1 'ServerTreeConsoleApplication.ServerControlsTree' does not implement interface member 'System.Collections.IEnumerable.GetEnumerator()'. 'ServerTreeConsoleApplication.ServerControlsTree.GetEnumerator()' is either static, not public, or...more >>

Menuitem of notificationIcon only works on the second click.
Posted by Gerard Buskermolen at 7/12/2005 2:23:18 AM
Hello, I've created a C# console application. When the application starts, I show in NotificationIcon with a related contextmenu. This contextmenu has 3 menuitems. Each menuitem opens a window using (for example) menuItem.Click += new EventHandler(ChangePassword_Click); The ChangePasswor...more >>

C# and SQL - how to insert few lines together
Posted by Gidi at 7/12/2005 1:53:01 AM
Hi All, I'm writing a program that deals with product selling. one of my forms contains a dataGrid which the user enters the product the customer wants to buy. this table can contain one line (means one product) or more. each product is unique and can not be sold twice (i.e, car with lice...more >>

Reading line by line from a text file in C#
Posted by Eranga at 7/12/2005 1:17:16 AM
I want to read line by line seperately from a .txt file. i.e. I want to check each line for some specific word. How can I do this. Thanks in advance. *** Sent via Developersdex http://www.developersdex.com ***...more >>

Question on DataAdapter.Fill(DataSet) method
Posted by nonno at 7/12/2005 12:53:02 AM
How this method knows whether to add a new DataTable or update an existing DataTable? Is it determined by TableName? If it is, how can it knows the TableName?...more >>

sending data to other application - ASP.NET
Posted by Raj at 7/12/2005 12:41:07 AM
I am writing an ASP.NET application, in a particular page I have to update a record in database and after the record is entered one of the field value has to move to other application as a string ...I am able to store the data as string but how I will move the data in other application and how...more >>

MCAD and other exams?
Posted by Jarod at 7/12/2005 12:33:04 AM
Hey Is there a plan for a new certificates that will obsolete current versions of MCAD/MCSD and so on ? Jarod ...more >>

DataGrid Column Resizing
Posted by Pramod at 7/12/2005 12:00:00 AM
Hi All, I am working in C# .Net and have created a table using the DataGrid. Now I want to change the size of the column when the user enters some text in the Cell only if the Text entered exceeds the cell bounds. I need help. Urgent!!!!!!!!!!! Plz if any of you could help me. Regards...more >>

Dynamic web service binding during runtime
Posted by Anonymous at 7/12/2005 12:00:00 AM
When we develop web service client and server program, normally we need to add the webservice into the client, then compile it. This way, the client can ONLY connect to this particular web service. What if I have 5 servers providing the same webservice. I would like the client to be able to ...more >>

Why "GDI+ Window" visible?
Posted by Gary at 7/12/2005 12:00:00 AM
Each GDI+ instance contains a hidden top-level window whose title is "GDI+ Window" and whose class name is GDI+ Hook Window Class. But in my program, sometimes the "GDI+ Window" appeared in the system toolbar, and can't close that. And the program still works correctly. I don't know why the ...more >>


DevelopmentNow Blog