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# > august 2004 > threads for wednesday august 4

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 fill a TreeView ?
Posted by Ian Powell at 8/4/2004 11:40:57 PM
Hi I've got objects in an sorted ArrayList like: P:\ P:\\DOCS P:\\i386 P:\\i386\ASMS P:\\i386\ASMS\1000 P:\\i386\ASMS\1000\MSFT P:\\i386\ASMS\1000\MSFT\WINDOWS P:\\i386\ASMS\1000\MSFT\WINDOWS\GDIPLUS P:\\i386\ASMS\5100 P:\\i386\ASMS\5100\MSFT P:\\i386\ASMS\5100\MSFT\WINDOWS P:\\i386...more >>


Format String: Hundredth of a second
Posted by Özgür Aytekin at 8/4/2004 9:54:42 PM
How can I display the hundredth of a second or which is the correct format string? I use now {0:yyyy-MM-dd HH:mm:ss} and this display the following information: 2004-08-04 21:49:21... But I want to display the hundredth of a second too... Regards, Özgür Aytekin (MCSD .NET, MCDBA) ...more >>

What documentation processes to people use?
Posted by Peter Rilling at 8/4/2004 9:25:25 PM
I am trying to improve the documentation process at the company I work for. I would like to ask how others have their process. I have discovered the DocBook schema, but am wondering if there are other processes that people use. What tools and schemas are .NET compatible that might be able to be...more >>

Exceptions
Posted by pnp at 8/4/2004 8:51:07 PM
Is there a way to know if an exception is thrown from an object without the use of try-catch blocks? For example with the use of events? Thanks in advance, pnp ...more >>

Random number is C#
Posted by Maziar Aflatoun at 8/4/2004 8:25:52 PM
Hi everyone, I have the following code in my class method TheSeed = (int)DateTime.Now.Ticks; Random rndNum = new Random(TheSeed); RandNum = rndNum.Next(0, TotalRows); Debug.WriteLine("RandNum:" + RandNum + " Low:0 " + "High:" + TotalRows); My page gets called everytime and t...more >>

Call OSQL Command
Posted by Tiago Costa at 8/4/2004 7:56:15 PM
I want to call a OSQL command to BackUp my data base, how can i call it from Visual Studio (C#) 2003. Thanks In Advance, Tiago Costa ...more >>

Including Assmebler code into CSharp???
Posted by deangelo2 NO[at]SPAM nortel.com at 8/4/2004 7:48:58 PM
Is it possible to include assembler code into CSharp? If yes, could someone give me an example? Joe ...more >>

Managed DirectX9 and AudioVideoPlayer namespace - help required
Posted by The Real Andy at 8/4/2004 7:44:26 PM
This is probably not the most relevant NG for this topic, but if someone could point me to a more relevant NG I would be forever grateful. I am having some issues with the Managed DirectX AudioVideoPlayer namespace. All I am trying to do is play a video file on a secondary video device in ful...more >>



How to create assemblies with cyclic dependency?
Posted by Alex Sedow at 8/4/2004 7:19:47 PM
For example, System.dll contains assembly reference to System.XML.dll, System.XML.dll refers to System.dll. Some another open projects contain cyclic assembly dependencies too. How C# compiler may do that? Alex. ...more >>

Is it possible to create an OCX & how?
Posted by Sammut at 8/4/2004 7:18:02 PM

Image in a Panel
Posted by Alberto at 8/4/2004 7:15:51 PM
I have an image loaded in a panel and I was trying to make a zoom on it. I still doesn't know how to do it but I was trying to access to the image loaded in the panel. Could you help me? Thank you. ...more >>

How do I convert from iso-8859-1 to utf-8 (bom)?
Posted by Du Dang at 8/4/2004 6:11:21 PM
I tried to convert a block of text from iso-8859-1 to utf-8 but all I got after the convertion is gibberish. =============================== FileStream fs = File.Open("text.txt", FileMode.Open, FileAccess.Read); byte[] b = new byte[length]; fs.Read(b, 0, length); b = Encoding.Convert(Enc...more >>

Activator.CreateInstance for new Array Element. Type Problem
Posted by fpleyer76 NO[at]SPAM gmx-dot-de.no-spam.invalid at 8/4/2004 6:02:46 PM
Hi, I got the following problem : I have an defined an Array of different Actions: public PRootActions[] AllActions = new PRootActions [10]; I got a dynamic method where all Actions or other things like Materials are loaded from a Database to my Actions or Materials Array: public vo...more >>

Open diskpartition
Posted by Yves Dhondt at 8/4/2004 5:36:39 PM
Something went wrong with my previous post, so this is the full question : Hello, in the past I used the CreateFile, ReadFile and WriteFile api to access a diskpartition directly (e.g. "\\.\c:") to read raw sectors. I was planning on converting some of those old c++ classes to c#. However ...more >>

Load an image
Posted by Alberto at 8/4/2004 5:26:00 PM
I'm trying to load an image and show it on a panel control. The code is this: private void btnCargarImagen_Click(object sender, System.EventArgs e) { openFileDialog1.InitialDirectory = Directory.GetCurrentDirectory(); if (openFileDialog1.ShowDialog() == DialogResult.OK) { Imag...more >>

Algorithm problem
Posted by Tracey at 8/4/2004 5:05:02 PM
I have an algorithm question and don't know how to do it nicely. Write a function to print nodes of binary tree, for each leaf node, print nodes from root node to leaf node. For example, the following binary tree has 4 leaf nodes. 30 25 36 39 40 10 64 The resulting of ...more >>

stepping through code that is late bound.
Posted by hazz at 8/4/2004 4:08:06 PM
how do I do this? I am certain my Visual Studio .NET solution allowed me to do this before but I don't know how the build/debug settings were configured. In order to get around an unavoidable circular reference constraint, Activator.CreateInstance was employed in the project. But now when I...more >>

read excel file
Posted by freddy at 8/4/2004 4:03:01 PM
to read excel files do I use ado.net or can I use streamreader (the system.io namespace) Thanks...more >>

integer division question
Posted by J.Marsch at 8/4/2004 3:47:58 PM
Suppose that I have an integer division problem, but I want the answer was a float. What's the cleanest syntax for that? Example: In this code, the variable z ends up == 0. And that is correct, because this is integer division and the values are trunc'd. No problem. But what's the most el...more >>

trimming string converted from byte[]
Posted by Rico at 8/4/2004 3:39:40 PM
In the following piece of code: ******************************************************* byte[] buffer = new byte[20]; string next_node=null, ret=null; ASCIIEncoding encoding = new ASCIIEncoding(); BufferedStream sr = new BufferedStream (new FileStream (nodeptr, FileMode.Open )); sr.Seek(6, S...more >>

Using COM+
Posted by Ing. Leandro Pérez Guió at 8/4/2004 3:27:27 PM
Hello people: I'm having trouble because i've a 3-tier App and i wanna use a COM+ component localizated in the 2-tier, in a Server called X. And then the question.... In VB.net exists a function called CreateObj and i could'nt find the equivalent in Csharp.net. Could any body help me? ...more >>

Creating a mini-cms
Posted by Dan Nash at 8/4/2004 3:13:01 PM
Hi guys Just after your thoughts really. I'm currently writing a site for my Dad, and want to enable him to work on the text for the site as I'm working on the code. What would you say is the best way of doing this? I thought about using the FSO to open files that he can write in Word. How is...more >>

[OOT] What is it with 247?
Posted by Morten Wennevik at 8/4/2004 2:36:49 PM
Every so often they seem to dump a bunch of messages to this news group. Or at least so until July 3rd. For a month there have been no posts. And no they dump a whole lot of them. ??? -- Happy coding! Morten Wennevik [C# MVP]...more >>

Attributes and constant expressions
Posted by Matthias Steinbart at 8/4/2004 2:02:43 PM
Hi there, I'm creating a class to be viewed in a property-grid control. I'm using the Browsable, Category, Description, etc. -Attributes to specify the display-behaviour of the class in the prop-grid Control. My problem is, I'd like to load the values for the DescriptionAttributes from a strin...more >>

Determining IIS version
Posted by Mike Schilling at 8/4/2004 1:56:28 PM
Is there any way, inside an ASP.NET application, to determine what version of IIS you're running in? (Or even if you're running in IIS; there was talk, some time ago, about porting ASP.NET to other web servers.) I've looked at the System.Web classes without finding a property or method that al...more >>

Screen shots
Posted by Wayne at 8/4/2004 1:52:11 PM
In a Delphi application I would use GetDC passing the handle of the window I wanted to capture, then with the handle and a caption I would be able to convert the image to a bitmap. I would like to be able to do this in C#/.net, but I don't know where to start. Can someone point me in the right...more >>

.Net 247 ??
Posted by Daniel Bass at 8/4/2004 1:35:46 PM
Anyone else notice the sudden surge accross a few of the newsgroups with people posting "via .Net 247"? So many messages I can't follow them... quite a lot of rubbish posts as well that contain statements irrelevant to anything. ...more >>

Shell sort for c#
Posted by spam NO[at]SPAM majnu.net at 8/4/2004 1:28:17 PM
Hi community, just in case somebody needs a shellsort in c#, I rewrote the pascal code that I found in another newsgroup. Here are both. For more explanation on the pascal code you can search for the post on google. I was interested in the shell sort because I needed to sort long lists of d...more >>

Problem printing contents of embbeded browser control.
Posted by SummitEMR at 8/4/2004 1:18:08 PM
I have a browser control embedded in my application and I just want to print the report it contains. Instead - it prints out a screen dump of the browser (scroll bars and everything). How do I do this? I have posted below where I've gotten so far. If you have lived through this, I would grea...more >>

How to find a network shared folder capacity?
Posted by AlirezaH at 8/4/2004 1:11:05 PM
How can I find the capacity of a remote computer hard disk when I have access to one of it's shared folders. I am using File.Move(source,destin); to copy some files. ...more >>

TreeView Nodes with a link
Posted by Susan at 8/4/2004 12:57:02 PM
I'm trying to create my own version of dynamic help. Does anyone know how to make a node a link to a html file?...more >>

ECMA-335: References to assemblies: AssemblyRef vs FileTable+ModuleRef
Posted by Alex Sedow at 8/4/2004 12:45:16 PM
In most cases references to other assembly are stored in table AssemblyRef. But System. EnterpriseServices.dll stores the reference on System. EnterpriseServices.Thunk.dll in tables ModuleRef and FileTable. And the reference to a file is stored in table FileTable with a flag 0x0000 - ContainsMet...more >>

C struct to C#
Posted by Andre Lourenco via .NET 247 at 8/4/2004 12:20:20 PM
Hi, I have a socket server that runs on digital unix true 64 (done in the old days) that receives structs and return structs. What i want is to communicate with it but in C#. My main problem his to map my c structs. QUESTION : How can i represen this (see below) struct in c#: struct myStruc...more >>

SMS Sdk??
Posted by Gianmaria at 8/4/2004 12:19:57 PM
Any SDK or free library to send and receive SMS on a device? some links of professional products? Regards, gianmaria ...more >>

Can't reference Object properties
Posted by Roger Maynard at 8/4/2004 12:12:30 PM
Hi - We're fairly new to C# - currently migrating from Visual Fox - Hoorah! Hopefully someone can point us in the right direction with this, issue I'm converting some low-level binary file read/write functions and am using the following These are held in a Class - let's say...more >>

Reinventing the Wheel (or ListDictionary)
Posted by Doug at 8/4/2004 11:58:14 AM
Not that I'd actually do this... but knowing the answer would give me a bit more understanding of the .NET Framework and the base class libraries - specifically how things work in relation to my own custom classes or libraries. We could use any of the framework's classes - but lets take, for e...more >>

Synchronizing files
Posted by JezB at 8/4/2004 11:57:07 AM
I want to synchronise files between directories as part of my .NET application. Ideally I'd like to invoke an XCOPY-like operation which copies only new and changed files from source to target. Is anything like this available as part of the framework ? If not how do I invoke a windows command fr...more >>

How to measure hard disk capacity?
Posted by AlirezaH at 8/4/2004 11:35:07 AM
How to measure hard disk capacity? ...more >>

Display the tables of a database
Posted by kscdavefl at 8/4/2004 11:27:04 AM
How do I display the tables of a database in a list box? Thanks, dave...more >>

foreach doesn't work with array of bools?
Posted by Joe Rattz at 8/4/2004 11:20:38 AM
Hmmm, I wrote the following code. I want an array of bools and I want to intialize them to false. bool[] bits = new bool[10]; foreach(bool bit in bits) { bit = false; } The compiler complains on the "bit = false;" stating th...more >>

splitter control
Posted by Richard at 8/4/2004 10:52:32 AM
How do I display a form next to a splitter control at run time? I have 3 Controls: TreeView (Dock left) Splitter (Dock left) Panel (Dock fill) At run time I want to be able to show another form next to the spitter control when I click on a node in the TreeView control. Any help will be ...more >>

Richedit Ocx
Posted by Ivan Sammut at 8/4/2004 10:41:55 AM
Hi, Has anyone ever created a Richedit Activex in c# which can share with me or give me any idea from where to get started. Thanks Ivan Sammut ...more >>

StatusBar message from MDI windows
Posted by John J. Hughes II at 8/4/2004 10:18:40 AM
I have an MDI application and would like to display messages to the status bar of he parent window. I am really not happy about putting a status bar on every MDI window and would prefer it to only be on the main window. I have written the below function but think there must be a better way, is...more >>

ReadOnly folder?
Posted by Patty O'Dors at 8/4/2004 9:27:03 AM
I'm trying to write a function that determines whether a directory can be written to, short of trying to create a file and catching the exception, is there any fancier way of doing it? I tried having a look at the FileIOPermission class in System.Security.Permissions, but it didn't seem to do it....more >>

global connection string
Posted by Mike P at 8/4/2004 8:41:56 AM
What is the equivalent of setting a global connection string in Web.Config in WinForms? 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 >>

Internet connection handling
Posted by alexandre jenny at 8/4/2004 8:29:57 AM
Hi, I'm trying to produce a robust ftp transfert system and I have to handle deconnection. It can occurs on both side (local or server). For local machine, I can check if there is a connection by using wininet api. But after ? How can I display the internet connection dialog box to restore ...more >>

Using LDAP Provider in C# to retrieve the First Name and Last Name
Posted by prasadkkn NO[at]SPAM hotmail.com at 8/4/2004 7:55:36 AM
I am using the C# DirectoryEntry class to retrieve the Properties of an user object in the Active Directory. I need to get the First Name and Last Name as properties. I know it is not supported with the ADSI NT Provider and only supported in the LDAP Provider. So given an UserId (UID) how can ...more >>

Understanding Cursors
Posted by Just Me at 8/4/2004 7:49:38 AM
I have a UserControl that contains a few controls on it. If when one of the buttons is clicked I want to, in the click event, set the cursor to Cursor = Cursors.WaitCursor I want the cursor to change everywhere on the UserControl. Do I have to loop over the UserControl's Control collectio...more >>

Please, ignore this
Posted by ignacio machin via .NET 247 at 8/4/2004 7:37:27 AM
(Type your message here) -------------------------------- From: ignacio machin Just a test from 247 ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>yIaLnXBj1kuHP3g0WTBL+Q==</Id>...more >>

Databinding to a function
Posted by Nic at 8/4/2004 6:53:03 AM
Hey, Is it possible to do a databinding to a function, not to a property. Ex. Object : Invoices - Invoice Each Invoice has a collection of payments (an invoice can be paied in pieces) - payment An invoice has also a function : getTotalPaid it returns a double. Now I have a datagrid ...more >>

Crystal Report binding with Dataview for runtime sorting
Posted by saima ashraf at 8/4/2004 6:44:42 AM
Hi, I am trying to sort the data in my crystal report at runtime. The problem is that i can only query the database once and that is at the loading of the report. At that time i fill up my dataset. Afterwards when the sorted data is required, i use the Dataview's sort method and sort the da...more >>

Getting window position from IntPtr window handle
Posted by csuor NO[at]SPAM fsmail.net at 8/4/2004 6:43:22 AM
Hi I am looking for a way in C# to use a IntPtr handle to a (possibly unmanaged) windows form to get the current position of the window on the desktop. I have tried using Form.FromHandle( handle ) but this does not work for non .NET windows. I am expecting to need to use SendMessage somewhe...more >>

Need to expose specific properties for controls in a collection
Posted by Stefan W via .NET 247 at 8/4/2004 6:36:19 AM
I'm relatively new to C#, (I have to use it, now that I've= inherited someone else's projects)=2E I'm looking for a way to= iterate through the controls on a form; if the control is of a= certain type, I want to set a property that is specific to that= control type=2E The problem I'm havin...more >>

Mouse Positioning
Posted by rohan ranade at 8/4/2004 4:01:03 AM
Hi I need help regarding the following: I need to position the mouse cursor to (100,100) when the user presses Alt + M in my WinForms Application. How do I do that? Thanks! Rohan Ranade...more >>

C# latest version?
Posted by Deanna Delapasse at 8/4/2004 3:13:07 AM
Can someone tell me how to get the latest version of C#? I've installed from the June 2004 dvd (69586-335-00000007-18273), but a coworker has a more recent C# (the last part of the version is 600 more than mine). I reinstalled and let it check for service packs on the internet and it didn't fi...more >>

EBCDIC Codepage file to Windows based file
Posted by Ram at 8/4/2004 1:07:02 AM
Dear All, Good Day I am trying to convert a file which is generated on AS400 with codepage 00420 (arabic & English data combination) with no success. But using the same code( and changing 20420 to 708) I am able to convert a file from codepage ASMO 708 to windows based file and it is perfect....more >>

Progress Control and IEAddress
Posted by James Kilner at 8/4/2004 12:43:03 AM
Does the progress bar control support smooth scrolling? I couldn't find a property to set the scrolling style. I'm creating a web browser and it is to be used for monitoring how much of the page has been downloaded. Is there an IEAddress object (some form of enhanced combo box) that works the s...more >>

no preprocessor directive ??
Posted by Marge Inoferror at 8/4/2004 12:37:04 AM
In C, I might do this: #define MAX_COLS 50; #define MAX_ROWS 10; In C# that seems to be an error! What's the best way of accomplishing the same thing? I tried this, but I don't know if this is the way to go: static const int maxCols = 50; static const int maxRows = 10; Thanks, M...more >>

How to retrieve a value in [TEXTAREA] in an aspx (add manually)
Posted by zoltix at 8/4/2004 12:18:06 AM
Hi, How to retrieve a value in [TEXTAREA] in an aspx page? Normally it is easy, drag and drops the textarea in aspx page and it is work. But in this case, I generate the html code manually () and put as literal html in the aspx page. How to do for retrieving the value in my textarea with...more >>

Passing 'this' to unmanaged code
Posted by tony lock at 8/4/2004 12:07:02 AM
I am trying to call an unmanaged dll from c#, the function is asyncronous and expects a callback function and a parameter which is labelled lpvoid but which expects the address of the calling object, which is then returned by the callback function. Using a delegate the call back function works perfe...more >>

how to send value from webForm to winForm(User Control)
Posted by dotnet at 8/4/2004 12:01:02 AM
i put the Downloading Control (window user control) using <object> tag in webForm. how to send selected file list in webfForm to win control without <param> ?...more >>


DevelopmentNow Blog