Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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
May 2008
June 2008


all groups > dotnet framework > may 2004

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

how can i manipulate a check box in another process
Posted by NiN at 5/31/2004 11:51:02 PM
i want to manipulate a check box in another process,how can i get it the check box in the process A,developed by C# now i want to manipulate the check box in other application developed by MFC as the usually,i sendmessage BM_SETCHECK from the MFC application to the checkbox of a C# application...more >>

VB.Net ScreenSaver (/p) Question.
Posted by Shawn Mehaffie at 5/31/2004 10:28:36 PM
I am creating a screen saver in VB.Net and am having a problem with showing the screensaver form in the preview pane. The code works correctly in the the form does display within the preview window. I created a simple for for testing called Preview that only had a label on it and the text "This ...more >>

Defining methods for a class that are accessible when declaring arrays of that class???
Posted by Bob Rock at 5/31/2004 7:57:43 PM
Hello, this may seem a strange question, but is there a way of being able to call methods of a class through an array of that class when not referencing a specific object in the array. In other words, defined a class class_A I'd like to be able to do the following: // defining an array of ...more >>

XML Tables?
Posted by Able at 5/31/2004 6:51:45 PM
Dear friends The XML format for reading from .Net is as this: <?xml version="1.0" standalone="yes"?> <dataroots> <Table1> <ID /> <Name /> </Table1> </dataroots> Is it possible to implement one more table, ex. Table2 in the same XML file and if so how is the format? Regar...more >>

.NET Version control
Posted by Ostap Radkovskiy at 5/31/2004 5:00:41 PM
Hi! How can I achieve the situation like that: there is some application (.NET) and it is using some class library (strongly named, installed by .msi, registered within GAC). I'd like to have a crash on my client application when the class library version differs from the one compiled with my...more >>

Memory issues
Posted by Bruno Rodrigues at 5/31/2004 4:36:50 PM
Hi, I'm having several memory leaks in my Windows Form (C#). Testing, I found a curious thing: Put a ListView control in a Windows Form, run the project and start the TaskManager. Each time you focus the form or pass the mouse in/out the ListView, the memory used by the application ...more >>

design time component guideline for tricky problem
Posted by Lloyd Dupont at 5/31/2004 3:50:30 PM
Hi All ! I know nothing of design time component but I need to write one with a tricky problem. I have an app to edit / view a data structure, let say 'house' object with many 'room' and 'furniture' objects I want to write a plugin (as a DLL) which would work only for a give datastructure ...more >>

.net windows service. How to set a start sequence
Posted by AA at 5/31/2004 3:32:31 PM
I have 3 .net windows service applications. I need that windows starts them in a sequence First the X service, Second the Y service and third the Z service. Something like When you stop the IIS Admin, windows stop first the WWW, FTP and other dependencies I need to do exactly the same thi...more >>



Internal problem on XmlDocument.Load( )
Posted by Whugster at 5/31/2004 3:21:01 PM
I have this really frustrating problem when calling XmlDocument.Load(string filename). Whenever I call this method in a web application in my Windows XP development PC, I get the following error: Specified argument was out of the range of valid values. Parameter name: The specified value must ...more >>

Process.Start() and Childs Process
Posted by Hakùna kù at 5/31/2004 2:30:14 PM
Hello Everybody , I have a Process.Start() method that launch a "main.exe" files . The "main.exe" launch 3 sub-file : a.exe b.exe c.exe What I want is the When I close the Main.exe , then the sub-file exe must Close ! Basically is the same as "terminate childs processes..." of TaskMana...more >>

FileIOPermission issue
Posted by Mircea Pleteriu at 5/31/2004 12:20:36 PM
Hi all, I have this code sample FileIOPermission fp = new FileIOPermission(PermissionState.Unrestricted); fp.Deny(); StreamWriter sw = new StreamWriter(@"c:\test.txt"); sw.Write("Test"); sw.Close(); I do not understand why the file is still created? ...more >>

ipv6 in compact framework
Posted by Dormi at 5/31/2004 11:17:59 AM
HI!!! I have a question. I've changed in teh machine.conf file, and I've habilted ipv6: <ipv6 enabled="true"/>. But, when I call to IPAddress.Parse ("2001:800:40::XXX"); In the debug tell me, that the address is incorrect. Which can be the error? Thanks!! ...more >>

unusual regex exception
Posted by Tim Mackey at 5/31/2004 10:22:02 AM
hi, i have a regular expression to identify any valid form of server url, i.e. http://server or http://www.server.com or http://server:8080 or anything in between. very occassionally i'm getting an index out of bounds exception from one of the inner framework methods, when i use Match(). i don'...more >>

question about [Serializable]
Posted by matt.raffel NO[at]SPAM mindspring.com at 5/31/2004 7:20:45 AM
I have class that I made [Serializable]. However, there is a member variable that I do not want to be saved when the class is written out. Is there a way to turn serialization off for the one member variable? Thnx Matt...more >>

Monitor Mayhem
Posted by C# Learner at 5/31/2004 5:55:09 AM
My bug's back. It's reappeared even though I haven't made any changes since. Just to check: is the use of locking in the following okay? Note that 'connections' and 'activeConnections' both reference instances of 'ArrayList'. void connection_Drop(object sender, bool allSent) ...more >>

WMI for Win32_Volume not working
Posted by pdavis68 NO[at]SPAM hotmail.com at 5/31/2004 4:09:42 AM
I'm trying to execute this simple query: ObjectQuery objectQuery = new ObjectQuery("Select * FROM Win32_Volume"); ManagementObjectSearcher searcher = new ManagementObjectSearcher(objectQuery); ManagementObjectCollection moc = searcher.Get(); try { foreach (ManagementObje...more >>

Socket.Select() does not block???
Posted by Boris at 5/31/2004 2:17:19 AM
I have a strange problem as Socket.Select() doesn't block when I call it in C#. To be sure that there is no error in my code I went to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemnetsocketssocketclassselecttopic.asp and copied the sample C# code into VS ...more >>

Listeners
Posted by Viola at 5/31/2004 1:26:03 AM
Hi Is it possible to have one application to be listening to two ports for incoming data Can I configure a port to both send and to receive data Regard Viola...more >>

Munching a JPG as a stream
Posted by Phil Jones at 5/31/2004 12:13:01 AM
I'm having problem manipulating a file stream. What I'm doing (simplified into a sample below) is opening a JPG file as a stream, and then saving it's contents in a DB. However I seem to be munching the data somehow, because if I try and save the file from the stream data, the JPG isn't readabl...more >>

Installation of 1.1 Framework...
Posted by Beringer at 5/30/2004 11:39:39 PM
This is a newbie question, no doubt. I have recently started writing code using VS C# 2002 and tried to update to the new 1.1 version of the framework. Now the installation says it was successful but in the about box, I still see ver 1.0 (infact 1.0.3705). What gives? The 1.1 ver shows u...more >>

Problems with security issues
Posted by Steve Sargent at 5/30/2004 8:07:26 PM
Hi: I'm writing an application that connects to a server and downloads and stores files in subdirectories of the application's folder. This has worked fine...up until I tested the application on an XP limited account. It didn't work on the limited account. One of the first thing my clie...more >>

Circulat dependency
Posted by Tal at 5/30/2004 4:56:53 PM
I am having assembly A with reference to assembly B and B need reference to A. The IDE does not allow it because of circular dependency. How can I solve it (when i cannot change existing code in A or B). ...more >>

Extending Serialized Objects
Posted by Russ at 5/30/2004 12:25:37 PM
Hi, What's the easiest way of modifying an object which has been serialized to a DB? The previous developer created a complex object hierarchy and binary serialized the whole thing to a single field in SQL server. I need to modify the object hierarchy, but every time I do so, I can no ...more >>

.Net 1.1 install fails prematurely
Posted by jlyons at 5/30/2004 8:31:02 AM
I hope someone can help me. HP PSC 1350 all-in-one printer requires .NET 1.1 Framework. I've tried installing it by copy/pasting netfx.msi and netfx1.cab to the hard drive and by downloading it from the Windows Update site. In both cases, I get the "installation has failed prematurely" and am tol...more >>

All Your Thread Are Belong to Us
Posted by C# Learner at 5/30/2004 4:23:27 AM
Hi all, I have a nasty bug in my multi-threaded app which I think is being caused by "race conditions" with multiple threads. I'm getting data corruption. The app is an HTTP server I'm making just for fun. I noticed the bug yesterday night when performing a little stress testing on it....more >>

converting from header files to Win32API declare
Posted by Majed at 5/30/2004 4:04:19 AM
hi, I'm trying to convert some .h files to API Declaration to use the function and structs. one of it is this: NTMS_GUID CurrentLibrary; // the current library NTMS_GUID MediaPool; // media pool that the media belongs to NTMS_GUID Location; // actual location of the media DWORD Location...more >>

WSAAsyncSelect in .Net framework
Posted by Vladimir Scherbina at 5/29/2004 11:54:27 PM
hello all, is thery any equivalent in .Net Framework of WSAAsyncSelect win32 api function ? I want my application window being notifyed about network events... (asyncroniously) or maybe another way exists ? -- Vladimir Scherbina, Ukraine, Kiev. ...more >>

Custom Attributes and Code Generation
Posted by S-t-a-r-C-i-t-e at 5/29/2004 8:31:11 PM
When you use the [WebMethod] attribute code is generated for you. I need to do the same for our corporate framework. Can someone point me to an article/discussion on how to do? I've seen that XC# does it. Thanks in advance ...more >>

Proposal to extend network classes
Posted by Boris at 5/29/2004 5:16:46 PM
Is there a place to send proposals to regarding extending the framework? In any case here is my proposal: 1) I would like to be able to get *and* set the socket in wrapper classes TcpListener, TcpClient and NetworkStream. Only UdpClient provides get and set accessors in the moment. 2) The Soc...more >>

Error handling: What's recommended for Class Libraries?
Posted by Paul at 5/29/2004 1:45:33 PM
I've been searching for some general, practical guidelines that distinguish between when it's the responsibility of the architect to throw errors, and when it's assumed that catching them is going to be the responsibility of the app programmer. As somebody who is new to wearing the "architect"...more >>

Migrating from .Net Framework 1.0 to 1.1
Posted by vw at 5/29/2004 12:31:03 PM
I am wondering if there is an update tool, maybe something like the ASP.NET IIS Registration Tool (aspnet_regiis.exe), for moving from .Net Framework 1.0 to 1.1. The reason I am asking is that it would be nice to be able to avoid sending a 23 meg file (dotnetfx.exe) over a modem to every machine th...more >>

Books reviewed
Posted by Earl at 5/29/2004 8:58:59 AM
I've been on a mission this past year to move from VB6 to .Net. I'm fortunate(!?) not to have the big catalog of some long-time VB developers, although I have some CE apps that have to be entirely rewritten in CF. A lot of what I develop has to be written for the PPc, so I knew I would be lookin...more >>

IIS programming
Posted by Oleg Ogurok at 5/29/2004 8:35:08 AM
Hi all, I'm looking for any docs (e.g. API) on how to programmatically read IIS configuration, create virtual sites, alter settings, etc. Thanks, -Oleg. ...more >>

Determining that the Application want to quit from within a thread
Posted by ozbear NO[at]SPAM bigpond.com at 5/28/2004 11:30:56 PM
My scenario ws that I had a small group of worker threads started from the main Application thread, and they have the backgroundthread property set to true. After having been started by the main thread, a given worker thread does some work in a loop and uses the Control.Invoke method to updat...more >>

SmtpMail Authentication
Posted by Guinther Pauli at 5/28/2004 2:46:29 PM
Hi All! I am trying to send e-mails from a Web Forms application, using MailMessage and SmtpMail. Here is a sample code (pascal sintax): procedure TWebForm1.Send(From, To, Subject, Text: System.String); var ms: MailMessage; begin ms := MailMessage.Create; ms.From := From; ms.To...more >>

Licensing Package in C#?
Posted by Roman at 5/28/2004 2:35:21 PM
Do you know of any freeware applicaiton licensing library wrriten in C#? ...more >>

convert text encoded with character referense (&#123;) to unicode or uft-8
Posted by Daniel Köster at 5/28/2004 12:52:51 PM
Is there someone who has got some tips on how to convert text encoded with character referense (&#123;) to unicode or uft-8 format using VB.net? Is there a function or something that can help with the conversion? To use a simple replace "this" with "that" is not an option since there are som a...more >>

How to change thread pool MaxThreads from default of 25?
Posted by Dave at 5/28/2004 10:56:36 AM
I know machine.config controls max threads for IIS but how does one change it for other .NET executables? ...more >>

Compact Framework: https through proxy server
Posted by Mike at 5/28/2004 10:10:59 AM
I'm posting this here because no one responded to my post in the compact framework NG and this is a MSDN "managed" newsgroup and I'm a MSDN subscriber. I'm unable to make a https connection through a proxy server using the compact framework. I can connect with no problem using http, but when ...more >>

Screen Capture w/ Dual Monitors
Posted by Patrick at 5/28/2004 2:49:24 AM
need some code for getting screenshots from the secondary monitor on dual monitor display. Here's a bit of the code for a screen from the primary monitor. Bitmap MyImage = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, g1); For the second monitor I can ...more >>

OracleParameter C# ORA-24338: statement handle not executed
Posted by tapeesh NO[at]SPAM yahoo.com at 5/28/2004 12:50:21 AM
I have a stored procedure which takes 7 parameters as input and gives one output. Of these 7 parameters there can be few parameters which can take null value. I am using C# to connect with oracle. The parameters are set using OracleParameter class. But whenever I make a parameter null the sp is ...more >>

screen scraping or terminal emulation
Posted by shalin at 5/27/2004 9:56:03 PM
hi I know the ip of a remote machine. Its an IBM machine. I need to connect to this machine using ssh protocol and ppk encryption. Can I do this using dot net framework sockets?? Basically I want to do terminal emulation and screen scraping. Can some one provide me the code its very urgent ...more >>

How to make summary text for methods in VB?
Posted by tylun_guy NO[at]SPAM hotmail.com at 5/27/2004 8:52:32 PM
Hi, Recently i write some DLL and redistribute to other department in my company for their development. I would like to ask how can i make some comment be shown? For example when I view the class 'System.web.UI.WebControls.WebControl.Button' through object browser, it will show up a summary...more >>

Multi-Lingual application
Posted by Z D at 5/27/2004 5:06:47 PM
Hello, I need to support multiple languages in a product package being developed in both ASP.NET (vb.net) and WinForm .net (c#). I was wondering if there are any best practice guides, application blocks, resources, tutorials, or just general advice that someone could recommend to get me sta...more >>

BinaryReader / BinaryWriter possible bug
Posted by Klaus Petersen at 5/27/2004 4:44:21 PM
Hi. I'm trying to figure out how the BinaryWriter class stores strings - the BinaryWriter is attached to a MemoryStream. BinaryWriter inserts stores a value just before the actual string to reveal the length of the string to follow. If the length of the string is less than 128 chars, its ...more >>

Serialize and append
Posted by Hell at 5/27/2004 3:53:45 PM
I have 2 objects of same type with data in them. I serialize 1 of them to an xml file using XmlSerializer and XmlWriter. now can i serialize the other one to the same file so it appends to the file after the data from the first one? ...more >>

Missing methods etc. in derived classes
Posted by eje at 5/27/2004 2:42:38 PM
I'm trying to understand class hierarchies in VB .NET. I'm designing an application where data come in textfiles from different sources and will be stored in a database. To avoid future problems the importdata must be well validated. There are several tables and fields in the database. My ...more >>

Managed C++ - Arrays, Handles
Posted by Kevin Burton at 5/27/2004 2:41:03 PM
I am trying to develop a managed C++ assembly that returns information in the registry. I am having two problems 1) In the constructor I would like to initialize the registry key using RegOpenKeyEx. But if I have the HKEY value as a private member the compiler complains that HKEY __gc cannot be co...more >>

TypeConverter.CreateInstance-Method
Posted by Oskar Vaia at 5/27/2004 2:25:34 PM
Hi, in the .NET Framework Class Library there is the following text in the "Remarks"-section: "Use this method for objects that are immutable, but for which you want to provide changeable properties." .... objects that are immutable ... - what does this mean? Can someone please insert he...more >>

web service on alternate port - HHTP 'Host' field incorrect
Posted by robert at 5/27/2004 2:21:02 PM
The 'add web reference' in Visual Studio 2002 seems to be broken a bit If I have the wsdl available a http://myserver:8080/services/MyService.wsd The Project -> Add Web Reference shows the correct WSDL. But after using 'Add Reference' the WSDL file is incorrect. It seems that the request for t...more >>


DevelopmentNow Blog