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 2003 > threads for wednesday july 16

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

performance penalty for cross-assembly-calls?
Posted by Peter Bär at 7/16/2003 9:50:46 PM
A Question to the C#/.Net Gods of this forum: are there performance penalties when i compile (C#, FW1.1, ASP.NET, Studio2003) a central baseclass in a different assembly than all the derived classes? f.i. ive got a class dbobject i project "Basesupport", compiles to Basesupport.dll. F...more >>

console app problem
Posted by Chris Williams at 7/16/2003 9:36:18 PM
Hi... I'm trying to find some code samples that will show me how to capture non-character keypresses in a console app. I've tried the standard stuff, such as console.read and console.readline, and I've tried ConsoleEx which does a great job, but still doesn't handle non-character keys like CTR...more >>

Reflection on COM object.
Posted by Lars Nielsen at 7/16/2003 9:00:41 PM
Hi everybody, I've run into a problem when using the reflection assembly on COM objects and been browsing around the net for some while. Apparently a few has asked the same question though no answer has ever occoured. This is what I'm trying to do: I wish to build a function that crawls a...more >>

Profiling & performance testing
Posted by Vadym Stetsyak at 7/16/2003 8:56:49 PM
Hi there! Are there any built-in tool in VS.NET that can help to profile an application? (here I mean source code) Generally I need to determine the time of execution of particular methods. Any help will be appreciated -- Vadym Stetsyak ICQ 161730125 He, who commands the past - com...more >>

Transparency in C# - Labels? PictureBoxes? - Don't make this one of the unanswered posts please..
Posted by Ignacio Domínguez at 7/16/2003 7:22:34 PM
Hi there. I know I can make a form transparent by setting the transparent color, opacity, etc. Is there a way of making the background of a label and the background of a picturebox transparent also, so that I can place some text on top of an image (seing the image behind the text instead of the ...more >>

Type.GetMethod and ref Parameters in C#
Posted by rudolphoa NO[at]SPAM hotmail.com at 7/16/2003 7:08:28 PM
Hi All, I have a class (called CTestClass) within which I have a method (Foo). This method has the following signature: Foo(int x, int y, ref int z) I am attempting to use reflection to invoke this method but before doing that I want to use Type.GetMethod to bind to it and ...more >>

DataGrid with checkbox column
Posted by Marcos MOS at 7/16/2003 6:23:52 PM
Hi all, How Can I build a DataGrid with a "checkbox column" for all rows? And after I'll need to know if that row's checkbox is checked or not... I know that the better way is "template" column, but I don't have idea... thanks a lot Marcos ...more >>

mental block...
Posted by craig at 7/16/2003 5:41:36 PM
I am having a mental block... What is the method for determining if an oject has been instantaited in C#? Ex: Dataset d; How can I tell if d has been instantiated? Yea, I know. Kinda trivial but I can't find the answer in any of my references. ...more >>



Help with Simple way to retrieve HTML pages
Posted by David Elliott at 7/16/2003 5:21:01 PM
I know I can use AxSHDocVw.AxWebBrowser browser.Navigate(...); catch the browser_DocumentComplete() and retrieve using the page using htm = (mshtml.HTMLDocument)browser.Document; I am looking for a non-GUI way to just retrieve the web page. I know that there is, I just can't seem to ...more >>

Updating a TextBox in a Non Modal Windows Form Dialog
Posted by Dennis C. Drumm at 7/16/2003 5:17:04 PM
I have a window form dialog that I use in a non modal fashion. It is displayed using Show() in stead of ShowDialog() from the parent windows form application. I have TextBoxes in that dialog that needs to be updated when certain changes are made in the parent windows form application. I've tried ...more >>

Web Services Help: Can you choose a Web Service at run time?
Posted by len smith at 7/16/2003 5:16:33 PM
I'd like to build a content management application that can connect to any webserver to manage content. Can I do this with Web Services? Is it possible to choose a web service at run time, or would such a project have to be recompiled to use a specific web server? Thanks! ...more >>

Abstracting Connection objects
Posted by Frank Rizzo at 7/16/2003 5:11:46 PM
I have an app that has to connect to various data sources (ms sql server, sybase, etc...). For this reason I have OdbcConnection, OleDb Connection and SqlClient objects. When an error happens, I want a single procedure to handle the error from all the connection types by passing the either the ...more >>

Network Connection
Posted by JJ at 7/16/2003 4:34:19 PM
Hey All, I need to test a network connection to local lan using a PDA with wireless capabilities. I am using c# as app language. How can I test for connection? Thanks, JJ ...more >>

tabs or spaces probleme...
Posted by Kevin Auch at 7/16/2003 4:25:44 PM
Hi, I'm working on a little application which analyse source code file from VS.NET. But I'm in front of a big problem. The source generated by VS.NET is automatically "indented", but when I analyse these lines I can't remove the tabs or the spaces at the beginning of the line because it'...more >>

Calling methods from constructor?
Posted by Grandma Wilkerson at 7/16/2003 4:17:43 PM
Hi, I have a class whose constructor accepts a Socket as an argument. The constructor then makes a call to Socket.BeginReceive(). The callback delegate passed to BeginReceive() is a method of my class. There is a slight chance that the callback delegate will be called from the I/O thread p...more >>

Dynamically loading assemblies and interfaces
Posted by Andy Walldorff at 7/16/2003 4:11:02 PM
Given the following code.... // FooBar.cs, builds Activate.dll using System; public interface IFoo { void Bar(); } public class FooBar : IFoo { public FooBar() { } public void Bar() { Console.WriteLine( "FooBar" ); } } // End of FooBar.cs // DoActivate.cs, buil...more >>

SSL FTP URGENT!!!
Posted by Chris Calhoun at 7/16/2003 3:51:59 PM
Is it possible to write an application to peocess files using FTP and SSL sort of like WS FTP Pro? Thanks in advance. ...more >>

CustomTraceListener Question
Posted by CGuy at 7/16/2003 3:25:34 PM
Hi, I have a question. I have implemented a custom trace listener (derived from the TextWriterTraceListener type). Now, I add this custom trace listener to the list of listeners and then call a Trace.Indent() before I write to the trace. But the file produced by my CustomTraceListener does n...more >>

convert string to int
Posted by Chi Tang at 7/16/2003 2:56:28 PM
Hi, Is there any function in C# to convert a string to a integer number like 'atoi()' function? Thanks, CT ...more >>

removing Tab
Posted by Kevin Auch at 7/16/2003 2:46:54 PM
Hi all, I only want to remove all the tab charactere on a string. but I find how.. thanks for your help bye -- //-- Kevin Auch http://www.dotnet-fr.org --// ...more >>

using inside or outside my namespace
Posted by Digital Fart at 7/16/2003 2:46:08 PM
I was looking at the GFAX - Gnome fax application and i see that in the main.cs the author puts the using inside his namespace. namespace gfax { using System; using System.IO; using System.Collections; .... But in all the tutorial i have seen they start with using and then start their...more >>

C# Printing Problem
Posted by dane NO[at]SPAM dtmtechnologies.net at 7/16/2003 1:40:11 PM
I am having a problem printing in C#. I am using DrawString() with the RectagleF class to determine the location to print. I am doing it this way so that I can get the text to auto wrap. The problem I am having is this: Is there any way to make the rectangle grow based on the contents or a ...more >>

GC! Why not ref count?
Posted by Ron James at 7/16/2003 1:01:42 PM
C++ is a great language. You can instantiate an object on the stack, grab whatever resources you need, and free them in the destructor. Object destructors are called in the correct order (the reverse order), and are guaranteed to be called when the object goes out of scope. Unfortunat...more >>

How do you convert a VB.net Proj to C#?
Posted by ken at 7/16/2003 12:45:15 PM
Hello All, I am hoping that this is a simple question with a simple answer. How do you convert a VB.Net project into a C#.net project? Thank You in Advance for Your Help, Ken ...more >>

DataTextField Conversion Question
Posted by Jason Heine at 7/16/2003 12:18:49 PM
Hello, I am have a web service which I pull a dataTable and then fill a listBox with the information. On the ListBox1.DataTextField = "myColumn"; I need to attempt the following: DateTime myColumn = new DateTime; myColumn = myService.returnDataTableFunction; ListBox1.DataSou...more >>

Unselecting all rows in a grid
Posted by R Agam at 7/16/2003 12:18:34 PM
Hi, Is there a way to unselect all the rows in the datagrid? Thanks, Ronen ...more >>

DataGrid selected rows
Posted by R Agam at 7/16/2003 11:51:46 AM
How do I get the selected Rows index in the DataGrid? Thanks, Ronen ...more >>

accessing columns default value
Posted by Tim Greenwood at 7/16/2003 11:50:56 AM
How do I get a columns default value into a type dataset in C#?? I see a method for setting columns to null but default values must be easier to get to than it seems. ...more >>

working with reusable business objects
Posted by DaleMan at 7/16/2003 11:30:58 AM
Where can I learn more about reusable businesss objects and their uses? I've been reading that one of .Net's advantages is that a developer can write reusable business objects. I would like to implement these into my code and make it more portable. Thanks, Dale ...more >>

Reflection emit consturctor problem.
Posted by DEK at 7/16/2003 10:54:09 AM
I'm creating a dynamic assembly which has one type with one constructor, the type inherits a base class Season, which is in the current assembly. I am trying to emit a constructor which simply calls the base constructor with the 4 args passed in, but I get this error Message at the second las...more >>

SQL provider
Posted by Duncan Winn at 7/16/2003 10:25:47 AM
I am WRITING (not using) an ADO.NET provider to provide access to my custom data source (C++ classes). My clients are hoping to access the data in my classes, through the provider, using SQL, however my data source does not support SQL. Will I have to parse the SQL to get the relevant data from ...more >>

Optional parameters
Posted by Frank Rizzo at 7/16/2003 9:55:34 AM
Does c# support optional parameters in function declarations? Does it support assignment of default values to arguments, in particular optional parameters? If so, can someone point me to or provide an example. For instance in vb6, you could do the following: function DoStuff(optional ID as ...more >>

vbTab?
Posted by Mori at 7/16/2003 9:53:39 AM
Can some one translate this into C# for me: myString = "This is some text" & vbTab & "and some more text...." I cannot find an example of Tab characters being used. I've posted something similar before about characters and got "use UTF8" in response, but I can't find and example of how t...more >>

COM Object setting a property problem
Posted by Andrew Mueller at 7/16/2003 9:39:00 AM
Hello all, I am working on a project, converting code from VB 6.0 to C#. I have a COM object (SDK.dll) referenced and am having some issues using it. I don't think it is specific to the object as much as it is specific to how either C# or the CLR allows the use of different parameters an...more >>

What does m_ represent?
Posted by clintonG at 7/16/2003 9:09:04 AM
A class? A method? I need an explanation regarding which context this naming convention may be used and any alternative representations please... -- <%= Clinton Gallagher A/E/C Consulting, Web Design, e-Commerce Software Development Wauwatosa, Milwaukee County, Wisconsin U...more >>

ExecuteReader() v. ExecuteNonQuery()
Posted by Mark at 7/16/2003 9:00:30 AM
It appears that you can only retrieve an Output parameter from a SQL Server stored procedure when using the ExecuteNonQuery of the SqlCommand class, and cannot use the ExecuteReader() method. In the code sample below, it bombs on the line with three *** when using the ExecuteReader, but works ju...more >>

Development Practice: multiple assemblies
Posted by Curtis Justus at 7/16/2003 8:41:30 AM
Hello, We are making a large scale application with numerous assemblies. We have our business object assemblies, UI assemblies, etc. During the course of the project, people would be getting errors trying to compile their user controls. The errors state that the version of the lower-level D...more >>

Can't view DataGrid in design mode
Posted by R Agam at 7/16/2003 8:27:43 AM
I have a derived class from a DataGrid class. The problem is that in the design view I can't see it. Is that a vs bug? Thanks, Ronen ...more >>

C# Newbie - mshtml
Posted by Bill Compton at 7/16/2003 8:23:42 AM
I have spent the last 5 hours trying to make this work, so I am a bit frustrated with my ignorance. I simply want to do the following: On a WinForm, open a browser object to a particular url. When I click a button on the WinForm, I want to be able to: MessageBox.Show(axWebBrowser1.Documen...more >>

message boxes
Posted by Mike P at 7/16/2003 8:18:33 AM
Is it possible to bring up a message box or a new window from within an ASP.NET C# script? Any help would be really appreciated. Cheers, Mike *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Q: Ordering/Sorting [Category] text in a PropertyGrid
Posted by Robert Hooker at 7/16/2003 8:04:04 AM
Hi all, I'm looking for a way to sort/order the Category text items in a property grid. The grids sort the categories by alpha when the catergories are displayed. Does anyone at Microsoft (or anywhere else) no of a way that we can override that sort/order for the category text? [ We have i...more >>

Maximized windows form inside parent form
Posted by developer at 7/16/2003 6:36:58 AM
I have a form with a menu on the top. This menu show another form. I want to open this second form maximized inside the parent form just below the menu of the parent form. (Like Microsoft Word). How do i do that ? Thanks...more >>

KeyDown event
Posted by Mike M at 7/16/2003 5:49:57 AM
I am trying to detect the keydown of the arrow keys in a custom control that I am writing. As far as I can tell, pressing the arrow keys does not fire the KeyDown event at all. It behaves just like the tab key, passing focus to the next control in the tab order. The only events that fir...more >>

change fore color of single cell in a datagrid
Posted by erald NO[at]SPAM delta-travel.nl at 7/16/2003 5:43:02 AM
L.S. in a datagrid I would like the forecolor of a single cell. Because it is a negative number. This cannot be done by changing the NumberFormat property. So how can I do this?? Erald...more >>

data concurrency
Posted by Mike P at 7/16/2003 5:28:36 AM
Can anyone give me any advice on catching data concurrency errors? I want to amend the code below so that if the record to be amended has already changed since it was taken from the table, the error will be trapped and the code will go into a loop where it continues trying to update the value u...more >>

ComboBox DrawItem
Posted by fragget at 7/16/2003 3:16:53 AM
hi- when private void theCombo_DrawItem(object sender, System.Windows.Forms.DrawItemEventArgs e) is called for a ComboBox how do I know when the system is drawing the item that appears in the top of the box? i want to change the border for that item only. thanks - fg ...more >>

SocketException
Posted by Amit Yadav at 7/16/2003 2:33:12 AM
Hi, I am trying to write a simple TCP Client Server program which exchange some text messages. Both of my Client and Server are running on the same machine and hence i am using "localhost" when connecting from the client side. However i am getting the following Exception: System.Ne...more >>

Is it a bug? Event handler: PictureBox on Form.
Posted by askstanley NO[at]SPAM hotmail.com at 7/16/2003 2:33:01 AM
Hi, I am new to C#. Please give me some advice on this, I would like to know if it is a bug or not. My application works similar to paintbrush now. I use the mouse to draw some lines on a picture box residing on a form. I am using mousedown, mousemove and mouseup events of the picture box t...more >>

DataGrid: How to expand columnwidth to fit column contents
Posted by Jakob Persson at 7/16/2003 1:57:25 AM
Hi Is there a way to program a DataGrid control to automatically adjust its columnwidth so it fits the contents of the columns. I am searching for a automated way to do the thing you do when you manually doubleclick on the columnheader. Yours truly Jakob Persson...more >>

DHTML editing control C# problem
Posted by len smith at 7/16/2003 1:18:29 AM
I'm having problems using the DHTML control's ExecCommand() in C#. Here are the parameters ExecCommand takes: > object.ExecCommand cmdID [, cmdExecOpt] [, pInVar] Intellisense tells me I want to us a "ByRef pInVar as Object" The SDK says pInVar is: >pInVar > >Input parameter for ...more >>

Conversion of byte[]
Posted by Tom Bean at 7/16/2003 1:01:39 AM
I have several data files containing ASCII strings, int, long and byte data types and need to store the data in variables of the appropriate type. From previous posts, there seem to be several methods for converting byte[] to strings. What is the best way to convert a byte[] to a long or int?...more >>

MouseDown Event
Posted by JJ at 7/16/2003 12:58:38 AM
Hi All, I need to create a MouseDown event for a picture box . Am I doing the following right? pictureBox.MouseDown += new System.WinForms.MouseEventHandler(pictureBox_MouseDown) Then Create Event public void pictureBox_OnMouseDown(object sender, System.WinForms.MouseEventAr...more >>


DevelopmentNow Blog