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 2008 > threads for monday february 18

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

richtext to outlook message
Posted by mrstrong at 2/18/2008 11:54:07 PM
Gday All, I have a rich text box in a winforms app that I am attempting to copy the rich text (with formatting in tact) to an outlook message that I have created using Microsoft.Office.Interop.Outlook... However copying the rtf straight to the message does not work - the rtf code is display...more >>

C# script editor
Posted by Andrus at 2/18/2008 10:38:32 PM
My application allows supporting personnels and users to create scripts in C# So I need to distribute C# code editor with my applicaton. Required features: * C# Syntax coloring * Editor C# source code should be available Where to find such editor ? Andrus. ...more >>

inside c#
Posted by anant at 2/18/2008 10:23:30 PM
hi can anyone giv me pdf of "inside c#" book...more >>

C#: Win32_Process getowner on remote machine
Posted by auldh at 2/18/2008 9:34:03 PM
hello, i have been playing around with this code and i'm not getting. i'm calling "win32_process" to get a remote machine's process and owner. i try this locally and i'm not having problems. however when i to the remote machine i'm not able to get a valid returne for "getowner". below is p...more >>

Trying to Play Windows Media Player from C#.NET
Posted by Anand Ganesh at 2/18/2008 9:20:02 PM
Hello Everybody, I am writing a Windows Application to control Windows Media Player which is required in my project. I am sending the following code to "Pause" or "Play" the video file in Windows Media Player. This is equivalent to pressent "Control-P". For some reason my SendMessage Co...more >>

KontextMenu der Titelzeile erweitern
Posted by Ralf at 2/18/2008 8:11:24 PM
Hallo, ich möchte unter .Net 2.0 mit Windows.Forms das Kontext Menu der Titelzeile eines Forms erweitern. Also das Menu das aufpoppt, wenn man mit der linken Mousetaste auf das Icon in der linken oberen Ecke bzw. mit der rechten Mousetaste in die Titelzeile klickt und das Wiederherstellen,...more >>

Plotting libraries for .NET
Posted by Giovanni Dicanio at 2/18/2008 7:51:09 PM
Hi, do you know any good and free 2D and 3D plotting libraries for .NET ? I need them for a project (which is starting as an "experiment", and is no commercial, at least at this first step, so the need for a free library). I found this: http://www.zedgraph.org/ which seems very good...more >>

Enter Event on Windows Forms do not always fire...
Posted by Rainer Queck at 2/18/2008 6:19:25 PM
Hello NG, the hint on the property editor for the Form "Enter" event sais: Gets fired, if this control gets the active control. In my application I experience, that this is "mostly" true, but some times not. I have a MDI application, and I use the <Form>.BringToFront() to activate a hid...more >>



Class Metadata
Posted by DBM at 2/18/2008 6:01:04 PM
I'm writing a relatively straight forward desktop CRUD application. The design is a 4 layer model with individual layers decoupled by use of interfaces and the source is under VSS control. As I've been debugging, I've run into two issues that are causing me heartache. The first issue is t...more >>

Initializing a TraceListener Writer to a stream in app.config.
Posted by michael sorens at 2/18/2008 3:36:00 PM
I would like to be able to define a TraceListener in my app.config file whose Writer is a stream. I understand how to do this in code, but I have not been successful in getting it to work with the app.config file. I had hoped that I could just omit the initializeData attribute and then assign ...more >>

Log out in "communities"
Posted by KS at 2/18/2008 3:17:17 PM
When I will check my question status - mostly - I'm met by this message: You have been successfully logged out of the Forums. Return home in a nice form - and it's completely unimposible to log in again !!!! Am I the only one with problems on this subject ? I have tried and tried to...more >>

using mysql
Posted by illusion.admins@gmail.com at 2/18/2008 3:14:25 PM
I am using a MySQL database for the backend of an application I am building. The database is built and ready to be plugged into the application, BUT i am not really sure how to go about this. I am using the MySQL.Data.MySQLClient using statement. I have been able to successfully use the MySqlCon...more >>

Visual Studio custom template files, question about DependentUpon
Posted by Lasse_Vågsæther_Karlsen at 2/18/2008 3:01:17 PM
Sorry for crossposting this to two newsgroups, I assume the most appropriate one is one of the vstudio ones, but csharp always have so many more people so I hope this increases the chance of someone knowing the answer. I am trying to build a multi-file item template for my C# projects which...more >>

LIB Enviromental Variable - Need to delete path VS2005
Posted by Blair at 2/18/2008 2:20:54 PM
Hello, I have a old enviromantal path in LIB file that, every time I compile gives a error message. It does not stop the compiler just gives a warning. This has become very annoying. I would like to delete out of the listing as I don't use the LIB anymore, but I am lost as how to do it. ...more >>

SerialPort.Open requiring elevated privs on Vista?
Posted by David Hearn at 2/18/2008 2:02:52 PM
(Apologies if this is not the appropriate group) I'm trying to use an external USRobotics USB modem (Model 5633B) in Vista - and talk to it via AT commands from my C# application (using VS2008 + .Net 2.0). Downloaded the Vista drivers, and it comes up as COM12. I also have a built-in mode...more >>

AllowTransparency/Topmost/Binding Issue in WPF (VS2008)
Posted by Wonko the Sane at 2/18/2008 1:35:02 PM
Hello All, There seems to be an issue (as demonstrated by the code below), where each of the following is true: 1. A WPF Window is set up with AllowsTransparency="True", WindowStyle="None", and the Topmost is bound to a menu item. 2. A menu and toolbar are the children of a StackPanel ...more >>

Color.Equals seems totally useless
Posted by Ben Voigt [C++ MVP] at 2/18/2008 1:29:17 PM
I guess this must be a well-known issue that I just hit my head on. Color.Equals doesn't apply the usual equality test. For example: using (g = Graphics.FromImage(bmp)) g.FillRectangle(Brushes.Black, new Rectangle(Point.Empty, bmp.Size)); One might expect that for any (x, y) inside ...more >>

scrolling screen
Posted by RobcPettit@yahoo.co.uk at 2/18/2008 1:28:09 PM
Hi, any ideas how to have the screen on a form look like it scrolling. Bit like a rolling road. Regards Robert...more >>

How to use time with an If command?
Posted by david.jordan1@googlemail.com at 2/18/2008 12:56:44 PM
Can anyone tell me what formula i could use to perform a function whenever for example,the month of April or perhaps the 31 days of a specific month appears in the data. I would be most grateful for any help. Thanks David...more >>

object
Posted by TonyJ at 2/18/2008 12:16:23 PM
Hello! I have read this small example on some page on the internet but I can't understand how myValue can be a member of the x object.becaude object is a reserved key object. The same question is also valid how the y object can contain the member myValue? object x = new object(); x.myVal...more >>

SQL EFFICIENCY: using directive vs try/catch
Posted by R Reyes at 2/18/2008 12:10:00 PM
Hi there! Problem: I am refactoring all my database code because I noticed every few days sqlservr.exe would show as Mem Usage of 500,000k in the task manager and crash our server. Solution: I wanted to be able to use the .Dispose() command and found the "using" directive would do the ...more >>

text box movement
Posted by RobcPettit@yahoo.co.uk at 2/18/2008 11:59:29 AM
Hi, Can somebody point in the right area? If I have 6 textboxes in a line vertically, I want to move them across the screen, left to right. They would each have individual positions, so they would look like there moving at different speeds. Id like to do this every 2 seconds, with the end result...more >>

implicitly handle operator == when class overrides Equals method
Posted by Steve Richter at 2/18/2008 11:47:13 AM
Can I get the C# compiler to implicity implement the relational operators when my class overrides the Equals method and implements the IComparer interface? coding operator== is a bit of work since I have to first cast to object and compare for null. Then compare for equality. ( is that true? ...more >>

integer to binary bits
Posted by Muhs at 2/18/2008 11:37:51 AM
Hi all!! Im working with mutation testing... i have a file which consist of data like this 10110011 10110111 01010001 i read the file and store it in an integer array... now i want to use the integer as seperate bits like the first one as, 1,0,1,1,0,0,1,1. This is because i wnat to fin...more >>

Creating dropdown through enum
Posted by Sampat at 2/18/2008 11:15:52 AM
Hi, I am trying to create a dropdown by looping through an enum and assign the name as a dropdown item and value as the value assigned in the enum for that item.I am able to either loop by name or by value and I am not able to find a way to loop through an enum item. Below is the code snippe...more >>

FileSystemWatcher and open files
Posted by David Jackson at 2/18/2008 10:55:12 AM
Hello, I have a Windows service written in C# which uses FileSystemWatcher to monitor a network folder for the creation of certain files. These are text files which originate from a remote mainframe system. When (a) file(s) arrive in the network folder, the Created event fires which then...more >>

Modify Jpeg via BinaryWriter renders "useless" output
Posted by Richard Coltrane at 2/18/2008 10:21:11 AM
Hello, If i take a jpeg and pipe it from a binary reader to a binary writer, everything is fine and I can still use it. If i take that same jpeg and piping code and simply add a byte encoded string to the front of the file then I can no longer open it in an image editor. This i would expec...more >>

In SOAP Request, "Underlying connection was closed" error
Posted by Brent at 2/18/2008 10:04:25 AM
For the life of me, I cannot understand why I'm getting this error constantly with the ASP.Net 1.1 code below: "The underlying connection was closed: An unexpected error occurred on a receive." I've tried just about everything I know how to do. My best guess is that the error is somehow rel...more >>

My professor said NEVER pass by reference. Your opinions please?
Posted by -Lost at 2/18/2008 9:50:54 AM
My professor said NEVER pass by reference. Your opinions please? I am not quite sure about this thing he said, so I came here for your advice, opinions, or whatever. Everything I was told was that reusing memory and/or objects is more efficient than creating numerous copies of your data (...more >>

About Generics
Posted by TonyJ at 2/18/2008 9:27:41 AM
Hello! Assume I have a declared the generic class PrintableCollection<T> in this way see below. Here I use a restriction on the type parameter T that this type T must implement the interface IPrintable which have method Print. So there is a restriction set on the elements that can be stored i...more >>

How write this SQL in LINQ?
Posted by Ronald S. Cook at 2/18/2008 9:24:28 AM
Does anyone know how I would write this SQL in LINQ: SELECT DepartmentId, MAX(EmployeeHireDate) FROM Employee GROUP BY DepartmentId Thanks, Ron ...more >>

Object reference not set to an instance of an object
Posted by Andrew at 2/18/2008 9:16:01 AM
Hi all, //msg has been assigned as type NHapi.Base.Model.GenericMessage.V23 //NHapi.Model.V23.Message.ORU_R01 ORU_R01 ORUR01 = msg as ORU_R01; I've got the error coz ORUR01 is always null, because I can't convert msg to a different type ie to type ORU_R01 How do I do this ? Tha...more >>

Accessing shared network drives prevents standby mode
Posted by JT at 2/18/2008 8:37:21 AM
Hi, I've realized that my good fortune of not having my computer go into standby mode was the result of my application accessing a file on a shared network drive. Not going into standby is a very good thing for my application, but I don't want users to be required to share a drive and file j...more >>

user login application
Posted by nologo at 2/18/2008 6:49:57 AM
Hi, i'm looking into making a application that uses user groups and names. i wish to avoid using currentuser. so basically i want to know..is it possible to create a user base with passwords?each user would have a role (possibly in sql i could use a value such as 1= admin 0=standard user) any...more >>

Converting to Hex
Posted by Cdude at 2/18/2008 6:12:20 AM
I am receiving data from a machine though a Ethernet port.But when C# pulls the data in it reads the data as decimal not hexadecimal.How can i pull the data as a hex and not as a decimal?please any suggestions....more >>

Sort DataTable
Posted by RP at 2/18/2008 5:39:50 AM
I have a DataSet with one Table in it. It contains two columns: Date and Amount. I want to sort the table on ascending order of Date after the DataSet gets filled. How to sort the records of the DataTable?...more >>

List<>
Posted by Nikolay Podkolzin at 2/18/2008 4:56:01 AM
Good Noon, Community! Could you be so nice and help me with my problem, I need To enumerate all items in List, but, it List contains a Node with next Parameters: public class Node { .... public bool HasSubMenu; .... } public class NodeCollection : List<Node...more >>

Should i use Array, double[][] or double[,]?
Posted by K Viltersten at 2/18/2008 3:19:15 AM
I'm designing a class that will base its functionality on one (or more) arrays of doubles. Each array will be of the same length pairwise but their number may vary from a single one up to several. The usual way i'd use in C++ would be to declare the following. double[][] *data; In C...more >>

facing problem in programming(update fields in tables)
Posted by Dhananjay at 2/18/2008 1:17:33 AM
hi all, I am facing problem in programming.Can anybody please let me know how to solve the problem. I have a link, clicking the link opens a page in which there are some data which is coming from different tables(join realtionship). And some data has to be inserted in that page(textbox) In thi...more >>


DevelopmentNow Blog