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 2005 > threads for wednesday february 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

How to change tabControl colors?
Posted by Keith Smith at 2/9/2005 11:52:44 PM
How do I change the colors of a tabControl (including the tabs themselves). I only see the option to change the color of each tabPage. ...more >>


How to set radio button in datagrid?
Posted by Karl at 2/9/2005 8:19:01 PM
Hi experts, I have a little problem with datagrid needing your expertise. In database, I have a column called "Active" which has only 2 values "Yes" and "No". In my application, I want to show the value in redio format so that user can simply click "Yes" or "No" to switch value. But I don'...more >>

Novice C# qu: Converting VB to C#
Posted by david at 2/9/2005 7:48:53 PM
Hi, Can someone tell me what the C# equivalent is for: Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load ...more code.. End Sub The part I am not sure is "Handles Me.Load" Thanks. ...more >>

Keep track of previous and current mouse positions in MouseMove()?
Posted by Brian Basquille at 2/9/2005 7:23:46 PM
Hi all, Can anyone give me an idea of how to keep track of last mouse position and previous mouse position before it in a MouseMove() method? Would i need to load them both into an array...? Brian ...more >>

The ListView
Posted by Sam Martin at 2/9/2005 6:23:29 PM
hi all, I'm really jarred off with the ListView that comes with the .NET v1.1. Why didn't they bother to provide a nicely wrapped implentation of the Win32 ListView control? with support for retieving column orders, setting images for sub items, access to the column headers, etc, the list ...more >>

sscanf
Posted by Evan Mathias at 2/9/2005 5:57:32 PM
Does anyone know a equivalent to sscanf from c++. I would appreciate a good answer to this one, since currently I have had to write a library of regular expressions to recognise integers, floats etc.. and I dont want to use exceptions or anything else that is slow or impractical. Muc...more >>

several projects
Posted by Bernie at 2/9/2005 5:48:58 PM
Hi, I cannot generate a solution with 2 projects inside cause of a problem with the using statement. first project has 2 namespaces : Intel Intel.utilities 2nd project has also 2 namespaces : Intel.utilities Intel.UPNP using Intel.UPNP; Private UPnPDevice upnpLight...more >>

What's the best way to retrieve ID3 tags from WMA files?
Posted by JuLiE Dxer at 2/9/2005 5:34:15 PM
I'm trying to programmatically retrieve various ID3 tags from WMA files. I'm mostly concerned with Artist and Title tags but would like to know how to retrieve any of the normal tags. I've seen some mention of Windows Media Player SDK and Windows Media Format SDK and have tried for hours to find...more >>



Multiple level base calls
Posted by lucas_denoir NO[at]SPAM hotmail.com at 2/9/2005 5:17:43 PM
I'm having some serious trouble accessing a virtual method of a base class - that is not the immidate base class. This is the basic situation that I have: =========================================================== class A { public virtual string PrintMe() { ...more >>

How to clear comboBoxes
Posted by Keith Smith at 2/9/2005 5:14:50 PM
Is there an easier way to clear all of the comboBoxes on my form? I am currently using this code... autoCompleteComboBox1.Text=""; autoCompleteComboBox1.SelectedText=""; autoCompleteComboBox2.Text=""; autoCompleteComboBox2.SelectedText=""; autoCompleteComboBox3.Text=""; ...more >>

Multiple Excel Cells to Datagrid
Posted by Marty at 2/9/2005 4:16:48 PM
Is there a way to manually copy an excel cell range to a datagrid column? I am unable to select the whole column and selecting multiple whole records does not work. Thx. ...more >>

Dial numeric pager question can it be done?
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 2/9/2005 4:07:09 PM
Does anyone know of anything out there that I can use to dial up a numeric pager, leave a number and then hang up? It is not a "fancy" pager. No message, not text, no nothing. Just a regular old pager. I have looked at the various SMS stuff, but it all goes to text message, etc. Nothing for a ...more >>

slow performance?
Posted by Hernán_Freschi at 2/9/2005 3:33:58 PM
Hi all, I'm a completely newbie here. I'm having a problem. I've programmed before in VB6 and such, and all the programs I've made run fast. But .NET programs run very slowly. I use C# (for no particular reason). It's not the algorithms (that is, what the program * does *, that works fine...more >>

Saving PrintJob to File and then Load to Printer again
Posted by Mike Kline at 2/9/2005 2:59:56 PM
Hi There! Is there anyways to Save the Print Job from printer queue into a file on HDD and then later on, load that file into the Printer again to print?? Any pointers or examples in C# or VB.NET is very much appreciated!!!! MK ...more >>

Bitmaps and threading model
Posted by WRH at 2/9/2005 2:41:53 PM
Hello I have a Form where I display DirectX Direct3D stuff on one panel and a WebBrowser in another. Compiles & runs fine until I add one line... private Bitmap bmpForm= new Bitmap(typeof(Form1), "frame5.bmp"); Compiles ok, but does not run... I get a System Thread Exception where I insta...more >>

Windows Service - stoping the OnStart event in the OnStart event
Posted by Next at 2/9/2005 2:37:34 PM
Hello, In my OnStart event I have several checks to make sure values in the config file are correct. If any of the values are incorrect I don't want the service to start. Is there a "cancel event" of some sort I can use in the OnStart event? Thanks in advance for your help, Aaron ...more >>

cast string to long
Posted by mp at 2/9/2005 2:33:00 PM
How do i cast a string from sql to a long? lDocumentVersion is long, oSqlDR.GetValue(0) returns a string. lDocumentVersion =oSqlDR.GetValue(0); Thanks ...more >>

abstract class
Posted by Peter at 2/9/2005 2:32:55 PM
An Abstract Class is a class that represents abstract concepts for which objects cannot exist. Instances of abstract classes cannot be created. When is it advisable to implement an abstract class (instead of Interface)? ...more >>

Does HybridDictionay key has to be string type?
Posted by Drasko at 2/9/2005 2:31:48 PM
I am using HybridDictionry in my app, so it works fine if key is a string. When I tried to make my class with ushort key, it throws ArgumentException? First time when I add item it is ok, but when I try to add item with same key, on Contains(serialNumber) it throws ArgumentException (first tim...more >>

databinding a textbox to a string
Posted by Kyle Rowe at 2/9/2005 2:16:11 PM
Hi, Is there a way to databind a textbox to a string? Thanks ...more >>

Help needed explaining very strange behaviour of KeyPressEventHand
Posted by MichaelH at 2/9/2005 2:01:05 PM
Hi, I need to capture when certain keys are pressed for my program. To begin with, I used KeyPressEventHandler at dealt with the event as I got them. Everything was fine but as soon as I added a button or a groupbox to my form the KeyPressEventHandler just stopped working?! Any help woul...more >>

List of all Instatiated Objects
Posted by Don Stewart at 2/9/2005 1:54:35 PM
From within a .NET 1.1 application and using C# Code, I need to get a list of all the instatiated objects in the application, with the following columns: TypeName, Instatiation-Count, Size I was thinking of using the Garbage Collector somehow or perhaps a Heap and Stack Dump? Us...more >>

Validate UNC Path
Posted by Ollie at 2/9/2005 1:45:03 PM
Does anyone know how to validate a UNC path? I am currently using: Directory.Exists (szUncPath) This works if the path is located on my machine. However, if the path is for another machine (on the network), this method fails. Any suggestions on how to get this to work or aternative ways...more >>

code fails
Posted by Chris at 2/9/2005 1:43:05 PM
Why does this code fail? int a = 5; int b = 5; object oa = a; object ob = b; Debug.Assert(oa == ob, "oa is not equal ob"); ...more >>

perform poorly
Posted by Chris at 2/9/2005 1:39:43 PM
Hi guys, why does this code performs poorly? static string Space (string s) { string s2 = ""; foreach (char c in s) { s2 += c; s2 += " "; } return s2; } ...more >>

HELP / ADVICE: Would this be suitable to perform a basic collision?
Posted by Brian Basquille at 2/9/2005 1:32:37 PM
Hello all, Well, we've gotten to it: the real meaty area of my Air Hockey game.. Any help or suggestions for the following would be much appreciated. In plain terms: My paddle needs to be able to strike the puck and move in the direction opposite to which it was struck (a simple collisio...more >>

connection problem (using SQLCE)
Posted by Grisha0 at 2/9/2005 1:26:33 PM
Hi, i'm trying to connect to a datbase across my LAN. i'm using a standard connetion string... although i got error.. sorry for my english.. best regards grisha [code] System.Data.SqlServerCe.SqlCeConnection polaczenie = new System.Data.SqlServerCe.SqlCeConnection(); polaczenie.Connectio...more >>

Tooltips in 2003
Posted by Keith Smith at 2/9/2005 1:25:38 PM
How can I use Tooltips in C# 2003? ...more >>

Error after upgrading XML parser
Posted by Pritam Bhat at 2/9/2005 1:21:02 PM
Hi, I recently upgraded my XML parser and the ComInterop code that I had for my webservice is throwing the following error. For ASP applications, we created a wrapper class on this web service and expose that class for ASP COM Interop. Any suggestion? Error dump --------------------...more >>

Scalability of a singleton remote object
Posted by Julia at 2/9/2005 1:14:50 PM
Hi, My RemoteServer is a singleton remote object hosted by windows service and accessed by ASP.NET application using remoting,server activated Basically my RemoteServer need to send several email message types,and it have a single method Send(string To,string Body,int type) the im...more >>

Version Number
Posted by Keith Smith at 2/9/2005 1:14:19 PM
Is there a way to detect the version number (from the Setup portion) of my project? I would like to do something like this... label1.Text=VersionNumber; ...more >>

Strange indexer behaviour
Posted by DAMAR at 2/9/2005 1:13:06 PM
Hello I have two classes: public class ScheduleItem { private string s_name; public ScheduleItem(){ s_name="default";} public string Name{ get{return s_name;} set{s_name=value;} } } and the second class: public class Schedules { ...more >>

Difference between "build" and "rebuild"
Posted by Keith Smith at 2/9/2005 12:32:44 PM
What is the difference between "build" and "rebuild" when building a project? ...more >>

8.3 file/dir names in C#
Posted by Marcin_Grzêbski at 2/9/2005 12:22:05 PM
Hi ALL! I need to find out the 8.3 file name representation for Windows file system e.g.: I have "Program Files" and i want to find "PROGRA~1". Thanks in advance! Marcin...more >>

How to safely stop a service, from within OnStart...?
Posted by Sam Martin at 2/9/2005 12:01:11 PM
hi all, on the ServiceBase.OnStart i'm loading setting, etc. if the info i need is not available, i'm writing to the event log, and want to manually end the service. aside from exiting the process, is there any other way (proper) of stopping the service while it is starting? TIA Sa...more >>

Strange problem with DEBUG directive
Posted by Sam Kong at 2/9/2005 11:30:28 AM
Hello! Recently I had a strange problem with Visual C# 2005 beta 1. When I ran(F5 key) a program, <#if DEBUG> statement was not working. It ran as RELEASE mode. So I had to manually define DEBUG to make #if DEBUG work. When I first started the project, this problem didn't exist. The problem ...more >>

Start main webform in modal look like
Posted by Fabrizio at 2/9/2005 11:27:02 AM
Hi, I would like to start my webapplication in a window browser without address bur, toolbar etc... like a window modal . Can I? how? Thank you fabrizio...more >>

EnterpriseService Component: problem enlisting in a distributed transaction
Posted by Don Riesbeck Jr. at 2/9/2005 11:07:45 AM
I have an C# EnterpriseService component that is part of an application I am developing that is responsible for writing data to an SQL Server. (it reads from a local DB (MSDE), then writes to a 'remote' DB (SQL Server 2k)...) On some machines I get the following exception: System.InvalidOperat...more >>

Duplicates in comboBox
Posted by Keith Smith at 2/9/2005 11:04:19 AM
Is there an easy way to get rid of duplicates in my comboBox? I didn't want to have to manually write code for this and degrade performance. ...more >>

How to stop my beep?
Posted by Keith Smith at 2/9/2005 10:34:12 AM
Whenever a KeyDown event is launched my app makes a "beep". How can I stop this annoying beep? If this doesn't make sense then I could post some code. ...more >>

Check for valid file names
Posted by Chris at 2/9/2005 10:26:16 AM
Hi, In C# I tried to save a file from a generated file name. Just before launching the dialog I check for a valid file name to be sure. There for I used the method ValidateNames from the save dialog. The strange thing is that sometimes the save dialogue crashes on invalid file names (co...more >>

Parsing using RE?
Posted by Ravi Singh (UCSD) at 2/9/2005 10:22:43 AM
Hello all I have a huge string that I need to parse Key <Delim1> Value <Delim2> Key <Delim1> Value <Delim2> Key <Delim1> Value <Delim3> Key <Delim1> Value <Delim2> Key <Delim1> Value <Delim2> Key <Delim1> Value <Delim3> repeat for a couple hundred thousand times The <Delim1> seprate...more >>

Passing string array to unmanaged code
Posted by VCVCVC VC via DotNetMonster.com at 2/9/2005 10:13:10 AM
Hi , I want to pass a string array to an unmanaged COM Componet. The component should retrieve it. Pls help me to understand with a sample code. I have declared a BSTR* myStringarr, for this in the COM component. How to retrieve values from this myStringarr? -- Message posted via http://w...more >>

check for File In Use
Posted by Devhead at 2/9/2005 10:09:35 AM
i have an MS Word Document that i have created from an SQL server db and once created it is opened. If i try to create the same document with the same filename, i get an error. how do i check to see if this document is already opened and if so, close it before i attempted to overwrite it. a ...more >>

Equivalent of Array keyword ?
Posted by Lionel at 2/9/2005 10:06:52 AM
Hi, I have found an example in VB6 i need to *convert* in C#. My only problem is this line: textItemRef.Position = Array(0.75, 0.75) So, how do i convert this in C# ? Thanks ! ...more >>

Crystal Reports with c#
Posted by Stuart Ferguson at 2/9/2005 9:43:41 AM
I have created a c# application which is to be a report viewer, within this i have an XML Dataset being poulated from within the code and an rpt file bound to this dataset however after my report was designed I needed to add a field to one of the tables in the XML Dataset but it appears the repo...more >>

protection from .NET Decompiler?
Posted by pnp at 2/9/2005 9:42:21 AM
Hi all, I ran into this decompiler http://www.remotesoft.com/salamander/ yesterday and I tested it on some of my apps that I've created with C# and it could decompile them all back into source code!!! Give it a try and see. They have an online decompiler as well. Is there any way to protec...more >>

adding to system menu
Posted by Patrick at 2/9/2005 9:39:05 AM
I have a very simple program which uses a single C# form I would like to add an About entry (to open a little about the program form) to the system menu (the one that says Move, Size, Minimize, Maximise, Close etc) Is this possible in C# How ? Many thanks -- Patrick...more >>

How do I find retrieve the "My Documents" qualified path?
Posted by JuLiE Dxer at 2/9/2005 9:30:42 AM
Is there a way via C# to programmatically retrieve the full path name to folders like "My Documents" ?? I'm seeing examples with the use of Shell32 stuff I believe, SHGetSpecialFolderLocation and I have no knowledge nor experience using such stuff. I've seen some examples pertaining to ...more >>

scrollbar movement
Posted by juli jul at 2/9/2005 8:38:26 AM
Hello, I wonder how can I return the scroll bar possition to its beggining (in a code). Thank you ! *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

C# and dot Framework version
Posted by msuk at 2/9/2005 7:59:04 AM
All, I have some C# assemblies and I would like to know what version of the framework was used to complie them i.e 1.0, 1.1 or 1.1 SP1 is this possible to find out? Thanks Msuk...more >>

How do I get the list of overrides for a ASP.NET WebForm in C#
Posted by gencode at 2/9/2005 6:35:16 AM
How do I get the list of overrides for a ASP.NET page in C# I can get my PageEvent by selecting MyPage System.Web.UI.Page and selecting the Lightingbolt, that gives me a list of page events like AbortTransaction, Load, Unload, etc. But I can not seem to find the overrideables like AddedContr...more >>

Storing reference to reference
Posted by marcosegurini NO[at]SPAM virgilio.it at 2/9/2005 6:20:15 AM
Hi, the 'user' class describes what is my target: I want to save a reference to a class instance and a reference to the reference to the class instance calling a 'user' member function and later use them in another member function to restore the original value. Is there any C# programming ...more >>

2 objects with same name
Posted by Wilfried Mestdagh at 2/9/2005 5:31:04 AM
Hi, I have a System.Windows.Forms.Application and a MapPoint.Application. How tell the compiler that if I type: Application, that I mean System.Windows.Forms.Application ? Of course I can declare a var for it but I wonder if there are other ways ? -- rgds, Wilfried http://www.mestdag...more >>

Calling a method from a Web Service
Posted by Steven Blair at 2/9/2005 4:23:16 AM
Hi, I have created a simple webservice which will take a string paramter and return a string. I can run this from the IDE and select the method I want, then hit Invoke. I need to call this method automatically. I am using a book which indicates using this command in my browser: http://lo...more >>

Inheritance and events
Posted by Rik Brooks at 2/9/2005 4:13:02 AM
Hi, My problem is in trying to extend events in the inheritance heirarchy. I have a custom control. It has 3 images on it. The custom control consumes the Click event. In the Click event of each of the images I fire the Click event of the control. Let's call the control custom_ancestor. I s...more >>

Custom Cursors on Custom Controls
Posted by Brad at 2/9/2005 3:59:02 AM
Hi all, newbie here. I'm currently designing a custom splitter control... When the mouse hovers over a certain area on my splitter I need to be able to display a custom cursor that I've designed. I've tried several ways to assign my custom cursor to a cursor variable, the most obvious being...more >>

Inheritance question
Posted by Naveen Mukkelli at 2/9/2005 3:31:01 AM
Hey, I want to inherit an abstract class and MessageWindow class. can we do that? for example, abstract class SomeClass { public void SomeMethod() { // do something } } can I create a new class which inherits both the a...more >>

Modifying clip region
Posted by peeping_t NO[at]SPAM hotmail.com at 2/9/2005 3:21:48 AM
I'm trying to paint my own caption bar/title bar and also my own frame border, but I'm having problems with modifying the clip region so windows doesn't paint over my stuff when I call base.WndProc I tried skipping base.WndProc alltogether, but it seems like the Menu and Toolbar is part of the...more >>

How Do u Lock a Particular Column in a datagrid?
Posted by VenuGopal at 2/9/2005 1:37:03 AM
Hii!! I have a datagrid which i am using for both dispaly and as well as taking input from the user. Noe there is a particular column which i need to lock, so that the user cannot enter anydata. How do i do it? Thanks Venu...more >>

Unable to get events from a form
Posted by a ghost1207 at 2/9/2005 1:23:08 AM
Hi all, I am trying to figure this out, but I can't: I create a form, then another form (which I call from the first), then add an event handler for KeyDown messages in the second form and finally add another event handler for KeyDown messages in the first form. I end up getting the events...more >>


DevelopmentNow Blog