Groups | Blog | Home


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# > september 2004 > threads for thursday september 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

Anyone have a mean, median, mode, stddev routines in C#??
Posted by Drebin at 9/23/2004 11:58:11 PM
I'm looking for mean, median, mode and standard deviation - maybe a couple methods that take in an array of floats or something?? Thanks much! ...more >>

File List - Obtain Icons
Posted by ASP .NET Newbie at 9/23/2004 10:50:27 PM
Hi everyone, What is the best method in C# to get the associated icon for a file? I've seen several different ways of doing this but they are all confusing to me. Basically, I am doing a search of a directory to get all files in a folder and display them in a list view (somewhere around...more >>

CAS? When to use it
Posted by Chad Myers at 9/23/2004 10:49:34 PM
Before I spend a lot of time reading about something I might not need to use/worry about, can someone give me the 5 second take on CAS? In general, when do I need to worry about it (what type of apps in what types of environments)? I'm writing a data access API for a proprietary system. We'...more >>

A good start to learn IL and using ILDASM - any help?
Posted by Chua Wen Ching at 9/23/2004 10:39:03 PM
Hi, Is there any place that i can learn the basics of IL and using ILDASM. I saw the internet but there is not much to see and read. Maybe i didn't search deep enough. I prefer if someone can recommend me some URL than book recommendations if possible. Thanks :) Yeah, i want to ...more >>

Why Rotor?
Posted by Chua Wen Ching at 9/23/2004 10:35:03 PM
Hi there, I had some questions in mind. Why rotor if there is already .NET Framework? Is it rotor allows us to see some source code part of .NET implementation? If it is, we can use reflector to see the source code for .net framework right? Any help? Thanks. -- Regards, Chua W...more >>

doubt
Posted by (nallamalah NO[at]SPAM rediffmail.com) at 9/23/2004 9:58:31 PM
how to decalre arraylists in csharp i gave it like this iam getting error using System; using System.Collections; public class aldemo { static void Main() { Arraylist al=new Arraylist; al.add("v1"); al.add("v2"); al.add("v3"); Console.WriteLine(al[2]); ...more >>

Localization using .Net
Posted by Smitha Ghatke via .NET 247 at 9/23/2004 9:58:17 PM
(Type your message here) -------------------------------- From: Smitha Ghatke Hi, I am having an application design using ASP=2ENet,This Application= has many control for eg name in english,Name in= Japanese,Adddress so on=2E Now i want to Accept the Name in= English and Japanese Languag...more >>

How asign deferent contex menu to deferent treenode
Posted by Sergey Romanov at 9/23/2004 9:31:04 PM
I have app like Computer Managment app. on windows. I have everithing in tree. I whant deferent context menu appear on deferent treenode items. How can I do this?...more >>



Accessing function and elements from one form on other
Posted by Sergey Romanov at 9/23/2004 9:23:02 PM
I have two window app. I have Tree in main window and in code of that window I have function BuildTree(); This function start with tree.Clear(); So it completely rebuild tree. When I open other window as dialog after clicking on `Save` button I whant call BuildTree() function. Sorry, I am jus ...more >>

Calling parent class?
Posted by NOSPAM at 9/23/2004 8:34:35 PM
I have a question on calling parent class... What I want to do is: when calling the derived class, it automatically executes the parent's method, is it possible? // main code: Derived d = new Derived(); d.SomeMethod(); public class Base { public virtual void SomeMethod() { ...more >>

Development of a scalable server
Posted by Jonas Hei at 9/23/2004 7:23:40 PM
I need to develop a server application which would listen for UDP messages (on a certain port, say 8464) and process each message (which entails storing that data in the database) and then respond to it (via a UDP message - sent to the client which sent the original message). The server ...more >>

GetAdaptersAddresses in C#
Posted by James Jenkins at 9/23/2004 7:18:50 PM
Hi - Does anyone know what GetAdaptersAddresses function looks like in C#. I am having problems converting from C++ - thanks James ...more >>

Embedded resource suggestions?
Posted by Kyle Kaitan at 9/23/2004 7:17:21 PM
I have an assembly (AppResources.dll) which contains a number of embedded resource files. Most of these are key/value pairs of relevant strings; a few are images and sounds; some more are XML files. My application will load the resources into memory as they are needed. I would like to be able ...more >>

How to initialize application in a different thread?
Posted by Julia at 9/23/2004 7:06:44 PM
Hi, My application need to do some initialization before it can be used I want to display a form with the status of initialization for example: "connection to data base..." "loading settings....." "registering user..." etc... I am thinking about using Thread.QueueUserWorkItem to run ...more >>

Drawing (not paint) control
Posted by Tom Hornyak at 9/23/2004 6:57:49 PM
I need to do the following in C#: 1. Drop an arbitrary image from one control to another bitmap on another control. 2. Interact with this shape (stretch it, rotate it, etc,) once on the bitmap. Really I want a poor man's Visio 2003 drawing control. Any example, commercial, or open sourc...more >>

Declaritive syncronization thoughts...
Posted by William Stacey [MVP] at 9/23/2004 6:43:31 PM
What if we had some kind on declarative synchronization where you could declare, in declaration section, different lock sets for your invariant? Something like: public class MyClass { lock(sync1) // All three vars protected by same lock declaratively (via internal object named sync1).....more >>

QuickInfo method description
Posted by Relaxin at 9/23/2004 6:42:49 PM
How do you add a comment description to your functions and properties so that they will show up when you use the Intellisense QuickInfo or member list? I've tried regular C++ comments but that didn't work. ex. //Dump test function void MyFunc(int value) { .... } I've also tried regular...more >>

How to documents APIs like javadoc?
Posted by GoodMorningSky at 9/23/2004 6:14:31 PM
In java I can make documentation of all API I created. In C#, there is tags such as <summary> for documentation. However I don't know the tool like java tool. How to do so? Thank you. ...more >>

Explaination: Window Code
Posted by Steve B. at 9/23/2004 5:27:02 PM
In the following code snipet, what does this code do? Where does it return a bool to... OS? Does it import a User32.dll library? The code is part of creating a singleton [tempate] instance of an appication. The complete code is located at http://www.c-sharpcorner.com/FAQ/Create1Instance...more >>

Looping through a Datatable.
Posted by Ryan Ternier at 9/23/2004 5:09:43 PM
I gota scoot here so I gota make it quick :) I'm doing a conversion from 2 different databases (2 different software versions) I have each table stored in a Datatable, and I'm going to append the columns from V1 that I need to the V2 table. After creating the tables (works 100%) i run thi...more >>

Loading Dll assemblies at runtime
Posted by JH at 9/23/2004 2:53:41 PM
Is it possible to load an assembly at runtime using reflection where the dll does not have a strong name and is not in the GAC? If not, is it possible to put an assembly into the GAC without a strong name? I'm using the code below (which fails on the load as it needs an assembly name not a ...more >>

how to make system independent exe. files in C#
Posted by Muaz Farooq at 9/23/2004 2:51:03 PM
hi every one, can anybody tell me how can i make system independent exe. file of my project which can run on any computer even those which don't have .Net installed on them...more >>

Point like designer
Posted by Tamir Khason at 9/23/2004 2:35:34 PM
Question when I'm using property of Point (or Size) type in User Control. In design time while adding the control you can edit X,Y each one. I want to create my own struct like point to be able to appears as point in designer. In my case I can see only ReadOnly "10x10" in Properties view whil...more >>

Who has used the IE WebBrowser Control?
Posted by clintonG at 9/23/2004 1:38:38 PM
I'd like to know if it is possible to reuse the WebBrowser control in a page? The idea being the retrieval of your.homepage that can then be converted to an image displayed in my.homepage where my.homepage would also include other content. -- <%= Clinton Gallagher, "Twice the Results -- H...more >>

[REPOST] Using CDO from C#
Posted by Noonan, Derek at 9/23/2004 1:25:31 PM
Hi all, I'm reposting this, as I feel that it may have got buried. If anyone can help me then I'd really appreciate it... I am trying to read information from the GAL using C#. I am able to return a list of all the addresses and names, however, when I walk through each address I cannot acc...more >>

utilizing unmanaged C++ library
Posted by SteveK at 9/23/2004 12:44:27 PM
Hi- I know this is common topic, but I don't intend to ask you guys "how" but rather "Where can I find samples or tutorials that actually compile??" ;) I have been attempting to educate myself on this topic for awhile and 3 attempts to download source code and compile have yielded nothing. ...more >>

In need of variable-speed Audio playback in ASP/C#
Posted by Brett Hofer at 9/23/2004 12:37:08 PM
Does anyone know of a good component for audio(.WAV) playback that supports double-speed/normal/half-speed? I need to provide this control in an .aspx page and control it using C#. I have tried using the DirectX playback but it is very limited and doesn't support variable speed from what I ha...more >>

how to read a website
Posted by axis at 9/23/2004 12:22:56 PM
I want to do a very simple thing -- hit a website and retrieve the html it gives me (in C#). I have to admit I'm a little lost within the MSDN documentation. The best I can figure is I should use HttpWebRequest.Create(URL) to being setting up the connection, but I don't know where to go from...more >>

DateTime issue
Posted by Pete W at 9/23/2004 12:11:15 PM
microsoft outlook example is // Set the criteria for the Date fields. sCriteria = "[Start] <= '09/01/2002 08:00 AM' and [End] >= '2/15/2002 08:00 PM'"; my code is as follows where dt=DateTime.Now.Subtract(new TimeSpan(14,0,0,0,0)): string Filter = "[To] = 'blahblah.co.uk' and [...more >>

Object.GetType - how to call correctly
Posted by Yan.Vinogradov NO[at]SPAM Marconi.com at 9/23/2004 11:50:01 AM
Hi, Turns out it's possible to spoof another type with Object.GetType method. If you do this: namespace N { class C { public new Type GetType() { return (String.Empty.GetType()); } } } and then somewhere in the code you do: C c = new C(); Console.WriteLine(c.Get...more >>

TabControl.TabPages.Add giving error Index outside bounds of the array
Posted by Joe at 9/23/2004 11:33:57 AM
This is a weird problem. when doing trying to add a tabpage to a tabcontrol I get an error: Index was outside the bounds of the array. Now this only happens when I call a function from within a callback for an Async webmethod call. My guess is that it has something to do with the threads ...more >>

.dll startup path
Posted by kids_pro at 9/23/2004 11:25:32 AM
Hi there, I develop a small .dll file. When I deploy the dll I also attach a xsd file in the same folder. I try to load the xsd file from the client code (window form) but I don't know how to start it give me the wrong path. I am not sure which namespace can give me the method to get the pa...more >>

How to Add ListView control as Row of Window Form DataGrid
Posted by TusharP at 9/23/2004 11:15:10 AM
Hi Friends, How to add ListView as a row of DataGrid (Window Form DataGrid.) Please help me.... Thanking You TusharP. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.766 / Virus Database: 513 - Release Date: 17-Sep-0...more >>

strongly typed collection -- sort in a DataGrid
Posted by Mark at 9/23/2004 10:45:17 AM
Assume you have a strongly typed collection of a class called Person. The strongly typed collection implements IEnumerable so it can be databound to a server control like a DataGrid. The Person class has several public properties like FirstName, LastName, and Gender. What steps would it take ...more >>

regex help
Posted by Sunny at 9/23/2004 10:37:17 AM
Hi, I know that this is not the very right group, but I can not find better, and I have seen a lot of regex experts to answer, so I'll give a shot: Lets have this string: "<table name='xxx'><br>\nMY_TEXT\n<\table><p>" please note the new line characters. So, using a regex like: "</?tab...more >>

C# Ftp client
Posted by Boris at 9/23/2004 10:36:44 AM
I am trying to develop C# ftp client to upload files to remote host. Whenever, I execute System.Net.Sockets.Socket.Connect method, .Net Framework raises the following exception Request for the permission of type System.Net.SocketPermission, System, Version=1.0.5000.0, Culture=neutral, Publi...more >>

Mixed mode COM issues
Posted by andrew lowe at 9/23/2004 10:24:49 AM
Hi, Sorry for posting this in C# group as well as C++, but i'm desperate for some guidance.... I want to create a mixed mode C++ dll that calls a COM object and returns a managed string. I use the following steps but still get errors: Created a new C++ .Net Class library project Add the ...more >>

Adding custom property to Form
Posted by Michiel at 9/23/2004 10:13:29 AM
Hello, Can anyone tell me how I can add a custom property to a Form, so that it is visible in the designer ? I tried [ Category("MyCategory"), Description("Description"), Browsable(true) ] public int MyProperty { get { return m_MyProperty; } set { m_MyProperty = value; Invalidate...more >>

cannot create correct DateTime
Posted by Mark Broadbent at 9/23/2004 10:07:59 AM
why does this code not work for me DateTime dt = new DateTime(2000,10,1); Looking in Locals a date of 1/1/1 is created?? According to the overloaded constructor DateTime(int year, int month, int day) should work. Br, Mark. ...more >>

Problem setting up security policies
Posted by Dante at 9/23/2004 9:35:22 AM
I have written a small app that adjusts the security policy of .NET to allow an app to run from a specific website. The application works fine. I have upgraded recently from .NET framework 1.0 to 1.1. The problem is that my application updates the security policy under the old version of the f...more >>

Read from the Device Manager
Posted by donler at 9/23/2004 9:31:15 AM
Does anyone know how to read from the Device Manager. I would like to get a list of all devices and if possible, get some information about each device. thx much ...more >>

Storing a Text File as an Embedded Resource
Posted by Bruce at 9/23/2004 9:29:37 AM
I would like to store a text file as an embedded resource, and then at runtime read it in as if it were a text file on the hard drive. Is this possible? --Bruce ...more >>

enum <name> : int {} - requires cast to int??
Posted by SteveK at 9/23/2004 8:50:06 AM
I'm getting the error: "Cannot implicitly convert type 'MovesDBMigrate.MotionNameElementTypes' to 'int'" for this line of code: m_nameElementTableNames[MotionNameElementTypes.Character] = "Tbl_NameCharacters"; Of course if I cast int to it, then it compiles, but if I have declared the en...more >>

Class structure
Posted by MicroMoth at 9/23/2004 8:47:04 AM
I am writing a class which connects to a database, then runs a stored procedure and returns the results in a dataset. Now I am quiet new to C#, and I was wondering is it better to create my database connection within a constructor (of which I have 3) or create the connection out side the con...more >>

Datagrid Parent/Child relationships???
Posted by Darryn Ross at 9/23/2004 8:36:31 AM
Hi, How do i get my datagrid to display the contents of two related tables setup in my access database, so i can see the plus/minus sign to expand retract the Child details? Regards Darryn ...more >>

Case-sensitive file name returned from FileSystemWatcher?
Posted by David Meier at 9/23/2004 8:05:03 AM
Hi all, I know, windows does not care about cases in file names, however, I need to get the file name returned from the FileSystemWatcher case sensitive. Does anyone know a workaround to this bug (at least that's what I think)? Thanks. Dave...more >>

How to Store Treeview data into dataset
Posted by http://www.visual-basic-data-mining.net/forum at 9/23/2004 7:45:42 AM
Hello, I am working on Treeview control. I want that, user create tree according to his requirement, can add topic under any node. Then just click update and that treeview data to be stored in MSAccess database. I already created how can he build tree but now unable to store tree data into da...more >>

Parsing Names for From Flags Enumerated Value, removing Spaces
Posted by Mike in Paradise at 9/23/2004 7:09:05 AM
Is there a more effcient way of removing the spaces from the names for a Enumerated value that has several values when you split it)??? When you do a toString it puts ,<SPACE> between the entries eg. category.ToString() = "cat1, cat2, cat3" What I am currently doing..(and I use this a lot...more >>

Zip Libraries in Framework 1.1
Posted by BuddyWork at 9/23/2004 6:55:23 AM
Hello, Are there a class within the Framework that support zip which Microsoft has written? I'm aware of the open source SharpLibZip. Thanks...more >>

Decode Chinese Character From UTF-7 Data
Posted by Alex Chan at 9/23/2004 6:47:44 AM
Hi group, I am writing a RFC Server with SAP.NET Connector to connect to SAP. There are chinese characters passing back and forth. I found that all chinese characters sending from SAP are encoded with UTF-7. In order to let SAP display chinese characters correctly, i also need to enc...more >>

C# transactions v SQL transactions
Posted by Mike P at 9/23/2004 6:44:40 AM
I've been using C# transactions for a while and had no problems with them. Using try catch blocks I can trap basically all possible errors and rollback all necessary data. Over the last few days I've been trying to convert some of this code to SQL Server stored procedures, but it seems to lac...more >>

FileSystemWatcher
Posted by [Yosi] at 9/23/2004 6:09:02 AM
How can I get the user name who change the folder? I want also to know who mad the changs. myWatcher = new FileSystemWatcher(DirPath); myWatcher.EnableRaisingEvents = true; myWatcher.IncludeSubdirectories = true; myWatcher.Created += new FileSystemEventHandler(myWatcher_Created); myWatcher.C...more >>

C#: method with ref-to-object argument declared
Posted by Alexander Fedin at 9/23/2004 5:49:07 AM
Guys, I 've met some strange behaviour of the C# compiler. To reproduce it please try to compile the code below and you 'll be really amazed. The problem is that you can not use an interface pointer variable as a ref-to-object parameter. interface IMy { void f(); } public class My :...more >>

Process for IE opens not under Win2K
Posted by Matthias Kwiedor at 9/23/2004 5:21:58 AM
Hello! I wan't to open a Internet Explorer from C#. For this i read the Registry Settings (to check the default Browser - won't do this just without that) string strFilename = "c:\Program Files\Internet Explorer\iexplore.exe"; string strArguments = "http://www.google.com/"; Process Exter...more >>

How to establish a setup project including windows service project(s)?
Posted by Daniel Xiao at 9/23/2004 5:15:40 AM
I intend to establish a setup project including one or multiple windows service project(s). The outcome package should be SELF-INSTALLABLE on a separate Windows 2003 PC. How to do? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded...more >>

executereader fails with sqlclient
Posted by a NO[at]SPAM b.com at 9/23/2004 4:41:29 AM
i have the following code: SqlConnection con = new SqlConnection("server=myserver;database=myDB;uid=aa;password=aa;"); SqlCommand cmd = new SqlCommand(SQL, con); con.Open(); dgResults.DataSource = cmd.ExecuteReader(); dgResults.DataBind(); This uses SqlClient and fails on the executere...more >>

Windows shutdown hanging - Getting desperate!
Posted by David Meier at 9/23/2004 4:39:01 AM
I have an application running in the background, visible only by a notify icon in the system tray. I learned from other posts to catch the WM_QUERYENDSESSION and WM_ENDSESSION messages. Now, when I want to shutdown/restart the computer the application exits but the shutdown process does not ...more >>

Problem with Regular Expressions in .NET
Posted by morpheus0180 NO[at]SPAM hotmail.com at 9/23/2004 4:10:45 AM
Hi, I'm using regular expressions to extract some information from my vb.net source code files. I have something like this: 1: '<class name="xyz" description="xxxxxx"/> 2: Class xyz ... other lines of code ... y: End Class I want to extract with regular expression a string th...more >>

How to establish a setup project including windows service project
Posted by moonriver at 9/23/2004 3:27:03 AM
I intend to establish a setup project including one or multiple windows service project(s). The outcome package should be SELF-INSTALLABLE on a separate Windows 2003 PC. How to do?...more >>

DataReader into object..
Posted by Josema at 9/23/2004 3:19:02 AM
Hi to all. I have a DataReader that its associated with a connection. My query has results, and i have a class with the same fields name than the table in the database... I would like to know what its the best way to fill the properties of my object with a datareader. Thanks. ...more >>

IE Toolbar/Deskbadn development
Posted by Adnan Siddiqi at 9/23/2004 2:44:24 AM
Hello All I have just joined this group,i found many example of development of IE toolbar or deskband but found noone in C# i am not a core C++ programmer so examples in ATL WTL are difficult to understand, if anyone can guide me a tutorial or sample for deskband development in C#,i will...more >>

Problem to set the right Time of a File
Posted by tbb NO[at]SPAM uni.de at 9/23/2004 2:31:26 AM
Hi i have a big proglem. I want to set the last write time of a file. i try it over the FileInfo object and the File.SetLastWriteTime method but i have allways a difference of one more second ! i am going mad! it is important for me because i want to synchronise files. i compare...more >>

scrolling datagrid
Posted by Hans [DiaGraphIT] at 9/23/2004 2:21:02 AM
how can I keep track of the first visble line in my datagrid when I drag the vertical scrollbar up or down? To clairfy my need... An example: I wish to set CurrentRowIndex to be the first visible row in my datagrid while I drag the vertical scrollbar. Should I combine an MouseDown e...more >>

ThreadPool or BeginInvoke()?
Posted by fred at 9/23/2004 2:20:00 AM
I'm writing an application invoking asynchon methods. I envision using the .NET thread pool since it matches well my needs. There is (at least) 2 methods to do that: using ThreadPool class directely or using the BeginInvoke () of a delegate. Does anybody knows any advantages from one me...more >>

Windows Forms
Posted by Bim mecci via .NET 247 at 9/23/2004 2:15:16 AM
I have a window (call X) whose Form Border Style is set to Fixed= single and its Maximum size is set to (378, 484 )=2EIts Maximize= property is set to false=2EIts MdiParent is set to a Main Mdi= Form(CALL M)=2E There is another window(Call Y) whose MdiParent is also set to= the Main Mdi F...more >>

Problem in Datagrid
Posted by umesh garnaik via .NET 247 at 9/23/2004 2:01:53 AM
(Type your message here) -------------------------------- From: umesh prasad garnaik Dear I have a datagrid which contains records. I have a select column, when i select it corresponding items should display in the textbox For that i had write the code but not working. protected vo...more >>

Drawing Graph Pie/Bar/Trendline
Posted by Anupam Soni CMC Ltd. at 9/23/2004 1:39:02 AM
Hi All, I have drawn Pie/Bar using some values now I want to capture any segment of Pie or Block of Bar graph if user click on that area. Plz suggest how can I do that . I have to show trendline of that particular segment in new form . Plz help me .... Thanks&Regards Anupam ...more >>

C# & ABC File of FileMaker Pro
Posted by leo at 9/23/2004 12:27:42 AM
Hi ! I would like to know if there is a class or a library or something else allowing C# to read in a ABC File ( the database file of the exe generated by filemaker pro ) tank you ...more >>

Database Project
Posted by Greg Horwood at 9/23/2004 12:25:01 AM
Dear All, I have been convinced by many that C# is the most appropriate platform to transform my tiried old Access 2000 applications into a fully fledge seventh wonder of the world, some of them graduating to MSSQL. My question (Before I go and learn a new language - VC++ is my usual): Is ...more >>


DevelopmentNow Blog