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 thursday april 8

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

Newbie question on casting String to Int
Posted by Danny Ni at 4/8/2004 11:54:29 PM
Hi, How do I cast a String to Int, I tried (int)strVar, no go. TIA ...more >>

Word Interop: Quickly Inserting HTML Files into Word Doc
Posted by ajk at 4/8/2004 10:50:50 PM
[This is a second post. My original did not include a reply address and I kinda need replies! I apologize for the breach in ettiquette]. Hi, All: I know how to insert files into a Word doc using C#. However, the program I've written to do this runs much too slowly. The "myObj".Application.S...more >>

processes in xp
Posted by cs at 4/8/2004 10:48:54 PM
is there an easy way to walk the process tree of winxp on .net? I dont mean the regular stuff u can do on the process class, but things like end process tree, or finding who is the parent of a process, etc. I am guessing its easily doable calling system dlls? ...more >>

mouse_hover
Posted by the thing at 4/8/2004 9:09:30 PM
Can it be quicker?? (i think that mouse must be held 1s over something to respond with event???) any ideas how to make things faster??? thanx!!! ...more >>

error CS0553: user-defined conversion to/from base class
Posted by bsa_bg NO[at]SPAM hotmail.com at 4/8/2004 7:43:41 PM
Hi, This maybe a stupid question for which I apologies, but I couldn't find a solutions so I'll ask. I'm a newbie and I'm trying to do the following: A have a base class called space that should accommodate all the common operation over a dimensional object - vector, vertex or matrix. ...more >>

threading & timers
Posted by Bad_Kid at 4/8/2004 7:08:33 PM
I would like to make a button and label. When button is clicked, label should hide, and then after 5s it must become visable again (without interfereing the normal program flow). I tryed with threads and timers but either is my proc usage 100% either all crashes... Please HELP!!! ...more >>

Compiler: static constructors and field init compilation order
Posted by Dave at 4/8/2004 7:03:28 PM
Hi everyone, Is it possible, using an Attribute or by some other means, to notify the C# Compiler to serialize all static field's that have initializers before code in an explicit static constructor? Example: public class MyClass { public static readonly int MyStaticField = 1; ...more >>

Populate a listbox after completely loading a form
Posted by Yakimo at 4/8/2004 6:29:31 PM
I have a very simple application, consisting of a form and a listbox on it. I would like automatically to populate the listbox after the form is loaded and displayed, not using a button. But if I put my code in Load event, the form is not shown until after the listbox is populated. Because popu...more >>



Reading TIFF file (low level)
Posted by Morten Nielsen at 4/8/2004 6:24:44 PM
Does anyone how any clue on how to read a TIFF file directly in a filestream? I know I can load the complete image into memory, but since this a 800+ mb image, I usually get a "Out of memory" error. Basically, all I have to do, is look up some certain pixel-values, so I would guess that its jus...more >>

Logging!!?
Posted by Netsharp Ninja at 4/8/2004 5:44:50 PM
What is the best of loggin in .NET I am used to use logging into a file with Java but I see many in .NET use event logging (Well I have not seen other techniques) From my old days(Client-Server) I am also aware of using Database for this purpose. Can you tell me if anybody cares about loggi...more >>

C# equivalent statement for vb "Like" statement?
Posted by Derrick at 4/8/2004 5:06:22 PM
Is there a C# "Like" statement for comparing two strings? if(stringA Like "%diabe%mel%) do stuff... Thanks in advance! Derrick ...more >>

InputBox for C#???
Posted by Bill Todd at 4/8/2004 5:04:52 PM
Is there an equivalent to the VB InputBox function for C#? I am looking for something in the FCL that will let me prompt the user for a single string value. -- Bill...more >>

SQL script file and executing it
Posted by Jason at 4/8/2004 4:48:13 PM
Hi I would like to create a .NET app that can receive an SQL script file as input. it will take the script file and execute it on the database, depending on what connection properties were entered by the user. best way? Thanks Jason ...more >>

Threads & dlls
Posted by db_From_mn at 4/8/2004 4:15:10 PM
My C# application interfaces with a dll (which I create) in un-managed code. This dll is an API to a USB-device. I'd like to create a thread in the dll to manage the device. I've tried this, but can't get the thread function to run. The CreateThread function seem to work ok, but the functio...more >>

Print Preview word document
Posted by Marius Eichler at 4/8/2004 4:01:04 PM
hi there, I'll view my word document in any art of kind, before I print this. The most example are generate simple any text or read from a text file. The Word COM object starts the view and the word program. I'll need only the view for the Word document. Can anybody help me please ? Th...more >>

Ridicilous!
Posted by Ayende Rahien at 4/8/2004 3:54:15 PM
<rant warning="I'm pissed off and have to vent" request="need help> For the last couple of hours I'm struggling with a very *annoying* problem. How to check if a user has a write access to a file? Considerring that .Net is supposed to be a system for writing applications for servers & clients, w...more >>

Why doesn't the slightest change to a Hello World program run?
Posted by Bupkas at 4/8/2004 3:31:14 PM
using System.Windows.Forms; class MessageBoxHelloWorld { public static void Main() { MessageBox.Show("Hello, world!", "MessageBoxHelloWorld"); // Runs ok MessageBox.Show("Hello, world!", "MessageBoxHelloWorld", MessageBoxButtons.Abort); // Doesn't compile } } ...more >>

Framework 1.1 SDK upadte is not recognized by VS 2002
Posted by Teis Draiby at 4/8/2004 3:19:50 PM
In order to apply Win XP styles to my program layout I wanted to use the 'Application.EnableVisualStyles()' method available in NET Framework 1.1. I have now installed .NET Framework 1.1 Redistributable and .NET Framework 1.1 in that order. But my Visual Studio 2002 does not reflect these chan...more >>

How can I do this with FileSystemWatcher
Posted by R.A. at 4/8/2004 3:19:41 PM
Hi I have th following code: class MyClass { private string filename; public int SetInfo (string FileName) { filename = FileName; } public MyClass () { FileWatcher = new FileSystemWatcher (); FileWatcher.NotifyFilter = NotifyFilters.FileName; FileWatcher....more >>

Blue Screen when data is transferred - help
Posted by shmulik28 NO[at]SPAM yahoo.com at 4/8/2004 2:15:43 PM
I have an application written in C# that creates a queue of items to process, connects via a TCP connection to a server on a Unix box, and then passes data files to the Unix box for processing (cluster) - normally this works fine. However, on the front end, another Unix system generates and tra...more >>

Algorythm to delete all files under a directory and subs based on wildcard
Posted by Earl Teigrob at 4/8/2004 1:55:57 PM
Does someone have or know of an algorythm (method) that will delete all files under a give directory and its subdirectories based on a wildcard mask? I can use this for one directory for each file in Directory.GetFiles("pic1.*") file.Delete() but will need to use a recursive algo...more >>

controlling electric circuit
Posted by Thomas Jollans at 4/8/2004 1:06:38 PM
Is it possible to controll an electric circuit connected to the pc via a com or lpt port from c#? (1. I want to stick two wires into the back of my pc and "connect" them via software; 2. I want to send electricity with a specific voltage through one of them to see if they are connected on th...more >>

Using Excell in C# OleDbException on connection.Open
Posted by milesm at 4/8/2004 12:57:26 PM
I have the following error that errors on "conn.Open()"..... An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll CODE //set the data file to be read from string workbook = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=postingRepor...more >>

how to set user to ASPNET back for db connections??
Posted by raid NO[at]SPAM boystown.org at 4/8/2004 12:55:23 PM
Hi, This might be a very simple one but I havn't been able to get it working. I have Impersonate to be ON in web.config file. I have sections of application that impersonate as someone other and accesses parts of codes. When I provide a database user name and password and access the database...more >>

Printing HTML from C#
Posted by Kamal at 4/8/2004 12:43:54 PM
Hi everyone, anyone knows how to print a html file locally storted from a C# application?! it's urgent,, any idea, examples, links would be very much appreciated .. hope to hear from you asap... Thank you in advance.. Regards, Kam ...more >>

late binding
Posted by Roel at 4/8/2004 12:40:53 PM
Hello I try to create an object with late binding. I must create an A object or a B object. That depends on what the user choses in the GUI. Here you can see how I try to do it but it will not work. Does anybody knows how to program this structure ?? Many thx !! object myObject; if (S...more >>

SELECT TOP query - in datatables
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 4/8/2004 12:37:18 PM
Is a SELECT TOP query allowed in filtering rows from a datatable? If it is not, is there any other easy way to filter a given number of rows from a datatable? Thanks a lot for your help....more >>

how to replace a node innerText with a new string ?
Posted by C# newbie at 4/8/2004 12:26:23 PM
Hello group, When I run an XPATH query first as: //*[contains(translate(.,\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\", \"abcdefghijklmnopqrstuvwxyz\") Then within a loop like: foreach(XmlNode xnode in node.SelectNodes(s)) { } The program tries to find/locate the innetTex...more >>

Events question
Posted by Mvk at 4/8/2004 12:22:44 PM
Hi; I have a little "timer"-application. The timer starts running when I press the "CTRL + Space" buttons. The timer ends when I click again on "CTRL + Space". Resetting the timer: "CTRL + Enter". Now I have a little question concerning these events. When I start a second application eg O...more >>

Form1_KeyDown doesn't fire
Posted by genc ymeri at 4/8/2004 12:14:45 PM
Hi, I have a C# from and I'm trying to add some code in onKeyDown event. But it doesn't fire at all............ Any idea ? Thanks a lot. ...more >>

XML Comments that DO NOT WORK !!!
Posted by gary hitch at 4/8/2004 12:04:18 PM
Trying to generate html documentation with the built-in Build Comment Web pages tool of .Net Many of the comments are simply eliminated in the results files such as : /// <exception cref="System.Exception">Thrown when bla bla bla</exception> Anyone got any ideas ? I need to build doc...more >>

About Playsound
Posted by CM at 4/8/2004 11:49:59 AM
There is a function called Playsound. But I think it can only play wav. I don't know how to use it in .net application to play MP3 or rm music. I am failed to find any sample code. Anyone can help? Thanks! CM ...more >>

Error Message - Access Denied to Assembly
Posted by Brent at 4/8/2004 11:27:44 AM
Hi, I keep getting this error intermittently. I can compile many times, and run fine, and then one compile/run of it, out of nowhere I get this. If I restart the computer it fixes it, but it seems awfully weird. Any ideas? Server Error in '/intranet' Application. ----------------------------...more >>

Communicating Between 2 Forms..
Posted by Serdar C. at 4/8/2004 11:09:22 AM
hello again, i have another question... i am writing a program with 2 windows forms... first form have a search button and several text buttons to list the data loaded from an sql database second form just have a listbox that shows the search results in the listbox.. i want to let user sel...more >>

Is Degradation in Quality Necessary?
Posted by Cecil Windham at 4/8/2004 11:00:15 AM
I'm using the following code to rotate an image (jpeg or gif), and have discovered that there is a significant degradation in the quality of the photo. Just wondering if there is a way to rotate/flip a graphic in .NET *without* data loss. If so, how? If not, why? I understand that when *res...more >>

using schema.ini to write to file
Posted by Jim Heimer at 4/8/2004 10:35:19 AM
Hi, I've been using schema.ini to read an ascii file to a dataset. Would it be possible to write to the ascii file the same way I read from it? In my case, the initial ascii file has two "columns" readable by schema.ini, first name and last name. After the process, I need to write the emplcod...more >>

Is there a POP3 Mail Component?
Posted by Matt Porter at 4/8/2004 10:18:14 AM
I'm writing a c# web app and I can't find a POP3 mail component. I found the SMTP component, but not a POP3 one. Seems like there should be one. What is the name of the POP3 component? or do I have to write my own? ...more >>

Subcribing to a time event
Posted by agro_rachmatullah NO[at]SPAM yahoo-dot-com.no-spam.invalid at 4/8/2004 10:10:53 AM
I use this code in my program: while(form.Created) { form.CheckTime(); Application.DoEvents(); } because I want my program to provide notifications on a specific time. The problem is, that loop caused the CPU usage to be always 100%. I don't want to sacrifice all the CPU cycl...more >>

ListView Can't see column headers
Posted by MFRASER at 4/8/2004 10:02:56 AM
I am trying to populate a listview and I can not see the column headers, is there a property I am forgetting to set? Here is my code // Create three items and three sets of subitems for each item. ListViewItem item1 = new ListViewItem("item1",0); // Place a check mark next to the item. ...more >>

Please Help... Vb.net to C#
Posted by Juan Irigoyen at 4/8/2004 9:56:30 AM
How I can traduce this sentences, thanks. Dim drowSession As DataRow drowSession = Context.Cache("SessionKeys ").NewRow() drowSession("session_key ") = "323223" Context.Cache("SessionKeys ").Rows.Add(drowSession) strMatch = "session_key='323223'" arrSessions = Context.Cache("SessionKeys ")...more >>

Displaying paths as a directory tree using Treeview
Posted by JSM at 4/8/2004 9:47:25 AM
Hi, I have been racking my brain over this one for a couple of days and have finally given up. I am currently converting a project from VB6 to C#. I have a list of paths in a database which I want to display as a folder tree in a tree view. The paths are in the format of : \ \Folder1\ ...more >>

File Search!!
Posted by Vai2000 at 4/8/2004 9:41:51 AM
Hi All, Is there a way to search for files within a specific date range and pattern. I know the later but don't know how to enforce the date range in searching files in a given dir. TIA ...more >>

Trusting an assembly configuration
Posted by Olaf.Baeyens NO[at]SPAM skyscan.be at 4/8/2004 9:14:52 AM
I develop software (.NET) with strong name that needs to access network drives by default. Is there any way to make sure that this program have network access without forcing the user to manually add this strong key to be trusted more? And not to globally trust all .NET applications by default? ...more >>

Hep - for .NET newbie
Posted by djfd at 4/8/2004 9:06:09 AM
I'm trying to write a routine to check if a user is an Admin from a SQL table. 'Admin' column of the table is defined as bit (boolean) and signifies whether the user is admin or not. Once I filled my dataset, I can use it to fill my grid. If the user is admin, I want to disable some textboxe...more >>

ASP.NET/C# Problem connecting to a remote database
Posted by paulballatti NO[at]SPAM hotmail.com at 4/8/2004 7:54:12 AM
hi, I am attempting to update two databases simultaneously, from one ASP.NET Web Application, which is written in C#. One database is local i.e. on my localhost IIS and this has no problems at all. I uploaded the same database file to my web server and I am having problems trying to connect...more >>

clear screen in a console appliction
Posted by Ivan Sammut at 4/8/2004 7:53:57 AM
Hi, is there a way to clear the screen in a console application. Thanks Ivan Sammut ...more >>

Webservice and arrays
Posted by Mike at 4/8/2004 7:46:06 AM
I am writing a webservice that has a method which requires an array of a custom object. I am having problems understanding why a few things are occuring My webservice looks like this namespace WSTes /// <summary /// Summary description for Service1 /// </summary [WebService(Namespace...more >>

is abstract method implemented or not?
Posted by Christopher Wells at 4/8/2004 7:26:37 AM
There's something I don't understand about how the CollectionBase class is defined. I can declare: class Derived : CollectionBase { } I can instantiate this Derived class: Derived derived = new Derived(); I cannot call an Add method as I haven't declared it: der...more >>

E-mail with attach
Posted by mp at 4/8/2004 6:45:22 AM
Hi, Is possible to send e-mail with attachement and how. Is there some example? Thanks ...more >>

Installer Auto Run
Posted by Thom Little at 4/8/2004 5:04:28 AM
I developed a C# application and a windows installer application that properly installs the C# application on a new machine. After the C# application is installed I would like to automatically start it on the User's machine. - How do I instruct the setup program to start execution of the new...more >>

dual boot
Posted by OM at 4/8/2004 5:00:13 AM
Hello I need to delete win NT from a dual boot system with win2k, how can I do that cleanly wiht steps. and how can I edit boo.ini??? Thanks...more >>

***Stop:
Posted by OM at 4/8/2004 4:57:46 AM
Hi.... I have compaq deskpro computer run with windows NT 4.0 / SP6, since I insalled virtual drive 8.0 it works fine, but when I tryed to build a virtual image form CD disk, I recieved blue screen with an error massage: ***Stop: 0x0000000A (0x001263C4, 0x00000009, 0x00000001,0x800682A...more >>

TreeNode
Posted by Stefan at 4/8/2004 4:26:03 AM
Hi NG i need a TreeNode with an attribute "depth", i.g. it has to be possible to skip one ore more levels of the tree explicitly Example Root--Node1--Node Root-----------Node Where do i find the Paint-Method or anything so that i can implement my own TreeNode Thanx for any hel Stefan...more >>

Properties/Enum
Posted by Martin at 4/8/2004 4:21:05 AM
I am trying to create a property that takes a value from an enumerated type and is displayed in the properties window for a custom control. Any ideas how to go about this anyone?...more >>

To develop application on .Net with the server Unix
Posted by Jonathan Li at 4/8/2004 4:00:58 AM
I am planning to develop my application using C#.Net and web enquires in ASP.Net, but the customer insists to use Unix/Oracle as the server. Under J2EE environment, the EJBs can be fully shared. Under .Net, what should I do? Don't tell me to use .Net on client side and J2EE for web enquiry devel...more >>

Where is RASAPI.DLL
Posted by José Pérez Hernández at 4/8/2004 1:44:56 AM
Hi there ! I have seen a lot of your postings in USENET, regarding how to dial , transfer data & hang up in a dial up network connection. When I go to use Visual Studio .NET i must to include a reference to RASAPI.dll ? Where can i find this file ? I must install something ? Regards...more >>

unicode in c#
Posted by Guy Brom at 4/8/2004 1:36:39 AM
Hi all, I'm about to start a price-comparison service in c# (asp.net) that will gather lots of multilingual content and store it on a centralized database, to be displayed later on a webpage. Some of my sources are in Arabic, some in English, others in Chinese. What's the best way to sto...more >>

enabling themes in add-in
Posted by Rob Tomson at 4/8/2004 12:16:04 AM
how do i enable the themes in my office 2003 add-in? i've tried including the .manifest file but it doesn't seem to work. is there something special i have to do thanks Rob Tomso WinXPsp1, .NET2K3, O2K3...more >>


DevelopmentNow Blog