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# > july 2007 > threads for monday july 9

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

A list of people in an active directory group.
Posted by newscorrespondent NO[at]SPAM charter.net at 7/9/2007 10:55:56 PM
I am using System.Security.Principal to identify clients and allow functionality based on the groups they belong to. In one case I would like to let them know who can do the function they cannot. How do I list the members of a group? Thanks Tom...more >>

I want to read a character from console, while writing something to the console.
Posted by Jade Lee at 7/9/2007 9:20:12 PM
Hi. I want to read a character from console, while writing something to the console. And if, there were no input character in some seconds, then I wish to continue to writing to the console. How can I done that with .NET?...more >>

No unsigned int in c# ?
Posted by Boki at 7/9/2007 7:23:38 PM
Hi All, My code: private static unsigned int Queue_count = 0; it can't pass the compiler, the error msg shows the 'unsigned' keyword. there is no unsigned int in c# ? Thanks! Best regards, Boki. ...more >>

How Can I Cast DotNet Variables into a byte array?
Posted by Leon_Amirreza at 7/9/2007 6:45:15 PM
How Can I cast a uint type to a byte[4]? Does the following code do this? uint a = 5; byte[] b = new byte[4]; b = (byte[4])a; ...more >>

How To Serialize DotNet Types into Byte Arrays?
Posted by Leon_Amirreza at 7/9/2007 6:42:14 PM
How can I serialize a uint Type into a Byte[4]? ...more >>

Multi-thread, read/write to single file.
Posted by Boki at 7/9/2007 6:35:05 PM
Multi-thread read/write to a single file. I have two processing threads, thread A and thread B; and I called my queue as Q. Thread A will feed data into Q by user input, the timing is random. Thread B will read data from Q to process; this processing will communicate with a website. I th...more >>

Reverse P/Invoke in a DLL for global hooks?
Posted by yuhongbao_386 NO[at]SPAM hotmail.com at 7/9/2007 5:45:33 PM
Is using Reverse P/Invoke in a .NET DLL for installing global hooks supported? ...more >>

C# to Word and Excel and Outlook
Posted by M K at 7/9/2007 5:03:19 PM
I would like to write code to export to excel, outlook and word. Any idea where a good resource to look? I know about using the VBA macros as I have done that in lotus notes ( but that is VB to VB for the most part). Do I use VBA? or is there a C# version of that? What extentions do I need...more >>



String foreach problem
Posted by ApeX at 7/9/2007 3:48:49 PM
Hi guys, i hace a question i have a datagrid col1 col2 ----------------- D text0 text1 text2 D text3 D text4 i need to do a foreach and everywhere where's a "D" in col1 to add the value of col2 into a string, so the final string would be "...more >>

multithreaded tcp/ip monitoring application
Posted by Punit Kaur at 7/9/2007 3:14:01 PM
hi, I am new to c# development. I need to develop a windows application that connects remotely to another application using tcp/ip and gathers statistics like, application running or not, application uptime and also some more data that the other application sends to this monitoring applic...more >>

Millisecond values missing when inserting datetime into datetime column of sql Server
Posted by Manikandan at 7/9/2007 3:13:52 PM
Hi, I'm inserting a datetime values into sql server 2000 from c# SQL server table details Table name:date_test columnname datatype No int date_t DateTime C# coding SqlConnection connectionToDatabase = new SqlConnection("Data Source=.\ \SQLEXPRESS;Initial...more >>

c# 2 ftpwebrequest list -r
Posted by deciacco at 7/9/2007 3:06:24 PM
is there way to use the ftpwebrequest class to send the list -r command? thanks...more >>

how to show chm file?
Posted by DBC User at 7/9/2007 2:56:55 PM
I have to write a program, all it has to do is read in the name of the chm file passed to it and show the chm file. I wrote a batch file called test.bat and which will accept the chm file name and it shows the chm file. It works ok, but the dos box is still open and I don't want the dos window...more >>

Problem with SslStream when using Windows Vista
Posted by Dave at 7/9/2007 2:26:01 PM
Hi. When my client program runs under XP and calls a server (solaris in this case) via an SslStream all is well. The client may make multiple calls and multiple authentication calls and be fine. I expressly "clean up" everything streamwise and socketwise and all is well. Running the client u...more >>

DotNet and Http Outlook Express question
Posted by Jason Huang at 7/9/2007 2:12:40 PM
Hi, In my ViaualC# .Net 1.1 windows form application, I have a string as: http://MyIP/frmTestForm.aspx?lblTestNo=J2vTuX8Tv7qBn7HzK7O67XCdMQ== On the MS Development Environment 2003 http://MyIP/frmTestForm.aspx?lblTestNo=J2vTuX8TvqBnHzKO6XCdM==, the "==" and the http://MyIP/frmTestForm.a...more >>

Log4net vs MS Enterprise Logging App Block
Posted by Daniel Bass at 7/9/2007 2:08:27 PM
Hey guys, Just an opinions thing more than anything. I've just been messing around with Log4Net and discovered the Logging Application Block in the Enterprise Library (3.1). Have you used either/both of these? What's your opinion on them? What were you using it for? (general logging, sen...more >>

when sharpdevelop will be availible for linux?
Posted by linuxadmin NO[at]SPAM yandex.ru at 7/9/2007 11:49:26 AM
hello! i have read somewhere, that the fact, that mono doesn't implement 100% of windows.forms, is the reason, that sharpdevelop doesn't run with mono (under linux). this site, http://www.mono-project.com/WinForms_CodeOwners however, tells me, that windows.forms (.net 1.1) under mono is n...more >>

Binding a IEnumerable list to a DataGridView?
Posted by Jeff at 7/9/2007 11:02:53 AM
..NET 2.0 VS2005 I'm wondering if it possible to bind an IEnumerable list directly to a DataGridView? if it is possible then I'm wondering how it should be done? I ask because I think it must be better to use that, than the implementing a foreach loop adding a row to the DataGridView for ...more >>

XML Serialization
Posted by Nathan Wiegman at 7/9/2007 10:36:06 AM
Hi, We have an app that uses XML serialization throughout. As everyone probably knows, using XML serialization is not always a good idea in a big project (http://www.codeproject.com/dotnet/noserialise.asp). I found this article: http://weblogs.asp.net/cazzu/archive/2003/10/21/32822.asp...more >>

Inserting the datetime with milliseconds value into a datarow
Posted by Manikandan at 7/9/2007 9:57:14 AM
Hi, I need to insert the datetime with milliseconds value into a datarow. My code as below DataTable testDataTable=new DataTable(); testDataTable.Columns.Add("updatedDateTime", typeof(DateTime)); DataRow testDateRow=surveyUpdatedDateDataTable.NewRow(); testDateRow["updatedDateTime"]=...more >>

Procedure searching for inappropriate language
Posted by tshad at 7/9/2007 9:53:10 AM
Does anyone have or know where I can get a some code that will check a TextBox for inappropriate language. At the moment, we need to manually check submissions for language before posting. This takes a lot of time and resources and in some cases a lot of time before a submission is actuall...more >>

Reading DateTime table from mdb file with C#
Posted by jr1024 at 7/9/2007 9:48:05 AM
Hi everybody! I have a C# app that connects to a mdb file and displays all the fields from a table in dataGridView. I have trouble searching in a Access Date/Time field like this. string searchDate = "12/11/2007"; Result = DateTime.Parse(Result, CultureInfo.Curre...more >>

Getting file type
Posted by jack at 7/9/2007 9:30:26 AM
Hi, Im creating a program in which im trying display a file list in the listview. similar as windows explorer detailed view. im able to get every thing except the file type. im stuck here and could not file any example on net. Please help ...more >>

Classes required for an application
Posted by richB at 7/9/2007 9:14:04 AM
I am trying to build a rating engine for a number of users for a list of songs. I havea database design with a user table and a song table and a link table such that each user can rate many songs and each song can be rated by many users. However I am a little stuck on the class design. I h...more >>

Rename file in c#
Posted by jack at 7/9/2007 9:08:25 AM
Hi, I have more than 1000 photos in my system but with very untidy name. Im trying to create a program through which i can rename the file. I have seen the examples on net an forums, but the only solution seems to be with moving the file with different name. I don't want to move the file ...more >>

List all users in a group on a local computer using C#
Posted by yellowblueyellow NO[at]SPAM gmail.com at 7/9/2007 8:54:03 AM
Hi, I need a function to List all users in a group on a local computer using C#. any assistance would be much appreciated ...more >>

List all groups on a local computer using C#
Posted by yellowblueyellow NO[at]SPAM gmail.com at 7/9/2007 7:53:03 AM
Hi, I want to list all groups on a local machine using C#. How do I go about this? Thanks ...more >>

The surrogate pair is invalid.
Posted by MikeB at 7/9/2007 7:28:02 AM
Hello All, I have a console application that is run via a scheduled task everyday at 4 in the morning. For some reason, a couple of days ago, every time the scheduled task is run (ether manually or by scheduled time) I get a "The surrogate pair is invalid" error. When ever I manually run ...more >>

DataTable.Select condition with TimeSpan Values
Posted by Massimo at 7/9/2007 7:03:19 AM
Hi to All, i'm using C# in .NET 2.0 and i have a DataTable A with a column of type TimeSpan used to store HOUR info. I'm trying to filter my DataTable A selecting only rows that have the column HOUR > .... if i try to Call A.Select( " HOUR > '10:30:00' " ) i receive an error ( cannot compar...more >>

Is .NET remoting working on Mono properly
Posted by Builder at 7/9/2007 6:04:59 AM
Hello, Does anybody know whether .Net remoting works OK on the Mono installed on Linux? Thanks for any answer. ...more >>

Page directives dinamically
Posted by Josema at 7/9/2007 5:24:00 AM
Hi, Its possible to remove, (in execution time), one of the properties that i set in the page directive area? For instance, i have this directive: <%@ Page MasterPageFile="~/Master/Calculator.master" IsClosed="256781" Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" ...more >>

how to load xml files stored in the resources of a project
Posted by at 7/9/2007 5:22:45 AM
Hi i have created a project that contains some class files and xml files stored in resources. i have created dll of this project and am using it in another project. In other project i want to read the xml stored in the resources of loaded project. Please tell me how can i extract xml file f...more >>

Passing a Linked List from C++ DLL to C# PInvoke
Posted by Subodh at 7/9/2007 3:32:51 AM
Hi All, I want to use a C++ API in a static lib that returns a linked List in C# I am planning to P/Invoke to perform the Interop, I would like to know which way will be better to interop a Linked list to C# in terms of performance, I have came across following methods I am creating a fl...more >>

Sender, how to code it as one line code.
Posted by Boki at 7/9/2007 2:12:33 AM
Hi All, We can assign multi object ( ex: textbox )'s double click point to a same function. ex: private void all_boki_textbox_point_here_DoubleClick(object sender, EventArgs e) { ... ... } If I have many objects, they are totally doing the same thing, ex: copy textboxN's text t...more >>

Delete first line of textbox
Posted by Boki at 7/9/2007 1:18:02 AM
Hi All, My textbox is a queue stack, after processing a line, I need to process next line, and the first line should be removed to indicate progress. Should we check the new line by ourself ? and then use substring to make a new string ? Thanks! Best regards, Boki. ...more >>

Forcing a MouseUp event after MouseDown launches a dialog
Posted by charlieopenshaw NO[at]SPAM gmail.com at 7/9/2007 12:56:48 AM
I have a form listview and have used the MouseDown event to launch a modal dialog if a particular cell is clicked. This works fine but upon closing the dialog I am left with a dotted rectangle drawn between where the original click was and where I clicked to close the dialog. Until another mo...more >>

threading, posting data, text file
Posted by Boki at 7/9/2007 12:46:13 AM
Hi All, I need to let user type some text in a textbox, and user will click a button to submit the material. It is very straightforward if we implement it by single thread. But the submitting costs a lot of time, especially there are some network latency. I can't let user wait until th...more >>

Keeping application responsive with BackgroundWorker
Posted by Joseph Geretz at 7/9/2007 12:33:51 AM
A subtle point: If your BackgroundWorker reports its progress back to the main application window, you'll need to maintain a positive ratio of time spent within the BackgroundWorker event (_DoWork) on the separate thread, vs time spent in the report back (_ProgressChanged) event which operates...more >>

Remote Objects
Posted by Cralis at 7/9/2007 12:24:31 AM
Could someone help with trying to help me understand this code. I am trying to add remote control functionality to an existing application. I am new to c#. This starts the server bit of the remote object. However, it creates 'channel', registers it, but then, 'channel' doesn't get a mention a...more >>

Picturebox auto size failed.
Posted by Boki at 7/9/2007 12:07:49 AM
Hi All, I use a picturebox to show image form URL string. When auto size propertise disable, it works well, but fail whenever auto size is enable. pictureBox1.Image = new System.Drawing.Bitmap(new System.IO.MemoryStream(new System.Net.WebClient().DownloadData(picStr))); picStr is s...more >>


DevelopmentNow Blog