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# > august 2003 > threads for thursday august 7

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

Problem with PropertyGrid and string based Collection
Posted by Terry at 8/7/2003 10:24:06 PM
I created a collection derived from CollectionBase that is just made up of strings, called "StringList". I have another object that has as a member one of these StringList. If I assign that object to a PropertyGrid, click on the collection editor "..." and try to add a new string, I get an er...more >>

How to programatically ping computers
Posted by Michael Hetrick at 8/7/2003 9:00:20 PM
I am trying to do some AD clean-up. Is it possible to ping computers programmatically? If not, is there another way of validating that a machine account in AD corresponds to a physical computer? Thanks- Michael ...more >>

Brush By Name
Posted by Rene at 8/7/2003 8:57:24 PM
I would like to get a reference to a Brush using the color name of the brush. For example, right now if I want a brush with a certain color, I would hard code something like Brushes.PeachPuff, this will get me a PeachPuff brush, but what if my brush depended on a string passed by the user? If al...more >>

A new alternative to Visio
Posted by JAC at 8/7/2003 7:55:24 PM
Hi, all. I'm planning to write a fairly basic diagramming application in C# with the .Net Framework. The look & feel, etc. is to take after Microsoft Visio, and the program will mimick many Visio features. My questions are: - Has this been done before? - Has it been done as freeware...more >>

How do you make a .net control
Posted by Simon Harvey at 8/7/2003 7:50:40 PM
Hi, Is it hard to make a .net control? You know, like say a graphing component. Do you have to use lots of primitive graphic calls to the GDI in order to make the control or is there some easier way. Thanks everyone Simon ...more >>

how to use "indexof" with an user define struct array
Posted by Herve MAILLARD at 8/7/2003 6:55:59 PM
Hi, Hi have the following array public struct Type_Var { public int ID; public string Mnemonique; public DateTime Date; public float Valeur; public bool Archived; public short Invalid; } public Type_Var[] Var_Data; I need to use Var_Data.indexof("ABCDE"); I want to search only i...more >>

Displaying SQL Database Column Names?
Posted by Harry Whitehouse at 8/7/2003 5:58:16 PM
How might one go about this. I know how to select data records, but suppose I wanted to fill a datagrid with the column names in a specified table? How would I start? TIA Harry ...more >>

IDictionaryEnumerator approach
Posted by Wavemaker at 8/7/2003 5:48:01 PM
I'm writing a class that implements the IDictionary interface. Along with this, I'm implementing an IDictionaryEnumerator class. For the IDictionaryEnumerator, the documentation says the following: "An enumerator remains valid as long as the collection remains unchanged. If changes are made to...more >>



Float equality testing, Whidbey suggestion (Not A Bug)
Posted by Stu Smith at 8/7/2003 4:58:56 PM
A feature we'd like to see in VS 2004 is a compiler warning for equality comparisons on floating values. Why? Because the behaviour allowed under the ECMA spec is somewhat suprising. (Well it suprised us). If you run the program below in debug mode (F5), it prints True. If you run it in non-de...more >>

check whether a textbox is empty
Posted by Yuelin at 8/7/2003 4:53:46 PM
Hi there What's the best way of checking whether a textbox is empty? Thanks. Yuelin ...more >>

Raising an event
Posted by Jonel at 8/7/2003 3:41:36 PM
Hi, let's say i have a class with a custom event and it has one member function that i ran asynchronously and that member function raises the custom event, would any class that subscribe in that event receive a notification from that member function even tho it was run asynchronously? thank...more >>

Disable the Alt+Tab
Posted by Joe at 8/7/2003 3:25:09 PM
Dear Friends, How do disable the Alt+Tab,Alt+F4,ctr+Alt+Delete ,Alt+esc,Ctrl+Esc keys through C# program? Can anybody give me a clue or sample code? Advance Thanks, Thanks, Joe ...more >>

locking files during compiling...
Posted by Dmitri Shvetsov at 8/7/2003 3:19:05 PM
Hi All, Did somebody have a problem compiling some solution in VS2003? I get the error every time that some files are locked and are using by another process. I repeat compiling again and again and finally the compilation can be finished successfully after several tries. What can be a reason o...more >>

Web Browser
Posted by John Boehme at 8/7/2003 2:35:07 PM
Have the WebBrowser control on a form. When I navigate to a url, I receive the status messages properly, but the page is never displayed. It remains blank. Am I missing some property on the page? Thanks. John Boehme ...more >>

Call .net dll from asp page
Posted by HTM at 8/7/2003 2:22:00 PM
Can asp pages work with .net dll? I created a dll in C# and want to call it from my existing asp app. I'm not sure if this is possible. If there are ways to do this, please let me know. Thanks a lot. ...more >>

detect database changes using a c# application
Posted by Reddy at 8/7/2003 2:20:05 PM
Hi, I am in the process of developing a C# application which runs continuously in the background on the server. It should grab the changes in the database and send the modified or new results to me in an email. I heard that it could be done using SQL Server Jobs. But I am looking to devel...more >>

PropertyPage & PropertySheet in C#?
Posted by marmot101 at 8/7/2003 1:58:55 PM
Hi, All, Is there PropertySheet and PropertyPage equivalent Class in C#? If there is no, is there similiar mechanism to create such a page in C#? Thanks for the help. marmot101 ...more >>

Sample code issue
Posted by EMonaco at 8/7/2003 1:41:12 PM
All, Got this sample from a discussion on ICertificatePolicy. public enum CertificateProblem : long { CertEXPIRED = 0x800B0101, CertVALIDITYPERIODNESTING = 0x800B0102, CertROLE = 0x800B0103, CertPATHLENCONST = 0x800B0104, ...more >>

Help getting started
Posted by Steve Westwood at 8/7/2003 1:40:14 PM
I am just starting with C#. I placed a image from the tool bar on my webform and a table. They show up in design mode but not when I run it. I also have a label that shows up in both modes. Can someone help Here is the source: <%@ Page language="c#" Codebehind="Logon.aspx.cs" AutoEv...more >>

Resource editor for Visual Studio .NET
Posted by <.> at 8/7/2003 1:22:02 PM
When do they plan on making this essential utility USEFUL? In its current form its pointless. How could they let this out? Its useless. ...more >>

Complier efficiency
Posted by Ben at 8/7/2003 1:20:41 PM
Suppose my program main.exe is built from two modules: main.cs and lib.cs. Most of the time, I just change main.cs. But, I find that I have to compile lib.cs too. This is not efficient. How can I avoid that? This is how I compile: csc main.cs lib.cs ...more >>

.NET BCLs and Windows API
Posted by <.> at 8/7/2003 12:44:41 PM
Why doesnt the .NET Base Class libraries not contain all Windows API comparable methods , kinda like MFC would wrap Win32 functions and add other framework enhancements. Why must I always end up calling into the Windows DLLs for those features? Will these be added to the BCLs at a later date? ...more >>

wsdl.exe / proxy class (help!)
Posted by Benne Smith at 8/7/2003 12:43:22 PM
hi all, i have a webservice with some public classes in it. These classes are visible from my proxy class, generated from wsdl.exe. The problem is, that when i look in the generated proxy class, my classes are reduced to properties only (like "public string myString;"). But the code, functions...more >>

Creating Graphs in c# web forms
Posted by Coskun Cavusoglu at 8/7/2003 12:15:01 PM
Hi I need to build something that works like the following example http://www.realestateabc.com/calc_v22/calculator.html How can can I do this by using c# and web forms. It will be a part of a web based project so it has to work on the web. And the important is as the user slides the control ...more >>

VS.NET Debugger for JavaScript
Posted by Tom at 8/7/2003 12:05:36 PM
Does anyone know of a way to debug JavaScript for C# .NET applications? Is there a tool or add-on that will allow me to step through Javascript line by line in debug mode? Thanks Tom ...more >>

Resource DLLs
Posted by Derek Lakin at 8/7/2003 11:56:35 AM
I'm in the middle of extending my Collapsible Panel (http://www.codeproject.com/cs/miscctrl/CollapsiblePanelBar.asp) control to support XP Themes & Styles. So I need to paint it according to the bitmaps that are stored in the current shellstyle.dll. Using uxtheme.dll I can get the current them...more >>

TextBox array auto-select problem
Posted by marmot101 at 8/7/2003 11:43:34 AM
Hi, All, I create an array of TextBox and add them to a windows form by program. It works fine. However, whenever I open the form, the text in first TextBox is always SELECTED, how can I stop this behavior? Thanks for your help! ...more >>

bytes to Integer
Posted by Govind at 8/7/2003 11:35:10 AM
Hi All , I have converted a Integer to Byte and Written in to the file. After that i read the file byte by byte then I want to Convert th Bytes to Integer .. If any method is available to convert Bytes to Integer pls Let me Know. Regards, Govind. ...more >>

Image processing
Posted by Kate Luu at 8/7/2003 11:00:57 AM
My application was written by C# and I couldn't load the photoshop image. Are there any Pro out there know how to load the photoshop image with the file extension is: .PSD. Thanks you all in advance, I'm greatly appreciate for your help. Have a good one... Kate Luu ...more >>

Permissions for Process.Kill()
Posted by Matthew Wieder at 8/7/2003 10:48:23 AM
What permissions must a user have to be able to succesffuly execute a Process.Kill? I can run it with Admin privleges but not with regular user priveleges - I get an "Access is Denied." The client should be able to run our software was a regular user, so what additional permission must I g...more >>

C# equivalent of Eval Function
Posted by Justin at 8/7/2003 10:48:14 AM
Is there any C# function that performs similarly to the Eval function in VB? Thanks in advance for your help!!...more >>

How to make a shared class that holds catched data?
Posted by Trung at 8/7/2003 10:27:32 AM
Hi everybody I write a class named SharedClass that holds catched data that would be available for all clients by using static method/member. This class is registered in the assembly folder. And I write 2 client applications Client1 and Client2 that use SharedClass. But Client2 cannot get t...more >>

Class, C# documentation? Beginner's question
Posted by akkadian123 NO[at]SPAM aol.com at 8/7/2003 8:43:12 AM
Hi everyone, I was curious re: where to find documentation of each namespace/class in .Net? Being a stranger to MSDN, i looked but found it difficult to find a proper "here's what you're looking for" resource. Do any of you know of where I can find one? Thanks tons.. Russ...more >>

Array elements - counting
Posted by john sutor at 8/7/2003 8:16:10 AM
If you are working with a 2 dimensional array with 3 elements per record (0,0) (0,1) (0,2) How do you get the correct count of records in the Array? The count method give you back a count of all of the elements. ...more >>

C# equivelent of VB 6 App.Path
Posted by Gary at 8/7/2003 6:41:39 AM
I am looking to show the build information of an application built in .Net C#. Back in the VB 6 days, I was able to use the app.path property. Does anyone know of an equivelant command in C#? Gary...more >>

problem with a regular expression
Posted by giulio santorini at 8/7/2003 3:11:41 AM
Hi, I would like to build a regular expression that allows only a number with 3 integer the decimals separator and other three decimals. I've build the firt part in this way: ^([1-9]{1}|[1-9]{1}[0-9]{1}|100)$ Now I'am tring to build the second one but... it's quite difficult. Somebody ...more >>

SQL Server does not exist or access denied.
Posted by gg at 8/7/2003 12:06:17 AM
hi group, i previously have a single machine development environment on server03 (w2K3, stand alone, SQL2K). i configured it so that my app is using "NT AUTHORITY\NETWORK SERVICE" to access to the database it and it worked just so fine. now, i am installing my asp.net app and database to a ...more >>


DevelopmentNow Blog