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# > february 2005

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

Proxy server in C# .Net
Posted by joicedony NO[at]SPAM lycos-dot-com.no-spam.invalid at 2/28/2005 11:42:13 PM
Hey everybody, I am joice, College student. I am doing the project in C# .Net. The title of PROXY SERVER. Now my doubt is, I will get the request from the client, ie) the request is www.yahoo.com. I can received the request. Now i want to send the response for the request. Which metho...more >>


Custom format in DateTimePicker
Posted by Guy Corriveau at 2/28/2005 10:57:07 PM
Got a dateTimePicker o o.Format = DateTimePickerFormat.Custom; o.CustomFormat = "MM/dd/yyyy hh:mm tt"; the previous code work well when the Regional option is set to english Canadian but do not display the AM or PM when the Regional option is set to french canadian ...more >>

textBox Focus
Posted by Hrcko at 2/28/2005 9:42:04 PM
I wrote some words in textBox. On the next Focus I would like to get to the end of the last entered word. How ? Hrcko ...more >>

Fancy console output
Posted by Aidy at 2/28/2005 9:26:42 PM
Is it possible to alter the look of the text in a console app such as it's colour etc? If not can anything think of a way/product that lets me have a console-type app with different coloured text? ...more >>

How to creating a file association
Posted by Patrick Blackman at 2/28/2005 9:13:44 PM
I want to create a unique file extension for my data file (e.g. test.ada) where the "ada" is my extension and assign an icon to the extension just like MS Word does with the ".doc" file. I want when the application starts up it checks for the extension , if it is not registered it is then re...more >>

Reading Windows Event Log using code...
Posted by Charlie NO[at]SPAM CBFC at 2/28/2005 8:48:04 PM
Hi: I would like to query the Windows Event log and display items in a DataGrid on a WinForm. Is there a class in the framework to retieve data from the Event log? Thanks, Charlie ...more >>

How to make label and linklabel controls to accept multilined text at design time?
Posted by M Shafaat at 2/28/2005 7:33:18 PM
Hi! How can I make label, linklabel . controls to accept multilined text at design time and in the properties window of Visual Studio? Regards M Shafaat ...more >>

Configuracion regional
Posted by Felix González at 2/28/2005 7:11:37 PM
Hola! Tengo un problema con la configuracion regional y SqlServerCe. Tengon un numero (2,234 por ejemplo) almacenado en una BD que lo representa como 2.234, si desde mi prigrama hago un aconversion con Syste.convet.ToDoble obtengo el numero 2234 en vez de 2,234. Como puedo convertir al número ...more >>



how can i compile csharp code to machine code permanently?
Posted by putchar at 2/28/2005 6:18:01 PM
it is also obvious that if i could make win32 programs with vs.c#? ...more >>

Passing a pointer to an unmanaged method
Posted by Lois Spangenberg via DotNetMonster.com at 2/28/2005 6:02:36 PM
I have an external method that includes a pointer to a struct as one of its arguments. The struct definition is managed, and contains both value and reference (float arrays) members. What I'm trying to do is instantiate an instance of the struct and pass it to the method to be populated. ...more >>

Trying to print batch of PDF files programmatically
Posted by David Cho at 2/28/2005 5:41:54 PM
I am still struggling with this. Used the PrintDocument class, but it was printing gobblygook. Does not recognize the PDF files as Acrobat files and just prints text. Can't get the shell command to work. Tryed print C:\test.pdf Is there a better way? Anyhow, I finally tried to us...more >>

Object type cannot be converted to target type.
Posted by Paul Tomlinson at 2/28/2005 5:38:24 PM
I am trying to call a delegate on my parent from a child thread, this is my code, however i'm getting an exception "Object type cannot be converted to target type." which I can't understand. The prototype for my delegate is: public delegate void ExceptionDelegate( object[] o ); // called fro...more >>

Comparing Bitmap Pixels to Colors
Posted by Typpo at 2/28/2005 5:31:39 PM
Hi all, I'm trying to compare a color returned by a Bitmap's GetPixel method to a normal static color of the Color class. My problem: after setting a pixel to a certain color, the color returned by GetPixel isn't considered the same color anymore. Example code: bmp.SetPixel(0, 0, Color...more >>

Can MarshalByRefObject object be transformed into a byte[] array?
Posted by BBFrost at 2/28/2005 5:21:25 PM
I'm not having much success from the interop group. So I'm going to crosspost and hope I don't get flamed too badly Disclaimer - I don't know much at all about Marshalling and Reflection. THE QUESTION: Is it possible to transform a MarshalByRefObject object into a byte[] array? If so, will...more >>

how can i translate a object of my defined class to byte[]
Posted by lqs at 2/28/2005 4:48:50 PM
hi£¡ i am writing a program using Socket . There is a class , for example: public class Student { public int nAge; public string strFirstName; public string strLastName; } Student s=new Student(); s.nAge=22; s.strFirstName="victor"; ...more >>

Renewing certificates and public key tokens
Posted by Mike Schilling at 2/28/2005 4:10:32 PM
The certificate we use to sign our assemblies was about to expire, so I = contacted Verisign to renew it. The new certificate came, we installed = it, we pointed out nightly build at it, the new DLLs got signed, so far = so good. The problem is that, when we looked at the with ILDASM, we = not...more >>

Overriding static members
Posted by Aamir Mahmood at 2/28/2005 4:01:51 PM
Hi all, I have a question. Can static members (methods and nested types) be made virtual in a class? So that they can be overridden in the child classes. For example: ------------------- public class Parent { public enum AllowedColors = {Red, Blue, Green} public static void DoS...more >>

Some basic .net questions?
Posted by Abhishek at 2/28/2005 4:01:28 PM
Hi! Can you pls give answers to some of these basic .Net Fundaentals Answer to some of these are known to me but i want to be sure of those. the difference between a Thread and a Process?,What is a Windows Service and how does is it differ from a "standard" EXE? What is the maximum amount...more >>

ObsoleteAttribute Compiler bug?
Posted by cody at 2/28/2005 4:00:00 PM
public decimal Wert { get{return this.wert;} [Obsolete] set{this.wert=value;} } This doesn't compile. It gives me error CS0592 and says that obsolete cannot be applied to that elemet. ...more >>

Read ARJ packed Text-Files
Posted by Joachim Fenchel at 2/28/2005 3:57:53 PM
Hello everybody, I am learning C# and I have got a big problem with reading ARJ packed Textfiles. Does someone know how to read in thos ARJ - Files? I need to extract Informations from this files. They all text files, but compressed with ARJ. Thansk a lot for help. Best, Jo...more >>

edit a text file
Posted by Abhishek at 2/28/2005 3:45:29 PM
Hi! I need to edit a text file. I need to replace a given text in the file with a new one. This text can exist anywhere in the file, so i first need to locate the text position and then edit it. How do i acheive this. Abhishek ...more >>

Replacing a TAB with 2 spaces
Posted by rkuleta NO[at]SPAM hotmail-dot-com.no-spam.invalid at 2/28/2005 3:43:31 PM
I'm having problems with UNICODE and ASCII here. I'm trying to make a program that reads in a text file containing a couple of columns of data. This data is separated by one tab. I want to change that so that the output file is identical except that tab is changed to 2 empty spaces (in between ...more >>

Move the picture inside a picture box
Posted by Steven at 2/28/2005 3:42:52 PM
Hello, I have an Image Box in the asp.net page, which contains an Image. Is there anyway I can move that image with the mouse in any direction inside the picture box?? If anything is unclear, please let me know. Any help would be greatly appreciated! Regards Steven ...more >>

Timer Doesn't Stop!
Posted by Tim Cowan at 2/28/2005 3:15:26 PM
Hi I have created a C# app that checks a table every n seconds and if it finds something it sends the email. The only problem is if you close the application, the timer keeps going?? I have coded it so that I stop the clock -> send the mail -> then start the clock but it doesn't stop. ...more >>

Recursive delegation with non-static functions?
Posted by Matthew Daly at 2/28/2005 3:10:37 PM
I'm playing around with a class design using delegates and have gotten stuck. I'm not certain if cooler heads can prevail or if it is forces that man was not intended to tamper with. The LazyArray class below is for processor-intensive sequences, like recursive functions. It doesn't calculat...more >>

Service sending email
Posted by Mark at 2/28/2005 2:40:52 PM
I have a service that I've built that runs on our web server. The web service has a reference to the System.Web namespace so it can use the classes titled: MailMessage SmtpMail My web server uses these classes just fine. I can't seem to get my service to send email. Is there an inherent...more >>

treeview control with data
Posted by Hrvoje Voda at 2/28/2005 2:08:01 PM
I would like a simple code witch fills treeview control with data from sqlDataBase through sqlAdapter and DataSet. Hrcko ...more >>

Insert Large Amounts of data into db
Posted by The Bear at 2/28/2005 2:00:11 PM
I'm looking for a way to insert a large amount of data into a db table. I'm reading the data from a file. It's about 250,000 records.One per line thanks T.B. ...more >>

How do I exit a foreach loop
Posted by Ray Stevens at 2/28/2005 1:56:11 PM
What is the command to exit a foreach loop prior to it's natural termination (such as finding a specific string in an array)? ...more >>

Dispose called twice
Posted by Sharon at 2/28/2005 1:43:13 PM
Hi. I put a message box in the form designer, Dispose method. Clicking the form close (X) button, i noticed that the message, appears twice. My code does not call Dispose. What is happening here? Thanks. Sharon. ...more >>

Concern about overriding methods
Posted by Jack Addington at 2/28/2005 1:23:48 PM
I have a class method defined as: public virtual void SomeMethod(string key, Int32 id) {...} In an descendent class I am typing in override and selecting the method from the autoText. When it builds the shell for the method it is changing the Int32 to an int ie) public override void So...more >>

KeyUp event with TextBox
Posted by JPSutor at 2/28/2005 1:14:54 PM
I currently have this code in my kepup event of a text box. It works except for the fact that if the number 25,000 or any number is put in then the user arrows to the left of the third zero and tries to replace the number 0 with a 4, this is the result 25,004 Here is my code. Any help woul...more >>

.NET applications over terminal servers
Posted by Bhargavan at 2/28/2005 12:59:43 PM
Hey Groups, Some of our .NET applications will be residing on the terminal servers and the users will connect to these terminal servers remotely to access our applications. My question is, Is there a way to transfer some of the memory load from the terminal server to the client machines? Tha...more >>

Processing Ctrl + S etc
Posted by Donal Kelly at 2/28/2005 12:55:22 PM
Hi, I'm writing a C# GUI and I'm trying to process the control keys, i.e. CTRL + S or CTRL + N. I can process ALT + by using the & key but is there an equilivant for CTRL. Thanks, Donal ...more >>

DES decryption for des_enc of Tim Hudson and Eric Young
Posted by ts NO[at]SPAM ck-de.net at 2/28/2005 12:50:28 PM
Hey experts, I have to write some classes doing communications with a device controlled via RS 232. Everthing is working well, but the data the device is sending back is encrypted. As I have found out today, the firmware is using algorithms which are compatible to the algorithms created by ...more >>

WebClient Timeout Exception
Posted by Michael Fields at 2/28/2005 12:39:04 PM
I have a problem with the WebClient and uploading a file to a web server. The stream object returned from the WebClient.OpenWrite menthod throws a timeout exception when using this method on computers w/ low bandwith ( < = 256 kbs). The exception occurs when I call the Stream.Close method. Her...more >>

adaptive server anywhere (Sybase)
Posted by M D at 2/28/2005 11:28:50 AM
I've got a data source with a .cdb extension that appears to be accessed via a runtime engine of adaptive server anywhere v.6.0.3. Can anyone advise me how to connect to this data source? What's my provider? thx md *** Sent via Developersdex http://www.developersdex.com *** Don't just ...more >>

display user please wait, while backend is processing
Posted by batham at 2/28/2005 11:28:28 AM
Gurus, I have a mainpage.aspx webform, in the page load of this page I am displaying a text "Please wait connecting..." and then I want the user to see this output on the WebForm, while I do some backend processing. Once the backend processing is done I want to redirect the user to another pa...more >>

Applications for IPAQ's
Posted by JPSutor at 2/28/2005 11:18:31 AM
Can anyone direct me as to how to get started writing apps for the IPAQ in C# ...more >>

Public Static Readonly Fields and Reflection
Posted by ChristianREMOVE.EitnerTHIS NO[at]SPAM anton-paar.com at 2/28/2005 10:43:28 AM
Hi people, I have a class which defines some "public static readonly string" fields. If I say FieldInfo[] fieldInfos = typeof(DaClass).GetFields(); these fields are reported by reflection, whereas with fieldInfos = typeof(DaClass).GetFields(BindingFlags.Static); they are not given. ...more >>

StreamWriter, StringWriter and encoding...
Posted by kinekine NO[at]SPAM digita at 2/28/2005 10:09:02 AM
Hello, i have a big problem with my email component, because each time i write the generated message directly to the spooler, the streamwriter will write in Unicode. The file starts with a FF FE and is double byte. This is a problem because when a mail server like QMAIL receive the mess...more >>

release path
Posted by Hrvoje Voda at 2/28/2005 10:08:46 AM
Where can I change the path for release files? Hrcko ...more >>

ADO.Net DateTime issue
Posted by Paul Yanzick at 2/28/2005 10:06:56 AM
Hello, I'm having some issues pulling a datetime object from a database and am looking for any suggestions I can get. I have written a function to make querying specific fields in a table as generic as possible. The function is below: private string GetFieldValue(string IDKey, string F...more >>

Login Screen
Posted by Marty at 2/28/2005 10:05:14 AM
What is the best way do a login screen? I have the Main() method in my login screen. After iit checks the userid and password the OK button loads the main application form but the next line is frmLogon.Close() which closes the whole application! If I hide it, the app does not close completely....more >>

Add Javascript function
Posted by Steven at 2/28/2005 10:01:39 AM
Hello, I have 3 files -- 1. mainform.aspx 2. mainform.aspx.cs 3. mouse.js mainform.aspx contains a image button ("zoominimgbut") which will exceute C# code, whenever the user clicks on it. mainform.aspx.cs is the code behind for mainform.aspx. Mouse.js contains javascript code wh...more >>

Multiple Deployment Issue
Posted by Lee Grindon at 2/28/2005 9:35:10 AM
Hello, I want a central MDI windows app that can call other .net windows applications. The deployment scenario is such that a new application will be needed on a daily basis so I don't want to deploy the main MDI app again and again just open the newly created application? Any ideas would be gre...more >>

Edit Menu question
Posted by Michael Rodriguez at 2/28/2005 9:28:19 AM
I created an edit menu with the standard Cut, Copy and Paste. I then assigned shortcuts to each menu, CtrlX, CtrlC, etc. However, if I select some text in a textbox and choose one of these items, it does nothing. Is that because the textbox lost focus when I clicked the menu? What's the stan...more >>

OOP and C#: Too much objects make me unhappy, but what can I do??
Posted by hugofelicio NO[at]SPAM yahoo.com at 2/28/2005 9:26:47 AM
Hi, I'm doing my first big project in C# and I'm stuck with a problem that I believe has a simple and efficient solution for it (I just haven't bumped into it yet...). The concept is the following: //Users manage clients. When the system creates the client it must fetch the information from ...more >>

SYSTEMTIME in C#
Posted by Klynt NO[at]SPAM noemail.nospam at 2/28/2005 9:09:09 AM
How do I access a native SYSTEMTIME object in C#? (I need to return one from my new C# classes so that I can maintain compatibility with legacy C++ code) Thanks, Klynt...more >>

Changing Default Company Name / Manufaturer token
Posted by Bart at 2/28/2005 9:09:05 AM
I recently wrote my first C# application and am ready to distribute it to my client. However, when I run the installer it tries to install it in c:\Program Files\Default Company Name\"Application Name"\. (Application name is not the actual name.) When I installed C# I must have neglected to...more >>


DevelopmentNow Blog