Groups | Blog | Home


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# > january 2005 > threads for wednesday january 19

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

Icmp Ping Multiple Threads
Posted by Arsen V. at 1/19/2005 11:21:43 PM
How to get Icmp messages to work with multiple threads. Currently I tried during ReceiveFrom and use Peek to get the fromEndPoint. If this is equals to the EndPoint that I used in SendTo, I do an actual ReceiveFrom (not Peek). Otherwise, I continue to loop around and do ReceiveFrom(...,Sock...more >>


Writing extended ascii characters to text file.
Posted by JSM at 1/19/2005 9:47:49 PM
Hi, I am just trying to port an existing simple encryption routine to C#. this routine simply adds/substracts 10 ascii characters to each character in a text file (except quotes). The routine for decrypting the file works fine however when I encrypt the file, several characters are corrupted. ...more >>

Thread Synchronisation question
Posted by Naveen Mukkelli at 1/19/2005 9:05:02 PM
Hi All, I need to block all my threads at "one statement " in my C# code. These threads can proceed indipendently after all of the threads reach this "one statement". How can we do this. Kindly let me know Cheers, Naveen. ...more >>

Get File Size of XmlDocument
Posted by Saurabh Sharma at 1/19/2005 8:43:52 PM
Hi I am making a XmlDocument . How can i check the Size of the file size of XmlDocument when i will save it to the disk. Regards Saurabh Sharma ...more >>

read csv file to sql
Posted by Paulb1us NO[at]SPAM newsgroup.nospam at 1/19/2005 8:21:03 PM
I have a CSV file, like the one you can save in Excel. I want to use C# .NET to read the file and place the data into a sql2k data base. and then import another file that would update those same records. Assume file1.csv file contains 5 fields separated by commas named a,b,c,d,e and the sq...more >>

how to position records in detail table???
Posted by krzys at 1/19/2005 7:42:14 PM
here is the following situation : I have a dataset with two tables this.daCustomers.Fill(dsData1, "Customers"); this.daOrders.Fill(dsData1, "Orders"); as You see there are tables from Northwind :) these tables have a relation this.dsData1.Relations.Add("CustOrd", dsData1.Tables[0]....more >>

Replace string method
Posted by nzanella NO[at]SPAM cs.mun.ca at 1/19/2005 6:49:47 PM
Hello, The MSDN documentation does not seem to mention whether the Replace string method returns a new string or modifies the existing string in place and then returns it. I would like to know which is correct. Thank you, Neil...more >>

manage child form
Posted by Dean L. Howen at 1/19/2005 6:41:28 PM
I want to manage the child forms just like menu "Window" in most of applications. Could you give me some idea? Thanks ...more >>



object and class
Posted by Dean L. Howen at 1/19/2005 6:36:49 PM
could we create a object by its class name as string? Thanks for reading ...more >>

Inserting datarow into Access table?
Posted by VMI at 1/19/2005 5:37:18 PM
Assuming I have a datarow (or a datarow collection), would it possible to create an Access table and dump the datarow(s) into that Access table? I wouldn't even need to create the fields in the Access table since the datarow contains the exact table schema. I'm currently taking each datarow ...more >>

extract a icon from a program
Posted by Steve at 1/19/2005 5:37:02 PM
How can I extract a icon from a exist program? for examle, notepad.exe. ...more >>

Remote control with TcpListener
Posted by MuZZy at 1/19/2005 5:09:38 PM
Hi, The app i develop supose to have a remote control/reporting feature, so that if a client connects to it, he can obtain information about application state and to send some commands. I started with using TcpListener in a separate thread of the app. Something like this: // =============...more >>

Check wellformedness of XML
Posted by Tom S at 1/19/2005 4:59:35 PM
Is there a way (without a schema or dtd) to check that my XML (currently held in a string variable) is wellformed? I've looked on google and in the help files and couldn't find anything about this. Thanks! Tom S ...more >>

Subcribe to an event
Posted by choc at 1/19/2005 4:57:48 PM
Hi, I'm using a class called FtpClient which publishes several events, such as DataRecieved, TransferStared etc... My question is, how do I subscribe to them?? Ive done this before but cant remember how :-/...more >>

IsDaylightSavingTime Not Working Correctly
Posted by MJR at 1/19/2005 3:33:51 PM
I live in Arizona. We of course do not change for DST. All of the data that is inserted into our database is in Arizona time. My client wants me to display the Time Zone the record was inserted in relation to Eastern Time. So all of the dates should be displayed as either PST or MST depanding on...more >>

Regex equivalent of Substring
Posted by Tim Soliday at 1/19/2005 3:13:35 PM
I have been looking at regular expressions lately, and I'm hoping that maybe someone could help me? I am trying to find the position of a substring, and then returning the substring including any information that I might want whether it is to the left or right of that substring. For exa...more >>

Reverse engineering
Posted by Jim at 1/19/2005 3:11:50 PM
Is reverse engineering of a csharp dll possible with Visual studio or another tool? JIm ...more >>

Get user groups
Posted by Alex Bibiano at 1/19/2005 3:06:39 PM
I use this code to get the current user in my Windows application: AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal); WindowsIdentity wi = WindowsIdentity.GetCurrent(); Console.WriteLine(wi.Name); now, I want get the windows groups this users belong. How can I do...more >>

how to increase the size of array and preserve the previous data?
Posted by Tee at 1/19/2005 2:53:50 PM
Hi, How do we increase the size of array on runtime and preserve the previous data? I don't want to use ArrayList because the array could be a multi-dimension array. Thanks, Tee ...more >>

Directory??
Posted by perspolis at 1/19/2005 2:51:42 PM
I want to create a directory name AUX but windows dosen't let me to create it.. I don't know why Windows has problem with this name. I think you'd better to try this name to understand me. ...more >>

how to clone a base class?
Posted by Amil Hanish at 1/19/2005 2:11:11 PM
I have two classes that I have implemented ICloneable. From my top-level class, how to I clone the base class values: See "how do I clone the base class values" below. Since Clone returns an object, what do I assign it to in my derived class? public class Base : ICloneable { .... public ...more >>

dataset.writeXml(..) problem updating xml file
Posted by Wes at 1/19/2005 2:11:03 PM
Hello, I have an application using an xml dataset to store app and user settings. The problem I am having is related to writexml. I have a save button on my application that updates the dataset and then using the writexml(...) function saves the dataset to an xml file. I have noticed tha...more >>

Custom Permission and SecurityManager.IsGranted
Posted by Jason at 1/19/2005 1:49:07 PM
After reading Eugene Bobukh's blog entry about creating custom non-CAS permissions, I developed a few custom permissions to satisfy the needs of an application I'm currently working on. For reference, the blog entry I'm referring to can be found here: http://blogs.msdn.com/eugene_bobukh/ar...more >>

Static methods; access to class & method name ?
Posted by Barry Mossman at 1/19/2005 1:41:46 PM
Hi, is there a way to get access to the class name and method name of a static method from within itself ? ie. the equivalent of this.ToString() in a instance method. thanks Barry Mossman ...more >>

windows?
Posted by perspolis at 1/19/2005 1:26:29 PM
does anyone know addrees of newsgroup for Windows OS?? ...more >>

Current User
Posted by perspolis at 1/19/2005 1:22:50 PM
hi every body how can I get current user in windows by c#? ...more >>

Linking to a document in mroot folder from a subfolder.
Posted by news.microsoft.com at 1/19/2005 12:56:33 PM
Hello, How can i link to a document in the root folder of my asp.net app. I do not know at runtime wherein my subfolder i'm. I just want to link to a document in my root folder. Many Thanks in advance JB ...more >>

sending eMail - AntiVirus software
Posted by mphanke at 1/19/2005 12:38:38 PM
Hi, is there a way I can determine whether an eMail was send when having any kind of antivirus software on my PC? I wrote an software where clients can place an order and send it to a server via eMail. The problem is if the client can't connect to the SMTP server but has an Norton AntiViru...more >>

Inter-Process Call
Posted by Sakharam Phapale at 1/19/2005 12:08:57 PM
Dear Newsgroup, Is it possible to call public method written in one process (.exe) from other process? Is there any way to achieve the same? Thanx in advance, Sakharam ...more >>

How to change Mouse behavior
Posted by Carlos GarcĂ­a-Carazo at 1/19/2005 11:54:52 AM
Hello, I am working on a C# application for an industrial machine, using Windows Forms, where the user could look at the screen from a 90 degree rotated position, like he could turn the monitor to leave it standing on its left (or right) side. There are many ways to show a "turned" interface...more >>

Hex Conversion and Calculations
Posted by Andy at 1/19/2005 11:51:02 AM
I am trying to create an encryption routine (although VERY basic I know), but I am getting a "input string was not in a correct format" error and not sure what I am doing wrong. All my variables are int. iNumber is the value passed into the function. The error is happening on the first line...more >>

Directory.GetFiles
Posted by S. Han at 1/19/2005 11:25:11 AM
I'm using Directory.GetFiles to enumerate files in a directory. The problem is if you have to enumerate all files + subdirectories recursively, it takes too much memory, and it fails. Is there another way to enumerate files and subdirectories recursively which doesn't take too much memory in C...more >>

DYNAMICALLY CREATING WRAPPERS FOR A WSDL
Posted by Germic at 1/19/2005 11:14:17 AM
Hi, How can we dynamically create a wrapper for an webservice? Example : I write an client application in C# that consumes a webservice, I need that application to read the URL of the WSDL file from an .INI file and then compile and create wrappers for it. (So incase one webservice is down th...more >>

Problems using PInvoke to read a PhysicalDrive
Posted by Jerry at 1/19/2005 11:02:11 AM
I am trying to read a physical sector off of the disk (the boot sector for drive C:) from C#. I have no problems doing it from a C/C++ application using the Win32 API CreateFile and ReadFile. However, when I attempt to use PInvoke to do the very same thing in C# the data read in is somehow being...more >>

DataBinding and RowFilter
Posted by Remy De almeida at 1/19/2005 10:56:54 AM
Hi, I am working on a test application to get databinding working. This is the code to bind the data. System.Data.DataRelation relCustOrd; System.Data.DataColumn colMaster1; System.Data.DataColumn colDetail1; colMaster1 =3D dsCustomer.Tables["Customers"].Columns["CustomerID"]; ...more >>

how to generate a unique working folder
Posted by Mullin Yu at 1/19/2005 10:16:28 AM
hi, i have a web service that has file operations on Windows OS, and there may be a file concurrency issue if only one working directory e.g. c:\working therefore, i want to have a unique sub directory for each request so as to get rid of any file concurrency issue, e.g c:\working\unique-...more >>

Binding DataList to ArrayList
Posted by Charlie at 1/19/2005 10:02:42 AM
Hi: I'm trying to bind a DataList to an ArrayList of POC object instances. this.DataList.DataSource = BizEntity.thePOCs; // thePOCs is an ArrayList of POC's which is member of BizEntity class this.DataList.DataBind(); In the HTML I have an ItemTemplate with an expression that binds to a...more >>

libraries in C# and Java
Posted by jeff at 1/19/2005 9:23:14 AM
We have a library written in Java that we need to port to .NET (and we need to maintain both versions of the library). I've done some preliminary research on approaches to this but none of them are satisfactory. Here's what I've found so far: - byte code conversion: converts Java classes to ...more >>

How to Set Selected Index for Listview
Posted by Steve Murphy at 1/19/2005 9:16:34 AM
Is there a way to set a selected index for a Listview in a WinForms application? Thanks in advance, Steve Murphy ...more >>

Dynamic Binding to an Object in WinForm App
Posted by ADLearner at 1/19/2005 8:25:01 AM
I am trying to load an assembly dynamically in a windows form application and bind to one of the interfaces contained in it. I can successfully load the assembly into memory and create the object which is a Form. But how do I bind to an interface the Form has implemented with out making a pr...more >>

Interesting Problem in DataGrid
Posted by Sabari at 1/19/2005 6:38:57 AM
Hi, I have an interesting problem in DataGrid.I have a footer in the Datagrid which has a textbox and a link button and im adding values to the grid.Everything seems to work fine until this point.After adding the value i bind the data to control.now if refresh my browser the value that i added ...more >>

Thread was being aborted
Posted by Reshma Prabhu at 1/19/2005 6:01:06 AM
Hello, I am using FormsAuthentication. I am logging In through a Authentication cookie and signing out through a button. On click of that button i am writing FormsAuthentication.SignOut(); Response.Redirect("Login.aspx"); At Response.Redirect("Login.aspx"); this line it is giving ...more >>

When to use a namespace
Posted by Steven Blair at 1/19/2005 5:55:05 AM
Hi, Is there any difference between: using System.Data; public DataSet ds; compared to not adding the namespace: public System.Data.DataSet ds; Any help on this would be appreciated. Regards, Steven *** Sent via Developersdex http://www.developersdex.com *** ...more >>

check if javascript is disabled
Posted by Diego at 1/19/2005 5:11:01 AM
Hi My question is if exists any way to check if javascript is disabled on the client browser, I have tried with browser.javascript but this only return to me if the browser has the capability, no if is disabled. Thanks Diego...more >>

How to: implement "using" statement and "SqlTransation" class
Posted by charliewest at 1/19/2005 5:05:04 AM
I've implemented the USING statement to ensure that my newly created sql connection closes when my method is finished using it. The USING statement is wrapped in try/catch error handling statement. This works fine. When i try to implement the "SqlTransation" class, the code does not work as ...more >>

base class cast exception
Posted by Michel at 1/19/2005 4:05:02 AM
Hi all, I have created a new class (MyCustomUserControl) which is based on UserControl. I create an instance of my class using the next line of code: MyCustomUserControl mycontrol = (MyCustomUserControl) ((UserControl) Page.LoadControl("pathtoanascx.ascx")); This line of code, gives me...more >>

How to fill values in an Excel spreadsheet from c# ?
Posted by fmarchioni NO[at]SPAM libero.it at 1/19/2005 2:55:47 AM
Hi all, I'm just beginning with C#. I have an Excel spreadsheet which I use to print invoices for my company. I'd like to fill some Excel's rows from my Visual C# project. Which is the easiest way to do it ? Thanks a lot Francesco ...more >>

Limitations in HttpWebRequest ?
Posted by Henrik at 1/19/2005 1:49:02 AM
Hi, I am trying to get continous streams of data from the same web server using this sample code. It works fine if i starts two threads from the same program which continously stream different data from the same webserver, but as soon as i start the third streama gainst the same webserver i...more >>

vs 2005 beta
Posted by Mike P at 1/19/2005 1:45:11 AM
I want to format my laptop and partition the hard drive so that I can have Visual Studio 2003 on one partition and the Visual Studio 2005 Beta on the other. I've heard that having both versions on the same partition can cause problems and I don't want to end up having all sorts of problems with...more >>

Regular expression that doesn't recognize newline
Posted by etantonio NO[at]SPAM libero.it at 1/19/2005 1:23:34 AM
Good morning, I've the following part of an html file, //////////////////////////////////////////////////////////////////////// </font></b></td> </tr> <tr> <td bgcolor=white class=s><div style=padding:10px;>Computer science, Universit, Economy, Finance</div></td> </tr> ///...more >>


DevelopmentNow Blog