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

Problem with operator
Posted by boeske NO[at]SPAM sf-systemtechnik.de at 6/25/2007 11:48:24 PM
Hello, I have the following C++-Code: Definition: class Klasse { public: Klasse operator+(Klasse Op); public: int X; }; Implementation: Klasse Klasse::operator+(Klasse Op) { Klasse Result; Result.X = this->X + Op.X; return Result; }; I want to transfer it to...more >>


Addressing Class Properties
Posted by Geo at 6/25/2007 11:07:46 PM
Hi All, I have a "huge" class with many attributes and need to change the value of some them. The attribute with the value that has to be changed is read from a xml file, i.e.: class SalesOrder { ... private variables... public string Id { get { return _id; } se...more >>

Does WSE 2.0 support SOAP 1.2 services?
Posted by Mike Schilling at 6/25/2007 10:47:40 PM
Everything I've tried suggests that, no, you can't use WSE 2.0 with a SOAP 1.2 service (or a client of a SOAP 1.2 service), but I haven't found a definitive statement to this effect. Can anyone say for sure? (Yes, I know that WSE 3.0 does work here, but not all of my customers will want to g...more >>

Asynchronous I/O really saves resources?
Posted by Morgan Cheng at 6/25/2007 10:42:19 PM
Asynchronous I/O is said to be using native completion port. However, i checked rotor2.0 code, it seems not in stream.cs. BeginRead is defined in below way. In my understanding, If BeginInvoke is used, the task is queued; and when there is free worker thread in ThreadPool, the task is performed ...more >>

How can I tell my app where it's executed from?
Posted by T Driver at 6/25/2007 9:40:14 PM
I have an app where the first thing a user must do is load a specific type of file. I have provided a demo copy of this file with the app and stored it in the install directory - but I don't know where the user will install the app. How can I get the path to the install directory at run time? ...more >>

Enum question
Posted by Bill Gower at 6/25/2007 9:07:56 PM
I have a group of 7 checkboxes representing the days of the week. I have an enum that that corresponds to the days ex. DaysOfWeek.Sunday, DaysOfWeek.Monday etc. I have a library that has a function that I call and need to pass the days of the week that the user has selected concatenated by ...more >>

Call Stack is empty, form hung up, CPU is not busy
Posted by Ryan Liu at 6/25/2007 8:59:37 PM
Hi, I have a form, with some user control in it, usually hung up when I call form.Show(). I debug to there, I found in Visual Studio 2003, the call stack is empty! And CPU is not busy at all. Can anyonoe give me idea about what is happening? Thanks a million1 R L ...more >>

FrontPage/Visual Studio style tab controls
Posted by Bodyboarder20 at 6/25/2007 8:10:28 PM
Anybody know how to accomplish FrontPage or Visual Studio style tab controls? Thanks! (and yes, I have looked...) ...more >>



Another Paging problem
Posted by Vince13 at 6/25/2007 6:43:34 PM
I'm fairly new to c# and Visual Studio. I've been having what seems like a common paging problem. When I try to change pages (even just from the first page to the second), the error comes up: Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount. I have found many sol...more >>

Datatable : ReadErrorLog
Posted by Sandeep Shankar at 6/25/2007 5:24:24 PM
I am newbie in C# world, developing SMO application. I was looking ReadErrorLog method of JobServer class which returns Datatable. My Question is, How I would know what columns are returning from ReadErrorLog . Thanks ...more >>

Load secondary form in backgroundworker thread
Posted by RvGrah at 6/25/2007 5:15:43 PM
I'm completely new to using background threading, though I have downloaded and run through several samples and understood how they worked. My question is: I have an app whose primary form will almost always lead to the user opening a certain child window that's fairly resource intensive to ...more >>

Google Maps
Posted by Gumbatman at 6/25/2007 4:32:45 PM
Is there a way to use the Google Maps API in C-Sharp? I've found very little when seaching the web. I don't know JavaScript very well and I thought doing it in C-Sharp would be easier. Thank you for the help. ...more >>

WhereDidTheInheritedInterfaceGo?
Posted by Carl Johansson at 6/25/2007 4:26:03 PM
namespace WhereDidTheInheritedInterfaceGo { class MainClass { static void Main(string[] args) { AnInterface ai = new DerivedClass(); ai.InterfaceMethod(); } } interface AnInterface { void InterfaceMethod(); ...more >>

Reset gridviews help...
Posted by trint at 6/25/2007 4:13:17 PM
I have 7 gridviews on one aspx page that kindof work like a javascript menu. How can I reset them after their use and put back into original state upon creation (so that they could easily be used again)? If possible, can you show me a code snippet that sets the gridview and the datasource in t...more >>

Constructor Choice - General Recommendations?
Posted by Bob Johnson at 6/25/2007 4:11:44 PM
Please note that this question is NOT about the merits of Microsoft certification (no need to get into that here). While taking a MS certification exam, I came across a question where it was obvious that two out of the five choices (a multiple choice question) would provide a workable solut...more >>

Inspecting the properties of shortcuts
Posted by David Jackson at 6/25/2007 3:30:07 PM
Hello, I've been asked to write a sort of "desktop clean-up" utility. Requirements are simple: iterate through the shortcuts (*.lnk files) on the currently logged-on user's desktop, and delete each link whose TargetPath property no longer exists. Iterating through the shortcuts on the d...more >>

Jet 4.0 Driver
Posted by Johnny at 6/25/2007 2:39:42 PM
Hi all: I am writing a little demo that imports data from Excel into CRM and am trying to use the Microsoft.Jet.OLE DB4.0 provider, but I am getting an error message: Error: System.InvalidOperationException: The 'Microsoft.Jet.OLE DB.4.0' provider is not registered on the local machine. ...more >>

ContainsKey() does not find key
Posted by Andrus at 6/25/2007 2:25:29 PM
I need to create object cache in memory. Each object id can be composed from several string, integer and decimal type values. ContainsKey does not find existing key in this case. How to force ContainsKey to compare object contents and find key? Should i use Binaryformatter to serialize ...more >>

displaying descriptions for properties of custom user controls
Posted by michael sorens at 6/25/2007 2:01:06 PM
When one works with the visual designer of VS2005, selecting a Control on a Form, will display its properties in the Properties pane. Selecting any property will display both the property name and a description of that property in a small frame at the bottom of the Properties pane. My quest...more >>

Form.ActiveForm problem....
Posted by Peter Morris at 6/25/2007 1:54:38 PM
Form activeForm = System.Windows.Forms.Form.ActiveForm; Form activeMdiChildForm = activeForm.ActiveMdiChild; This code is in a component of mine and is triggered from various places within my application. My problem is that when I run the app Form.ActiveForm is always set, whereas whe...more >>

How to Dump Data Causing FormatException?
Posted by samueltilden NO[at]SPAM gmail.com at 6/25/2007 1:24:15 PM
When I catch a System.FormatException, the most information it gives me is: "The string was not recognized as a valid DateTime." What is "the string" (i.e., its value)? How can I find out, programmatically within the catch block, what the actual value of the string is? P.S. I've tried ...more >>

Monitor the increase of file size
Posted by dh at 6/25/2007 1:19:00 PM
Two processes query a disk file's file size, concurrently and frequently (in a loop), using the following lines: FileInfo objFileSize = new FileInfo(fileToCheck); outputFileSize = objFileSize.Length; Only one of them writes to the file. And the file size is keeping increasing all the t...more >>

Missing .NET and Exceptions
Posted by John Bowman at 6/25/2007 1:11:17 PM
Hi All, I've been reading about Application.ThreadException, Application.SetUnhandledExceptionMode & AppDomain,CurrentDomain.UnhandledException. I'm trying to determine if there is a mechanism where if the .NET framework is missing, is there any way at all to gracefully catch it in my cod...more >>

String.Format vs + operator
Posted by James at 6/25/2007 1:10:59 PM
Which is better, which is faster, which is easier etc... ????? String.Format ( "yadda {0} yadda {1}", x, y ) "yadda" + x.ToString() + " yadda" + y.tostring(); My code has a mish mash of both and I am wondewring if I should standardize or not ?? Thnanks, JIM ...more >>

Declaring an array of List Generic Class elements
Posted by Eitan at 6/25/2007 9:27:01 AM
Hello, I am declaring an element like this: public static List<myListElement> myList = new List<myListElement>(); I would like to declare an array of this myList. How would I modify the declaration of myList so it will represents an array? Thanks Eitan ...more >>

VS .NET 2005 Express + Mysql 5
Posted by qu4dman at 6/25/2007 7:26:05 AM
Hi all I would like to program an application with C# Express (for now, because I'll soon use VS.NET 2005 not in "express version") that would use Mysql 5 and Office 2007 in automation (Word, Excel, Access). I've read about the Mysql 5.1 connector and plugin so I'll try it tonight. I'd like t...more >>

How to proceed
Posted by Malli mindwave at 6/25/2007 7:12:42 AM
Hi all, I new to C#.Net, Just I want to do a simple project i.e SchoolManagment System, Please tell me how start it and tell me the process thanks ...more >>

StrongNameIdentityPermission not working in 2005
Posted by archana at 6/25/2007 6:51:29 AM
Hi all, I am having application in 2003 where i have one class library and two console application. In class library i have one class to which i set strongnameidentitypermission. When i try to use this class in first console application which is having same publickkey as i set in strongnam...more >>

dllimport problem
Posted by Diogo Alves at 6/25/2007 6:15:01 AM
greentings I have a unmanaged dll that I need to use on my C# app. The problem is that the dll may be in diferent places... The only way I have to get the location of the dll is getting a key on the registry. How can I use dllimport to a variable location? or There is another way to do...more >>

occasional "The requested name is valid, but no data of the requested type was found"
Posted by martin at 6/25/2007 5:43:05 AM
Hello, Could someone here please explain the reason for the error in the subject (the full error below) I dont get this everytime and i've never gotten while debugging. The code (also below) which causes this is part of an ftp application (the guts of which i got from some shared code) that i...more >>

Center a Label in a form/panel
Posted by theinvisibleGhost at 6/25/2007 3:58:13 AM
Is there any easy way of centering a label in a form or panel? I can dock, and anchor but not get my label to stay centered, short of resorting to playing with the top and left properties of the label each time the form is resized or the label changed. Cheers Chris. ...more >>

A hypothetical competition
Posted by cat_dog_ass at 6/25/2007 3:49:04 AM
Java and C# are launched on the same day. Both are platform independent. Both are closed source to start with. Both are free. Which one would you choose? ...more >>

Starting an .exe from a .NET Windows Service C#.
Posted by roberth at 6/25/2007 3:28:57 AM
Hi, I've created a simple Windows Service that starts an .exe with Process.Start(). However, I've noticed that when I logoff from one user account to another the child process (.exe) is shutdown (although the service is still running). This behaviour makes my Windows service useless, as all t...more >>

Process Exit
Posted by jan.loucka NO[at]SPAM gmail.com at 6/25/2007 3:02:10 AM
Hi, Is there any way in .NET how to capture WIN API messages that belong to different application? We have a Windows Form app written in .NET 2.0 and from our application we're running another application called MapInfo using Interop. We need to be able to somehow figure out when the user exits...more >>

Eventlog watcher
Posted by at 6/25/2007 2:23:44 AM
Hi, I would like to monitor remote system log and would perform some action based on the log thats gets generated i came accross System.Management.ManagementEventWatcher but really could not get things working. can anyone guide me on this. ...more >>

unable to hit breakpoint when remote debugging(ASP.NET)
Posted by eusebiu at 6/25/2007 2:11:42 AM
Hello... After a very huge dig in web looking after how to set up remote debugging, I was able to attach to aspnet_wp.exe of remote machine. The details how I did that, http://groups.google.com/group/microsoft.public.dotnet.framework/browse_thread/thread/418702c1a6127de4/c72664fa51fac019#c72664f...more >>

transaction and open table
Posted by Ryan Liu at 6/25/2007 1:23:50 AM
Hi, I have few db write and read to execute, so I use transaction. Is that a problem or is that a regular way that I only use transaction on some cmds only, and other cmds I do not use trasaction, esp those read actions, or even use another dbconnection to read? BTW, what does "open table...more >>

Namespace for ProductsTableAdapter (from DAL) not found
Posted by royend at 6/25/2007 12:58:28 AM
Hi. I am getting the very well known error: CS0246: The type or namespace name 'ProductsTableAdapter' could not be found (are you missing a using directive or an assembly reference?) Although I have followed the tutorial at MSDN (http:// msdn2.microsoft.com/en-us/library/aa581776.aspx) on how...more >>

Copying files to file-server
Posted by Mantorok at 6/25/2007 12:00:00 AM
Hi all C# v2.0 I want to update a server which is in our DMZ, to access this server I always need to enter the admin user id and password. I want to copy some files overnight to this server using a C# app, is this possible? Can I provide the credentials to enable me to access the server...more >>

Using ToString to pad an integer with leading zeroes
Posted by stainless at 6/25/2007 12:00:00 AM
Is it possible, using the ToString function, to take an integer and conver to a string of fiexd width with the leading spaces padded with zeroes. e.g. integer 123 converted to a string of length 9 with 6 leading zeroes i.e. 000000123 integer 98765432 converted to a string of length 9 ...more >>

IsolationLevel meaning
Posted by Ryan Liu at 6/25/2007 12:00:00 AM
Hi, I have a trivial question: What does IsolationLevel mean? e.g., in SDK: ReadCommitted Shared locks are held while the data is being read to avoid dirty reads, but the data can be changed before the end of the transaction, resulting in non-repeatable reads or phantom data. What does...more >>

MDI form -- hung up when show new child form again
Posted by Ryan Liu at 6/25/2007 12:00:00 AM
Hi, I have a strange problem. I can open child form(s) in a MDI container for the first time. I can still open and show new child forms as long as there is one child form in MDI container. But if I close all forms, then I can still construct a new child form, but as long as I call form...more >>

ReadCommitted
Posted by Ryan Liu at 6/25/2007 12:00:00 AM
Hi, For IsolationLevel.ReadCommitted, here "Committed" does not mean trans.Commit(), it just means db has been updated. -- Is this right? It means other thread/connection can read "my" data before I finish a transaction. Please clarify this. Thanks a million1 R L ...more >>


DevelopmentNow Blog