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 2005 > threads for friday 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

autorun maker
Posted by Ray5531 at 4/8/2005 11:51:32 PM
I'm looking for a good Freeware autorun maker for my C# application.Any suggessions? Thanks ...more >>


help with reading fields in a text file
Posted by Vicky via DotNetMonster.com at 4/8/2005 6:11:15 PM
Please help with reading fields in a text file. I need to get the index name, (ticker field in text file), Please see one file as an example (There are actually 1000 files) If we open the file, the text includes Header and data TICKER>,<PER>,<DTYYYYMMDD>,<TIME>,<OPEN>,<HIGH>,<LOW>,<CLOSE>,...more >>

VS 2003 COM Server and Delphi Client
Posted by glenn at 4/8/2005 4:50:38 PM
I have a COM Server I wrote according to a book I have in C#, VS 2003. I can call the object fine from a VB Script, however, if I try to import the type library into Delphi 6 I get a "type not validated" error on Byte, Double, and Single variable types when trying to compile the package. It a...more >>

calling a shell32 function from C#
Posted by vikram Nayak via .NET 247 at 4/8/2005 4:32:10 PM
Any tutorials / samples on how to call a shell32,user, kernel function from C# thanks, ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>ggZviDuAt0+dTZLvBvWX5A==</Id>...more >>

Multi-dimension arrays
Posted by HarryTjr at 4/8/2005 4:07:01 PM
I tried making a 3x3 array like static int[, ,] Table = {{1,2,3},{4,5,6},{7,8,9}}; The example from the docs is for a two dimensioned array and it works fine. Are dimensions greater than 2 disallowed?...more >>

Convert from string to byte[]
Posted by Yama at 4/8/2005 2:25:08 PM
Hi, I have the following binary data: StringData = 800006000000; which is equivalent to the following: byte[] bytes = new byte[6]; bytes[0] = 0x80; bytes[1] = 0x00; bytes[2] = 0x06; bytes[3] = 0x00; bytes[4] = 0x00; bytes[5] = 0x00; How can I parse the string StringData to the ...more >>

Converting String to User Defined Type
Posted by gmccallum at 4/8/2005 1:43:02 PM
I am trying to convert the value of a string to a defined enum value such as follows. public enum MyEnum { One, Two }; string MyString = "One"; // or even this is fine string MyString2 = "MyEnum.One"; // This doesn't work (obviously), but effectively this // is what I am trying to acco...more >>

(urgent) Binary data to byte[] array
Posted by Yama at 4/8/2005 1:43:02 PM
Hi, I have the following binary data: 0x800006000000 which is equivalent to the followin byte[] bytes = new byte[6]; bytes[0] = 0x80; bytes[1] = 0x00; bytes[2] = 0x06; bytes[3] = 0x00; bytes[4] = 0x00; bytes[5] = 0x00; How can I parse the binary to the quivalent byte array? T...more >>



Compiling a C# Source File
Posted by OutdoorGuy at 4/8/2005 1:40:33 PM
Greetings, I was wondering if it is possible to compile two C# source files at the same time? I am attempting to use the code below from a Command Prompt, but am receiving an error: csc C:\C#\C#_Samples\frmMain.cs frmInstructions.cs [Note: "frmMain" is the first form which, in turn, cal...more >>

Reflection
Posted by Alexandre at 4/8/2005 1:20:35 PM
Hi, i currently know how to instantiate an object which has no parameters in the constructor. but i have objects which do have parameters in the constructor, how do i go about instantiating it. can some one please point me in the right direction? i have looked into the activator, and i...more >>

overloaded constructor, access zero-argument constructor
Posted by mblatch at 4/8/2005 1:08:57 PM
This is probably a C#-101 type question, but I've struck out on finding an answer. I am setting up a class with a few overloaded constructors. Inside those constructors, I would like to call the "default" zero-argument constructor. The compiler gives me an error "PC_StreamBuffer is a type but...more >>

Help: Can't start chapter 24 of C# Step by Step
Posted by Phil McKrackin at 4/8/2005 12:53:38 PM
Hello all, I've been blazing through John Sharp and Jon Jagger's "Microsoft Visual C# .NET Step by Step" book, but I've hit a bit of a roadblock once I made it to the database section. Specifically, chapter 24, "Using a Database." Can some kind soul help me get my machine in a state that I ...more >>

Serializable and adding fields
Posted by Steve Teeples at 4/8/2005 12:25:02 PM
I have a simple class that is Serializable() so that I can read/write it to/from disk. Functionally it works great. However, I soon learned that if I added a field or property to the class that I could no longer read the "old" data that was written. The error I get says that the component ...more >>

problem with adding attachment to mail
Posted by Bart Stes at 4/8/2005 11:55:03 AM
Hey guys, I'm try to write a very simple winform app that allows the users to send an email. I use the System.Web.Mail MailMessage class for this. But when it comes to adding an attachment, something appears to go wrong. After I execute the following code, the MailMessage appears to have an ...more >>

problem with Mail attachments
Posted by Bart Stes at 4/8/2005 11:47:44 AM
Hey Guys, I'm trying to write a very simple thing that allows a user to send an e-mail from a windows form app. I use the System.Web.Mail MailMessage class for this and then send my e-mail through a smtp server. The problem i have is with adding attachments. I use the following code publ...more >>

problem with adding attachment to a mail
Posted by Bart Stes at 4/8/2005 11:47:44 AM
Hey guys, I'm try to write a very simple winform app that allows the users to send an email. I use the System.Web.Mail MailMessage class for this. But when it comes to adding an attachment, something appears to go wrong. After I execute the following code, the MailMessage appears to have an ...more >>

converting sql datetime to just time in c#
Posted by M.Smith at 4/8/2005 11:42:56 AM
I am returning a datetime from SQL and need to populate a field with just the time... I have tried: DateTime.Parse(TheTime.Hour.ToString()) + ":" + DateTime.Parse(TheTime.Minute.ToString(); But that does not return the correct HOUW format. Any suggestions? Marty ...more >>

In code can I determine if I am a release or debug build
Posted by Paul Tomlinson at 4/8/2005 11:34:21 AM
Is there a special variable or anything that *in code* I can check - I only want to messagebox in debug build. ...more >>

C++ question
Posted by web1110 at 4/8/2005 11:14:06 AM
Hi y'all, This is the wrong venue, but I have C++ question. I was playing with VS 6.0 and tried this program: #include "stdafx.h" #include <iostream.h> class prop { private: int x; int y; public: prop(int x, int y); int& X(); int& operator= (int); }; prop::p...more >>

binding a struct array to a DataGrid
Posted by Nony Buz at 4/8/2005 11:05:45 AM
I have an Array of a struct that contains int's and a string. I would like to display that in a DataGrid, how do I do it? There will be an extra field that will get updated which is not in the struct, how do I account for that?...more >>

How do I hook into the Load event of the base Control class?
Posted by Robert Werner at 4/8/2005 11:03:03 AM
I want to write one general purpose set of code that will handle the population (where required) of all controls on a form. Though I'm new to C# my instinct is to somehow hook into the Load event of the Control class, as this should [hopefully] get inherited down to all of the controls. Tw...more >>

Microsoft SQL Desktop Engine - using
Posted by 1qa2ws at 4/8/2005 11:01:50 AM
Hi, who can use MSDE 2000? If I develope an application with C# having MS Visual C# .NET 2003 Standard which uses SQL Server, can I distribute my application with MSDE? 1qa2sw ...more >>

modify a char in string
Posted by Zeng at 4/8/2005 10:20:34 AM
Hello, Is it true that in C# we can't modify directly a character in a string? I can't find the method anywhere. I would expect something like this should work,but it doesn't string myStr = "blah'; myStr[ 3 ] = 'e'; Thanks in advance for your comment. ...more >>

When is a Thread considered dead?
Posted by cider123 NO[at]SPAM hotmail.com at 4/8/2005 10:19:46 AM
I have a simple Window Service that loads up a list of Folders to monitor, along with parameters for a maintenance profile. Every time the interval is reached, the Window Service spawns off a Worker thread: .... _ActiveThread = new Thread(new ThreadStart(_WorkerThread.ThreadStart)); _Activ...more >>

MS Visual C# .NET 2003 Standard - license
Posted by 1qa2ws at 4/8/2005 10:15:11 AM
Hi, I need a license (can be scanned one) for the MS Visual C# .NET 2003 Standard. Can anybody send it to me? 1qa2ws ...more >>

Access Variables Across Classes
Posted by Jim at 4/8/2005 10:09:49 AM
I'm hoping someone may be able to help me. I have a page the displays information "content.aspx". At the top of this page I show a "breadcrumb". The breadcrumb is a templated custom control. The breadcrumb has it's code behind page, which accesses a class (.cs) file for information. her...more >>

leading 0s omitted when exporting to Excel
Posted by kscdavefl at 4/8/2005 9:55:04 AM
When I export the contents of a datagrid to excel, the leading 0s of the first column are truncated. Is there a way to keep this from happening. I am using the following code: private void ExportToExcel() { Response.Clear(); Response.Buffer = true; Response.ContentType = "a...more >>

Application error in event log
Posted by Wayne at 4/8/2005 9:23:56 AM
I have an application where I added a comment as the first line of my Config file, as I found out I can't do this. However, an entry was made in the event log about the error (Source = .net Runtime): The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local compu...more >>

UserControl: How to use ClipRectangle in OnPaint handler
Posted by TT (Tom Tempelaere) at 4/8/2005 9:15:03 AM
Hi everyone, I'm developing a custom control that basically draws a circle. However I notice that when I resize a form that contains the control, there is a lot of flicker. I suppose that is because I'm not clipping using the ClipRectangle property of the PaintEventArgs that comes with the ...more >>

C# OODB / Post Relational - Your thoughts
Posted by quortex NO[at]SPAM hotmail.com at 4/8/2005 8:57:24 AM
Hi, I am going to be undertaking a large project that I am going to write in C#. I want to use an object oriented database to reduce development times and allow me to write clean object code without cluttered ugly sql and O/R mapping code. Ideally I would like to be able to just write my co...more >>

connection pool errors
Posted by Phil Townsend at 4/8/2005 8:16:33 AM
I have tried (apparently in vain) to correct the constant "connection timeout error" in asp.net pages. We have switched to Applicatin Data block, with little success. We have combed through all of our code to make sure that datareaders are closed and resources deallocated and still, we get the c...more >>

Missing first parameter exception.
Posted by BillZondlo at 4/8/2005 8:13:07 AM
I am new to VsC#. Am working on Visual Studio .NET Pro 2003. I wrote a solution that is a form containing 2 buttons. Button1 uses folderBrowserDialog to select a directory. Button2 uses saveFileDialog to get a file name. Then the file names from the directory selected are then written to t...more >>

VB.NET DataAdapter.Update
Posted by Joe Fetters via .NET 247 at 4/8/2005 8:09:15 AM
Have googled and read the VS=2ENET documentation can't seem to get= the answer to the following=2E Environment: Framework 1=2E1 VB=2ENET WinForm Access database Using all automagic tools (DataAdapter Wizard with generated= Dataset and generated Select, Update, Insert and Delete= command...more >>

THE GREATEST NEWS EVER ! °º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸¸,ø¤º°`°º¤ø°º¤ø,¸
Posted by RonGrossi_38127 NO[at]SPAM yahoo.com at 4/8/2005 8:04:10 AM
http://www.print-it-011.blogspot.com << The Greatest News Ever ! ...more >>

User Control has no impact on parent control carrencyManager
Posted by David K. at 4/8/2005 7:45:55 AM
My question concerns C# Windows Forms user controls. I have created navigation user control. It gets the consumer application parent control's (a Form) CurrencyManager to its bindable property. In the user control, any change in the CurrencyManager position is displayed OK. The problem is that ...more >>

Generate picture C#
Posted by John.Arthur NO[at]SPAM gmail.com at 4/8/2005 6:57:13 AM
Hello, I need to create picture containing number that I will write in the picture. I need it to show it to the users of my application and they will write the number in a textBox, so this is to prevent automatic activities with my application and to keep bots away. But I have no idea how can...more >>

Change Window Class Name
Posted by Flo at 4/8/2005 6:23:04 AM
Hi I got a C# form that imports a DLL i developped. I need this DLL to find the form's window handle (using FindWindow API function for example). I thought doing this by using RegisterClass function for my form class name, but i did not manage to get it work. Is there a way to do this ...more >>

How to - Access another application's Text
Posted by news.microsoft.com at 4/8/2005 6:03:45 AM
Hello How can I access another application window's Text? It is ilistview if seen by spy++. I know we have to get the windows handle and read the text. But I cannot seem to find any c# code for that. Any ideas ? suggestions ? Demos ? Thank You _________________...more >>

Closing event
Posted by Al the programmer at 4/8/2005 6:01:02 AM
I want to catch the Closing event for my form. I created a test windows app using the wizard. I then create the Closing event by clicking the lightning bolt on the properties pane. The code is added to the app but my app won't compile. It generates a "Test.Form1.Closing() denotes a 'method...more >>

write to an xml file
Posted by juli jul at 4/8/2005 6:00:45 AM
Hello ,I am trying to do something like that in order to write content of one xml file to other : XmlDocument xml_new=new XmlDocument(); File.Copy(this.file_name,xml_new.Name); But it fails,why? Thank you! *** Sent via Developersdex http://www.developersdex.com ***...more >>

Delegates and Events
Posted by FredC at 4/8/2005 5:53:04 AM
When multiple objects (say ClockA, ClockB, ClockC ...) from the same class (Clocks)have the same delegate ( say secondTick) that calls the event handler serviceClockTick, do the events stack up in a some sort of a queue, do they preempt each other safely, does a preempting event push an existi...more >>

asp.net 2.0
Posted by Phil Townsend at 4/8/2005 5:43:38 AM
I've been a little out of the loop--has ASP.NET 2.0 been released yet, or is it still in beta? *** Sent via Developersdex http://www.developersdex.com ***...more >>

[ANN] edtFTPnet 1.1.6 released (Open Source C# FTP Client)
Posted by javaftpclient NO[at]SPAM yahoo.com at 4/8/2005 5:31:37 AM
Enterprise Distributed Technologies is happy to announce the immediate release of edtFTPnet 1.1.6, the popular .NET library for embedding full FTP capabilities into .NET applications. edtFTPnet is Open Source (LGPL) and can be freely embedded into commercial applications. It supports a wide ra...more >>

Classes
Posted by Josema at 4/8/2005 4:19:05 AM
Hi, Im reading some examples in internet about classes, and i see in some cases that the name of the classes should be like nouns (for instance: class person, inside namespace company, inside of another namespace called country)... But in another webs, i see that there are people that cal...more >>

How to write a CommandText to include db values
Posted by Chief at 4/8/2005 4:00:31 AM
Hi, i am baffled with this simple problem. I want to try and pull out some info from a datatable, using a sql query. i don't want to use a stored procedure. How do i phrase my commandtext? i've messed around with "+" symbols and extra apostrophes with no success. see my code: priva...more >>

fetching data asynchronously using ado.net dataset
Posted by Srinivasan R at 4/8/2005 3:13:02 AM
Hi, I am trying to get asynchronous fetching of data from sql server database. I would like to show the progress of fetching records in GUI. Is there any simple/complex steps for the same in C# using ado.net. Please help me. Have good day. Thanks for your help in advance....more >>

Windows Service Problem
Posted by victor.sanchez NO[at]SPAM actea.es at 4/8/2005 3:06:23 AM
I made a window service with c# and when the machine were the service is installed is reset and start again, the service is started but it doesn`t go, i stop and start the service and it goes perfectly, what can i revise?...more >>

Disable programmatically raised events
Posted by webermax2004 NO[at]SPAM yahoo.fr at 4/8/2005 2:57:11 AM
Hello, Is there a way to avoid an event to be raised programmatically ? As an exemple : ScrollBar.ValueChanged is raised when the value of the scrollbar changes, whenever the user moved the slider or some code has been executed which changed the value of the scrollbar. How to avoid the second...more >>

Question about FileAttributes Enumeration
Posted by Edgardo Rossetto at 4/8/2005 2:08:02 AM
Quoting from MSDN docu: "This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values" I don't get it, how can I check if FileSystemInfo.Attribute has the Hidden and System attribute, or maybe only one of those? Edgardo...more >>

Datagrid scrolling....
Posted by Gidi at 4/8/2005 1:45:02 AM
Hi All, i have a datagrid table that contains customers names, and a textbox which the user enters the customer name and the datagrid's dataset is updated so the customer name will be first. anyway i want to that user will be able also to navigate with the down and up arrows throw the names...more >>

write text file into dataset
Posted by WebSim via .NET 247 at 4/8/2005 12:13:30 AM
Hi, I want to read a text file, and then write it into dataset. Is it possible? or Is there any solution that read text file into DB? ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>x/Vs9+Nw2U6Px6tC6dj55w==</Id>...more >>

VS .NET 2003: Debug vs. Release
Posted by muz dogru at 4/8/2005 12:01:34 AM
Hi, my question is concerning the visual studio .net 2003 environment. In C++ projects for example, it is possible to define different postbuild codes for debug configurations and release configurations. I have tried to use different postbuild scripts for these two configurations for my C...more >>

Did microsoft invent their own unit of time?
Posted by Michael C at 4/8/2005 12:00:00 AM
I'm installing the dot net framework and it was stuck on "Time remaining: 6 seconds" for a while so I started to time it. After 25 seconds it went up and said it had 10 seconds remaining. It's now just finished another 3 minutes later. Is there such thing as a Microsoft second?? ...more >>

Serialize a Form.
Posted by objectref at 4/8/2005 12:00:00 AM
Hi to all, let's say i have a form with 2 buttons and 3 textboxes on it. Is there a way to Serialize the form so when i de-Serialize and cast it to a Form, i will get back the original form with the textboxes filled with their original values ?? I have built an app that i want to have the v...more >>

using applications built with dotnet
Posted by Jozsef Bekes at 4/8/2005 12:00:00 AM
Hi All, I have a question about how to use the final product I build with dotnet. I used to work with VC++ 6, and there was an option in the project settings to either use the MFC dlls or build the exe in a way that the MFC dlls are not needed (if I am not mistaken, the term was statically ...more >>

needing help about pointers and 'System.NullReferenceException'
Posted by Ghada Ayed via DotNetMonster.com at 4/8/2005 12:00:00 AM
Hello every body, please help me in this problem i have written the following C# code in VS.Net and when i run the window application i have got 'System.NullReferenceException' so please if anybody can help reply to this message. portion of the Code [STAThread] static void Main() ...more >>

encrypt/decrypt
Posted by Hrvoje Voda at 4/8/2005 12:00:00 AM
Does anyone knows a good example of how to encrypt/decrypt a string? Hrcko ...more >>

Problems with GDI+ and transparent PNG-Imges
Posted by felix at 4/8/2005 12:00:00 AM
Hi, I tried google and searched the old posts -- with no success. Like a zillion of people before I have a problem when rendering transparent PNGs with GDI+ and the C# Graphics class. The image shows am object on a transparent background. I get ugly artifacts at the object's edge where th...more >>

Messagebox.Show ignores my call
Posted by Allan Ebdrup at 4/8/2005 12:00:00 AM
When I try to Messagebox.Show() a string that is 197680 or more chars long, my call is simply ignored, no error is thrown, the call is simply ignored. 197679 chars or shorter is shown correctly. Is it a XP or dotNet bug? Kind Regards, Allan Ebdrup ...more >>

DllImport and debug ...
Posted by Fabien Penso at 4/8/2005 12:00:00 AM
Hi. I imported a .dll in my C# code and call a C function that takes a struct of pointers of functions as callback functions. It seems to work fine (the callbacks function wrote in my C# code are called) for this part, but then crashes. When it crashes Visual offers me to use a debugger,...more >>

Collect the data
Posted by Vivek Sharma at 4/8/2005 12:00:00 AM
Hi, Under the current scenario I am fetching around 700 records in an application and keeping the recordset open. The reason being the user wants to navigate through the records anytime. I am not sure if it is the best practice. Also, I have a problem. When I add a record I have to refresh ...more >>

what is the meaning of this syntax ? public ComboBoxExItem(: this("")
Posted by Sagaert Johan at 4/8/2005 12:00:00 AM
Hi i found this in an example class, but never saw this syntax before. thais was inside a derived class of a combobox public ComboBoxExItem() : this("") { } public ComboBoxExItem(string text): this(text, -1) { } why isthe method followed by : this ("") ? ...more >>

reading from a process sdtout
Posted by palaga at 4/8/2005 12:00:00 AM
Hi I'm starting an external process that writes data to stdout, and I want to get back these data. So I use myProcess.StandardOutput (everything is correctly set, I can read the data). to read data, I use myProcess.StandardOutput.ReadLine( ). (the data is text). The doc says that if there is...more >>

Learning C# after you studied the books?
Posted by My4thPersonality at 4/8/2005 12:00:00 AM
Hello, I've read quite a lot about .NET and C# now. It's no big surprise, it's not that difficult since I know C++ and some Java. But it's all passive learning. Is there any free tutor, or a good book that gives you some real excercises? Is there a free IDE I could use? Thanks. ...more >>

Problem wit .NET forms
Posted by Boni at 4/8/2005 12:00:00 AM
Hi all, starting from about a week ago I have strange behavoir of VS2003. All .NET forms in designers are loading very slow (about 5 min) and the processor load goes to 100%. I can't remember to change something in the options or installing something unusual (may be just testet CLR Spy,which ...more >>

Low, high, bandpass filter using DirectX
Posted by Woojtos at 4/8/2005 12:00:00 AM
Hi, I have a problem. I don't know how to create lowpass, highpass and bandpass filter. I capture the sound using CaptureBuffer from DirectX library. Then I create memory buffor as follow: int BUFFER_SIZE = 100000; byte [] data = (byte[])captureBuffer.Read(0 , typeof(byte), LockFlag.Non...more >>

Custom Attributes (AttributeTargets.Property) and Property Type
Posted by Zarko Gajic at 4/8/2005 12:00:00 AM
Hi I've create a custom attribute class "MyAttribute" with [AttributeUsage(AttributeTargets.Property)] Is there a way to get the type of the property myAttribute is applied to? I need to raise an exception if "MyAttribute" is attached to a non-string type of property, for example. In othe...more >>

EventLog Class
Posted by McKool at 4/8/2005 12:00:00 AM
Hello. I'm making a Windows service with C#. This service connect a comm Port when start and disconnect it when stop. I use an EventLog class to write information about this service, by example, when the port get connect or disconnect. All work ok until the moment when the computer shut...more >>


DevelopmentNow Blog