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 2003 > threads for monday october 13

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

Unable to run ASP.NET Web applications or services
Posted by Aaron at 10/13/2003 10:38:47 PM
I got a problem here in using Ms Studio.NET 2003 to build web application. The pop up box shows that: ---------------------------------------------------------------------------- ---------------------- Visual Studio.NET has detected that the specified Web server is not running...more >>

Ado.net access to SqlServer via http xml
Posted by Cybertof at 10/13/2003 10:00:10 PM
Hello, Is it possible to use ADO.NET to connect to a SQL Server and get back a DatSet as an XML result through HTTP (so the application can pass through firewalls) ? If yes, how to do it ? (specifying port 80 for input/output request/result, specifying XML required format, etc...) Tha...more >>

My first combobox in the datagrid :-(
Posted by Michael Schindler at 10/13/2003 8:29:46 PM
why see my combobox not in datagrid with values(offen, closed) not to column the 5? Please help me! This is my first combobox and i have no idea what i can to do. My source: private void button1_Click(object sender, System.EventArgs e) { ComboInTheGrid(); } private v...more >>

Thread is not user-suspended; it can not be resumed
Posted by Amratash at 10/13/2003 8:00:29 PM
I'm receiving the above mentioned error.The problem is: "I suspend one thread.Another thread is resuming the first thread.Then I added following code:Its in simple english if(first thread is not suspended) then sleep(100) else ...more >>

Using special characters in file name.
Posted by muscha at 10/13/2003 7:36:14 PM
Hello, I want to save a URL in local file using it's URI as the file name. But I can't use the "/" character. What is the best way for me to do this? Should I convert all the slashes to _ or something like that? Thanks for any input /m ...more >>

oracle transaction for stored procedure?
Posted by web_poster03 NO[at]SPAM yahoo.com at 10/13/2003 7:28:21 PM
My application uses Oracle stored procedure to modify multiple tables. but OracleClient does not support table-like arrays in one execution, therefore, I need call many times of the stored procedure. In this case how can I use transaction to rollback all the executions if there is error in the m...more >>

Reflection of ToolTip text for controls
Posted by Mr.Tickle at 10/13/2003 6:20:34 PM
How can I get the tooltip in a generic way for any control that the mouse is hovering over in a single application, I dont want to have to code the MouseHover event handler on every form. ...more >>

FileAttribues - PermissionTestNewsGroup.zip (0/1)
Posted by Daniel Garavaldi at 10/13/2003 5:51:18 PM
Hi C# Gurus Has anybody of you experience with FileAttributes? I'm looking for alternatives and elegant solutions when opening a file with FileInfo and query the file-attributes (read-only, archive ...) What I do at the moment is mapping the fileInfo.Attributes to my enum-type private en...more >>



How to make drop down list be readonly?
Posted by Alex Liang at 10/13/2003 4:31:02 PM
thanks for any response. ...more >>

How could I hide class information in Class Library
Posted by Ray Z at 10/13/2003 4:28:10 PM
hi, there I build a Class Library, I write a class A to implement interface IA. The problem is when I give the dll file to others, thet can get all information about not only IA, but also A. They can even see my protected members of class A. How could I hide these informations about class A, jus...more >>

Use of static methods
Posted by news.microsoft.com at 10/13/2003 3:55:27 PM
Does anyone know if there is a performance hit in using static methods for the majority of our function calls (we have no requirement for maintaining object state between calls) ...more >>

How to expose properties in COM interop
Posted by Prigozhin Roman at 10/13/2003 3:42:13 PM
Hi , I have a COM object implemented in C# Problem is that my properties ( which defined public in the class ) can not be seen from the outside ( When I call COM ) I can see only functions I defined in class interface. If I try to define variables there I get an error : Interfaces can not cont...more >>

Connecting to an external Sql Server ?...
Posted by Cybertof at 10/13/2003 3:29:00 PM
Hello, Is it possible to connect to an external (out of the lan) sql server through c# code ? I would like to connect directly my c# application to an external sql server. (i'm at home on my laptop, the app is running on it, the sqlserver is at the office, and visible through NAT configur...more >>

How can I create and add a ActiveX to my c# project for Web pages???
Posted by gokhan Can at 10/13/2003 3:18:38 PM

PerformanceCounters
Posted by alien2_51 at 10/13/2003 2:53:46 PM
I'm having issues getting some custom performance counters to work.. Here's what I'm trying to do... I want to create one category with two CountPerTimeInterval32 counters, which represent an interface.. For each implementation I want to add a new instance for both counters so each implementat...more >>

foreach & arraylist
Posted by Lloyd Dupont at 10/13/2003 2:41:33 PM
Does any of you have the slightest ideas of why you can't modify an array list while in a foreach of its element. I wrote my own collection and I'm trying to add the same behavior but I don't know where to start. I though to internal events but dismiss the idea because it prevents garbage c...more >>

reuse of threads (urgent)
Posted by Kovan Akrei at 10/13/2003 2:23:58 PM
Hi, I would like to know how to reuse an object of a thread (if it is possible) in Csharp? I have the following program: using System; using System.Threading; using System.Collections; public class A { private Thread thread; private static Queue q =new Queue(); public A() ...more >>

Is there something similar to package.html in .NET/C#
Posted by eric_dubuis NO[at]SPAM yahoo.com at 10/13/2003 1:59:28 PM
Hi there, I really do like the package documentation possibility through the package.html file with javadoc. Is there a similar possibility in .NET/C#. Giving the structure of the generated XML and the way the resulting HTML files are formatted, I must believe that there is such thing. U...more >>

UTF8 encoding problem
Posted by SloppyCoder at 10/13/2003 12:45:12 PM
I am having a problem preparing a UTF8 string for IPP (internet printing protocol) transmission. Converting integers until 639 goes well, but beyond this, in case of 640, results in an extra byte(?). It shoot be 0x00, 0x00, 0x02 0x80 but I get : 00, 0x00, 0x02 0xc2 0x80. Can somebody give m...more >>

RegEx to split function expressions
Posted by Tim Conner at 10/13/2003 12:24:00 PM
How can I use regex to split an expression like the following : (Round(340/34.12)*2) into this list : ( Round ( 340 / 34.12 ) * 2 ) I could not find a sample to this in .Net help. Thanks in advance, ...more >>

extending serialization
Posted by Aaron Clamage at 10/13/2003 12:15:00 PM
Hi, I'm not sure that if this is the right forum, but any help would be greatly appreciated. I am porting some java serialization code to c# and I can't figure out the correct way to do it. It seems that either I can use default serialization or implement ISerializable. Is there any way t...more >>

multiple desktops on XP, single user
Posted by James Black at 10/13/2003 12:03:09 PM
Hello, I am understanding that a single user can have multiple desktops under XP. My guess is that this is similar to unix where I can switch from one desktop to another, so there is multiple physical desktops in memory, and one logical desktop seen by any user at a time. Where do I ...more >>

Repost: How do we define the JIT debugger in registry???
Posted by José Joye at 10/13/2003 11:54:54 AM
I'm trying to define on my production machine the JIT debugger to catch a bug that only appear there.... :-(( I googled and had a look to MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/ht ml/cpconenablingjit-attachdebugging.asp). I'm still more than confused!...more >>

How set value in ASP.NET DataGrid template column?
Posted by Ronald S. Cook at 10/13/2003 11:43:02 AM
In my ASP.NET DataGrid, I would like to set the "Selected" value of a dropdown list item depending on a condition. While this is easy to do for, say, a textbox, .NET doesn't seem to play as nice in a dropdownlist. In the below I get the error Compiler Error Message: CS0117: 'System.Web.UI.Web...more >>

Determine Object Type From Database
Posted by Dan at 10/13/2003 11:25:27 AM
All, I am working on an application that allows users to track various items for various clients. For example Client A may have an object Box where Client B has an object Canister. When a user goes to enter a new object I would like the application to determine what objects are availabl...more >>

RegEx to split functions
Posted by Tim Conner at 10/13/2003 11:17:53 AM
How can I use regex to split an expression like the following : (Round(340/34.12)*2) into this list : ( Round ( 340 / 34.12 ) * 2 ) I could not find a sample to this in .Net help. Thanks in advance,...more >>

HELP!!! Exception handler only working from VS IDE
Posted by Tim Greenwood at 10/13/2003 11:17:06 AM
I've wrapped a try/catch around the code in my Main function of a windows app. I'm catching several custom exception classes specifically. I raise one of these in my program to test and all seems fine. The exception is caught and I can display an appropriate message. At least as long as I'm ...more >>

Need help with importing unmanaged code
Posted by Timothy Shih at 10/13/2003 11:08:15 AM
Hi, I am trying to figure out how to use unmanaged code using P/Invoke. I wrote a simple function which takes in 2 buffers (one a byte buffer, one a char buffer) and copies the contents of the byte buffer into the character pointer. The code looks like the following: #include <stdio.h> #inclu...more >>

Question for URL
Posted by Tom at 10/13/2003 10:52:49 AM
What is the code in C# for Inet1.OpenURL(string a) and Inet1.StillExecuting? Thanks a lot. ...more >>

Question for DataSet
Posted by Tom at 10/13/2003 10:51:34 AM
In RecordSet, there is EOF. But, there is no EOF in DataSet. There is only EOF in XMLReader. I use sqlDataAdapter and DataSet to retreive data from DB. I need to know whether it is the end of the file. How should I do it? How to get data from DB and store to local variables and Vector?...more >>

Proper use of the "using" statement
Posted by Müller at 10/13/2003 10:45:21 AM
Hi all, I have a class SwitchCursor, that implements IDisposable. Is it legal to use an object that is not assigned to a reference inside a using statement like this: using(new SwitchCursor())// is the SwitchCursor safe from GC? { } or is the Object eligible for GC? Thanks in advan...more >>

HOWTO: Read a LARGE file, line by line backwards??
Posted by tor at 10/13/2003 10:19:31 AM
Hi I need to find the last occurrence of a string in a textfile. I don't want to read from the start of the file because its huge 60+Mb. Torfinn ...more >>

Deriving from C++ classes in C#
Posted by Urs Wigger at 10/13/2003 9:56:49 AM
I have a C++ class which I would like to use without changes in C# applications. All the C++ class' definition is inline, i.e. the class 'library' just consists of a single header file. The class contains some pure virtual functions. In a C# application I would now like to derive a C# class...more >>

Getting notified of IP address change?
Posted by roger_beniot NO[at]SPAM yahoo.com at 10/13/2003 9:53:51 AM
I would like to figure out how to detect an IP address change for an XP/Win2K3 machine that is leasing an IP via DHCP (and do it in C#)... Is there any event that indicates an IP address change?... I really don't want to poll for a change. I would like to get an event indicating the IP addre...more >>

Writing a Collection
Posted by Gary van der Merwe at 10/13/2003 9:13:01 AM
Hi I want to write my own collection object. I want it to have the following features. 1.. It must be strongly typed (to a Class that I have written). 2.. I should be able to add and remove items dynamically. 3.. It should have an indexer. This will have a string parameter. The i...more >>

Remoting, delegates and security
Posted by Boniek at 10/13/2003 7:58:16 AM
I want use client delegate in remoting object. When I want to set my delegate to property of object or by parameter in method of object appliaction called SecurityException becasue my client hasn't permission. How I can remove that permission? I know that I can do that by .Net configuration but ...more >>

passing a class as an out parameter
Posted by j.m.autry NO[at]SPAM earthlink.net at 10/13/2003 7:28:24 AM
I have a class with several public member variables which I pass to a library function as an "out" parameter. I noticed that when the function returned, all the data was "lost". Do classes used in this fashion need some kind of "clone" method much like the c++ copy constructor to move the data...more >>

2 Questions about ADO.net
Posted by Tom at 10/13/2003 6:06:11 AM
1. I drag the sqlDataAdapter and sqlConnection from the tool bar to the web form. It creates automatically: [code] protected System.Data.SqlClient.SqlDataAdapter sqlDataAdapter1; protected System.Data.SqlClient.SqlCommand sqlSelectCommand1; protected System.Data.SqlClient.SqlCommand ...more >>

Xml invalid character
Posted by Gabriele Poggi at 10/13/2003 5:49:27 AM
How can I load an xml document, with some invalid character, with the method doc.load(), without exceptions? I have already tried to insert a CDATA Sections in the xml file source, but the result is the same. Thanks.. Gabriele ...more >>

registry editing
Posted by memememe at 10/13/2003 4:46:04 AM
How can I add a new registry key of type multi_string? of course using C#. I know how to add registry keys and values, just not how to give them a type, it seems like I would need to pass a byte[] or something. ...more >>

Class members and NullReferenceException
Posted by Mike Irwin at 10/13/2003 3:58:17 AM
I've built a class ControlBase that has a member ReturnResults that looks like this: public void ReturnResults(string codeID) { Response.Redirect(RESULTS_URL_PREFIX + codeID); } I'm accessing the member like this in a user control that does not inherit from ControlBase: ControlBase...more >>

datetimepicker
Posted by erald NO[at]SPAM delta-travel.nl at 10/13/2003 3:54:32 AM
L.S. in my application I changed the current culture with the following code: CultureInfo newCulture = new CultureInfo("nl-nl"); newCulture.DateTimeFormat.DayNames = new string[] {"Sunday","Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"} ; //newCulture.DateTimeFor...more >>

Access to Thread
Posted by Nikolai Sander at 10/13/2003 3:35:12 AM
Is there a way to get access to the Thread that owns a lock on an object that was accuired with Monitor.Enter()? I want to access that thread when the Monitor.TryEnter() from a different thread fails. Any feedback appreciated. Nikolai ...more >>

I am unable to drag controls on to the canvas
Posted by Raja Gopal at 10/13/2003 2:36:24 AM
Hi , I have a peculiar probelm. I am trying to drag controls onto the canvas but I am unable to do so . Whatever control I double click it appears at the top left and doesnt move from there. Please help me. Thanks, ...more >>

What is the C# equivalent to Java Applets?
Posted by erik at 10/13/2003 12:39:14 AM
I'm working on a project which will test users abilities to guess a series of randomly generated pitches. The users need to be able to access the program via the web and the results will either be saved on the server hosting the webpage or will be emailed those evaluating the test. Is there a...more >>

Re: how to run a window on a seperate thread
Posted by Empire City at 10/13/2003 12:27:03 AM
> I didn't see any Dispatch method of a form. I see this is all proably > covered under multi-threaded asynchronous delegates. A classic use would be OK, sorry about that again. I did a bit of RTM'ing and found what I was looking for. FYI: http://support.microsoft.com/default.aspx?scid=kb;e...more >>


DevelopmentNow Blog