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 2005 > threads for thursday june 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

STA and MTA
Posted by Venkat at 6/9/2005 10:01:03 PM
Hi, We have a dozens of VB6 components, developed some 5 years before, we have now few .Net components which references these files. Ideally we are using Biztalk server and referencing these VB6 components into that, what happens is that during actual transaction with several instances,...more >>

OnPreRender ??? What is ?
Posted by Daniel Groh at 6/9/2005 9:49:29 PM
Hi, i'd like to know more abou this event, i tryed to found in MSDN but the explanation is null for me...is there some explanation when and how should i use it ? ...more >>

Nontrivial structure?
Posted by Christian Kaiser at 6/9/2005 9:00:45 PM
Good evening (here in Germany at least), I have a structure, expressed in C++ as: clsByte2 m_Sensor[6]; clsByte1 m_Output[1]; clsByte1 m_PowerReduction[1]; clsByte1 m_AnalogOutput[1]; clsByte1 m_EnergyEntries[1]; clsPowerAndEnergyDataUVR61 m_Energy[1]; clsByte2 m_Unknown2[1]; clsDateTim...more >>

Excel C# API
Posted by amitesh at 6/9/2005 8:09:02 PM
Is there any way of exporting C# functions/classes to excel so that one can use the functions from excel cells itself. I do not want to use automation addin as my users are still using excel 2000. Any reference would be much appreciated. Regards Amitesh...more >>

Newbie question: Enum in Interface
Posted by Alejandro Lapeyre at 6/9/2005 7:58:51 PM
In VB I can define an Enum inside an interface Public Interface ITest Sub a() Enum MyEnum kk = 1 End Enum End Interface When I try to do the same in C# the complier complains : "myEnum": las interfaces no pueden declarar tipos. public interface ITest { void ...more >>

Converting string "2 1/2" to double
Posted by Valerie Hough at 6/9/2005 6:55:38 PM
Is there a C# class that will help convert strings that include fractions ( "2 1/2" e.g.) to doubles ? Convert.ToDouble() throws an invalid input format exception. Obviously I can write code to do it but this seems like a fairly normal thing to want to do and I would expect C# to have alrea...more >>

Covariance in delegates doesn't work with ValueType's?
Posted by Aryeh Holzer at 6/9/2005 4:15:46 PM
Let me start with a quote from the C# Programmers Reference (where I learned the cool word "covariance"): "When a delegate method has a return type that is more derived than the delegate signature, it is said to be covariant. Because the method's return type is more specific than the delega...more >>

Edit folder name in TreeView WindowsForms
Posted by John.Arthur NO[at]SPAM gmail.com at 6/9/2005 2:37:59 PM
Hi, I need to implement functionality in Windows forms and I do not know to do it or even if it is possible. In windows explorer when you create new folder, the explorer creates the folder with name "New Folder" and allows you to edit the name. That is exactly what I need to do, but I need it...more >>



using C# DLL from plain C
Posted by dvtaylor at 6/9/2005 1:52:30 PM
We write everything in plain old C. We have a potential customer that wants to provide us a DLL written in C#. How can we call it's functions? ...more >>

Fingerprint Readers
Posted by Chris at 6/9/2005 1:43:52 PM
I need to add a fingerprint reader to my VB.Net application. Anyone have any recommendations on a solution. I did some quick searching on google.com but haven't come up with anything simple. Anyone do anything like this? Chris...more >>

Newbie question: Thread access of form components
Posted by Don Tucker at 6/9/2005 1:32:01 PM
I'm just getting familiar with Visual Studio and C#. I want to start a thread that monitors a serial port and sends what comes across to a text box on the main screen. So, I create a thread to do that at the push of a button. However, when something comes in on the serial port, the program ...more >>

DrawString a digital clock in a pictureBox / transparent label
Posted by melanieab at 6/9/2005 1:28:02 PM
Hi again, I'm trying to draw a digital clock in the corner of a picturebox whenever a particular tabpage is in focus. I either need to be able to make the clock keep real time (I can get it to draw when the page loads, but it won't "tick") or I need to be able to draw a transparent label ba...more >>

Getting SelectedText/Item from ComboBox
Posted by ASP Yaboh at 6/9/2005 1:17:05 PM
I have a WinForm ComboBox that is populated by binding to a dataset that contains a list of employees (two columns: 1. employee id, 2. employee name). The id is bound to the ValueMember, the name to the DisplayMember. The dataset is then disposed. When an item is selected from the combobox,...more >>

C# Eletitlement app - Can this be done
Posted by freddy at 6/9/2005 1:10:02 PM
I would like to build A c# app that could do: 1.get a list of all users in a group and save it to an access database Table with this type of format: id + First Name + Lastname 2.import excel spreadsheet from information security 3. compare both table for both matches and unmatches 4.make an de...more >>

events and eventargs
Posted by Adam at 6/9/2005 1:02:01 PM
What is the advantage of using a custom eventargs in an event versus just defining the delegate with data parameters? Thanks in advance. Adam ...more >>

"Object does not match target type." using dynamic compiling & inv
Posted by Clint Herron at 6/9/2005 12:16:12 PM
Howdy! I posted this question on CSharpCorner.com, but then realized I should probably post it on a more active newsgroup. This will be my only cross-post. I'm creating a game engine, and using CodeDOM for my scripting needs (I realize I could use yacc or something else, but I wanted to tr...more >>

Hiding Columns in datagrid
Posted by Bhargavan at 6/9/2005 11:35:46 AM
Hi, I am using a datagrid on a windows form. The datasource of the grid is bound to a class array. It works just fine. But I am not sure how to hide some columns in the grid programmatically. Any suggestions in this regard will be greatly appreciated. Bhargavan M ...more >>

How can i broadcast a video file
Posted by Mamatha at 6/9/2005 11:25:17 AM
Hi I have an application to capture a live video in C#.NET,Now i want to bradcast that captured file,how can i broadcast? If you know any related sites or any source code to broadcast please let me know. Thanks in advance Mamatha ...more >>

UDP using system.net.socket
Posted by Claire at 6/9/2005 10:57:22 AM
I need UDP server and client components. Udpclient control is a no-no, it doesnt do what I need and its buggy. I'm looking for some sample code for setting up the system.net.socket as a simple udp client/server as previously I only ever used components to do this and never from microsoft wind...more >>

InitializeComponent changes TabPage order without warning
Posted by sdbranum at 6/9/2005 10:33:31 AM
Tab pages, which I have added to forms in design view, are occassionally reordered without warning. Other than hard-coding the tab order by clearing then readding these same tab pages outside InitializeComponent, is there another way to prevent such reodering? Steve...more >>

PLEASE HELP !!!! Export of private parameters is not supported
Posted by Leeor Chernov at 6/9/2005 10:23:13 AM
> Hi, > I am taking this Q from an old message cause I have the same problem: > > Hi everybody: > > I want to import the private key of my 1st certificate contained in my > Certification store. > I create the certificate with the private key exportable, but if I run the > code below, I o...more >>

Transfer file
Posted by Logidec at 6/9/2005 10:23:07 AM
What is better method to transfer file to PocketPC from PC ? Thank ...more >>

List of all computers
Posted by Piotr - at 6/9/2005 10:01:41 AM
Hey. How can I list of all computers on Lan? I need ip and computer name. *** Sent via Developersdex http://www.developersdex.com ***...more >>

Naming conventions?
Posted by Allan Ebdrup at 6/9/2005 9:59:40 AM
Does anyone have some good pointers to good naming conventions preferrably by MS. Another developer and I had a discussion on the naming of a public property that contains a collection of variables. He wants to call it "Parameter" like when you name tables in SQL, I want to call it "Parame...more >>

List of all computers
Posted by Piotr - at 6/9/2005 9:57:25 AM
*** Sent via Developersdex http://www.developersdex.com ***...more >>

Writing to config file
Posted by Gav at 6/9/2005 9:36:28 AM
Hi all, I need to be able to write values to my .config file... I checked out code such as this: http://ryanfarley.com/blog/archive/2004/07/13/879.aspx and others that are very similar. I put this in my app and stepped though the code I'm not getting any errors but it still doesn't c...more >>

ToArray() ?
Posted by Peter Kirk at 6/9/2005 9:06:18 AM
Hi I call a method which returns an IList containing a list of one type of object. How do I best convert this IList to an array? I can see that the ArrayList class has a ToArray() method - but this is not part of IList. (I do in fact know that the method I call actually returns an Array...more >>

Retrieve new row identity in C#
Posted by Mark at 6/9/2005 9:05:22 AM
Hi, I'm having a bit of difficulty in getting the identity of a new row using the SCOPE_IDENTITY() function in SQLServer 2000. I've added the following code: 'set @LastID = SCOPE_IDENTITY()' to the end of the select statement in the Stored Procedure, and have the following code in the aspx.cs...more >>

grid controls of inherited DataGrid class (myDataGridType) are del
Posted by sdbranum at 6/9/2005 8:36:16 AM
I have been using Visual C#.NET to code a large project having many data adapters, data sets, datagrids, multiple forms with tab pages, each containing various controls (mostly label, text boxes, check boxes, date pickers, combo boxes and datagrids). I have been coding alone on this project ...more >>

Convert Hex String to Long/Decimals?
Posted by Chua Wen Ching at 6/9/2005 6:31:08 AM
I have a problem. But on .NET 1.1 My Scenario: Actually I will have a string of hexadecimals read from a xml file. Then from the hexadecimals, i will add 1 value whenever i made any modifications. But just i do not how to get started. It is like an incremental hexadecimals. I have a strin...more >>

catch a popup context menu
Posted by E. W via DotNetMonster.com at 6/9/2005 6:12:25 AM
Hi, I created an context menu with a popup menu (created on the fly by a database select). It works, but I dont know to catch the event, one of the popup items is selected (clicked). I only need the text of this item. thanks E.W....more >>

How to do type conversion to unknown type?
Posted by Demorsy at 6/9/2005 5:31:02 AM
I want to convert a string (or object) to a primitive type. But I don't know the type to convert to at run time. For example l have variable (lets say its an int): int unknownType = 0; And a string: string str = "123"; If I knew the type is int I could have used: unknownType = Convert.T...more >>

Cast from name syntax
Posted by Nick Weekes at 6/9/2005 5:19:35 AM
Hi all, I am trying to cast a Double (its actually the NextDouble method of the Random class, but could be any type of number) to a Type via its name. Im trying the following syntax: ThisNumber = (Type.GetType("MyType.Decimal"))(ThisRandom.NextDouble()); Im getting an error stating that...more >>

DataSet 1 to many Relation - How to?
Posted by Sharon at 6/9/2005 3:10:01 AM
I have two tables in the DataSet, the first present rooms and the other furniture kinds. Furniture kind, like chare, can be in more then one room. And specific room can contain more then one furniture kind (chare + table + ...). Therefore, the room table should have Relation that point to s...more >>

Multithreading Interface Problem
Posted by Reuben at 6/9/2005 2:58:15 AM
Hi, I'm writing a multithreaded application that uses 2 threads: 1 for the form and another to process some data. Before the processing thread starts, I modify the interface to reflect its busy state. However, when I finish the processing I can't undo the changes because 'Controls created on...more >>

Game Programming
Posted by Just close your eyes and see at 6/9/2005 1:59:02 AM
i am new in the field of game programming , and i decided to use .NET as my platform and C# as my programming language and managed directx9 as my graphics library. now i need help to find out many resources about this field and under previous considrations , if u can help me please answer me ...more >>

Batch Files in C#
Posted by orekinbck NO[at]SPAM yahoo.com.au at 6/9/2005 1:43:08 AM
Hi There I have this batch file that I run at the end of each week: Cleanmgr Defrag C: Echo y > y.txt chkdsk C: /r < y.txt shutdown -r I would like to do the above but using C# code. I have been fiddling around with Process but just cannot get it right, any help (and examples) ...more >>

Converting Code
Posted by Just close your eyes and see at 6/9/2005 1:39:05 AM
hi all i am looking for a tool that can help mt to convert solutions that written in VB.NET to C#.NET , and from Visual C++ to C#.NET is there any thing on earth that can do this ? :) thx ...more >>

UDP broadcast
Posted by Frank Esser at 6/9/2005 12:00:00 AM
Hello! I have got machines that answer a certain UDP broadcast request with certain information about them. Some years ago I wrote a VB6 application that just sent out this UDP broadcast request and received all machine information to display all available machines in a grid. Now I wa...more >>

Draw
Posted by Rodrigo Ferreira at 6/9/2005 12:00:00 AM
How can i draw a line inside a button? ...more >>

Query re ADO.NET, constraints, relations, and cascading updates/deletes
Posted by Frnak McKenney at 6/9/2005 12:00:00 AM
One part of a customer project I'm working on involves what seem like fairly straightforward updates to a set of related tables. While I've developed software for a number of years (it only seems like centuries on days like this <grin>), I'm new to C# and ADO.NET and I'm running into problems wi...more >>

Notify from worker thread
Posted by Tomaz Koritnik at 6/9/2005 12:00:00 AM
Hi I still have problem with this. I wan't to execute a method in main thread after worker thread completes some work. In GUI application I'd use Control.Invoke (control would be the main form), but the same thread could be run from console app or WebService app. What would be the mechanism...more >>

How to change to error message
Posted by ad at 6/9/2005 12:00:00 AM
I use try..catch(exception e) to catch excption and show to error(e.Message) to user. But the error is some difficult for user to understand. How can I change the e.Message to some custom message. ...more >>

Question about textboxes and having part of the text as a different colour...
Posted by Paul Tomlinson at 6/9/2005 12:00:00 AM
I have a text box with the text "12345679813246579" in it. I want the first 7 characters to be in a red colour with the remaining in black. Is this possible? MA ...more >>

Variable references
Posted by Joe at 6/9/2005 12:00:00 AM
Hi all, I think this is probably a simple one for any c# expert - I would like to declare a variable say int SomeIntVariable; and also an array: int[] SomeIntArray; Now I would like to be able to assign an element of the array to the variable - that is so that the array element a...more >>

How to convert a Variant time in C#?
Posted by orc at 6/9/2005 12:00:00 AM
Hi there, I'm receiving a variant time parameter (double) from a dll but how do I convert it to something useful in C#? Your help is highly appreciated! Thanks, orc ...more >>

Button click event
Posted by Rich at 6/9/2005 12:00:00 AM
Is there anything wrong with the following statements? private void btnFindCustomer_Click(object sender, System.EventArgs e) { storeSettings(); } private void storeSettings() { Session["receivedByIndex"] = ddlReceivedBy.SelectedIndex; } When the page reloads after the user has...more >>

changing Desktop background?
Posted by perspolis at 6/9/2005 12:00:00 AM
hi all I want to change background of desktop programmatically.. How can I do that?? thx in advance ...more >>


DevelopmentNow Blog