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# > october 2005 > threads for tuesday october 25

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

Help regarding monitor in Asynchronous call.
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 10/25/2005 11:13:45 PM
Hi all i am having C# application which is processing 5 urls asychronously using webrequest and webresponse classes. What i want is as soon as any url request processing is completed i want to decrement one counter and increment another count. How should i do this in call back. Do i need to us...more >>

Error Restoring Signature (Hexadecimal format)
Posted by den 2005 at 10/25/2005 10:31:01 PM
Hi everybody, I am problem with restoring data of byte[] type to be loaded on an Ink object. The data was earlier converted to byte[] then finally to hexadecimal data and store on a text file. Is there anyone who can help me solve this problem. Thanks. Note: The Ink object is from Micro...more >>

Newbie question focus problem
Posted by CobraStrikes NO[at]SPAM al.com at 10/25/2005 9:23:01 PM
Hi All, Why can't you call MessageBox in the lost/leave event without it causing focusing problem, is there any way around this. Thank you. ...more >>

Object Naming
Posted by Lance at 10/25/2005 9:14:26 PM
I've been teaching myself C# for a few months now and I have a concept problem. I know how to instantiate an object from a class I’ve created, but now I want to retrieve and store data in a database and I can’t seem to understand how I would name my objects. For example, I have an employee...more >>

Webcam API
Posted by Michael A. Covington at 10/25/2005 9:01:11 PM
Is there a straightforward way to turn off automatic color adjustment of a webcam through software? (Other than by popping up the menus supplied by the driver and having the user do it.) I'm thinking about using a webcam as a colorimeter. ...more >>

Convert VB to C# for reading an image from Access DB
Posted by dale zhang at 10/25/2005 8:01:02 PM
Hi, I am trying to read an image from MS Access DB based on the following article: http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp The article author is using PictureBox for windows application, while I am doing for web. I can only find Image from web forms control and HTML control. ...more >>

MessageQueue
Posted by Matt at 10/25/2005 5:11:01 PM
Does anyone know of a simple way to get the total number of messages in a MessageQueue? I thought it would have a count property or something of the like but I have been able to find anything. Thanks, Matt ...more >>

Using 'Dispose' in a Custom Paint Event
Posted by Robert W. at 10/25/2005 4:27:01 PM
I have an About box where I've successfully implemented a custom paint event. The structure of it is simple: protected void PaintClient(Object sender, PaintEventArgs e) { // Assorted graphics code goes here } Following examples I've seen elsewhere I added the followi...more >>



Insert text in the middle of a formated richtexbox.
Posted by Carlos Lozano at 10/25/2005 3:34:02 PM
I need to merge the content of two richtextboxes. It can not be accomplished using the RichtTextBox.Text field because all format will be lost. So it has to be done using the RichtTextBox.Rtf field, but I loose part of it as follows: private void MergeRtf() { // having the RichTextBox c...more >>

Problems with the performance of nant 0.84
Posted by Aditya at 10/25/2005 3:10:43 PM
Hi! I am currently trying to upgrade to the nant 0.84 and was successful in making the necessary changes. I am having a performance issue though. Whenever I have a reference of the form A.D.dll, what the nant is doing is that it copies all the dlls having A.D.*(A.D.dll, A.D.S.dll, A.D.T.dll, .....more >>

Asynchronous Pluggable Protocols and embedded ActiveX controls (e.g. PDF)
Posted by igarrison NO[at]SPAM hunter.com at 10/25/2005 3:07:47 PM
I have an APP that reads from a file on disk and decrypts the raw data into the memory stream that then gets passed to the client. This works great for any text or image files, but I can't seem to get it working at all for PDF files. I checked the stream, and the decrypted data is written prop...more >>

Buttons, Forms and Gifs
Posted by curtis.barrett NO[at]SPAM gmail.com at 10/25/2005 3:04:31 PM
Hi I have a form that I am trying to convert the Buttons / Images to a smaller size and so far I have scaled the images down but I am having trouble figuring out how to either 1 change the code to dynamically link the gif to the form or two find the appropriate values that are supposed to go int...more >>

Debug VS 2005 IIS
Posted by Steven Blair at 10/25/2005 2:35:22 PM
Is it possible to debug my ASP.NET 2005 projects with IIS like I did in 2002/2003. My project uses IIS be default to run instead of the VS 2005 one, but I don't have a clue how to break out and debu my code now. Any help would be appreciated. Regards, Steven *** Sent via Develop...more >>

combobox items collection display snafu
Posted by Dan at 10/25/2005 1:43:26 PM
OK - I may be going crazy but I'm having one of those "I can't believe something that ought to be so simple is consuming so much of my day" moments. I thank you all in advance for any and all assistance. I have a winforms combobox that I have assigned the Items Collection to at design time. ...more >>

DB Connection String Problem
Posted by bob at 10/25/2005 1:01:18 PM
Hi, I am trying to encrypt my connection string in the app.config file. I am using Base64 encryption, I just want to hide it from casual users. I keep getting file not found error. However when I just use the connection string in plain text I can connect fine. The only difference between th...more >>

using System.Runtime.Remoting.Channels.Http
Posted by marcelino at 10/25/2005 12:50:03 PM
Hi, I have c# express beta I try to write the following using clause: System.Runtime.Remoting.Channels.Http; because I want to create a http channel. HttpChannel aJobChannel = new HttpChannel(4000); But the compiler doesn't want it... The type or namespace name 'Http...more >>

RichTextBox doesn't show after minimizing / restoring
Posted by ajou_king NO[at]SPAM yahoo.com at 10/25/2005 12:17:50 PM
I have a richtextbox that is used to update with information. That works. public void addTextIn(string id, string txt, Color idColor) { Font idFont = new Font("Arial Black", 10.0f); Font txtFont = new Font("Verdana", 10.0f); boxMsgIn.SelectionFont = idFont; boxMsgIn.Select...more >>

How to declare a pointerto an array of bytes
Posted by Dave at 10/25/2005 11:53:03 AM
I am trying to call VerQueryValue from a C# program. VerQueryValue takes as one of its parameters a pointer to a pointer to an array of bytes, which it uses to return a pointer to the required array. Now, I can call it like this: byte* lpBuffer; int length; string subBlock = @"\St...more >>

can i dynamically set a reference to a form control?
Posted by Dica at 10/25/2005 11:36:40 AM
i want to allow my "Cut" command to dynamically determine the active control and cut any selected text from it (assuming it's a textBox control). so far i've got this: private void menuItem5_Click(object sender, System.EventArgs e) { Object oControlType = System.Windows.Forms.Form.Active...more >>

ToDecimal to 2 digits after the decimal
Posted by Mike L at 10/25/2005 11:36:05 AM
Convert.ToDecimal(txtTotal.Text) comes back with 0.0000 I want 0.00...more >>

How to Post data to web app and reading response
Posted by Tammy at 10/25/2005 11:16:12 AM
Hi, I have an aspx app which needs to post data to a form and read the response. I am confused on whether I should be using the get_url using "POST" method or the post_url using "GET" method. string get_url = "http://scmvs4:9090/gtccinfo/H485W020.HTML"; --url contains a form string post...more >>

Help with Recursive Function - Building an Ordered LIst
Posted by Ryan Ternier at 10/25/2005 10:36:50 AM
I have a section of my project that is Driving me nuts. No one has been able to help that much on it, so i thought of posting it here in hopes someone could help. I need to print out an Ordered list. Ex. 1. Something 2. Something Else ......A. SOmething ......B. Something 3. HEre'...more >>

where to save user settings in an app
Posted by Dica at 10/25/2005 10:35:05 AM
i've got an app that needs to connect to sql server and login with a useName/password. currently, my app saves this info in an XML file in plain text (i.e. no encryption). everytime the app is opened, the XML file is read and the userName/password used to establish the sql connection. is this th...more >>

Could not bind to the new display member error
Posted by Dica at 10/25/2005 10:22:38 AM
i've got a table in my dataSet that looks like this: <tblTasks> <taskID>0</taskID> <projectID>0</projectID> <summary>-- Select A Task --</summary> </tblTasks> <tblTasks> <taskID>662</taskID> <projectID>19</projectID> <summary>Addition - Add Update to MeetComp</summary> ...more >>

TreeView and FullRowSelect question
Posted by rh at 10/25/2005 9:57:31 AM
I created a user control that is made up of a TreeView and a VScrollBar. I set the TreeView.FullRowSelect = True and it works as expected (full row is visible, appears on top of everything else) but only sometimes. Other times it appears behind the parent form and all that is visible is the la...more >>

Event log for Windows Service app exceptions -- need better diagnostics
Posted by SDS at 10/25/2005 9:40:25 AM
VS 2005 / .NET 2.0.50727 (Sept. CTP) I've got a Windows Service application that I've pushed out to a few other workstations. There is an unhandled except occurring somewhere in the application at some point, but I can't debug it because the diagnostic info written to the event log is nearly ...more >>

XML Generator - Plan of Attack
Posted by jay NO[at]SPAM gloryfish.org at 10/25/2005 8:23:17 AM
Hello all, I'd like to probe the community for some insight, if I may. I am in the planning stages of developing an XML generator for my workplace. Our site has an internal news system which stores news items as database entries. Our head organization has requested that all branches make an...more >>

ArrayList of Objects
Posted by Satya at 10/25/2005 7:45:05 AM
Hi, I am running with a specific problem ,I have 2 arraylists of object types.I need to compare the 2 arraylists and I have to figure out the first sequence of common objects in each array starting from index 0,then I have to takeout the common objects and then all other object from the se...more >>

Totally Lost and frustrated: visual studio c# 2005 sql database interaction
Posted by garyusenet NO[at]SPAM myway.com at 10/25/2005 7:42:07 AM
I have created a new project. and within this project as per the tutorial created an sql database. i have made a query which returns the result i need. 1. I cant SAVE THE QUERY? where on earth is the option to save a query? 2. How do i run an sql query from within c# ? i have a command but...more >>

Implementing VB WithEvents in C#
Posted by booksnore at 10/25/2005 6:48:31 AM
Hi, I'm trying to use a COM component in a C#.NET project. The sample VB code of the COM component declares it as so, Public WithEvents APC As ENTAPCDLL I've made a reference to the com object in C# project, I want to set the value of an object called InputData which is a member of ENTAPC...more >>

Appending to an XML file.
Posted by tony.collings NO[at]SPAM gmail.com at 10/25/2005 6:17:39 AM
I started a thread here : http://groups.google.co.uk/group/microsoft.public.cmserver.general/browse_thread/thread/29d63077144004a9/c3888efdcb7338f6?hl=en#c3888efdcb7338f6 About creating an Email function to email authors when the Review Date has expired on their page. I've managed to now ach...more >>

VS2005: Port project or recreate from ground up?
Posted by -DG- at 10/25/2005 5:57:32 AM
In C++, there is a compelling reason to recreate projects for the VS2005 compiler rather than simply copy and recompile older code (reason being C++/CLI syntax). I'm wondering if there is any reason to do the same with C# code. Does a newly created project have any differences in compiler swit...more >>

File.Exists
Posted by sur at 10/25/2005 3:42:38 AM
Hello, My problem is that File.Exists works fine if my file is on my local drive but returns false if its on any other drive. I think that the issue is probably file permissions and so I have tried the following: FileIOPermision permFileIO = new FileIOPermission(FileIOPermissionAccess.Read,...more >>

run an exe on page load
Posted by sonu at 10/25/2005 3:29:48 AM
I have created an web page. I want run an exe when i click any button on that page. any help please Regards Amit Mishra ...more >>

How to copy one listview to another. Hopefully this can help someone ;-)
Posted by ltnats NO[at]SPAM yahoo.com.au at 10/25/2005 2:55:11 AM
Hi guys, I stuffed around with this for a whole day, searching the groups and trying different methods. So when I finally came up with a solution I thought I would share it, as it could save someone all the stuffing round I had to do. Now I don't know if this will solve everyone's listview...more >>

Invoke
Posted by GTi at 10/25/2005 2:03:04 AM
I have some functions that I want to Invoke in my C# project: int NumberOfServers (BOOL UseENUM, LPCSTR MachineName); BOOL GetServerName (int index, LPSTR Buffer, int BufSize); can be used by: [DllImport("some.dll")] private static extern int NumberOfServers(bool UseENUM, [MarshalAs(Unmana...more >>

How to extract the program description from an EXE
Posted by Dave at 10/25/2005 1:41:02 AM
Can anyone tell me how to extract the resources, specifically the description and icons, from a .EXE file programatically. Basically I want to write a C# application that takes .EXE files and displays their description and their icons, more or less like right-clicking the file in explorer and ...more >>

Inheritance on static variables?
Posted by shooter NO[at]SPAM farts.com at 10/25/2005 1:18:06 AM
How does one make a function in a base class slect the appopriate version of an overriden static variable. Code-splination follows: public class letter { public static int PostCodeDigits = 4; public void grow() {PostCodeDigits++;} public virtual void shrink() {PostCodeDigits...more >>

filling in forms
Posted by Bruce Skamser at 10/25/2005 1:09:13 AM
I'm new to C#, and I'd like to write a program to take the responses from a series of questions and the output would fill in forms. Specifically, I'd like the program to take the user input and the output would be filled in government forms (for new business registration). I'm not sure of ...more >>

Form and "X" button
Posted by Marty at 10/25/2005 12:00:00 AM
Hi, How can I detect that a VS.NET2003 C# form is closed with the upper right "X" button ? This is because I want to add code to the myForm.OnClosing() event to do a different process if a form is closed by the user (with the "X" button) or if the form is closed with myForm.close(). T...more >>

List of actions for a file extention
Posted by A.M-SG at 10/25/2005 12:00:00 AM
Hi, How can I list the available actions (and the command line for each action) for a specific file extension? I am using C# and .NET 1.1 I need that for printing .PDF files (*.PDF files print action), but I would like to have a general solution for other file extensions and actio...more >>

Use MFC C++ existing code in c# application
Posted by Daniele Piccinini at 10/25/2005 12:00:00 AM
Hallo, I need to use MFC existing code in a c# application. Existing code is a complex comunication tools that use Socket, notification message ... Can someone show me HowTo, sample code or tutotials ? Thanks in Advance. - Daniele - ...more >>

DbType
Posted by Peter Kirk at 10/25/2005 12:00:00 AM
Hi I have a database with an "nchar" column. How do I specify this type of column in C# when I use stored procedures? For example: IDbCommand command = ... // get the command IDataParameter param = command.CreateParameter(); param.ParameterName = "@pcid"; param.Value = 'n'; param....more >>

Creating a dropdownlist in Excel from C#
Posted by Simon Tamman {Uchiha Jax} at 10/25/2005 12:00:00 AM
I know how to enter and read values from cells. But does anyone know how to make dropdownlists in an excel file from C# code? Kind Regards Simon (Jax) ...more >>

MDI BottomMost Child Window
Posted by rawCoder at 10/25/2005 12:00:00 AM
Hi, How can I have an MDI Child Window in such a way that all other MDI Child Windows appear OVER it. Its like a background window which will never overlap another MDI child window. Is this achieveable, this almost the BottomMost behaviour of an MDI Child Window? Is it possible to have this...more >>


DevelopmentNow Blog