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 2004 > threads for wednesday june 30

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

Creating Control panel applets using C#
Posted by rajani.n NO[at]SPAM sonata-software.com at 6/30/2004 11:01:57 PM
I have to create a control panel applet for my project using C# . But i got to know that it is not possible using C# since dll has to export static entry points. And one of the ways is using MC++ to write a wrapper for the C# component. as we know that .NET languages all are based on a commo...more >>


Synchronizing processes in C#
Posted by Chris B at 6/30/2004 10:42:01 PM
I have the following situation: Process 1 creates Process 2 (using Process.Start(startInfo) Process 1 needs to wait until Process 2 is initialized before Process 1 can continue to execute Both processes are non-GUI processes. The problem that I am running into is that the Process.Start(start...more >>

How do I draw a color border on a Panel control
Posted by Patrick Blackman at 6/30/2004 10:12:08 PM
I would like to have a panel control which has the ability to have different color borders, any idea how to accomplish this. Thanks ...more >>

Theme question.
Posted by pnp at 6/30/2004 9:38:52 PM
Hi all, Could I use an external dll (that windows also use for it's themes) from which my application could load it's graphics at runtime? Basically I wan't to be able to select the styles for my application without changing the windows general appearance. Thanks, Peter. ...more >>

removing nodes from xmldocument
Posted by e-mid at 6/30/2004 7:23:09 PM
Here is an xml structure. i want to remove <a> nodes that do not have any child. How can i do that in csharp? <root> <a> <b/> </a> <a/> <a/> <a> <c/> </a> </root> i tried following but it does not work: xmlNodeList l = xr.getElementsB...more >>

notepad saves as ANSI, what about c#
Posted by Ziver MALHASOGLU at 6/30/2004 5:48:11 PM
Hi, I produce a text file using my windows application written with c#. -- System.Text.Encoding encOutput=null; encOutput=System.Text.Encoding.UTF8; StreamWriter sw=new StreamWriter(@"c:\a.txt",false, encOutput); -- this UTF-8 file will be used to transfer data to another databa...more >>

Casting struct[] to object[]
Posted by Fabrizio at 6/30/2004 5:47:53 PM
Hi I cannot figure why it isn't possible to cast a struct array to an object array. I written a structure like this: public struct Test { private int TestA; private int TestB; public int A { get {return this.TestA;} } public int B { get {return this.T...more >>

Detecting Keystrokes in a DataTable
Posted by Randy at 6/30/2004 5:22:23 PM
I have a DataTable in a DataGrid on a Windows form. I have comboboxes in the first column, and that seems to work just fine. The second column is for a money amount. The numeric dollar value doesn't get saved to the cell until I hit <Enter> or tab to the next cell. I'd really like to be ab...more >>



design advice for newbie
Posted by run around at 6/30/2004 4:44:01 PM
would greatly appreciate any advice on approaching this problem. i have a browser-like winform app with 4-5 forms, allowing foward and back navigation. the app will also allow for opening a new copy of any particular form and navigation from that form foward independent of the orignal form...more >>

Checking a bitwise enumeration
Posted by Paul E Collins at 6/30/2004 4:35:53 PM
Suppose I have a few Keys objects: Keys k1 = Keys.V; // V Keys k2 = Keys.Control | Keys.V; // Ctrl+V Keys k3 = Keys.Shift | Keys.J; // Shift+J I need to determine which of these include the Keys.V element, regardless of any other keys. I know it will be a bitwise comparison, but I can't wo...more >>

How can I use real SQL on a DataTable? i.e. not array of rows using a filter... as in DataTable.Select
Posted by Dan V. at 6/30/2004 4:19:40 PM
How can I use real SQL on a DataTable? i.e. not array of rows using a filter... as in DataTable.Select. I read at : microsoft.public.dotnet.framework.adonet "As others have posted: There is no SQL query processor for DataSets. You can use XPath with an XMLDataDocument built from the DataSet....more >>

converting system.string[] to BSTR*
Posted by Joe at 6/30/2004 4:18:02 PM
I'm trying to convert system.string[] to a com method that wants a BSTR*, and array of BSTR. Can anyone help?...more >>

Localization of forms is problematic.........
Posted by Robin Tucker at 6/30/2004 4:16:20 PM
Can anyone please explain to me the process of form localisation? Are there any tools that will extract all strings from all forms in a project (so they can be sent for translation) and then import them into the project again (with the appropriate Locale setting on the form). I have string li...more >>

Problem with X509 certificate parameters
Posted by Marco Moioli at 6/30/2004 4:09:17 PM
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 obtain "Export of private parameters is not supported" static void Main(string[] args) { ...more >>

Why are there no covariant return types?
Posted by Stefan Slapeta at 6/30/2004 3:44:53 PM
Hi, this code does not compile in C#: class base_class {} class derived_class : base_class {} class A { public virtual base_class f() { return new base_class(); } } class B : A { public override derived_class f() // covariant return type { return new derived_class(); ...more >>

displaying windows
Posted by Piotrek Stachowicz at 6/30/2004 3:37:57 PM
Hi, My application has 3 windows, each of them is separate form. One of them (called MainWindow) is visible in task bar, others are not. I'd like them to behave in the following: 1) when main window gets focus (or is "restored"), others should be brought to the front 2) when main window...more >>

DllImport question
Posted by dominicjoseph NO[at]SPAM rediffmail.com at 6/30/2004 3:32:44 PM
Hi, I was trying to link a UI I made in C# to the backend which is coded as a DLL in VC++. I used the DllImport attribute to invoke the dll functions. Is there any similar mechanisms by which I can invoke member functions of classes defined in the dll? Is there any way I could instantiat...more >>

Form Closing event - again
Posted by John S at 6/30/2004 3:27:33 PM
I need to know if the "X" in the upper right-hand corner of the form was pressed to close a form. Nothing else, just the "X" close button ...more >>

tiling windows
Posted by Piotrek Stachowicz at 6/30/2004 3:18:24 PM
Hello, I write application which displays 3 windows at the startup. Is there any way (apart from hardcoding their location), to display them tiled (so that they do not overlap)? Thx Piotrek Stachowicz ...more >>

Form closing event ?
Posted by John S at 6/30/2004 3:08:55 PM
What event is fired when the user clicks on the "X" in the upper right-hand corner. I need to know how to differntiate between this and a close button I placed on the form. ...more >>

MSDN Library Csharp help
Posted by Sven Buggermann at 6/30/2004 3:08:34 PM
Hi, i am getting only vb.net code samples when parsing the mdsn library can someone tell me how to set with what language code samples are displayed ? Thanks & regards, Sven ...more >>

What reference should I add, Debug or Release?
Posted by VM at 6/30/2004 2:58:01 PM
When I'm adding a reference to another project that is built as one of the Projects in the Solution, should I add the dll in Debug or the one in Release? I usually also do a batch build of everything (Release and Debug) so I don't know if that would be a factor. The reason I'm asking is that one...more >>

Equivalent of TableRow and TableCell class
Posted by navvyus NO[at]SPAM yahoo.com at 6/30/2004 2:57:32 PM
Hi I can use the TableRow and TableCell class in C# while using Web forms. The same are not available while programming with Windows Forms. I have the folloowing code that works fine with Web forms but returns error with Windows Forms. How can I make it run for Windows forms: TableRow r; Ta...more >>

Playing with System.DateTime
Posted by bredal Jensen at 6/30/2004 2:51:30 PM
Hello gurus, I'm building a small booking system and i have come accross quiet a tedious pitfall. "I need to make sure that people do not book for tomorrow when todays time is greater or equal to 11." Well some of you probably allready know the answer but this is not so obvious for ...more >>

can I call from one constructor another constructor ?
Posted by Paul at 6/30/2004 2:36:12 PM
public class A { public A () { // here I would like to call the second version of _ctor, how to accomplish this ? } public A (int a, int b, int c) { // some code } } Thanks for any advice, Paul ...more >>

modifying image metadata causes quality degradation?
Posted by Travis at 6/30/2004 2:01:14 PM
Hi everyone, I'm using the System.Drawing.Imaging.Bitmap to retrieve and modify the metadata tags (user comments, keywords etc) of JPEGS. I was wondering if changing these tags in any way degrades the image quality of the JPEG. I am using SetPropertyItem to change the tag value and then call...more >>

Generating the tooltip documentation?
Posted by Adam Clauss at 6/30/2004 1:51:10 PM
Alright, so I've got a class library that others will be using. When you hover the mouse over most of the exiting .NET classes/methods, you will get a tooltip popup showing the full name/declaration of the class or method, along with a line of text description. I am attempting to add similar d...more >>

XSD.Exe error: Error generating classes for schema 'xxxxxxx'. - Specified cast is not valid.
Posted by eSapient NO[at]SPAM Yahoo.com at 6/30/2004 1:42:01 PM
I get the following error when I run the XML Schema Definition Tool on a XML schema: Error: Error generating classes for schema 'codeGeoFeatureType'. - Specified cast is not valid. The XSD in question is: <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/...more >>

Update Command Coding
Posted by Brian Conway at 6/30/2004 1:39:53 PM
I have the following for an update function and I want to be able to pass in a session variable where it is within the update statement. Does anyone know how you can pass this session variable in here? As it is currently, it says that it does not exist in the class or namspace. I have been abl...more >>

Connection String Dialog
Posted by Steph. at 6/30/2004 1:00:49 PM
Hi, How can I display to the user the "Connection String Dialog" (The = Dialog to build connection string) in my application ? =20 Thanks, Steph....more >>

Object reference exception error for using Hashtable, why?
Posted by A. Burch at 6/30/2004 12:15:34 PM
I posted early about Hashtable use and the shallow/deep copy and storing a reference answered that question. I've got a larger implementation of this, but am not sure why I'm getting this error. Object reference not set to an instance of an object. I don't know what I'm missing. What needs t...more >>

Structs + Object
Posted by Tamir Khason at 6/30/2004 11:46:16 AM
Little question: I have a class A { public A() { //Whatever } public SomeStruct prop { get {return m_prop;} set {m_prop = value;} } } And structure SomeStruct { public string s1,s2; public SomeStruct(...more >>

convert int to string?
Posted by Darryn Ross at 6/30/2004 11:44:37 AM
Hi, I am trying to convert an integer into a string but when i do i loose some of the integer... e.g int i = 10.00 ; string s ; s = Convert.ToString(i) ; s = "10" not "10.00" how do i get the string to look like this "10.00"?? Thanks ...more >>

Visual Styles and Button Images
Posted by curtiswellborn NO[at]SPAM yahoo.com at 6/30/2004 11:28:59 AM
Hey, I have come into a bit of a problem. When Flatsyle is on system it will not show my images that i have set in image list or just in image. Also somethings i have found online do not work because i coded it to change the flatstyles(if needed) to whatever theme the user is using. This is th...more >>

C# and VB/JScript..
Posted by genc ymeri at 6/30/2004 11:03:07 AM
Hi, I have a win C# app and I would like to write some scripts (VB/JScript) for instance in a textbox component and to validate the syntax of that script (not neccesserly to run it...) How can I do that ??? ...more >>

DirectX 9.0 sample
Posted by Meena at 6/30/2004 10:56:41 AM
Hi, My application should have a audio recording control, which will record the audio input from a user, save the audio input as a Base64string and play it back. What objects should I be using ? Is there any sample application similar to my requirement ? Meena ...more >>

sscanf
Posted by Hin at 6/30/2004 10:55:47 AM
Anyone knows if there is any method similar to the C++ sscanf in C#? (parse a string that contains several values) -- Regards, Hin ...more >>

ListView FindItem
Posted by PL at 6/30/2004 10:41:33 AM
Hi, ListView doesn't seem to have the FindItem function anymore. What are you using instead of that method (other than foreach in the ListView.Items)? Thanks! PL ...more >>

Nested Classes or Alternative?
Posted by Rudolf Ball at 6/30/2004 10:39:27 AM
Hi NG, I want to build two classes, Demo.Car (where Demo is the Namespace) and Demo.Car.Wheel Is the only solution a nested Class? Isn`t there anything more elegant? Thank you Rudi ...more >>

What files to upload to webserver?
Posted by james NO[at]SPAM jimw.co.uk at 6/30/2004 10:30:32 AM
Hi there, I'm just starting to write my second ASP.NET webpage in C# and want some way of easily splitting out those files that are needed to be uploaded to the webserver - i.e. i create a project on my local machine in VS.NET and it creates the "AssemblyInfo.cs" file, "Global.asax" file, "Gl...more >>

Waiting thread
Posted by Kimmo Laine at 6/30/2004 10:25:33 AM
Hello, how can i wait thread to close in C# - i need something like the Win32 API WaitForSingleObject. Thread t; // Start t // Somewhere else... // Order t to close // ... // Wait t to close 250 msec UnknownFunctionName( t, 250 ); // Thread was closed or time ended thx Ki...more >>

Image TextBox
Posted by Dean L. Howen at 6/30/2004 10:24:05 AM
Please help me! How to show image in textbox ? Thanks ...more >>

List running Processes
Posted by Al Sav at 6/30/2004 10:05:01 AM
Hello, I am trying to find the file location and file names of all the processes that I see in windows task manager. How can I list all the exes that are running currently? Thanks in advance, Alwin S....more >>

OT: Temporary loss of service :)
Posted by Jon Skeet [C# MVP] at 6/30/2004 9:48:05 AM
Just a brief note to say that I'm moving tomorrow and taking some time off work to sort the new house out. Unfortunately I won't have internet access at the new house for a short while, so I won't be able to read news. If any conversations I'm involved in seem to stop half way through, th...more >>

Hashtable behavior?
Posted by A. Burch at 6/30/2004 8:05:31 AM
I'm wanting to use a Hashtable. I have 2 (keys, objectvalues) pairs of data to store. I'm using a static declartion for the Hashtable the instance of the class that is the object. If I try and retreive the first object after storing after the 2 (key, objectvalues) are stored I always get the ...more >>

How to get the full path of a running process
Posted by Christopher Attard at 6/30/2004 5:00:02 AM
Hi, How can I obtain the full path for a running process without using WMI? I've tried to use the Process.StartInfo.WorkingDirectory but it's not valid since the process is already running. Thanks, ...more >>

win32 DLL and LPTSTR
Posted by Steven Blair at 6/30/2004 4:49:08 AM
Hi there. Having a problem calling a win32 function from a dll. Here is the function header: DWORD thrdGetHcNum (DWORD nPort, DWORD nBaudrate, LPTSTR lpszHcNum) //Description of the 3rd parameter LpszHcNum: The head of the buffer area used to store the serial number of the terminal, 9 by...more >>

newbie - public available dataset
Posted by Thorsten moeller at 6/30/2004 3:47:01 AM
Hi , i am fairly new to c# and programming and here is my question! i have a dataset to store information in a windows form project. At the moment it is made and loaded in the MainForm method. Now i want to add a record via a button click event. How do i access the dataset in the click ...more >>

ANN: .NET Framework 1.x Service Packs - Tech Preview
Posted by Thomas Scheidegger [MVP] at 6/30/2004 2:53:22 AM
..NET Framework 1.1 Service Pack 1 -Tech Preview- http://www.microsoft.com/downloads/details.aspx?familyid=12721880-cb9f-4481-9610-987de96532e7 Download: http://download.microsoft.com/download/8/f/d/8fd0931f-23e9-4a56-b793-112a9db3bffa/NDP1.1sp1-KB840129-X86-Beta.exe Import...more >>

ANN: .NET SDK 2.0 Beta 1
Posted by Thomas Scheidegger [MVP] at 6/30/2004 2:31:07 AM
..NET Framework 2.0 SDK Beta 1 x86: http://www.microsoft.com/downloads/details.aspx?familyid=916ec067-8bdc-4737-9430-6cec9667655c Download [~230MB]: http://download.microsoft.com/download/a/a/1/aa1bb223-d4fa-4e1e-80c4-2dc31fbb09dc/setup.exe Runtime : http://www.micro...more >>

Form Icon
Posted by [Yosi] at 6/30/2004 1:56:01 AM
I have a form , I want to change form icon relate to some states, I all image list witch include some icons. How can I convert image to Icon or how to change the form icon ....in run time...more >>

RichTextBox/Protected Question
Posted by Jesper at 6/30/2004 1:43:01 AM
Hi, Im fairly new to C# but have som experience in the C++/MFC world and I am a bit confused as I cant find some information that I am used to having. I am trying to use the RichTextBox control and specifically the Protected event. In C# I get no arguments to this event (well I do but the Ev...more >>

A quesion about udl file and app.config
Posted by Jet Leung at 6/30/2004 1:40:45 AM
Hi all, I had created a database connection string in a *.udl file by the connection setting wizard. And I can easily get the udl file path in my program.And I don't know why when I set the udl file path as the ConnectionString of the OdbcConnection it throw an error means like this " unhandle ...more >>


DevelopmentNow Blog