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# > february 2007 > threads for thursday february 1

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

ActiveX in DLL
Posted by hufaunder NO[at]SPAM yahoo.com at 2/1/2007 11:51:59 PM
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax[ActiveXName].dll [ActiveXName].dll I can not call the functions in the ActiveX component. In the next ...more >>


GUI Thread ComInterop
Posted by info NO[at]SPAM it-design.biz at 2/1/2007 11:37:07 PM
Hi I've an C# .NET 2.0 Windows Forms Application which is placed in an DLL. This DLL is instanciated from an non .NET enviroment via ComInterop. This works fine. but I need to put the wohle .NET Application in an second thread so that both applicaitons .NET and non .NET are responsive. ...more >>

Not retrieving values
Posted by Nishanth at 2/1/2007 10:46:00 PM
Hi All, I am facing a very peculiar problem, I am executing a stored procedure residing in the Sybase database. When I do execute the Stored Procedure from SQL Advantage I can retrexecve the values, but when I execute the same from the .net code (VS.net 2003 C sharp) with the same set of para...more >>

Install base of .NET 1.1
Posted by chrisndodge NO[at]SPAM hotmail.com at 2/1/2007 7:35:34 PM
Does anyone know what percentage of Windows computers have .NET 1.1 already installed? I'd like to get a sense of how what percentage of our customers will have to run the .NET 1.1 redistributable installer before being able to run our .NET 1.1 based product. I'm guessing about 50%, but someo...more >>

Need further comments\tips\hints or feedback for my site
Posted by Mark C at 2/1/2007 7:04:54 PM
Hi I was in the progress of developing a web site whereby developers can do free online tests on various programming languages. After initial feedback I managed to fix quite a few issues and changed the look and feel. I would just like some futher comments\tips\hints or feedback The site...more >>

Problem with C# not calling MC++ destrcutor
Posted by Jeremy Chaney at 2/1/2007 5:22:38 PM
I have an application written in C# that uses objects written in a managed C++ DLL. When I exit my app, my C# classes have their destructors called, but the MC++ objects that those classes hold references to do not get invoked (I can observe this from both breakpoints in the code, and trace outp...more >>

Which MySQL Provider.
Posted by Frank Rizzo at 2/1/2007 5:05:39 PM
I've been given a project to work with which involves connecting to MySQL from .NET 2.0 app. I've googled looked and there is a metric ton of different MySQL ADO.NET providers from different people. Is there a consensus on which one is the most stable, more or less supported and has good s...more >>

Sending Ctrl+C to Apache
Posted by cartoper NO[at]SPAM gmail.com at 2/1/2007 4:52:19 PM
I am in a pickel, I MUST start and stop the apache web server in console mode. The only way to shut down apache cleaning is by pressing <Ctrl>+C. I have tried everything I know and I cannot duplicate that in C# code. This is what I have, which is NOT working: [DllImport("Kernel32.dll")] pu...more >>



DOS Short Names
Posted by CapCity at 2/1/2007 4:02:08 PM
If I have a strig that represents a path, how can I programmatically get the "short" DOS name for it? For example, if I have "C:\Program Files\" I want "C:\Progra~1\". Thanks ...more >>

Detect Word is running
Posted by Alan T at 2/1/2007 2:35:44 PM
How do I detect MS Word is already running? ...more >>

Double checked locking
Posted by aindrei at 2/1/2007 2:24:00 PM
This code uses lazy initialization and double checked locking to read urls associated with a retailer from a map. Will the code work? I'm not sure how volatile applies to references. private static volatile Dictionary<string, string> urlMap_; private static object syncRoot ...more >>

Save Dailog
Posted by Chris at 2/1/2007 2:04:01 PM
Why do I get some odd error about STA thread when I run this code? It seems to idicate a problem with this line: if (saveFileDialog1.ShowDialog() == DialogResult.OK) Code: private void buttonSaveAs_Click(object sender, EventArgs e) { S...more >>

Case Insensitive String Comparison?
Posted by jpuopolo at 2/1/2007 1:43:23 PM
All: The String class has a CompareTo method, that compares to strings. Is there a similar method that performs case-insensitive comparisons? Thanks, John ...more >>

Exe files on several computers
Posted by TonyJ at 2/1/2007 1:07:20 PM
Hello! We have an exe file that is used by several persons. This exe file is located on their local computer and is called reports.exe. If a new version is created and the person that is using this exe file is not here so we can't put in the new version. Is the best solution to this problem...more >>

Best way to Read Binary Files
Posted by Marc Ouellette at 2/1/2007 12:47:51 PM
Hi Everyone, I am currently reading Binary files in C++Builder using the code below. Removed some error chacking to make the code simpler to read. std::ifstream fin; fin.open(filename.c_str(), std::ios::in|std::ios::binary); // read the image from file into memory fin.read((char *)ptr...more >>

Queueing in Client Server Application
Posted by asadikhan NO[at]SPAM gmail.com at 2/1/2007 12:35:35 PM
Hi, I have a client server application where the client sends a request to the server with a filename. The server needs to read the file contents, massage the data, and then add it to the database. However, if two requests show up at the same time, I need to create some sort of a waiting mech...more >>

Service sent a stop cmd????
Posted by TheMadHatter at 2/1/2007 12:24:01 PM
HELP!!!!! I created a service that cleans out files in a directory. The problem is it works for a while, then something (windows perhaps?) sends it a stop-service cmd. I figure that my software should behave when it is sent a stop-service, but what would send it a stop????? On shutting do...more >>

Joystick with events: is there any way?
Posted by Vicente Nicolau at 2/1/2007 12:13:02 PM
Is there any way to recieve events from a joystick and to hadle them using C#??? Without using pulling.... Thanks. ...more >>

All Controls On Form Without Using Recursion
Posted by inpuarg at 2/1/2007 11:52:57 AM
Is it possible to get all controls and all of their children on a Windows form without using recursive methods ? ...more >>

Cross thread question .....
Posted by temp2 NO[at]SPAM cfl.rr.com at 2/1/2007 11:21:18 AM
Hello, I have an app that reads data params from a stream and updates controls accordingly. The stream reader is on a different thread than the main thread that created the controls. I fully realize it's not wise, and in some circumstances, not even possible to update the controls from the st...more >>

ASP.NET Deleting rows from an unbound gridview
Posted by Greg at 2/1/2007 11:13:33 AM
I have a gridview on my form which I have populated using a datareader. What I would like to do is to be able to remove specified records from the gridview, without affecting the source of the data. I'm a bit confused about how to go about removing the rows - all the google searches I have don...more >>

COM events in CSharp
Posted by Yoavo at 2/1/2007 10:44:15 AM
Hi, I have an application that was written as ATL project which uses as a server application and has a COM class which implements IConnectionPoints interface (to fire events). I have clients applications which uses the server application (the clients are written in several languages). In th...more >>

Data Relation? Newbe question
Posted by Ginger Estherskip at 2/1/2007 10:39:10 AM
I'm setting up a dataset using the GUI to have a Parent Data Table and a few Child Data Tables. I then have a form that uses that dataset, and I can fill the appropriate datatables et. al., but I can't figure out how that parent/child relationship gets enforced? It's a one to one relations...more >>

Encoding to ISO-8859-1 problems
Posted by ThunderMusic at 2/1/2007 10:16:34 AM
Hi, We are trying to encode to ISO-8859-1, but we have problems doing it using the encoders in .NET. We get some unknown characters in some culture which comes out fine if we post (from IE) from a page in ISO-8859-1 to another page using ISO-8859-1, but cannot take a .NET string or a UTF-8 st...more >>

UI freeze and thread problems
Posted by Rohit Kumbhar at 2/1/2007 10:01:31 AM
Hi, I am writing a Windows Forms C# application [I am new to C#] for reading files on the disk. My problem is the UI freezes when restored after being minimized for a long time [20-30 minutes]. I have a separate thread which does the reading and updates the UI [two datagridviews, two lab...more >>

produce csv containing all sheets.
Posted by dwmaillist NO[at]SPAM gmail.com at 2/1/2007 9:52:30 AM
Hello, I am interested in extracting the information from an excel workbook with many sheets in it and outputting a csv like text file. Since I want a single file with all information for all sheets I don't think that I want to use the SaveAs() method. Right now the only way I have found t...more >>

Program Version Number
Posted by Bill Cart at 2/1/2007 9:33:56 AM
We are using c# windows forms and just trying to get started with .net. I want to do something that should be easy but I can't find any way to make it work. We are using Click Once to publish to a network drive and I need to be able to check if a program is the current version. Because the use...more >>

What is ClickOne?
Posted by Tee at 2/1/2007 9:14:37 AM
Hi, Just curious what is clickone? Is it the same as Installshield? Been follow the following instructions and it seems to create an installation exe for me which is good but how come it doesn't include the ..net framework as part of the installation exe too? if i was giving this exe to ...more >>

Exception Handling and Class Inheritence
Posted by Oblivion at 2/1/2007 9:08:00 AM
Hi All, I have an issue where I get an "Unhandled Exception" pop up box when an error occurs in an inherited base class even tho there's a try..catch written in the inheriting class to handle it. I've got an example of the code below to give you an idea of what's occuring. I thought the try...more >>

How to loop through Hashtable keys without using foreach
Posted by Akira at 2/1/2007 8:56:45 AM
I noticed that using foreach is much slower than using for-loop, so I want to change our current code from foreach to for-loop. But I can't figure out how. Could someone help me please? Current code is here: foreach ( string propertyName in ht.Keys ) { this.setProperty( propertyName, ...more >>

Mouse Position While Dragging and Dropping
Posted by Emanuel at 2/1/2007 8:28:13 AM
I am trying to make a little diagramming app in C# with the 1.1 Framework (currently our standard here at work, will be upgrading to 2005 sometime in the next couple of months). I want to allow them to click on a custom control of mine, drag a line to another custom control, and when they let go...more >>

thread safety and syncroot
Posted by TS at 2/1/2007 8:27:43 AM
ArrayList myCollection = new ArrayList(); foreach ( Object item in myCollection ) { // code here. } Can someone explain how more than one thread would execute code? So if i have some code in a web page that a user runs that iterates over an arraylist, what is the scenario where more th...more >>

Properties vs Get Set Accessor methods
Posted by Tim Sprout at 2/1/2007 7:34:11 AM
Why is it considerd best practice to use Properties rather than Get and Set accessor methods? -Tim Sprout ...more >>

Tracing using a global trace object...
Posted by Wayne at 2/1/2007 6:50:24 AM
Hi, I wonder how I should use dotNets TraceSource logging class globally within my C# application. All examples I have seen only use the TraceSource class in the Main method but I need to use it from everywhere... Should I wrap the TraceSource object into a Singleton class or is there a bette...more >>

Switching mouse event handlers using a function
Posted by Ryan McFall at 2/1/2007 6:23:20 AM
Hi: I am trying to write a short program that demonstrates switching between two different event handlers when a mouse click occurs. Here's the relevant code: public delegate void MouseHandler (object sender, MouseEventArgs args); .... private void swap(MouseHandler old, MouseHandle...more >>

How to make web browser editable
Posted by rizwanahmed24 NO[at]SPAM gmail.com at 2/1/2007 5:28:02 AM
Hello i have a web browser AxSHDocVw.AxWebBrowser. i load html file in it. Currently the web browser is not editable. i want to make it editable so that i can to edit the file on runtime through this web browser. I found one property that is axWebBrowser.EditMode, but it is read only. Any su...more >>

Dynamically accessing the most current version of an assembly
Posted by zumbo NO[at]SPAM gmx.net at 2/1/2007 4:48:30 AM
I'm accessing MSOutlook via Microsoft.Office.Interop.Outlook. It works fine if I add a reference to either version 11 (Outlook 2003) or version 12 (Outlook 2007) of the interop assembly to my project. However, I don't want to build two different applications for each version; I want my applicati...more >>

& in web config
Posted by Ralph at 2/1/2007 4:22:02 AM
is the & charater not allowed in a web.config file? If so is there a way to escape it? I've never had this happen, but in a web.config file 1.1 framework app. It seems to be choking in a string in the webconfig at exatly that location. thanks in advance Sincerely Ralph ...more >>

Reflection & Array Properties
Posted by Velislav at 2/1/2007 2:45:18 AM
Hi, I've got the following piece of code: string GetPropertyValue(object jobCard, string propertyName, int index) { PropertyInfo property = jobCard.GetType().GetProperty(propertyName); if (property.PropertyType.IsArray) { ...more >>

Problem creating folder in C# Asp.Net
Posted by Zeb at 2/1/2007 2:45:12 AM
Hi all I've developed a shopping cart in C# and to allow moderators to upload product images, news images and downloadable PDFs, the app creates a folder for each product. I start out with the following empty folders: /img/products/ /img/news/ /pdf/ When a new item is uploaded, the app ...more >>

07 cracked software fast ftp download
Posted by icrack icrack at 2/1/2007 2:23:28 AM
There are best softwares and best price. The list is not full and now will be more new version, any more need, please mail me: judydan@hotmail.com [ArcGIS.Engine.9.1].EngineDevKit91 [Boson.NetSim.6.+Keygen].netsim6for CCNP [RouterSim].CCNA.Network.Visualizer.5.0.09 20-20 Kitchen Designer ...more >>

How can i get "paste event" from the clipboard?
Posted by yevron2 NO[at]SPAM gmail.com at 2/1/2007 2:09:13 AM
Hello, I am tring to write a clipboard spy that catches events from the clipboard. I used the SetClipboardViewer api to get events when data is copied into the clipboard, and also GetClipboardOwner to know where the data was copied from, but i don't know how to get an event when data is bein...more >>

Installation and Registry association
Posted by windsim at 2/1/2007 2:09:00 AM
Hi, I have 3 C# programs (version: 4.6.0; 4.6.1; 4.7.0) now.When I firstly install v4.6.0 and next v4.6.1,that is ok---that means v4.6.1 becomes the current program to open the project file(extension .ws) when you double-click the project file. So are v4.6.1 and v4.7.0, v4.7.0 becomes current...more >>

Stupid question...
Posted by adam NO[at]SPAM goldews.com at 2/1/2007 12:14:14 AM
I constantly have a delima calling functions inbetween forms, for example in a project, in frmMain.cs , I have a function called RefMain();, I would like to call it in frmAdd.cs, but none of the following methods work: 1: frmMain frm; frm.RefMain(); 2: frmMain frm = new frmMain(); frm.R...more >>

inherited namespace
Posted by Alexander Widera at 2/1/2007 12:09:30 AM
hello, is it possible to completly inherit a namespace? something like "MyNewNamespace : MyNameSpaceBase" i want to access all classes in the MyNameSpaceBase by the namespace "MyNewNamespace", because some classes are inherited and overridden, and some are not. thanks for help, a...more >>


DevelopmentNow Blog