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# > november 2007 > threads for thursday november 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

Question about array copy performance.
Posted by linuxfedora@yahoo.com.hk at 11/8/2007 7:36:23 PM
Which one is faster or any other better way to do it. I have an array of byte with name: sendBuffer, and i will like to make some thing like that the value started from index of the array in realDataSent is now copy to the beginning of the sendBuffer. I have tried: ...more >>


Implementing a Custom Download Manager and Integerating it with IE
Posted by JP at 11/8/2007 7:22:45 PM
Hi List, I am trying to create an application which is a Download Manager. I want this to be attached to the IE so if user clicks a link on the page to download something and which basically opens my download manager and not the normal IE download window. The download manager is some what fun...more >>

Color control of text in a text box
Posted by colin at 11/8/2007 4:49:38 PM
Hi, I have a text box wich I would like to change the color of some of the text, preferably with text commands, like with some terminal protocols. Am I right in thinking the text box doesnt have this built in and if so is there an easy way to add it or is there another control wich does it ...more >>

Killing Child Async Process (Non-Webservice)
Posted by Cam Drab at 11/8/2007 4:39:11 PM
If this async call is running when I close the form, it appears to still be running (through the while-statement loop) even after the form.closed. In the FormClosing event I set the killedApp to true. All searches on the subject seems to be asking how to do this and no solution. There has...more >>

system.web and HttpContext
Posted by Gilgamesh at 11/8/2007 4:18:02 PM
We're developing a C# assemlbly in .net 2.0 and we don't see HttpContext class in System.Web. Anybody knows what happened to it? We need HttpContext in order to access the Request object. Thanks, GIlgamesh ...more >>

C# 2005 Express Missing Features
Posted by kalvin.tuel@gmail.com at 11/8/2007 3:50:06 PM
What features are missing from the Express version of C# 2005 vs the full enterprise version? Thank you. Kalvin ...more >>

HTTP streaming
Posted by Vince Panuccio at 11/8/2007 3:46:28 PM
Hi, Is there anyway I can stream large documents to a clients web browser without putting a huge load on the web servers memory consumption? The only way to access these documents it the HTTP protocol. A direct link is out of the question as the user name and password have to be suppied i...more >>

MTOM documents in WCF
Posted by Mike Schilling at 11/8/2007 3:24:40 PM
In WSE 3.0, the XopDocument class is used to represent a DOM constructed from an MTOM message. What is the equivalent of this in .NET 3.0 (WCF)? More generally, which of the system classes in .NET 3.0 comprise WCF? That is, where would you look to learn about the classes added in .NET 3.0? ...more >>



FindControl help...please
Posted by Dave at 11/8/2007 2:52:03 PM
I have a web page that I'm trying to toggle between current data and archived data. So far so good. To preserver the integrity of the archived data, I need to disable the Edit, Delete, and New links in the Form View. The below code is what I've been trying to use, and I've tried it in various...more >>

Read Tab dilimeted file
Posted by bobby at 11/8/2007 2:50:01 PM
Hi, I have a excel file, also saved as tab delimited file. Now this tab delimited file has text(as table) for eg date empid empsal 10/01/2007 1 20000 now i want to read this table from txt file into a dataset. How can I do that. Thanks ...more >>

TimeSpan Problem
Posted by at 11/8/2007 2:35:45 PM
Why is it that: DateTime start = DateTime.Parse("1:00 AM"); DateTime stop = DateTime.Parse("2:30 AM"); TimeSpan ts = stop - start; Response.Write(ts.Minutes.ToString()); Produces 30, not 90? How do I return the exact number of minutes between 2 times? Thanks a lot. ...more >>

clock_gettime(CLOCK_MONOTONIC, struct timespec*) equivalent for c#
Posted by Daniel Kay at 11/8/2007 2:23:18 PM
Hello folks! I am new to c# and want to port a c++ library to c#. I need an accurate timesource which has at least millisecond resolution. A clock, which counts the seconds/milliseconds since booting windows would be great. A clock which may jump in time during runtime would lead to false r...more >>

What is the best way to take pictures using the Camera?
Posted by ink at 11/8/2007 2:12:18 PM
Hi I am developing on a Symbol MC70 devices and in the past they have always realised an SDK for development including Symbol.Camera Wrapper. However it seems that for the MC35 they are not, or it is not yet available. We have a current application written in C# CF2 that uses there Symbol...more >>

Page p = new Page();
Posted by Steph at 11/8/2007 2:07:19 PM
hello, i want create a aspx object page for manipulate it. like : Page p = new Page(); p.LoadPage("~/mypage.aspx"); and after i can modify manually all control, header etc.. and save it. how do ? thancks...more >>

Process I/O re-direction
Posted by a_wahoo at 11/8/2007 2:01:00 PM
I work in a group that uses a variety of third party tools to control an embedded system. I need to integrate the functionality of these tools (mostly command prompt) into a single interface. I followed the examples on MSDN and other sites to create a class that spawns a System.Diagnosti...more >>

a reflection question
Posted by Adam Right at 11/8/2007 1:14:43 PM
Hi, I want to write a code (by reflection ) to get the all button controls on a mdi form. my sample code for that : --------------------------------- FieldInfo[] fieldInfo = this.GetType().GetFields(BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Public); for (int i = 0...more >>

Clear IE7 browser history on Vista _ Clear address bar history of Firefox - 081107
Posted by Vighneswar at 11/8/2007 12:34:45 PM
Hi All Please let me know is there any way to clear the address bar history ( Typed URLs) of Firefox browser programmatically. Deleting 'index.dat' under profiles folder of firefox will delete both ( history and Typed URLs ). Here I need to clear only the address bar history of firefox. ...more >>

reading a file into c#
Posted by moker at 11/8/2007 12:20:02 PM
Hoi, I have a problem/question. I own a weather station (a davis pro 2) with datalogger. I like to make my own program as a learning tool for the c# language. The question i have is: how do i read the file with the structure as shown in this question in a c# program. I believe i have to use...more >>

Many instances of the same program
Posted by Bronislav at 11/8/2007 11:35:18 AM
I need to run more then 1 instance of the same program but also I need to know which instance is running. In C++ code was: int nInstance = 0; char szAppName[32]; m_dwMutexReturn = ERROR_ALREADY_EXISTS; while (( m_dwMutexReturn == ERROR_ALREADY_EXISTS ) && ( nInstance < MAXINSTAN...more >>

Java Web Service needs custom security token
Posted by godd at 11/8/2007 11:31:37 AM
I am consuming Axis web service and one of the requirements is to provide custom security token in a SOAP header like that: <wsse:Security> <wsse:UsernameToken> <wsse:Username>username </wsse:Username> <wsse:Password> password </wsse:Password> </wsse:UsernameToken> <AccessID...more >>

How to ...
Posted by Jacek Jurkowski at 11/8/2007 10:59:14 AM
Reflect an assembly (current dll) and create instance object of every class which base clas is "Module"?...more >>

Adding validation in Property
Posted by RP at 11/8/2007 10:57:21 AM
I am using following code to validate the value that is being assigned via property. But it is not working: ---------------------------------------- public string vProductName { get { return ProductName; } set { Product...more >>

Cast to long
Posted by RP at 11/8/2007 10:53:40 AM
I am using C# 2005 with Access XP. I have a column with a LONG INTEGER data type. I have a class which has a property: --------------------------------------------------- Public long BPLNo { Get { return _BPLNo; } Set { ...more >>

Legacy ASP calling C# assembly
Posted by Gilgamesh at 11/8/2007 9:35:57 AM
We've got a legacy ASP application which needs to call a method in a C# assembly. How can I capture the Request object in C#? I need to get Servervariables from Request object. Thanks, Gilgamesh ...more >>

Need help reading data from serial port please
Posted by CMartin at 11/8/2007 9:20:03 AM
I am trying to use code below to read data form the port. I know it is not correct but I am not finding what I need in MSDN to help me. private void serialPort1_DataReceived(object sender, SerialDataReceivedEventArgs e) { string getRelayStates; getR...more >>

What is the best way to process HTML Data?
Posted by ink at 11/8/2007 9:13:48 AM
Hi all, I am trying to pull some financial data off of an HTML web page so that I can store it in a Database for Sorting and filtering. I have been thinking about this for some time and trying to find the best way to do it but I am just not experienced enough with this sort of thing to mak...more >>

I can say I have an object-oriented database. Am I wrong? Please help me.
Posted by AliRezaGoogle at 11/8/2007 9:13:23 AM
Hi group There are many RELATIONAL databases like MS SQL server. They are not called object oriented database because their base concept is row and not object. But suppose following scenario: I have a class in my application called Student. I have another class called Course and another class...more >>

Is CSAML a joke?
Posted by Howard Swope at 11/8/2007 9:01:55 AM
A colleague at work has been talking a bit about XAML. I thought I would look into it. While there are some interesting concepts in WPF, I can't believe anyone is serious about XAML. What an incredibly painful way to write code. Why would anyone want to do that. At first I thought it was ju...more >>

Moving Code Breaks Namespace
Posted by william.oram@gmail.com at 11/8/2007 8:51:51 AM
I'll do my best to bring a rather complicated, multifile problem into a single newsgroup question. It's a challenge to balance accuracy with simple code that demonstrates the problem. Assume an external .cs file containing a class MyClass: namespace vortex { public class MyClass { ...more >>

Socket write behaviour is inconsistent?
Posted by cjard at 11/8/2007 8:24:05 AM
I have a client and server that enjoy the following simple dialogue: Client connects Client sends request Server sends response Client disconnects This is the way it must be. The response must be wrapped in a start and end byte 0x02 and 0x03 resepctively. suppose I have a byte[] respons...more >>

Return image link with webservice
Posted by zion at 11/8/2007 8:15:56 AM
Hello, How can I return image link with webservice that I could see it in web page? The image is on my hard disk and <img src="c:\pictures\test.jpg" /> does not work. If I use <img src=http://My comuter/Virtual directory/test.jpg /> it's working but I can't use this because the image path is ...more >>

WCF client and specific port
Posted by Jan Schustr at 11/8/2007 7:15:02 AM
Hi all, i've got the application wich use WCF communication. Because firewall, I need open client port on specific number, but I can't find where it should be set up. Can anyone help me? this is my app.config of my client app. <?xml version="1.0" encoding="utf-8" ?> <configuration> <syst...more >>

C# Classes with members that implement IDisposable
Posted by cgarcia0117@hotmail.com at 11/8/2007 6:52:02 AM
For any class I write in C# that has a member variable that implements IDisposable my class implements the IDisposable pattern. I do this to guarantee the reference to the member is explicitly released and the object is eligible for garbage collection when my class is disposed or its' finalizer ...more >>

COM Interop.
Posted by Rahul Patel at 11/8/2007 6:48:03 AM
I have a COM dll that I am consuming from C#, one of the methods is returning an object as void** which gets converted to IntPtr in C#. So the question is how do I convert the IntPtr to myObject wehre myObject is of type IMyIface myObject; (I know that hte void** is of type IMyIface)....more >>

System.String / System.Text.StringBuilder
Posted by RP at 11/8/2007 6:31:10 AM
I want to use: System.String, and System.Text.StringBuilder But both are not visible when I press System. I even checked the references, but the names are not visible there also. How to use them? ...more >>

Class, Constructor and Property - II
Posted by RP at 11/8/2007 5:32:21 AM
Refer to my original post at: http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/c50a6ec6270a41c0/2b202ff938fed637?lnk=gst&q=Class%2C+Constructor%2C+Property#2b202ff938fed637 I want to know: (1) Is it necessary to define SET property if the construc...more >>

Cast problem
Posted by RP at 11/8/2007 5:25:16 AM
I have a public variable in a class of type 'int'. I want to assign a text box value to it, but it is giving problem. I attempted following code: NewGroup.GroupID = (int) txtGroupID.Text; It generates an error "cast from string to int ....". ...more >>

XPathNavigator.Select
Posted by Bruce Sandeman at 11/8/2007 4:40:39 AM
Hi, I am trying to execute the following xpath query against my XmlDocument. //*[not(*)][count(ancestor::node())=max(//*[not(*)]/ count(ancestor::node()))] This query will retrieve the deepest node. It only works in XPath 2.0 but according to MS documentation .Net 2.0 supports XPath 2.0 s...more >>

Turning XML into an object with properties
Posted by BillAtWork at 11/8/2007 3:19:00 AM
Hi, Not sure what to use here. I have a fairly simply XML document and I'd like to "load" it into a related class so that I can access data using class properties, etc. I've been reading thing about "serialization", etc. but can't quite find the right article. Maybe I'm looking at the wrong t...more >>

How to change directories using FtpWebRequest?
Posted by Yasir Zaheer at 11/8/2007 3:16:36 AM
I need to access a FTP Server. I'm using FTPWebRequest as described in visual studio 2005 documentation. Everything works fine except i cannot change the current working directory on the server to the parent directory. I see the following methods listed in MSDN for the WebRequestMethods.Ftp M...more >>

Sending Email
Posted by Joe Cool at 11/8/2007 2:40:26 AM
I am using the following code to try and send an email message through my ISP. I get an exception "An existing connection was forcibly closed by the remote host". Any ideas why? using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Draw...more >>

How do I check if a directory exists within another directory
Posted by aine_canby@yahoo.com at 11/8/2007 2:13:17 AM
Hi, How do I check if a directory exists within another directory? For example C:/aaa C:/Aaa = true C:/aaa/ C:/Aaa/bb = true C:/aaa/ C:/Aaa/bb/cc = true C:/bb/ C:/aa/ = false Thanks, Aine ...more >>


DevelopmentNow Blog