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# > january 2005 > threads for wednesday january 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 31

Heavy unicode supported monospace font?
Posted by Jesper at 1/12/2005 11:25:05 PM
Hi, I'm in need for a monospace font to be used in a .net application able to write subscripts numbers like in CO2 and H2O. Any suggestions on a suitable font? I use this syntax, textbox.Text = String.Format("\u2082\u2083\u2084").ToString(); is this correct? thanx Jesper, DK...more >>


Threading priority
Posted by vooose at 1/12/2005 10:13:35 PM
Consider a Server that spawns child threads to handle requests, something of the form: ThreadPool.QueueUserWorkItem(new WaitCallback(MyClass.HandleRequest)); and HandleRequest would look something like public void HandleRequest(Object stateInfo) { //first section (lots of code) ...more >>

Looking for an Efficient Thread Synchronization?
Posted by Teis Draiby at 1/12/2005 9:44:53 PM
In an application manipulating streaming video and 3D stuff I want to implement mutithreading to ensure a decent UI response time. Since my application is very speed critical I want to use the most efficient synchronization of the shared data objects. What would that be in this case? I think t...more >>

formatting amount
Posted by mp at 1/12/2005 9:38:07 PM
I have an amount that I have to format to 9.2 example: 7564 should become 7564.00 Thanks in advance ...more >>

Help in right click menu in c#
Posted by John Rajendran at 1/12/2005 9:09:18 PM
HI there, I need to make the functionality of right clicking on a datagrid cell and try to invoke some menu driven code. It could be a file opening, file saving or my own event driven code. Is this possible, if so can someone help me with some sample code. Thanks john ___ Newsgroups brought...more >>

XML web service and Hashtable problem
Posted by Marek at 1/12/2005 8:28:29 PM
I am having a problem with Hashtable used in XML web server. I have a WebMethod where clients get registered and added into hashtable. Later, I call another web method which has client ID as parameter. I first thought I was doing something wrong with keys, but now i found out the Hashtable is em...more >>

Shared/Static methods & functions
Posted by MPF at 1/12/2005 8:18:00 PM
When designing a n-tier architecture, what is the preferred method/function accessibility? <Specifically for asp.net apps> A private constructor and shared/static methods & functions? A public constructor and non-shared/static methods & functions? Are there any drawbacks with regards to perf...more >>

Check hashtable keys by ignoring the case
Posted by Srikanth at 1/12/2005 7:56:59 PM
Hi Can any one say how to check a hashtable by ignoring the case of key supplied. I want the following requirement It should not allow the user to do the following Hashtable table = new Hashtable(); a) table.Add("one",1); b) table.Add("One",1); by default it executes the abo...more >>



Coding an app to use ActiveSync to sync between SQL CE and SQL 2000 / MSDE
Posted by Paul Aspinall at 1/12/2005 7:49:40 PM
Can anyone provide any pointers or code examples for Coding an app to use ActiveSync to sync between SQL CE and SQL 2000 / MSDE I want the app to use ActiveSync and to be a Windows form app on the PC and with a widest target platform (ie. XP home, so no IIS), therefore using IIS for Sync is...more >>

Efficient reading of floating point arrays
Posted by Keith Kingsley at 1/12/2005 7:21:02 PM
I'm new to C#, so please forgive me if this is elementary. I have a file that consists of, say, one thousand (4-byte) floating points, and I'd like to read it into an array of floats as efficiently as possible. In C/C++ I'd simply malloc an array of bytes, read them into my allocated buffer,...more >>

only static operators?
Posted by Silver Phoenix at 1/12/2005 6:51:02 PM
Greetings. I have some questions that I would like to clear out. 1. Why do operators have to be static? (This question relates to the language specification) 2. More importantly, couldn't there be operators that were tranlated at compile-time to "normal" methods? For example: ...more >>

DDE-Dynamic Data Exchange
Posted by Vinay Chopra at 1/12/2005 6:20:01 PM
Hi, Did anybody worked on DDE(Dynamic Data Exchange)? Can someone come with a code piece for implementation of DDE in Microsoft technologies. Thanks, Vinay ...more >>

How to make a kick start to C#?
Posted by SAM at 1/12/2005 6:17:07 PM
Hi, can any one help me on a quick and efficent start in C sharp? please help me out... best regards, Sam ...more >>

Override classes/objects within a context?
Posted by Aquila Deus at 1/12/2005 6:17:06 PM
Hi all! I wondering if there is any method to override object/class within a context, like this: // MyNullFileInfo is derived from FileInfo let (System.IO.FileInfo = MyNullFileInfo) { FileInfo fi = new FileInfo(); // create a MyNullFileInfo. fi...... // // call some other method that us...more >>

graphical overview
Posted by Ilann at 1/12/2005 5:03:31 PM
are there graphic,printable documents that put togoether the global hirerarchy of the .net framework? Ilann ...more >>

Real time display of database data
Posted by Keith at 1/12/2005 4:47:25 PM
Say I write a little c# client and have a database. I want multiple people to use the client, which will display a datagrid, or tree control with data from the databse. The client will allow updates, insertions, deletes of data that is populated from a table in the database. Now, how ...more >>

Preferences Dialog in C#
Posted by Matt at 1/12/2005 4:35:04 PM
Hello, Im creating a Web Browser in Visual C# and I have a preferences dialog. The current homepage is yahoo.com. The code for the homepage is: // Go Home - go to the default home page. WebBrowser thiswebpage = GetCurrentWebBrowser(); thiswebpage.Navigate("http://w...more >>

Any tips for a component or something?
Posted by Mats Lycken at 1/12/2005 4:35:01 PM
Hi, I'm writing a winforms project where I need to display data from a DataSet in a list. Each data item should be displayed in a group with some textboxes and labels and it should be editable and update the underlying datasource. A asp.net repeater would be ideal, but I can't find something...more >>

C# and TCP/IP sockets
Posted by Naveen Mukkelli at 1/12/2005 4:33:06 PM
Hi, I'm new to TCP/IP socket programming using C#. I've written a code that connects to a server application and pumps large amounts of data to it. I need to determine the best possible packet size for the data. Any suggestions on how can we do that. Now, is there any way t...more >>

Shortcut Key(Visual Studio usage NOT coding)
Posted by Joseph Lee at 1/12/2005 4:30:02 PM
Hi, I am using Visual Studio 2003. I would like to ask if anyone knows how to find all the caller of a function. Currently by highlighting the function name and "press shift+F12" or "rightclick"+"go to defination" will show a single caller of that function. I would like a list of all th...more >>

cast a string to an object
Posted by miki at 1/12/2005 3:03:45 PM
Hi all, How can I cast from a string to an object? For example, suppose I have classes as employee, manager, supervisor, director,...I have a user interface that takes a person name, then performs query database and returns a string which tells that person is either employee, manager,...If i...more >>

Exception management question...
Posted by craig at 1/12/2005 2:59:32 PM
I am wondering if there are some best practices for determining a strategy for using try/catch blocks within an application. My current thoughts are: 1. The code the initiates any high-level user tasks should always be included in a try/catch block that actually handles any exceptions tha...more >>

Event Handler Wizard
Posted by Allan at 1/12/2005 2:51:30 PM
Is there a wizard in C# that add event handler? Like the C++ Class Wizard. e.g. A wizard that List/Add events of ListView. Thanks. Wizard ...more >>

System.Net.Dns.Resolve issue
Posted by Rob Levine at 1/12/2005 2:47:44 PM
Hi All, This is a cut down version of a post from earlier entitled "Name resolution in .Net". Apologies, for the repeat, but I think the first post was too verbose (it came from a blog article of mine) and I think a shorter post here is probably more appropriate. I am seeing some incorre...more >>

C Structure
Posted by Dan at 1/12/2005 2:29:01 PM
Good Day All, I have a C function I am trying to call from C# using DLL Import. The definition for the function is: int IAListNext(hIAClient, dwHandle, lpData, iMaxLen, lpdwLen) What has me confused is the ldData parameter. It is of type char FAR *. In the documentation (which was origi...more >>

Why does this not work? (doesn't enter my while)
Posted by trint at 1/12/2005 2:23:52 PM
//SQL load strings string dealerNumber; string orderNumber; string prodNumber; string qtyOrd; string fromDealerNumber; string orderDate; string aMount; string tYpe; string salesManagerOrganization; string distributerOrganization; if ((radioButton1.Checked) == true) { } else if ...more >>

Tic tak toe [10x10]
Posted by Roman at 1/12/2005 2:15:13 PM
Hello, I am looking for the source of the Tic Tak Toe game but 10x10 and only 5 fields are needed to win. Roman ...more >>

How to autorun an MSI file on CD?
Posted by Derrick at 1/12/2005 1:58:19 PM
I have this autorun.inf in the root of my cd along with MySetup.msi, doesn't start my install though, any ideas? Do I need to write a program to kick off setup.exe? [AutoRun] open=MySetup.msi Thanks in advance! Derrick ...more >>

Help Wanted
Posted by Mike Kitchen at 1/12/2005 1:55:33 PM
Hi all. Unfortunately my website http://www.publicjoe.f9.co.uk has become reasonably popular receiving roughly 1500 visitors a day. My ISP only allows me 250 MB of bandwidth a day which I am now exceeding. This can lead to the closure of my site. As some of you are aware I offer a free begi...more >>

Mapping a Drive
Posted by John Smith at 1/12/2005 1:39:21 PM
Hello all: Is there a way to map a drive programatically in .NET? The reason why I ask is I am trying write a program that can map local c: drive of each computer on our domain so that I can access a certain file, open it, and read its contents. Thanks, - John -...more >>

Mapping a Drive
Posted by John Smith at 1/12/2005 1:07:54 PM
Hello all: Is there a way to map a drive programatically in .NET? Thanks, - John -...more >>

ListView????
Posted by perspolis at 1/12/2005 12:15:30 PM
Hi How can I prevent a ListView columns from resizing?? ...more >>

Re:
Posted by trint at 1/12/2005 12:03:26 PM
Ok, something else is wrong with this: dealerNumber = drSQL["DealerNumber"].ToString(); here's the error: An unhandled exception of type 'System.IndexOutOfRangeException' occurred in system.data.dll thanks, Trint Additional information: DealerNumber ...more >>

Not all projects are built?!
Posted by Mats-Lennart Hansson at 1/12/2005 11:40:44 AM
Hi, I have a solution with 12 projects. When I try to build it says: ---------------------- Done ---------------------- Build: 11 succeeded, 0 failed, 1 skipped And on one of the project it says: ------ Skipped Build: Project: FormObjects, Configuration: Debug .NET ------ Project confi...more >>

I want to do this in "ToString" c#
Posted by trint at 1/12/2005 11:31:18 AM
Here is the vb.net version of what I need to do in c#: myString = drSQL.Item("columnName").ToString() Thanks, Trint ...more >>

Setup project, very large, hangs machine when running .msi?
Posted by Derrick at 1/12/2005 11:02:56 AM
I have an app that relies on text file data. The app .exe and .dlls are only around 500k, the data however, is hundreds of megs. I wrote a setup project for this, and it compiled, but the .msi is around 300 megs, and when trying to run it my machine goes out to lala land. (that's a technical t...more >>

Making a flat file
Posted by JAc at 1/12/2005 10:57:02 AM
Hey, it must be very simple but I am struggeling. I want to make a simple flat file. I do now (I also tried with string) foreach(Object obj in collection) { recordline = new StringBuilder(); recordline.Capacity = 200; recordline.append("R01",1,3); recordline.append("TE...more >>

Start a program upon establishing an internet connection
Posted by J at 1/12/2005 10:40:03 AM
I would like to automatically start a program any time a dialup internet connection is established. Any ideas? ...more >>

sending Email
Posted by SenthilVel at 1/12/2005 10:12:32 AM
Hi I do need to send Emails from my c# dotnet application. I know that the easy way is to use System.web.mail components .. The problem is that the Mail components in DOtnet use the CDO inbuilt within them... but i dont want to use these CDO components to send mails.... can yu let m...more >>

enum as index for DataRow
Posted by marc.gibian NO[at]SPAM ACM.ORG at 1/12/2005 10:03:46 AM
I have been trying to improve the quality of my C# and ADO.NET coding. One of the books I've read strongly advises against using string values to address individual values in DataRow objects. This rings true to me after years of avoiding string lookups whenever possible. But, when I attempted to...more >>

Triangle button
Posted by davebrennan1975 NO[at]SPAM hotmail.com at 1/12/2005 9:31:07 AM
I'm trying to find a simple triangle button. I've come across lots of custom controls with ellipsis, circle, and rectangle settings, but nothing with triangle options. Anyone have any suggestions? Thanks. -Dave ...more >>

Mondosearch error
Posted by toufik at 1/12/2005 9:26:58 AM
Hi, I'm having the folowing error when I create a mondosearch finder instance Finder myFinder = new Finder("c:/Mondosearch/SearchHost/Data/MssOptions.xml",new CultureInfo("EN")); Mondosoft.MondoSearch.FindInterface Error: EXCEPTION: SearchOptions.XmlRead(): failed to lookup culture <9> XML...more >>

enum as index for DataRow
Posted by marc.gibian NO[at]SPAM ACM.ORG at 1/12/2005 9:22:05 AM
I have been trying to improve the quality of my C# and ADO.NET coding. One of the books I've read strongly advises against using string values to address individual values in DataRow objects. This rings true to me after years of avoiding string lookups whenever possible. But, when I attempted to...more >>

Properties In C#
Posted by Daniel Mihaita at 1/12/2005 9:12:46 AM
Hello there, I need to code an object with two properties that binds dynamicaly, something like bind comboboxes on web pages. So my object needs to gave two properties Prop1 and Prop2. I need Prop1 to take values from an enum (let's say value1 and value2), and also Prop2 , depending...more >>

Besoin aide SVP
Posted by Philippe at 1/12/2005 8:53:03 AM
Bonjour je suis nouveau en C# (je viens de delphi) j ai qq questions comment faire pour mettre une statusbar qui ai le meme look que VisualStudio 2003 ?? j utilises des compos boutons MyXPButton ce bouton a une propriete BtnStyle qui permets de changer la couleur du bouton, je vou...more >>

Data Records Formats Testing Tool
Posted by Mark Jerde at 1/12/2005 8:52:16 AM
(If these are the wrong groups please suggest the right one(s). Thanks.) I need to come up with a way to test potentially thousands of data (files / records / streams) to determine if they match one of about thirty defined data formats. If a record partially matches one of the formats I need ...more >>

How do I modify colors like Windows does to make 3D border slightly darker or lighter?
Posted by jrhoads23 NO[at]SPAM hotmail.com at 1/12/2005 8:35:58 AM
If you look at a standard Button in a .NET Windows Forms app, you will notice its default BackColor is "Control" and it has a 3D raised border which is 2 pixels wide. The outer edge on the left and top is "ControlLightLight" color and the inner edge on the left and top is "ControlLight". The out...more >>

How do I modify colors like Windows does to make 3D border slightly darker or lighter?
Posted by jrhoads23 NO[at]SPAM hotmail.com at 1/12/2005 7:53:52 AM
If you look at a standard Button in a .NET Windows Forms app, you will notice its default BackColor is "Control" and it has a 3D raised border which is 2 pixels wide. The outer edge on the left and top is "ControlLightLight" color and the inner edge on the left and top is "ControlLight". The out...more >>

Un-tighten tight loop
Posted by nick_nw NO[at]SPAM yahoo.co.uk at 1/12/2005 7:30:58 AM
Dear All, I have a section of code that is something along the lines of: private void threadFunc () { while (true) { object o = ourOwnQueueObject.GetObject (); // Non blocking. processObject (o); // Again nothing blocks in this function. Thread.Sleep (1); // Untighten...more >>

Creating a UserControl... use OnPaint method or capture Paint event?
Posted by jrhoads23 NO[at]SPAM hotmail.com at 1/12/2005 6:28:10 AM
I have been wondering this for some time. If I create my own class inherited from an existing class or create a user control, should I be overriding the OnFontChanged method (or similar) or capturing the FontChanged event. It seems they both get the same accomplished - so what is the difference ...more >>

DB Access
Posted by tota at 1/12/2005 5:33:01 AM
i'm using windowsApplication to connect to DB made by SQL i need to Display the Data of the first table in the DB as links when click it it openes a table and i navigte between them using buttons my problem is that i need to make the retrieved data as links (similar to objectList in Mobi...more >>

SQL - selecting a single word?
Posted by costelloe NO[at]SPAM gmail.com at 1/12/2005 4:53:00 AM
Hello, I am having amazing difficulties in getting SQL to search for a single word in a text field. I have tried using PATINDEX and LIKE statements but they don't work, sure they 'work', but not in allowing me to select a single word, example: "cat" ... I could only do "%cat%" or "cat%" - prett...more >>

Adding a button to a datagrid
Posted by Chris at 1/12/2005 4:13:46 AM
I think I must be going crazy. All I want to do is add a button to the bottom of a datagrid which will later run some code for a web based project. I've created a custom control that inherits from the datagrid and have added just a single line of code thus; protected override void Render(Htm...more >>

Management Query
Posted by Alexander Wehrli at 1/12/2005 4:13:03 AM
Hi all, I wanted to design a wmi query that returns me a list of all "real" user accounts defined on the local machine. As you may know, the accounts are defined in win32_account. The field SIDType indicates what kind of account it is(user, group, Domain, etc.). (On MSDN: http://msdn.micr...more >>

C# and COM+ Constuct
Posted by msuk at 1/12/2005 3:07:04 AM
All, I am trying to use the COM+ constructor string as follows: [ConstructionEnabled (true)] public sealed class xxxx: ServicedComponent { public override void Construct(string constructString) { } { But when I build the project I get the following error: C:\xxx.cs(33): xxxx...more >>

Bloomberg API Asynchronous Subscription
Posted by Ali Burns at 1/12/2005 2:41:42 AM
Has anybody had any luck with coding to the Bloomberg API in C#? I have tracked down sufficient code to return data synchronously i.e. subscribe a ticker and fields and return one set of results, but have had no luck in getting asynchronous reults to fire off the data event i.e. subscribe a tick...more >>


DevelopmentNow Blog