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# > december 2004 > threads for wednesday december 15

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

COntainment and Aggregation
Posted by Baski at 12/15/2004 11:15:18 PM
Does anyone knows any article explains effective use of containment and aggregation with interfaces using C#. Thanks Baski ...more >>


For statement
Posted by GaryFe at 12/15/2004 10:45:02 PM
Can anyone tell me why this statement doesn't work? for (int at=0;at==-1;at=msg.IndexOf("\n",at+1)) n++; All I'm trying to do is count the number of newlines in a string. When I step through it in the debugger, it highlights the first statement (int at=0), then highlights the second statemen...more >>

Vb.Net Event Subscription
Posted by Srikanth at 12/15/2004 9:28:33 PM
Hi all, Can any one tell me how we will subscribe an event in vb.net What is the equivalent of following code in VB.NET DocumentInfo.DataModified += New DataModifiedEventHandler (DocumentInfo_DataModified) Thanks In Advance, Srikanth ...more >>

Set the local time
Posted by Drunkalot at 12/15/2004 8:20:20 PM
How can I set the system time using a DateTime object??? []s... ...more >>

Serial connection C# without using any flow control
Posted by Daniel Passwater via DotNetMonster.com at 12/15/2004 6:27:11 PM
Can anybody tell me where I could find an example or, better yet a library, for a serial connection that does not use any flow control? Thanks in advance... -- Message posted via http://www.dotnetmonster.com...more >>

Starting a Service for Debugging
Posted by Tom O'Brien at 12/15/2004 6:25:02 PM
I have a windows service project as part of a multi-project solution. To step through some of the code, I need to debug the service. 1) How do I start the service for debuging. A production version of the service exists on the machine. 2) Can I then add breakpoints in the service code an...more >>

Enter Event + Shortcut
Posted by Kimochi at 12/15/2004 6:15:12 PM
Hi, i want to ask view questions 1.when i press Enter button on the textbox how do i trigger an event? 2.How do i use shortcut key for example ctrl+s to call certain function....more >>

Impersonate from win2000 to winXP
Posted by Grei at 12/15/2004 5:50:08 PM
how can i impersonate from win2000 to WinXP? in MSDN says: (gives example how to implemet it but not with win2000, and it doesn't say what to do on win2000!!!) any ideas? workarounds? Thanx! // This sample demonstrates the use of the WindowsIdentity class to impersonate a user. // IMPO...more >>



where are my threads blocking problems?
Posted by Mr. Mountain at 12/15/2004 5:42:38 PM
In the following code I simulate work being done on different threads by sleeping a couple methods for about 40 ms. However, some of these methods that should finish in about 40 -80 ms take as long as 2300 ms to complete. This is fairly rare, but the test code below will definitely show it. So...more >>

how to write a file to UNC folder
Posted by DotNetUser at 12/15/2004 5:27:50 PM
I know the Domain, UserName, Password and folder on the domain:\\inpsol301\home$\abc Supposed I can use UserName, Password and Window Explore to map the folder above to X: and then write a file to it. Question: How can I do it programmatically without mapping the drive? full source code...more >>

IDispatch implementation
Posted by Dmitry Medvedev at 12/15/2004 5:10:15 PM
Hello, I need to write C# class, that would implement IDispatch interface to be used in ActiveScript. I can't use IReflect interface here due to design issues, I need to handle GetIDsOfNames and Invoke manually. I've tried the following code: [Guid("00020400-0000-0000-C000-000000000046"...more >>

Mono C#: basic question
Posted by nzanella NO[at]SPAM cs.mun.ca at 12/15/2004 5:09:19 PM
Hello, I have just started using Mono C# on Fedora Linux Core 3. Since the RPMs did not work I got the mono-1.0.5.tar.gz and mcs-1.0.5.tar.gz tarballs and unpacked and built them in that order which worked just fine. The result was that among other things I ended up with executables mcs (Mono ...more >>

Resolving current namespace
Posted by Glen at 12/15/2004 4:23:06 PM
Hi, Is there a way to resolve the current namespace in a static method, such as Main() from within a console app? In a public method from a class instance, you can use the "this" keyword in (this.GetType().Namespace) to resolve the namespace, but you can't do that from within a static metho...more >>

Dundas Contra GigaSoft
Posted by Hans [DiaGraphIT] at 12/15/2004 4:11:06 PM
Hi! I'm programming a windows application and consdidering 3. party chart supplier. I've come down to 2 alternative. * Dundas enterprise edition Combo version * Gigasoft ProEssentials v.5 Pro I wounder what is their strength and finally, no less, what is their weekness?? Any ...more >>

Debug and Release code have different behavior
Posted by Carlos Lozano at 12/15/2004 4:11:05 PM
Hi, I have a multithreading application that reads and writes to com ports. The debug version works with no problems, but the release version don't. They are the same code, the difference is how the solution was compiled. The problem is: The release version fails to read from one of the...more >>

Help converting WinAPI struct
Posted by MuZZy at 12/15/2004 2:56:41 PM
HI, I would really appreciate some hwlp with this: Here is the WinAPI struct used in call to winapi function wavInGetDevCaps: typedef struct { WORD wMid; WORD wPid; MMVERSION vDriverVersion; TCHAR szPname[MAXPNAMELEN]; DWORD dwFormats; WORD wChannels; WOR...more >>

Textbox Keydown
Posted by denton at 12/15/2004 2:47:04 PM
I have a bunch of code to get an input line from user like ensuring input is a character rather than RightButton, and deleting past char if delete is pressed. Can you think of an easier way to get the text that exist when the user presses enter? Thanks. private void m_textbox_KeyDown(objec...more >>

IPsec from C#
Posted by Igor MALY at 12/15/2004 2:39:03 PM
Hi, Exist any alternative manage property (create policy, setting filter) of ipsec on Windows Server 2003 from .NET framework? My program using extern command netsh, but it's not elegant solution. Thanks, Igor MALY...more >>

Garbage collection and Threads.
Posted by MaSTeR at 12/15/2004 2:16:40 PM
Hello, I have an object that at some point creates a thread to run one of its method. I create that object within an application and after a while I set its reference to null to let the gc reclaim it. now the problem is that I want this thread to stop after the object is being deleted but t...more >>

Lost Namespaces
Posted by Andrew S. Giles at 12/15/2004 2:11:06 PM
I am trying to build a C# localserver DLL to help an applicaiton of mine. But in the example I am basing it off of ( http://blogs.msdn.com/adioltean/archive/2004/06/18/159479.aspx ) I cannot find two of the namespaces listed so far. Where are System.ServiceProcess and System.Sonfiguration....more >>

security
Posted by ivang at 12/15/2004 2:05:42 PM
Hello, All! How can I check if I have access to specific network resource? Or, having user's domain name and password check if he or she has access to network resource? Thanks. ...more >>

when to catch an exception...
Posted by Dan Bass at 12/15/2004 1:45:01 PM
In a somewhat complex application, I've developed plug-in architecture and am having a problem as to when to catch general exceptions for logging purposes. In each plug-in class library, for example, I'm assuming it's throw on errors, and that the core then catches them. I've got proxy cl...more >>

Info scanner
Posted by AntoS at 12/15/2004 1:28:06 PM
I would like to write some document scanning program. I don't know anything about how to manage the scanner via c#, could you tell me where to see just to begin. Thanks ...more >>

Writing XML to html with XSLT
Posted by VMI at 12/15/2004 1:22:19 PM
I'm having trouble writing several records from an XML file into an html file. The problem is that it only outputs one record to the html file. I need to export all the records in the xml file to html. How can I do this? Is there a better (and easier) way to export a dataset to a 'friendly-...more >>

Should I return an int or an enum?
Posted by thechaosengine at 12/15/2004 1:17:17 PM
Hi all, I have a property called GeneralStatus that can return an int between -1 and 3. These values are represented by an enumeration called StatusEnum. My question is, should my property definition return a int (the underlying type of the enum) or should I return the enum itself. W...more >>

IP Address's
Posted by R2D2 at 12/15/2004 1:17:01 PM
Is there any way to resolve the ip address of the host machine or a machine at the other end of a network connection? I have created a client-server Tcp project that only uses the TcpClient and TcpListener classes for the connections. I have tried: Dns.Resolve("localhost").Address[0].ToStrin...more >>

Running the correct pocket pc emulator from visual studio
Posted by Claire at 12/15/2004 12:08:30 PM
Running visual studio .net 2003, Ive created a project for a pocket pc. I want to run it in my pocket pc 2003 emulator because if I use that particular one I can connect the emulator to activesync using some 3rd party software. Visual studio keeps opening up a Pocket pc 2002 emulator (the def...more >>

Is this a bug with DataSourced ComboBox?
Posted by MrNobody at 12/15/2004 12:05:01 PM
I created a ComboBox and used one of my DataTables as the DataSource. I set the DisplayMember to the column of the text I want shown to the user while I set the ValueMember to the ID column. I then started to test it when I realized I'm getting the wrong ID for the textI choose in the Comb...more >>

Email field on a WinForm
Posted by gwenda at 12/15/2004 11:55:09 AM
How do you code a WindowsForm field for an email address, so that when the user double-clicks in the field, an Outlook email form is generated which is addressed to the email address in the WinForm?...more >>

Shutdown problem
Posted by Mohammad-Reza at 12/15/2004 11:39:02 AM
Hi everybody I want to shutdown my computer with my program. I searched in MSDN to find a .NET method that can do that but did'nt find anything but ExitWindowsEx Api. I write following codes to execute this api but every time i use it, I see an error message. Error:1314 " A required privileg...more >>

stored procedure debugging in VS.NET
Posted by Mark at 12/15/2004 11:30:49 AM
Correct me if I'm wrong, but I'm assuming if I leverage the built in stored procedure debugging in VS.NET, that this potentially is locking resources on our SQL Server. Moreover, this wouldn't be the best way of maintaining a high performance database in general, and should be only used on a de...more >>

Loading an XML file into a DB
Posted by Steven Blair at 12/15/2004 11:29:19 AM
Hi, Got a general query regarding XML and Databases. To be honest, I really don't kno that much about XML. Here is my problem: I have a XMl file containing a number of transactions in a format similar to this: <MessagingHeader document-number="000256" advice-type="AUDACC" subject-fi...more >>

Display of large amount of cells - best solution?
Posted by Bernhard at 12/15/2004 10:52:02 AM
Hi, Presently I am writing a programm to display the status of phone extensions. For this purpose I use a WinForm application. The status of the lines with the respective user name should be displayed in cells (similar to an Excel sheet). Due to the high amount of cells (extension, username)...more >>

Convert Image OBJECT to Binary Array
Posted by Bruno Rodrigues at 12/15/2004 10:47:01 AM
Hi, Can I save an image in the database, without saving it first in the hard disk? Thanks, Bruno Rodrigues....more >>

TreeView Problem
Posted by sai bo shan via DotNetMonster.com at 12/15/2004 10:01:49 AM
hi, i got a problem with CSharp TreeView control. how can i Find/Search a Node in TreeView. please help me! SBS -- Message posted via http://www.dotnetmonster.com...more >>

Geting Window Service Path with out Interop
Posted by gordingin NO[at]SPAM consiliumsoft.com at 12/15/2004 9:38:19 AM
I need to get the path of a service in C#. Using C++, I can use QueryServiceConfig() but I wish not to use Interop if I dont have to, is there a way in C#? thanks Ralph ...more >>

How to execute some “lines code” for other user than currently logged user?
Posted by zoltix at 12/15/2004 9:35:04 AM
Hi, I would like to access to execute specific commands but the privileges are not enough from an aspx Page. Because this service run as IU_IISSERVER, therefore aspx hasn’t access to these resources and it is normal.. But sometimes, I need these privileges for special commands. How to execut...more >>

Bookmarks
Posted by Sarmad Ansari at 12/15/2004 9:26:46 AM
I have a ms word template file in which I am some bookmarks. From y Visual C# program, I am sending values to those bookmarks and trying to print. I am not able to print. The program is not giving any error either. Can someone help me with that? Thanks *** Sent via Developersdex http://www...more >>

abstract class
Posted by Frank at 12/15/2004 9:08:36 AM
Hello, a question about abstract classes. Abstract ClassA, inherited classes X and Y. When creating it's something like: if (true) ClassX xx = new ClassX(); else ClassY yy = new ClassY(); Is it in someway possible to put the if statement in the constructor of the abstract ClassA? So I do...more >>

something wrong with my use of System.DirectoryServices
Posted by Stephanie Stowe at 12/15/2004 9:01:56 AM
Hi. I am trying to read information out of the IIS metabase (v5.1). Observe the following code: using System; using System.DirectoryServices; using System.Reflection; namespace ADSI1 { class ConfigIIS { [STAThread] static void Main(string[] args) { ...more >>

Marker Interfaces
Posted by Chris Fink at 12/15/2004 8:55:03 AM
I was wondering how the INamingContainer interface works when you are not required to implement any methods to perform the work. My understanding of interfaces is that they are a contract and you implement the logic yourself, following the interface's contract. What confuses me is how does t...more >>

querying soap result
Posted by Al Sav at 12/15/2004 8:37:06 AM
I get the following result from a webservice. I pass this string to an XML Document. Can someone explain, how can I query the <result> out of the xml, using xpath query language (ie. using selectsinglenode function) Thanks, Alwin S. ?xmlResult.xml <?xml version="1.0"?> <soap:Envelope ...more >>

WinForm Authentication on WinXP
Posted by Avi at 12/15/2004 8:35:05 AM
Folks, Given the function signature: bool VerifyPassword(string uid, string pwd) How can I program its internals? In other words which APIs or better yet ..Net calls can I use to return the bool value of authentication? Thanks, Avi avi_farah@hotmail.com...more >>

Passing an object array between COM and .NET
Posted by Niklas at 12/15/2004 8:01:01 AM
Hi I'm creating a .NET dll, which I will use in VB 6. I have no problem declaring methods, which will take a single Object, String, Integer and so on as a parameter. I manage even to transfer arrays of Strings and integer, but I fail to pass an array of Objects in a parameter. How do I declar...more >>

about catch exception
Posted by Ha ha at 12/15/2004 7:44:29 AM
hello who can teach me how to catch the throwed exception in a thread which is created by a main process. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

COM Interop Issues
Posted by Brendan at 12/15/2004 7:16:15 AM
I have a legacy COM/ActiveX component (an OCX) that I need to interface with from C# and the .NET framework. Ordinarily, I would just add a reference to the OCX or add it to the Toolbox (both of which work in their own ways), but I need more control over the interfacing, and to that end I...more >>

Listening on Ports
Posted by bernardpace NO[at]SPAM yahoo.com at 12/15/2004 6:45:44 AM
Hi, I am writing a small web server, to listen on web browser port(8080), if I'm not wrong. Basically for parsing some tags found in html. Now I am doing as follows TcpListener mainTcp = new TcpListener(8080); mainTcp.Start(); but the following exception is being given: Error System...more >>

Help with multi-threading
Posted by bie2 at 12/15/2004 5:22:48 AM
Hi, I need help on how to proceed with a multithreading. I have a main form, which depending on what the user click will load a user control. Some of these user controls will have a database connection to load the data, and a way to do a batch insert for the user. When the user user is doi...more >>

View Excel Data in DropDownList
Posted by sunstarwu NO[at]SPAM yahoo.com at 12/15/2004 5:11:41 AM
Hi, I am having difficultly being able to view certain Columns and rows via a DropDownList. Everytime I load my webpage.aspx it just shows empty drop down menus. I have no problem showing all the Excel data in a DataGrid, its just DropDownLists. To view all the data in a DataGrid I just ...more >>

ListView Custom Draw
Posted by Brian Keating EI9FXB at 12/15/2004 4:09:01 AM
Hello there, Wonder can anyone point me in the correct direction? I would like to change the standard list view control so that i can have alternated rows in a different color, i.e. white grey white grey And I'd also like to change the color or the first colmn. What is the best approach for...more >>

Query regarding NetShareEnum
Posted by Siddharth Jain at 12/15/2004 4:03:54 AM
hello I am trying to enumerate the shared folders on a server using the NetShareEnum function. Now, when the server has a password set to access the shared folders, the function returns system error code 5 (access denied). However, if I know the password to access the shares, how can I spec...more >>

Have some one build NUNIT from source code
Posted by To Forum at 12/15/2004 3:53:54 AM
HI, I have the source code from SourceForge and try to use .NET 2003 to compile the source code but there are errors and I could not go though the compilation. Have some one had this problem? Best regards TF ...more >>

3rd CD of VC# Standard
Posted by Michal Krawczyk at 12/15/2004 2:38:53 AM
Hello, Today I needed to reinstall my Visual C# Standard and realized that one of its CDs is missing. After spending quite long time on searching it I think I've lost it somewhere during recent removal... I will continue searching tomorrow but I am afraid that it is gone. Getting new CD fr...more >>

"Invalid CurrentPageIndex value. It must be >= 0 and < the PageCou
Posted by kelvinweb NO[at]SPAM gmail.com at 12/15/2004 2:12:41 AM
Hi All, "disable view state for the datagrid." How to do that ? Please advise ! Here is also attached my sources code ------------------------------------------- void DetailGrid_setPage ( Object src, DataGridPageChangedEventArgs e ) { DetailGrid.CurrentPageIndex= e.NewPageIndex; ...more >>

Send an object in the network
Posted by Ricardo Luceac at 12/15/2004 1:14:27 AM
Hi... I'm new to c# network programing, and I only find a way to send plain text over the network, but I need to send an object... Does someone know how do I send this object??? []s... *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET....more >>

specifying password using NetShareEnum
Posted by Siddharth Jain at 12/15/2004 12:45:27 AM
hello I am trying to enumerate the shared folders on a server using the NetShareEnum function. Now, when the server has a password set to access the shared folders, the function returns system error code 5 (access denied). However, if I know the password to access the shares, how can I spec...more >>


DevelopmentNow Blog