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# > april 2004 > threads for friday april 23

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

C# Constructors
Posted by David Morris at 4/23/2004 11:18:56 PM
I am very new to C# (a couple of hours) but have worked with Java for quite a while. One thing that isn't obvious and I can't find in the documentation is how to call the superclass/based on class constructor in a subclass. I want to create a base button class that overrides some properties....more >>


Generated Code Won't Compile
Posted by Curt Emich at 4/23/2004 11:12:20 PM
I'm trying to create a dataset. I start by creating a connection. Then I create and configure a data adapter. Finally, I select "generate dataset" after right-clicking on the data adapter. It creates a dataset and puts it under the form, just like the connection and the adapter. When I try...more >>

studio .net x 2003
Posted by Ricardo at 4/23/2004 10:11:03 PM
hi.. what´s the differences in the 2 versions of visual studio .Net???...more >>

DataGrid with ComboBoxes
Posted by RFickling at 4/23/2004 9:37:20 PM
Hi, I have implemented a DataGrid with ComboBoxes in it using the DataGridComboBoxColumn class from the MSDN article. My problem is that I would like to make the combobox disappear when an item is selected in the list, showing only the selected item's value in the grid cell. Currently, the co...more >>

About evaluation in loops
Posted by Dennis Myren at 4/23/2004 9:37:19 PM
Hi. This is not a critical question. Consider this snippet: switch ((myenum) hashtable [key]) { case myenum.first : ... } I just want to know whether the expression (myenum) hashtable [key] needs to be evaluated for each case declared in the switch statement. The alternative would be...more >>

How access DBIII files with c#
Posted by G.Esmeijer at 4/23/2004 8:47:45 PM
Friends, I have some data that I want to access (und update) and which is stored in DBase III files. The application that is working with this data is wrtten in Clipper (Those were the days :-)) Is it possible to access these dbase 3 files from without c# ? Gerrit Esmeijer ...more >>

ServicedComponents with C#
Posted by Kevin Jackson at 4/23/2004 8:01:40 PM
Is there a way to view the contents of class member variables in a ServicedComponent. It says that it cannot show the variables of a proxy or something of that nature. ...more >>

Hooking mshtm Documentl Events and Mouse going dead
Posted by Rick Strahl [MVP] at 4/23/2004 7:40:22 PM
I'm working on an app that's using the WebBrowser control. I got the control working fine, hooking to the document object. But I've run into a major issue with hooking the Document events. Whenever I hook any of the HTMLDocumnetEvent2_Event events like this: HTMLDocumentEvents2_Event DocEven...more >>



Ultimate C# book
Posted by Zachary Turner at 4/23/2004 7:39:58 PM
What is the most comprehensive, under the hood, detailed, deep down book on C# available? I come from a C++ background but want to get up to speed on C# really quickly. I dont' want something that messes around walking the user through adding get/set properties in 4 or 5 pages, I want one that ...more >>

Generic Methods
Posted by Jasper Kent at 4/23/2004 6:16:05 PM
I've just been playing around with the Visual Studio 2005 preview, and obviously one of the first things I did was try to write a Max template. I can write: public static T Max<T> (T l,T r) where T : System.Collections.Generic.IComparable <T> { return l.CompareTo (r) > 0 ? l : r; } ...more >>

Setting local machine's date/time
Posted by Joshua Moore at 4/23/2004 6:13:17 PM
Does anyone know how I'd set the local computer's date/time in C#? Thanks in advance, Joshua Moore ...more >>

mscorlib
Posted by Alberto at 4/23/2004 5:49:02 PM
What stand for mscorlib? I suppose that ms is Microsoft, lib is library... but I don't know what cor is. Thank you. ...more >>

Variable name from string
Posted by Jan Roelof de Pijper at 4/23/2004 5:47:12 PM
Hi group, Is it possible to derive a variable name from a string? So, if I have a string "myVar" I want to define a variable myVar. Any suggestions welcome! Jan Roelof ...more >>

Regular expression question
Posted by Lee Kuhn at 4/23/2004 5:43:31 PM
I am trying the create a regular expression that will essentially match characters in the middle of a fixed-length string. The string may be any characters, but will always be the same length. In other words, as the regular expression (....)($) matches the "4567" in the string "1234567", how wou...more >>

How to release/close the COM object
Posted by Mullin Yu at 4/23/2004 5:01:59 PM
as subject. i instantiate a COM object at my c# application like below IDMObjects.Library oLib = new IDMObjects.LibraryClass(); should i need to close it or set it to nothing/null to release resources. e.g. oLib = null or something else thanks! mullin ...more >>

error serialising struct
Posted by Dirk Reske at 4/23/2004 4:41:03 PM
Hello, I have following struct struct Chunk { string Command; byte[] Data; } when I try to serialize it after I filled it, all hangs up byte[] bt = new byte[1024]; int len = reader.Read(bt,0,bt.Length); Chunk data = new Chunk(); data.Command = "Data"; data.Data = bt; ...more >>

populating a string array
Posted by Sangeetha at 4/23/2004 4:26:18 PM
I came across this array initialisation which I can't follow ---------------------------------------------- public static string[] AllOperators { get { return m_AllOps; } } m_allOps is ...more >>

C# and destructors
Posted by Kimmo Laine at 4/23/2004 4:25:09 PM
Hi, lets say that i have class (C#) which will create some kind of communication chanel, which is very expensive in terms of computer resources, and therefore should be closed, when no longer needed. I have a method which will create this chanel and a method which will close/release it. My ...more >>

Why this fails in C#
Posted by Niloday at 4/23/2004 4:15:32 PM
Hi All, I have COM dll developed in VB.6 that exposes a method to print a word document. The method accepts the name of the printer and the fully qualified name of the document to be printed. In the DLL, it loops through the printers collection to check if the printer name is valid and sets ...more >>

Services and Service timers
Posted by Jason at 4/23/2004 3:28:55 PM
Hi all just a quick question. I have a windows service with a "Catalogue" class. I would like to know: if i put two "ServiceTimer" objects in my service 1. Do they run in separate threads (i have never threaded before, so excuse my ignorance) 2. If i have instances of the catalogue cl...more >>

Finding my type
Posted by (mike.spertus NO[at]SPAM veritas.com) at 4/23/2004 3:16:16 PM
GetType() works in non-static methods, but how do I get my type in non-static methods? ********************************************************************** Sent via Fuzzy Software @ http://www.fuzzysoftware.com/ Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resou...more >>

Filter dataset columns
Posted by SPG at 4/23/2004 2:38:32 PM
Hi, I need to be able to filter the columns that are visible through a dataset. That is, I can have all columns in a dataset, but only some of them are visible when filtered. I know you can use rowfilter on a dataview. Is there anything like that I can use? Steve ...more >>

Looking for a Canvas-like widget, or pointer in the right direction
Posted by Clinton Pierce at 4/23/2004 2:07:07 PM
In Tk and other graphical toolkits, there's a "Canvas" widget that allows you to draw figures and place text on it at runtime. Later these "shape objects" can be clicked on (they have their own handlers) and manipulated within the Canvas. Is there anything like that in C# or the .Net framewor...more >>

Need to pull out text from a word .doc and put in into a string
Posted by jfarr at 4/23/2004 1:51:03 PM
Does anybody know know to parse through a word document, to put the text into a string?...more >>

How do I load a C# dll at runtime?
Posted by Alex Fennell at 4/23/2004 1:46:02 PM
Hi all I have been playing around with C# for a while now and can't seem to find any logically named functionality in the .Net framework to load a C# .dll at runtime in the same way you would do it in C/C++ using the Win32 LoadLibrary(...), GetProcAddress(...) and FreeLibrary(...) functions. Perha...more >>

Remote Debugging Problem
Posted by Ken Allen at 4/23/2004 1:06:53 PM
I folloowed the instructions on configuring the remote debugging capabilities, but I get the following error. I installed the remote debugging components from the .Net install CD on the remote system and then launched the remote debugger, which put up a commandprompt window. I then configured my...more >>

Problems accing COM component from C#
Posted by Niloday at 4/23/2004 1:04:39 PM
Hi All, I have COM dll developed in VB.6 that exposes a method to print a word = document. The method accepts the name of the printer and the fully = qualified name of the document to be printed. In the DLL, it loops = through the printers collection to check if the printer name is valid = ...more >>

C# syntax issue
Posted by Ken Allen at 4/23/2004 12:48:18 PM
OK, this one has me completely at a loss. Please note that the capitalized names in the following are for reference only and do not reflect the casing used for the actual namespaces or types. I have one assembly that is common to the client and server component, let us call it COMMON. This is ...more >>

can't step into the code
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 4/23/2004 12:41:44 PM
hi all I have two projects in a solution. I have set my first project as a reference in my second project. I am trying to step into my first project's code from the second project's code. for some reason, can't step in. Can you suggest me a solution for this, thanks a lot....more >>

System.NullReferenceException: Object reference not set to an instance of an object
Posted by janet.heflin NO[at]SPAM tdwilliamson.com at 4/23/2004 12:06:40 PM
Very new in the C# world so give me a break here. I have created two web forms, one passes information to the other and brings up the data based on the passed field. When I do the updateRow I get the object recrence not set to an instance of an object. If I rem out the error message on the up...more >>

INI Files
Posted by msnews.microsoft.com at 4/23/2004 11:53:37 AM
How can I work with INI files in C#.NET or VB.NET? ...more >>

OWA for exchange 2003 and form based login
Posted by Kigunda Mbogo at 4/23/2004 11:46:13 AM
Hi, I am having a windows 2003 ADS with exchange 2003. I do have OWA running on the same box. I would like to create a form based login page that would appear on a different virtual directory. Once a user login, i should forward these credentials to the exchange login in page that prompt...more >>

How to reject the same user to login twice by using Session?
Posted by Tom at 4/23/2004 11:31:03 AM
Hi I have a web application using asp.net and c#. User has to login to the application with his username and pwd. However, I do not allow other user uses the same username and pwd to login, i.e. one set of login ID cannot be used for twice except the logged in user's session has expired or he exit...more >>

Regular expressions problem
Posted by Josef Janecek at 4/23/2004 11:17:13 AM
How can I use regular expressions to have them find paired brackets. e.g. have VB 6 function definition: function something (var1 as string, var 2 as somearray(), var3 as string) and want to get all the attribute definitions between beginning and ending brackets: "var1 as string, var 2 as somea...more >>

ConnectionString property has not been initialized!!
Posted by Kamal at 4/23/2004 9:48:27 AM
Hi everyone, I've created a user control that calls some method from a class that set the connection string, the connection string is stored in the App.Config file. When i try to add that control into a form, the following message Appears: "The ConnectionString property has not been initiali...more >>

Beginner
Posted by Grant at 4/23/2004 9:47:02 AM
Hi, Ive written a few small VB apps but want to learn C# - are there any good online resources out there? Im looking for a beginners guide/intro or something like that. Thanks, Grnt ...more >>

FTP Client Library - Where to find one?
Posted by Peter at 4/23/2004 9:46:06 AM
Hello I need a FTP class library that I can use to download files from an ftp server in my application. Does anyone know of any good libraries that support both pasv and non-pasv connections I would prefer a free open source library written in C#. I know some components do exist by companies lik...more >>

How to start a process from c#?
Posted by R.A. at 4/23/2004 9:36:16 AM
Hi The application I am working on should start an external exe application and wait for its result. The external application is most likely not a .net app. How can I call the exe from c# code and get the result code or when the exe finished processing? Thanks ...more >>

Error loading Global
Posted by JTrigger at 4/23/2004 9:22:03 AM
When I compile using the IDE, my web project works just fine. When I compile using csc.exe I get an error trying to brows the web project. It gives me an error about Glocal.asax not able to load a Reference in Global. I used resgen on the global.asax.resx and then included it as a resourse. Am...more >>

Third Party .NET Controls ?
Posted by CLR at 4/23/2004 9:20:12 AM
Folks, Who is the "king of the hill" when it comes to third party .NET controls for both Win and/or Web ? I have started to look at Infragistics. While the controls look "sexy" enough, their licencing agreement goes beyond "bondage". It assigns to them all rights and ownership of antythin...more >>

static vs. non-static
Posted by Mauzi at 4/23/2004 8:49:40 AM
hi, this may sound odd and noob like, but what is the 'big' difference between static and non-static funcitons ? is there any performace differnce? what is the best way to use them ? thnx mauzi...more >>

byte
Posted by frazer at 4/23/2004 8:41:38 AM
hi what is the difference between byte and Byte. somehow both seem to work in my program ...more >>

How to Keep Dialog Open When Exception Occurs
Posted by John Bowman at 4/23/2004 8:26:41 AM
Hi, I need some dialog handling help, I must be missing something obvious here but I can't figure out the solution to the following problem... Simple Win Forms app that has button on the form. The click event handler for the button creates another dialog (as a form object) and calls it's Sh...more >>

Watching for an object to change - ObjectWatcher?
Posted by isbat1 NO[at]SPAM yahoo.com at 4/23/2004 8:10:58 AM
I'd like to use something similar to the FileSystemWatcher to monitor changes to objects in my own code. Something I can hook bitmaps, strings, anything to, and have it raise an event when the object is changed, possibly passing along the new hashcode for the object. I guess it would be possi...more >>

Question on DataTable join
Posted by pignarson NO[at]SPAM hotmail.com at 4/23/2004 7:58:35 AM
Hi, I have two datatables and I want to efficiently query the intersection of the two using the studentID. In my example code below, I want to print out Mary and Jane and their exam grades and I don't want to use loop because the real datatables are much larger. Can this be done using one of the...more >>

sending DataTable by ref - is there a way to do it, and any sense of doing it ?
Posted by Stefan Turalski (stic) at 4/23/2004 7:54:16 AM
Hi, I'm wondering if there is a way to send a method parametrs by ref when DataTabel is a type of this value ? I done some sort of select over DataTable columns, just by removing them froma table is each of them isn't on a stirng[], but right no I have to do it in a wat of: 1. passing Data...more >>

ToUniversalTime and Daylight Savings
Posted by Ernie.Taylor NO[at]SPAM uhn.on.ca at 4/23/2004 7:28:23 AM
I am creating an .ics file that when opened (via Outlook) inserts a meeting into the calendar. All works fine unless the date and time I'm inserting happens to occur on the hour the time changes due to daylight savings. For example in 2004 the hours changed at 2:00 AM on April 4th (the firs...more >>

C# vs C++ on socke sending/rec speed?
Posted by chrisben at 4/23/2004 7:26:03 AM
Hi All Has anyone done any experiment on comparison between C++ and C# on socket rec/send speed Conditions in Windows system, same CPU for senders or receivers. Can you see how much faster a C++ app can send/rec messages than a C# app I am working on some real time apps with heave traffic. I a...more >>

Median filter for C#
Posted by isbat1 NO[at]SPAM yahoo.com at 4/23/2004 7:14:28 AM
I'm looking for sample code of performing a median filter on a bitmap in C#. Can someone please point me to an example?...more >>

C# Excel Add-In Question (Intellisense)
Posted by Greg McIntire at 4/23/2004 7:09:24 AM
Hello all, I have, what I hope, is a relatively quick question. I've made a shared add-in in VS.NET 2003 to be used in Excel XP. The add-in exposes an optimization process that can be conducted from Excel VBA (currently have no desire to make a more formal UI). I'm up to the debug ...more >>

How to get control's class name?
Posted by Thonglao Rud at 4/23/2004 5:41:12 AM
Hi everybody! (Sorry my poor English) My question: how to get "full" class name of controls. For example, "WindowsForm10.BUTTON.app3a" instead "System.Windows.Forms.Button" Thanks in advance....more >>

C# Standard Vs Professional
Posted by JW at 4/23/2004 5:11:02 AM
Does anyone know what features are missing from the standard edition of C# (retails for $109) vs the professional edition (which as far as I know is only available by purchasing visual studio, and we all know how much that costs!)? Thanks -JW...more >>

Windows Form Main Entry Point Question
Posted by lzh_gladiator at 4/23/2004 3:56:02 AM
Hello Every one I am a begginner in C# programming,recentry i have met one question,How do I try and catch Exception in the Main Method.It seems that dot net do not wish to try and catch in the main method,but in each class method. Does anyone have meet this question before Thanks...more >>

onclick event
Posted by Fabrizio at 4/23/2004 3:31:03 AM
Hi I'm creating a web page where I use a rollover function on a html image. Can i associate the onclick event of this client control with a C# function resident on the aspx.cs file Thank you Fabrizio ...more >>

Boolean Visible Property problem
Posted by jsouth NO[at]SPAM cix.co.uk at 4/23/2004 3:15:52 AM
Hi I'm new to asp.net and c# and I've got stuck on an apparently simple problem: I'm trying to make a HyperLink dynamically visible/invisible. This is the HTML: <asp:HyperLink Runat="server" Text="Back" NavigateUrl='HeadingList.aspx' Visible='<%=isNotTop()%>' /> This is the in the ...more >>

Collections of Collections in C#
Posted by jweizman NO[at]SPAM csi.com at 4/23/2004 3:03:06 AM
Hi I have a class that contains an array of another class: public abstract class Node {} public class elem1 : Node { public ArrayList NodeItems1=new ArrayList (); } public class elem2 : Node { public ArrayList NodeItems2=new ArrayList (); } So i could have such a tree: ...more >>

C# ?
Posted by omar_leop at 4/23/2004 2:54:01 AM
i lost track on C programming, what exactly is C# compared to C++? is it now like VB? thanks ...more >>

listBox1.Items.Remove help
Posted by Bilo at 4/23/2004 1:34:23 AM
I dont know what i am doing false. the code : private void button2_Click(object sender, System.EventArgs e) { foreach (string filename in listBox1.SelectedItems) listBox1.Items.Remove(filename); } gives me the error : System.InvalidOperationException: The list that this e...more >>

Control.InValidate vs. Control.Refresh()?
Posted by Claus Konrad at 4/23/2004 1:28:59 AM
What's the difference between calling the first and the second (see subject). Thanks! /Claus ...more >>

Quick XmlTextReader question
Posted by nick_tucker NO[at]SPAM hotmail.com at 4/23/2004 1:16:36 AM
Hi All, if i have the following code: StringReader stringReader = new StringReader(c_XML); XmlTextReader xmlReader = new XmlTextReader(stringReader); If I call 'xmlReader.Close();' I take it the under lying stringReader close method is called, is this correct? Thanks, Nick...more >>

OleDb: DataSets versus ExecuteNonQuery(), ExecuteReader()
Posted by francisrammeloo NO[at]SPAM hotmail.com at 4/23/2004 12:56:52 AM
Hello, My question is: is it better to use DataSets than the simple ExecuteNonQuery() methods. I thought the DataSets would be a better structured way of programming, but it seems to result in very lengthy code with a lot of frustration during debugging. This is my case: I am creating ...more >>

monthCalendar (asked before)
Posted by yener at 4/23/2004 12:50:31 AM
i noticed that dateChanged method of monthCalendar is automatically fired every two minutes. when i searched the groups , i see someone asked this before, there was one short answer and it was -i guess- in spanish. does someone has an answer or know spanish? yener link to thread: http:/...more >>

Authentication of a user
Posted by Peter Tragardh at 4/23/2004 12:28:04 AM
I'm searching for info on how to authenticate a user in the same way that for example Source Safe does. I would like my system to use Windows as the authenticator, so that the user doesn't have to log on separately to access my system....more >>


DevelopmentNow Blog