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# > september 2004 > threads for sunday september 12

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

Get all processes running on the remote computer
Posted by Chidvilas at 9/12/2004 11:53:03 PM
// Get all processes running on the remote computer. Process [] remoteAll = Process.GetProcesses("XYZ"); when I am exectuing the above code, it is giving excetpion saying "Couldn't get process information from remote machine." though my network connection is perfect and "XYZ" is my remote co...more >>

Newbiw to databases in C#
Posted by bernardpace NO[at]SPAM yahoo.com at 9/12/2004 11:45:00 PM
Hi, I am trying to write a program, where I want to fill some records, write them to a file and then display them back to screen. What I have done is the following, but it is giving me an error during execution. /*********************************************/ using System; using Sys...more >>

Date functions in c#
Posted by kiran_rallabandi NO[at]SPAM yahoo.com at 9/12/2004 11:00:24 PM
Hi, Please help on date functions in C#. I would like to know the relevant exampl to retrieve 2 weeks before date from the current date, 1 month before date from the current date and number of days. 2 months before date from the current date and number of days. 3 months before date from ...more >>

DataRelations defined for DataSet but not showing up.
Posted by Fleckman at 9/12/2004 9:45:03 PM
I have a DataSet with 14 DataTables and 18 Relationships that were defined within Visual Studio .NET 2003. Everything looks OK in the visual development environment, i.e. when I preview the DataSet all the relationship appear correctly defined. However, when I create a new DataSet of this type...more >>

Marshaling a CWnd *
Posted by jtack NO[at]SPAM prodigy.net at 9/12/2004 8:14:06 PM
I am experimenting with C# and trying to use an unmanaged C++ dll. The UMC++ dll has a function defined as follows: extern "C" bool DllExport ShowLogonDlg(CWnd *pParent, CConfig& cfg); The function pops up a logon dialog and populates data in the cfg class. I have been able to call funct...more >>

managed extensions for orbic.
Posted by Jay at 9/12/2004 8:05:19 PM
Hi all, I'm looking for creating managed extensions, to interface between .Net and orbix 3.x or 6.1. can anyone please help me in finding out the information for creating managed extensions to translate .Net objects(strings mainly) to com objects(bstr / combstr). Thanking you all in advan...more >>

Performance difference
Posted by Aaron at 9/12/2004 7:36:33 PM
Is there any performance difference between a public method and a private method? Or the difference is just the scope? Thanks Aaron ...more >>

How to create class instance automatically in C#
Posted by Steven.Xu at 9/12/2004 6:09:01 PM
Hello everyone! I have a problem about create an instance automatically in C#. Now I have a class: namespace1.namespace11.CClass01. I want to create it's instance in a function named CreateObjInstance. And the function not only generate just CClass01. So I must sent the class type(whit it's n...more >>



Can anyone tell me whats wrong with this code?
Posted by Tony at 9/12/2004 5:51:03 PM
I found similar code for encoding/decoding strings in VB which works fine. However I wanted to use it in a C# projected and can't get it to work. When it executes the TransformFinalBlock() call at the end it always returns the error "System.Security.Cryptography.CryptographicException: Lengt...more >>

Problem with threads...
Posted by Nurchi BECHED at 9/12/2004 5:11:33 PM
Hello, my dearest respected brother, All! I am writing an application which uses printer port to play with LEDs for now and something else later... I created a button which makes LEDs "dance"... What I need to do is, make LEDs 'Dance' as I click the button. Stop them when I click it again...more >>

No MDI borders?
Posted by Jacob at 9/12/2004 5:04:51 PM
I'm trying to create an MDI form where the MDI area dosn't have the traditional 3D borders. I thought at one point the code I had in the form constructor was working, but now I'm getting an MDI without borders, but the main menu on my form no longer appears. Anybody who has a little more experie...more >>

Reading and Writing From USB and RS-232
Posted by JRB at 9/12/2004 4:45:02 PM
I need to read from and write to USB and RS-232 ports in a new project I'm working on. I was thinking about using C#, but I'm not sure if there's a way to do this in that language. If not, any suggestions on what to use? (ie. Visual C++, Visual Basic, etc). Thanks for any feedback. ...more >>

What is changing my registry?
Posted by Dale Bradford at 9/12/2004 4:37:29 PM
Is it possible with C# to find out which program is changing certain keys in the registry? I've already searched for "registry watchers" code examples or downloads, but they seem to only take before & after snapshots of the registry to show you what keys/values changed, and not "who" changed t...more >>

What is the best way to update UI from different thread?
Posted by Julia at 9/12/2004 4:14:54 PM
Hi, I have an application which run 3 different thread. the main application display a window like a console window in VS.NET. I would like that each thread will write to this window details about it's progress and status. I wonder what to choose 1.BeginInvoke. 2.Invoke-will halt the c...more >>

How to set the default value for a dropdownlist
Posted by Maziar Aflatoun at 9/12/2004 3:04:45 PM
Hi everyone, I have the following code <asp:TemplateColumn HeaderText="Administator" Visible="True" ItemStyle-HorizontalAlign="Center"> <ItemTemplate> <asp:Label ID="IsAdministator" Runat="server" text='<%# FormatIsAdministator(DataBinder.Eval(Container.DataItem, "IsAd...more >>

C# generics question
Posted by Jeremy Gailor at 9/12/2004 3:03:21 PM
I'm currently just playing around with some AI stuff (working with breadth-first, depth-first searches (irrelevant)), but I'm writing a binary tree using the generics just to get a feel for them. I can't however implement the tree because I can't use the '<' or '>' to compare values for ins...more >>

decompiler : MSIL to C#
Posted by Chris at 9/12/2004 3:02:34 PM
Hi, is it possible to decompile (or disassemble) an assembly (.exe or .dll in MSIL-code) into C# , or into another .net-compliant language ? any such tool exists ? thnx Chris ...more >>

Component that will add a menu item
Posted by leodippolito NO[at]SPAM terra.com.br at 9/12/2004 2:11:57 PM
Hi there, I need to create a component (class library) that when added to a Win App (main form) it will create a Menu / Menu Item with some options. I know how to create a component, but this menu modification I don't know how to do. I appreciate any help! []'s Leonardo...more >>

bitmask manipulation
Posted by Mark Allison at 9/12/2004 2:06:12 PM
Hi, Total newbie here, I'm trying to examine a bitmask which is passed into my app as a string. I convert it to int, and try and process it. I got the following code: //dbStatus current is a string int idbStatus = Convert.ToInt32(dbStatus); string dbStatusText = string.Empty; if (idbS...more >>

Can't read SelectedValue from Listbox
Posted by Mantova at 9/12/2004 12:33:26 PM
Maybe it's simple, but I can't get it to work. I'm originally a webdeveloper, and just started to work on a C# windows application. I want a list, something similar to a <select><option> object, where the displayed value is different from the real value. I populate the list like this, where I a...more >>

Reference an assembly in the config file?
Posted by Julia at 9/12/2004 11:02:23 AM
Can some one please explain me the following: "In your plugin config section, use the assembly name like "Class, Assembly, Culture, Version, PublicKeyToken" so that you can just use Type.GetType(name) and instantiate it with GetConstructor(null).Invoke(null) or use the Type from Type.GetType...more >>

Live Meter Data on the Web - Advice Please
Posted by BCM at 9/12/2004 10:55:41 AM
I've been asked to display some meter data on the web and I need preliminary advice. We have several hundred meters on site, with a system that writes out xml files at 10 second intervals containing their data. (These files are overwritten every 10 seconds, not appended to.) First, I nee...more >>

System.ComponentModel.Win32Exception..error creating window handle
Posted by Mohannad at 9/12/2004 10:11:06 AM
Dear C# experts, i face a problem which let my project get stopped ..when trying to run ...i found the following exception : "An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in system.windows.forms.dll Additional information: Error creating window handle." a...more >>

DataGrid and Automated PK
Posted by Udi at 9/12/2004 9:47:01 AM
Hello I configured the MS SQL SERVER 2000 to generate the Primery Key automaticly, now, the problem is that when i insert a new row using a DataGrid that connected to the table with the automated PK it says that i can't leave the PK NULL... How can i tell the DataGrid to read the value g...more >>

Q: Exception when using reference-passed int as array index
Posted by admin NO[at]SPAM mail.cz at 9/12/2004 9:26:16 AM
Hi all, maybe you'll see the trick and could help me. I am passing int by reference and get an exception when using it as an index to passed array. (Yes I know I can workaround with object encapsulation, but wish to understand this). Thanks, Jan [code] using System; public class TestPas...more >>

Any good place to learn SecurityPermissions and Policy?
Posted by Chua Wen Ching at 9/12/2004 7:27:01 AM
Hi there, Is there any place to learn SecurityPermissins and Policy? I had looked into Code Access Security, but nothing much on using it. I want to implement in depth CAS into my dlls, and my client side user calls my dlls, will have limitations to the number of modules they can access. ...more >>

Access Modifier in structs - help!
Posted by Chua Wen Ching at 9/12/2004 7:17:05 AM
Hi there, I had seen examples for classes, but i had no idea how to implement the same thing in struct. I am quite mix up! Which one is correct? Scenario: WForm.cs - the one that calls FileA.cs to access the structures FileA.cs - contains all structures 1) public struct TestA { ...more >>

Delegates and Event to replace with Interface?
Posted by Chua Wen Ching at 9/12/2004 7:07:05 AM
Hi there, I just read Chris Sells's article at http://www.codeproject.com/csharp/delegate_bedtime.asp?df=100&forumid=2983&select=922269#xx922269xx I wonder i can do this: 1) I want to built in a class library that had multithreading enabled. My initial overview of the library: i...more >>

interface / inheritance?
Posted by C# Newbie at 9/12/2004 7:03:04 AM
hi, I have a scenario where I would like to create a windows application and using a class to return a message so that it can be displayed on the windows application when a button is clicked. After that is done, I would compile and package the windows application and class for customer. ...more >>

Hiding Column in a WinForm DataGrid
Posted by Udi at 9/12/2004 4:23:02 AM
Hi everyone! I have a major problem with the DataGrid control for the Windows Form! I am using the DataAdapter to get data from Sql Server 2000 DataBase and populating a DataGrid with the Table i got. The problem is that i dont want to see all the table columns in the DataGrid, only some of...more >>

Regex Problem:How to use "balancing group definition"?
Posted by FirePhoenix at 9/12/2004 4:21:06 AM
please give me a demonstration. thanks -- ...more >>

Need c# example of using the Win API EnumPrinters function
Posted by Patrick Blackman at 9/12/2004 2:24:04 AM
Need c# example of the API EnumPrinters function....more >>

How to get information from a web site by using C# in a windows application?
Posted by Alvin Lau at 9/12/2004 1:42:39 AM
How to get data from a web site by using C# in a windows application? For Example: How can i get the list of <Latest Guru Content:> from the main page of http://www.developersdex.com/? Thx ~ *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...more >>

System.Type.GUID inter computer consistency (???)
Posted by Nadav at 9/12/2004 1:17:02 AM
Hi, I am using the System.Type.GUID to identify similar types on different computers, one computer send the GUID through a socket while the other resolve the GUID and identify the type, when working on a single computer everything works fine, BUT, when working on two different computers the...more >>

ver 1.0 and 1.1 of frame work
Posted by Ganesh at 9/12/2004 12:33:04 AM
Hi There, Just i started c sharp with asp.net, my system was installed by .beta and ..net frame work 1.0, yesterday i removed vs.net beta version but forgot to remove .net frame work and also i installed vs.net 2004 and .net frame work 1.1 now it says asp.net ver 1.1 is not running how ...more >>


DevelopmentNow Blog