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 2004 > threads for tuesday january 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

How to prevent Label text from wrapping?
Posted by abc at 1/6/2004 11:55:13 PM
This seems like a stupid question, but I can't find the property to prevent the text in a Label control from wrapping on the next line. Thanks. ...more >>


string.Compare woes ??
Posted by Ramiro Calderon Romero at 1/6/2004 11:26:46 PM
Hi list, I don't know if I'm doing something wrong here. Check out this code snippet: class App { static void Main() { string a = "the fellowship of the ring"; string b = "The two towers"; int n = string.Compare(a,b,true); int m = string.Compare(a,b,fa...more >>

Get Xml attribute
Posted by kuya789 NO[at]SPAM yahoo.com at 1/6/2004 10:55:28 PM
<xml> <test attrib1="hello" attrib2="world">textValue</test> </xml> I need some help getting the values of attrib1, attrib2 and the test tag. the output should be: hello world textValue XmlDocument doc = new XmlDocument(); doc.Load(url); XmlNode docElement = doc.DocumentElement; XmlA...more >>

C# : getting values from another form
Posted by RD at 1/6/2004 10:43:06 PM
How can I get a value from a textbox on another form? Thanks RD ...more >>

ToHfont problem
Posted by tommy at 1/6/2004 10:42:12 PM
Hi there, I used the floowing code to test System.Drawing.Font.ToHfont(): int i = 0; for(;;) { System.Drawing.Font font = new System.Drawing.Font ("Arial",16,System.Drawing.FontStyle.Bold); IntPtr hf = font.ToHfont(); Console.WriteLine (i.ToString()); i++; ...more >>

C# : global connection
Posted by RD at 1/6/2004 9:51:16 PM
I opened a connection to the database in the login form. Now in another form I tried to insert values to a table. But the connection is not available in the form. How can I make the connection global to all forms? Where I can declare global variables?( Like in VB standard module) Thanks RD...more >>

how to access c# code into vc++ .net
Posted by Kanaiya at 1/6/2004 9:27:22 PM
hi how to access code of c# dll and source code in to vc++ net project....more >>

how to use c# dll in to vc++ .net
Posted by Kanaiya at 1/6/2004 9:23:24 PM
hi how to use c# code and dll into vc++ .net....more >>



web services in windowsapplications
Posted by Saper(ek) at 1/6/2004 8:49:58 PM
how to call a webservices from windowsapplications?? -- "Zeglarstwo jest koniecznoscia zycie nia nie jest" www.saper.infra.pl/ Saper(ek) ...more >>

Add files to listview
Posted by Wim at 1/6/2004 7:48:55 PM
I'm trying to add files with a OpenFileDialog to a listview. This is what I've come up with sofar: protected void ButAddClick(object sender, System.EventArgs e) { OpenFileDialog MyDialog = new OpenFileDialog(); MyDialog.Multiselect = true ; MyDialog.Filter = "WAVE files (*.wav)|*.wav|A...more >>

catching server response message
Posted by Paul Fi at 1/6/2004 7:13:55 PM
is it possible to catch the server response message to a client request at the client channel sinks if i have a custom channel sink at the client sink and i want to catch server response at this sink to make some pre-processing will that be possible? *** Sent via Developersdex http://www.d...more >>

Question
Posted by gswin at 1/6/2004 6:55:12 PM
What is the difference between the following: a. x = 2% 2 + 2 * 2 - 2/2 b. x = (2 % 2 + 2) * 2 - 2/2 Thnx....more >>

Pass an instantiated base class to a new class that inherits the same class -- Possible??
Posted by Brad Navarro at 1/6/2004 6:10:23 PM
OK, I may be asking for the impossible, but I'll give it a shot: For a case like this: using System.Data.SqlClient; abstract class Base { private SqlConnection DBConnect; Base(string SqlConnectStr) { DBConnect = new SqlConnection(SqlConnectStr); } // Some ...more >>

Description of unmanaged exposed dll functions
Posted by jayderk at 1/6/2004 5:50:27 PM
I can not seem to find the thread that described how to expose the functions of functions that are usable in an unmanaged dll? any help would be great regards, Jay ...more >>

Guid
Posted by Jim Heavey at 1/6/2004 4:59:57 PM
When I use the new(Guid), the GUID which is generated is all zeros. Is there a technique for the system to assign a real Guid? Do I have to manually calculate a GUID?...more >>

C# supports of .NET
Posted by Eitan at 1/6/2004 4:52:56 PM
Hello, I'd like to know whether C# supports COM objects, ActiveX ? Does this behaviour takes much different then old fashions visual studio C versions ? Need sample code, please. Thanks :) ...more >>

Paasing structs to/from C# via MC++ to C++ dll - How?
Posted by Keith M at 1/6/2004 4:48:06 PM
Hi, I am a bit of a newcomer to C# but have experience with (unmanaged) C++. Now, I have a 3rd party dll and headers. This dll is a C++ style dll that exports classes and structs. I am attempting to write a Managed C++ wrapper dll for this dll in order that it can be used from various C# m...more >>

Command line compile with csc
Posted by Andrew Warren at 1/6/2004 4:34:44 PM
When I build my winforms exe using the IDE I have a perfectly functioning exe. If I try to build the same project using the .Net Framework csc compiler I get a seemingly valid exe produced (although it's only 44 Kb instead of 76 Kb). When I then run the csc-compiled exe I immediately get...more >>

Update MySQL with C# using OleDb
Posted by The Bear at 1/6/2004 4:32:36 PM
does anyone know how to update a mysql database using C# or any other language for that matter. I keep getting the following error when I try to update: " Dynamic SQL generation is not supported against a SelectCommand that does not return any base table information." your help would be grea...more >>

Creating HTML reports
Posted by bob_jeffcoat NO[at]SPAM hotmail.com at 1/6/2004 3:54:16 PM
Hello, I'm trying to create reports in my application using HTML. I don't want to mess around typing in stuff like html = "<Table>blah</Table>" I want something like row = new HTMLRow("Some text 1", "Some text 2"); table = new HTMLTable(row); header = new HTMLHeader("Report header...more >>

GetBoldWords()
Posted by kuya789 NO[at]SPAM yahoo.com at 1/6/2004 3:52:37 PM
This example that Mun give me works fine if theres only one set of bold tags <b>ddf</b> but it would fail if there are more than one input = "<b>ddf</b><b>dddfs</b>" output = "ddf</b><b>dddfs" is there a way to save each word in bold into an array? Thanks, aaron ------------------- Here'...more >>

Client Winform Applications Working with a main application
Posted by Jay Douglas at 1/6/2004 3:30:39 PM
Greetings, I'm hoping somebody can help me come up with a quick software architecture solution to address the following issue: I need to come up with an Winforms (or something similar) application that multiple users will use over a network. I would like the client machines to actual...more >>

Tab pages in different files?
Posted by Adam Clauss at 1/6/2004 3:27:17 PM
OK, I'm coming from a C++ (MFC) background, so bear with me :) I've recently started a C# Windows Forms app. In the main form, I have a tab control. I have added several different tabs to it (all presently empty). Now, in C++ each of these tab's operated somewhat independently - they were u...more >>

Collections...
Posted by Colin Basterfield at 1/6/2004 3:13:55 PM
Hi, I have a custom collection, which is roughly this public class SiteList : CollectionBase { bla bla bla code, bla bla! } This list holds Site object which have two members, SiteName and SiteManager. This list gets passed back thro a web service so I have done an XMLInclude(typeof(...more >>

type casting confusion
Posted by Wayne M J at 1/6/2004 2:26:27 PM
I have worked out most type casting [(int)char] and the likes but I am curious about one aspect. Endpoint ep...; IPEndPoint iep...; .... ep = (EndPoint)iep; .... iep = (IPEndPoint)ep; .... For some reason the above works (http://www.wmjackson.cable.nu/website/goto.aspx?ID=4) but what I...more >>

Help! I keep getting "sepcified cast is not valid"
Posted by Jim H at 1/6/2004 2:08:31 PM
I am trying to go through my Outlook (2003) address book. The code goes through the Items list and prints all the last names but after it hits 114 (out or 126 contacts) I get a "sepcified cast is not valid" exception thrown. How can it not be valid when that's all the Items collection should c...more >>

next ID value
Posted by Marco Martin at 1/6/2004 1:59:38 PM
Hi, I have a datatable in a dataset. In the table, I have a column "RecordID" with AutoIncrement set to True. My table holds many records. How do I get the next usable value for my "RecordID" from the datatable? ie: if the last record RecordID value is 23, how can I get that value? Th...more >>

Update Pages in ASP.Net
Posted by Jeremy Ames at 1/6/2004 1:44:37 PM
In classic ASP, when you wanted to process information on the server, you could create an ASP page that had no HTML elements and do your processing and then just redirect the page. I am trying to do this with ASP.Net, but I am not having much luck. When I try to redirect the page, the querystr...more >>

Multiple projects in a solution, using VSS
Posted by Mark at 1/6/2004 1:42:36 PM
Is there a realistic way for some developers on our team to work with multiple projects in a single solution under VSS source control, and have other developers only working with a single project from the solution? Thanks in advance. Mark ...more >>

refershing the desktop
Posted by Duncan Winn at 1/6/2004 1:40:42 PM
Is there any way of refreshing the desktop using C#? ...more >>

New to c# - accessing a property of a form
Posted by Dan at 1/6/2004 1:24:07 PM
I am declaring a property in a form - simplified example below. public class frmMain : System.Windows.Forms.Form { private int x; public int X { get { return x; } set { x = value; } } // etc ...more >>

% Processor metric in C#
Posted by john at 1/6/2004 1:05:12 PM
Is there a way, in C#, to query the OS for the processor % utilization....more >>

2 questions
Posted by Mike at 1/6/2004 12:56:28 PM
I'm creating a file compare app,(I know about windif) but i'm creating my own, to add my own features. I have several questions I'm stuck with to finish up my app. 1. I have a message box that is displayed with a OK and Cancel buttons. If the user clicks OK I want to open the 2 different file...more >>

Who knows the "tangible architect"?
Posted by rubenjoenke NO[at]SPAM gmx-dot-net.no-spam.invalid at 1/6/2004 12:55:21 PM
A few days ago I was on the webside: www.tangible.de Where I found the software product tangible architect. Has someone coincidentally gained experience with the demo version yet? Thanks for your tips. ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://...more >>

will C# ever get a more declarative way of handling events? VB is gold on this issue
Posted by Eric Newton at 1/6/2004 12:25:59 PM
VB's more declarative nature of handling events is golden. I'm hoping C# will acquire this type of deal, in addition to the anonymous delegates. could do same as vb (actually would be easier to parse then vb due to braces) whereas you look for Handles keyword after method sig, but before open...more >>

global constants
Posted by .NET beginner at 1/6/2004 12:10:40 PM
Hi all I need to create some strings, constants etc. in my class library that need to be shared across all the classes in my class library. How do I accomplish this? Do these strings and constants have to be embedded in a class? Is there a better way to do this? Thanks for your help. ...more >>

DB in C#
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 1/6/2004 12:09:57 PM
I'm currently trying to open up some DB2 database files, but I cannot find a DB2 data adapter for C#. Is there one out there, or is there a way to get around this?...more >>

Delay Signing
Posted by Trevor Hardwick at 1/6/2004 11:52:16 AM
Hi I'm Delay Signing an assembly. The Register for Com Interop property is set to true for all output files. When I build the solution I get the following error: "COM Interop registration failed. The check of the signature failed for assembly [Output file name]" Can you explain what i...more >>

Operator Overloading
Posted by Stephen Smith at 1/6/2004 11:28:03 AM
Help appreciated. I have a class User which implements an interface IUser. The interface has a property Name that obviously the class implements. The class is passed around the object model by its respective interface, however, this is causing a problem when two IUser interfaces are compared...more >>

network communication with .NET
Posted by kathy at 1/6/2004 10:26:36 AM
We need runing one program on two computers, say two computers runing a program on a network drive, we would like one is a main program, the other one as secondary. Is there any way the main one know the second one closing or killed the second one from the main one? More, is there a way t...more >>

How to get and log the Exception Stack
Posted by Mullin Yu at 1/6/2004 9:59:35 AM
I have some c# web services and c# application. I want to get and log the Exception Stack beside the exception message got from catch(Exception ex). Which class and method can do what I want? If possible, I want to log them into event viewer. Thanks! ...more >>

Passing Array from C# manged code to unmanged code
Posted by mmenghani NO[at]SPAM filenet.com at 1/6/2004 9:59:21 AM
Hi, I m facing a problem in re-writing a code from VB to C #. We are using a third party DLL to develop a application of Fax. The current application is already written in VB and we have to convert it into C#. In VB we are using a function from the DLL whose signature is like : Declare Funct...more >>

New to c# - events & delegates
Posted by Trevor at 1/6/2004 9:53:56 AM
Hello, How can I setup an event in C#? I would like for class A to have an event, and class B to intercept the event. Class B should not be able to call the event itself, only class A. How is this achieved in C# ? Are there any sample/tutorial projects which do just what I am asking? ...more >>

How to correctly identify cells within a datagrid
Posted by Ariel Gimenez at 1/6/2004 8:50:40 AM
Morning! After several hours breaking my mind, finally my code works, but i think is trash-code, can someone tellme how is the correct way to access the value of my cells within a datagrid?... in some cases i can access the values with e.Item.Cells[NumCell].Text, but in other cases i have to do ...more >>

Is the ArrayList order guaranteed
Posted by Jesper Denmark at 1/6/2004 7:58:12 AM
Hi, I use the ArrayList to store objects. Is the sequence of the objects guaranteed or is it possible that the framework reordes the object sequence in some memory handling task? Know its maybe an odd question but I remember from STL that some collections didn't guarantee this. Thank...more >>

Windows Configuration File
Posted by Jim Heavey at 1/6/2004 7:52:40 AM
Hello, I was wondering where I might find a "sample" application configuration file for a windows applications. What should the file be named.... ApplicationName.config ? I am have created web applications and the system automatically generates a "template" configuration file. Can the syste...more >>

Dynamic control names
Posted by Eric at 1/6/2004 7:41:08 AM
I have a form that has 156 list boxes on it. Is there a way to refer to each on in a for loop to populate their data instead of writing code for each one for example for(int x;x < 156;x++ listBox x = somethin instead of listBox1 = somethin listBox2 = somethin ... listBox156 = somethi...more >>

Threads
Posted by Bonj at 1/6/2004 7:39:32 AM
Can a C# Thread start on a non-static member function of a specific instance of a class, like System.Threading.Thread mythread ... mythread.Start(new System.Threading.ThreadStart (this.MyNonStaticFunc) Or does it have to start on a static member function of the class itself, like C++?...more >>

closing open connections
Posted by C Sharp beginner at 1/6/2004 7:37:24 AM
I'm sorry about this verbose posting. This is a follow-up to my yesterday's posting. Thanks William for your reply. I understand it is a good practice to open connections as late as possible and close them as early as possible. My requirement is as follows: I'm developing a class library th...more >>

Command line compile control
Posted by Jax at 1/6/2004 6:53:37 AM
I have VStudio2002 standard, yes it sucks, yes you can laugh as me as long as the laugh carries some pity. Problem being is that there is no standard template for creating a custom control. I am assuming I can do this via the command line? (the old csc bit). If so what command will I need...more >>

C# - Collection vs a DataGrid?
Posted by David at 1/6/2004 6:01:37 AM
I need to store a list of data with 2 sets of information having a common key file. This will be stored on a machine w/out access to any DB server, so a DB option is out. What is the better way to store and maintain this type of data in memory. A collection or a datagrid? I know how to use b...more >>

C#/VS and Access Data Engine?
Posted by David at 1/6/2004 5:58:33 AM
Is the Access Data Engine part of the VS/.net install. Eg. I need to write a stand alone Form app for which a small DB would be helpful. IN VB 6, I would use ADO to call the Access engine. I know that OLE is part of C# v1.1,but does MS ship the single engine as part of the install? If not...more >>

Converting C++ to C# (hopefully quite easy)
Posted by Bonj at 1/6/2004 5:36:01 AM
I have got the starting bits of a game that I am trying to write. I did start to write it in VC++6, but found the basic windows GDI to be of general poor performance for animation. So I decided to switch to GDI+, and as far as I've found on my operating system (WinXP, VS6 and VS.NET 2002) ...more >>

Serialize and deserialize
Posted by Amsteel at 1/6/2004 4:31:40 AM
I got something like this in VB.Net <Serializable()> Public Class YQProfileC Inherits CollectionBase Public Sub Save2File(ByVal FileName As String) Dim IFormatter As New BinaryFormatter() Dim FS As FileStream = New FileStream(FileName, FileMode.Create, FileAccess.Write, F...more >>

Application.Exit() doesn't react
Posted by Jesper Denmark at 1/6/2004 4:24:26 AM
Hi, After a given exception I would like to terminate the program. I've been told that Application.Exit() should do the trick, but I cant seem to make it work at all. It compiles fine. But it doesn't seem to do anything - the program just continues after calling the function. Should it ...more >>

purpose of 'event' keyword?
Posted by Bob at 1/6/2004 3:52:41 AM
C# newbie here.... studying about delegates and now events. I just don't get the purpose of declaring events using the event keyword. What does this do for me that can't be done using only delegates? ...more >>

default access for class members in C#?
Posted by Bob at 1/6/2004 3:51:18 AM
In C++, default access is private. In Java, default access is package. In C++, default access is ___________ ?? ...more >>

C# API Reference
Posted by Jason at 1/6/2004 1:02:17 AM
Hi, Can anyone point me towards an online tutorial for using APIs in C#, particulary the Odbc APIs. Cheers, Jason ...more >>

Create a class dynamicaly in run-time?
Posted by peter at 1/6/2004 12:32:03 AM
How to create a class dynamicaly at run-time? Some documentations in MSDN say that it is feasible using the class "TypeBuilder",but I don't know how to do. Is there anyone who can help me? Sample code is appreciated....more >>

how to encode email=bill@ben.com in query string
Posted by tony collier at 1/6/2004 12:23:31 AM
I have String Email=bill@ben.com; where bill@ben.com can be user input and will vary, so i have another string. scrapesite="www.webpage.com?email"+Email; when i point my scrape routine at this it fails with bad email address which must be due to the @ between bill a...more >>


DevelopmentNow Blog