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# > march 2004 > threads for monday march 15

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

Proposal: Renaming of the "private" Keyword
Posted by C# Learner at 3/15/2004 11:51:39 PM
A recent discussion in here has got me reflecting on the "private" keyword. As I mentioned in the discussion, I find the keyword problematic, in that it looks too similar to "public" and therefore makes quickly scanning for public members among private ones, hard. This kind of thing wasn't...more >>


dataGrid dataview editing error after sorting
Posted by david NO[at]SPAM fyin.com at 3/15/2004 10:49:26 PM
I am trying to implement sorting and editing on a datagrid that has it's source as a DataView. I can sort by selecting the column headers, and I can edit using. However, If I sort, then edit, the table reverts to the original 'sorting', and selects the 'wrong' row for editing... I.e. if my da...more >>

registerhotkey
Posted by anonymous NO[at]SPAM coolgroups.com at 3/15/2004 10:48:53 PM
is there a function like registerhotkey, but for csharp? ...more >>

Intra-Thread communication
Posted by Just Tom at 3/15/2004 10:15:21 PM
I have a Winform that will spawn a thread to work on each file within a directory. For each FileSystemInfo in this directory, it will get the hash of that file. If the FileSystemInfo is infact another directory, I will spawn another thread and repeat the whole process. However I want to keep ...more >>

Bug in XSLT with c# ?
Posted by Matthew Hazlett at 3/15/2004 8:56:12 PM
I can apply an XSLT to an XML document fine in C#. But an issue occures if the XSLT has a for-each. For some reason the xmldom seems to ignore it. I have read posts from other people with this problem but no solution, any ideas? (Can some kind person try to reproduce this bug) Heres the co...more >>

Remoting kein Callback möglich.....
Posted by Jannis Linxweiler at 3/15/2004 8:36:37 PM
Hallo NG! Ich habe ein Problem mit .NET Remoting. Bisweilen habe ich herausbekommen, daß mein grundsätzliches Problem mit den Securityoptions vom .NET Framework zusammenhängt. Ich habe dann die notwendigen Modifikation am ServerFormatterSinkProvider vorgenommen, habe aber immer noch ein Pro...more >>

Paste into ListBox
Posted by Jorn T at 3/15/2004 8:13:15 PM
How can I paste text into a ListBox? From the clippboard that is... Jorn T ...more >>

what is ^=
Posted by Sammut at 3/15/2004 7:50:00 PM



How to get the character from the KeyCode?
Posted by Leif Andersson at 3/15/2004 7:44:17 PM
Hi all! I would like to get the character matching the current InputLanguage. KeyCode 221 is for instance character "[" when US keyboard layout is choosen, but if the inputlangage is Swedish the character is "å". How can I get the corresponding character??? Thanks in advance! Leif And...more >>

first bytes of a string
Posted by Dirk Reske at 3/15/2004 7:29:09 PM
Hello, how do I get the first e.g. 4 bytes of a string into a byte array? thx ...more >>

database structure
Posted by Steph at 3/15/2004 7:01:43 PM
Hello, Do you know how to obtain the structure (tables & fields) of an Access database ? I'm using this following code from MSDN DataTable schemaTable = myConnection.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new object[] {null, null, null, "TABLE"}); I have a field "Table_name" in my D...more >>

Getting one line in a lisBox
Posted by Jorn T at 3/15/2004 6:51:57 PM
I need to get the content of line x of a listBox. How would I go about doing this? Is there a index property for lines? E.G: Listbox content: something something2 so on Code: Edit1.text = listBox.someproperty[0]; Then Edit1 should show "something". Jorn T ...more >>

Why is code from a mapped drive considered "Internet"?
Posted by Non Given at 3/15/2004 6:32:57 PM
Hello all. I am working on an application which will sit on a shared drive. I know there are a couple of ways to make .Net like it security wise, but I am confused as to why it is considered "Internet" not "Intranet" on the zone settings. Can anyone shed some light on this for me? Thank...more >>

Looking for c# technical interview questions
Posted by bill at 3/15/2004 6:32:06 PM
Anyone see any articles or websites that have some prewritten c# technical interview questions? I did find this one: http://www.techinterviews.com/index.php?p=54. But I'm looking for more. I like some of the questions in the above link but many are just useless trivia. I want someone who ...more >>

DateAdd
Posted by Andrea Williams at 3/15/2004 6:07:57 PM
Is there an equivelent to VB's DateAdd() function in C#?? If not, then has someone already built a function that will do the same thing? Thanks, Andrea ...more >>

QA tool for asp.net? Winrunner?
Posted by Jason Shohet at 3/15/2004 5:36:13 PM
We've had some experiences where QA did not do an adequate job of manually running thru different choices in an asp.net application, and seeing if they worked. I'm looking for a tool thats easy to use, that we can tell it what to do (Click on some button, type in "5" into some text field etc) ...more >>

calling another C# program
Posted by pmw49 NO[at]SPAM hotmail.com at 3/15/2004 5:25:01 PM
Hi, I've been googling and going thru a lot of the posts online and have come up with nothing useful (in my opinion anyway) for my situation. I am trying to call another C# program via the click event of the submit button in one of my programs using the Response.Redirect(); function. This ...more >>

ref keyword on reference types?
Posted by Dennis Myrén at 3/15/2004 5:02:25 PM
Hi. Is there any difference between void Method ( MyReferenceType myReferenceType ) and void Method ( ref MyReferenceType myReferenceType ) (MyReferenceType is a class) The MyReferenceType is indeed a reference type, so the two statements above should be equal? Or could it be that the ...more >>

Properties of Font-class are all read-only ???
Posted by Christian Cambier at 3/15/2004 5:01:46 PM
Hi, the following produces a compiler error : label1.Font.Size = 10; ==> ERROR:Property or indexer 'System.Drawing.Font.Size' cannot be assigned to -- it is read only OK, but why has it been designed as read-only. As are all properties of the Font-class by the way...more >>

COM Interop problem
Posted by Nadav at 3/15/2004 4:58:57 PM
Hi, I am using a COM object with my C# application, once in a while I get a Stack overflow exception generated by the COM Object, I wonder... I want to try to increase the size of the stack, how can this be done with a C# Win32 Forms application? I didn't find anything in the C# project settin...more >>

Assembly strong name assertion
Posted by Sharon P at 3/15/2004 4:44:03 PM
Hi All I need to assert that an assembly I address has the appropriate strong name, before attempting to load and use it. What is the best way to do this? One method I can think of is to generate an AssemblyName object which represents this assembly and than check it's name, version, and public...more >>

DataView + RowFilter +Like %
Posted by marcin at 3/15/2004 4:10:52 PM
Hello, How can I use special characters % and * in DataView.RowFilter expression in which I have already LIKE statement? I am using a DataView to displaying a records from datatable, I allow users to enter the string which will be pasted into RowFilter in such way MyDataView.RowFil...more >>

config file ?n
Posted by at 3/15/2004 4:06:34 PM
I have to do some screen scraping and I need to do it for more than 1 site. I am making a call to WebRequest.Create(url) (to many urls) and I wanted to put the urls, and the text that I use for the Regular expression in the config file. But if the name is "site1" and the url is "www.somesitewit...more >>

finding date in data
Posted by Selen at 3/15/2004 4:04:30 PM
Hi, I am using select date from table where Convert(char(10),Date,104)>='17.03.2004' but only comes date which is bigger than 17 ..the other not. FOr example I cant see 10.04.2004 .. What is wrong??? Thanks ...more >>

Memory leak calling trivial ATL COM component that returns an error result
Posted by David Lowndes at 3/15/2004 4:00:28 PM
I'm seeing a memory leak (by watching the Private Bytes for the process in PerfMon) in this simple C# application that calls a trivial ATL COM object method when the COM method returns an error result. Here's the C# code (console application): [MTAThread] static void Main(string[] args) { ...more >>

Clipboard functions...
Posted by genc ymeri at 3/15/2004 3:58:34 PM
How can I copy some data in clipboard through C# ????? How can I tell if already there are some data (text/image) stored in the clipboard ?????? Thank You. ...more >>

assembly version
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 3/15/2004 3:47:58 PM
Hi all, How can I find out the version of my assembly programmatically? I have set the version of my assembly to a specific number in my AssemblyInfo.cs file. Which method or class do I use in my program to find out the version that is set in the assemblyInfo.cs file? Thanks a lot for your...more >>

menus.......
Posted by genc ymeri at 3/15/2004 2:51:43 PM
Hi, Is there any component, tip or something to implement the sensitive menu items or should I implement them manually....??? (for instance, if the no document is open then the edit/cut/past menu items should be disabled,,,) thank you inadvance. ...more >>

datatables vs. arrays
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 3/15/2004 2:49:53 PM
Hi all, When I have to cache in data from static tables in our SQL server database, what would you recommend? datatables or arrays? I find datatables easier to work with. But, I need to know if there are any overheads, performance issues etc. in using datatables and also if traversing array...more >>

Bug in C#?
Posted by Eddie B. at 3/15/2004 2:37:06 PM
I am trying to create a new row with the values from textboxes. When I create the first row it works fine but when I click the button to create another row it only overwrites the existing row. this is what I am doing. Toward the bottom (about 8 uncommented lines from bottom) where DataRow first...more >>

Verify Integer Value
Posted by David Krussow at 3/15/2004 2:09:19 PM
I need to test to see if a string value can be converted to an integer. I thought I'd try Convert.ToInt32(strTemp) within a Try Catch block. Is there a better way to accomplish this? Thanks. ...more >>

Using Windows.Forms namespace in a web form
Posted by Bryan G at 3/15/2004 2:00:43 PM
using System; using System.Collections; using System.ComponentModel; namespace DashBoard { public class DashBoardForm : System.Web.UI.Page { } How can I use a Using System.Windows.Forms in a .aspx C# web form....................... Please help ...more >>

1.0 vs 1.1 framework conflict in VStudio
Posted by Paul Wehland at 3/15/2004 1:22:26 PM
I have both v1.0.3705 and v1.1.4322 of the .NET Framework installed on my computer. In my properties of my project in the references path, I have v1.1 listed first, then v1.0 listed second. When I do this I cannot edit a WinForm dialog. I get the error: "The designer could not be shown ...more >>

Simulating the File Properties dialog
Posted by Mark Rae at 3/15/2004 1:09:55 PM
Hi, Suppose you are writing an MDI application, and each of the child windows has document properties associated with it e.g. Author, Company etc exactly the same as in the case of Microsoft Word, Excel etc. You want to simulate the File, Properties functionality of the MS-Office apps by pr...more >>

Calling a static method from within a C# windows service causes the service to hang?
Posted by Omer NO[at]SPAM nowhere.com at 3/15/2004 12:54:06 PM
Just encountered a bizzare issue that I hope someone can explain. We've built a generic hosting service in C# (something like SVCHost) that calls a logger class for logging purposes. The logger class has only static methods (including a static constructor). We registered the generic host as two ...more >>

C# Book Recommendation
Posted by Tony! at 3/15/2004 12:35:24 PM
I've got some books on C#, but I'm wondering, what book(s) would you people that have already learned C# pretty well recommend? Most of the time I look on Amazon and see reader comments suggesting that the book in question was written by someone using the Beta version and things have changed s...more >>

InvokeMember an arrays
Posted by Gilgamesh at 3/15/2004 12:30:46 PM
How do you pass an array of arrays to InvokeMember? In my case, the method that InvokeMember is invoking expects a one dimensional array of objects. Thanks, Gilgamesh ...more >>

Replace char in Table
Posted by PawelR at 3/15/2004 12:22:08 PM
Hello Group, I've Table in DataSet - result of sql query. How repleace all chars (ex ASCII 145) to anoder chars (ex ASCII 64) Thx PawelR ...more >>

Sort in dataSet
Posted by PawelR at 3/15/2004 12:13:21 PM
Hello Group, I've in my apps dataSet with table (5 columns). My question: How sort this table for colums no.3? This table is saved to file as text file and must by sorted. Thx PawelR ...more >>

Binary confront
Posted by Stefano Galluzzo at 3/15/2004 11:44:39 AM
I have a problem. I want do a binary confront. I have a Variable 1: int visibilityelements; 2: visibilityelements = 2; if (visibilityelements & 2) { ... } if (visibilityelements & 4) { ... } if (visibilityelements & 8) { ... } if (visibilityelements & 16) { ...more >>

Load Application from persisted file
Posted by Suresh Mani at 3/15/2004 11:33:30 AM
Hello, I am developing a MDI application. I am saving the application state into a file. How can i launch my application, on double clicking the the file in c#. Thanks in Advance. Suresh Mani ...more >>

xml and tree node question
Posted by johnwadeunderwood NO[at]SPAM yahoo.com at 3/15/2004 11:32:37 AM
Hi.. I'm look for suggestions in handling the following.. In the xml below, I read that in and add it to a tree.. Just reading it in it puts it in the following format: Companies Company New Stuff 1 New Stuff 2 Company New Stuff 3 New Stuff 4 I'd like to ...more >>

Label's without background?
Posted by Marcin_Grzêbski at 3/15/2004 11:30:34 AM
Hi All, There is a chance to make Label (Windows) without its background? I want to add text shadow as a Label that lies below its text Label. If i try Label class (with all properties) i can not set upper label background transparency. Is there any (windows) control that draws text without b...more >>

Hiding a form at startup
Posted by Randy at 3/15/2004 11:04:58 AM
Hello, I've got a little C# app and I want to hide the main form at startup. I've tried using this.Hide() in the constructor but that doesn't hide the form. Does anyone know how to do this? Thanks Cheers :) ...more >>

Value Types in Hashtable are annoying (any suggestions)
Posted by creepiecrawlies NO[at]SPAM hotmail.com at 3/15/2004 11:04:44 AM
Look at this code for simply managing a count field in a hashtable. public void Increment( EStuff e ) { object obCurrentCount = m_hash[e]; // If its not in there yet, then add it as one and skip the increment if( obCurrentCount == null ) obCurrentCount = m_hash[e] = 1; // Inc...more >>

hiding inherited members using the "new" keyword;
Posted by Mark Broadbent at 3/15/2004 11:00:43 AM
Hi all. I've come across one of those things that doesn't work as I'd expect. When inheriting a class, I have read that I can use the "new" keyword to hide an inherited member and create a new implementation of it -it is supposed to be possible to change the access level of the new member. Howev...more >>

datetime
Posted by Selen at 3/15/2004 10:07:17 AM
I use Calendar asp.net(c#).It gives me Calendar.SelectedDate.Date is string I convert it to datetime with Convert.toDateTime but Sql server give me error... The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value. The statement has been terminated. ...more >>

VB to C# Converter??
Posted by jimi_with_an_i NO[at]SPAM yahoo-dot-ca.no-spam.invalid at 3/15/2004 9:31:55 AM
I've just started looking into converting some code from VB.NET to C# and was wondering if anyone's had any experience with any VB to C# converters? Thanks Posted Via Usenet.com Premium Usenet Newsgroup Services ---------------------------------------------------------- ** SPEED ** ...more >>

Dynamic access to class fields
Posted by fpleyer76 NO[at]SPAM gmx-dot-de.no-spam.invalid at 3/15/2004 9:31:55 AM
Hi, I got the following problem: I have a class named PRootObjects with the first FIELD named ID. I want to use one method (shown below) to access different FIELDs of different classes. I have the name of the FIELD I want to access in a STRING Variable named FIELDNAME (e.g. string FIELD...more >>

Managed DirectX
Posted by ivan at 3/15/2004 9:26:48 AM
Looking for managed DirectX tutorial... Tnx...more >>

XmlTextWriter and empty values
Posted by Ryan Breakspear at 3/15/2004 9:14:00 AM
Hi all, Is there a way I can force the XmlTextWriter to put in <TAG></TAG> for tags with no values rather than <TAG />? Also does anyone know if it's possible to put \r\n characters in an attribute using WriteAttributeString, without them being escaped? Thanks in advance Ryan ...more >>

C Sharp Coding guide lines required
Posted by S B at 3/15/2004 8:26:02 AM
Hello I have just started working with c Sharp Can any body suggest me a good web site where I can find some cood coding practises or guidlines Thanks Srikanth ...more >>

Cast int to float
Posted by John Baro at 3/15/2004 7:03:51 AM
I have a query that returns an Int32 that I execute with Command.ExecuteScalar when I try (float)Command.ExecuteScalar it throws a Specified cast is not valid exception. When I try (float)(int)Command.ExecuteScalar it works. Why? TIA JB ...more >>

Windows Form inheritance problem
Posted by stevenxwang NO[at]SPAM hotmail.com at 3/15/2004 6:54:12 AM
Hi Everyone, I have a problem when I tried to inherit a form from a base form. I did as follows: 1. Created a based form with 2 private controls and one protected control. BasedForm is inherited from Windows.Forms. 2. Build the solution 3. Create a derived form by using "A...more >>

Impersonation and LinkLabels result in SecurityException
Posted by jmaanine NO[at]SPAM paju.oulu.fi at 3/15/2004 5:58:15 AM
Hello, we have an app developed with VS.NET and C#. The user interface has a login-screen, which performs login and impersonation of given Windows-user. The impersonation token is created with a P/Invoke on ::LogonUser() and the actual impersonation is accomplished by .NET framework's Windows...more >>

Hardware requirements
Posted by Paul K at 3/15/2004 4:16:05 AM
I know this may sound like a stupid question, but could anyone suggest methods for determining hardware requirements (such as cpu, ram, etc) for an application Any help would be greatly appreciated Paul K...more >>

Snap To Grid
Posted by John Baro at 3/15/2004 2:36:48 AM
Tools >> Options >> Windows Forms Designer >> General >> Snap To Grid What does this do? What does Show Grid do under the same path? What does the SnapToGrid property of containercontrols do? I cannot see them doing anything. Arggggghhhhh. TIA JB Today was a good day I didnt have to u...more >>

FileListBox
Posted by Ismail Rajput at 3/15/2004 1:54:14 AM
Consider Visual Studio Dot Net Why fileListBox does not have filecount method available?If it is really not available then what can be the other way to count number of files in a filelistbox? ...more >>

Error: Unable to Start Debugging on the Web Server
Posted by Peter N Roth at 3/15/2004 12:07:49 AM
My Hello world app works, but the debugger doesnt attach to the process automatically on my local development machine (standalone processor). I can attach to the aspnet.exe process and debug the app, but i'd like to avoid that step. I've verified all the 'Things to Check', and reinstalled II...more >>

Convert a dataset to an array
Posted by Alvin Bruney [MVP] at 3/15/2004 12:02:05 AM
Surely, there must exist an elegant way to flatten a dataset into a 1D array. I cannot believe that the only way accomplish this is to loop thru the rows in the dataset. Yuck!!! This is what i tried DataSet ds = loadData(); ds.Tables[0].Rows.CopyTo(str,0); //bombout here next... DataC...more >>


DevelopmentNow Blog