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
May 2008
June 2008
all groups > dotnet framework > may 2006 > threads for may 1 - 7, 2006

Filter by week: 1 2 3 4 5

How to add a member field to an existing class in runtime?
Posted by Mannie at 5/7/2006 9:37:23 PM
How can I add a member field to an already existing class during runtime, or rather: add some hidden value to an object dynamically during runtime? I need this because I'm creating a simple OO database which needs references to objects when updating. The value that I want to add on the fly is...more >>


windows service apllication
Posted by Sean at 5/7/2006 5:39:10 PM
Hello, Initially I created a socket server (listener) application which blocks and waits for communication from client socket applications running on other Windows XP machines on the network. Everything seemed to be working fine (where the listener simply displays a form whenever it recieve's...more >>

How to compute CRC
Posted by Bob Altman at 5/7/2006 2:11:09 PM
I am processing a very large (20+ GB) file. As part of my processing I need to compute a CRC or hash value for the file. To improve the efficiency of my algorithm I'm looking for a way to do this without having to read the file twice (once for my processing and again to compute the hash). ...more >>

List.ForEach
Posted by Kevin G at 5/7/2006 12:03:09 PM
Hi. I'm trying to prepare an example on how to use List.ForEach. using the regular ForEach, I can get what I want with the folllowing code: List<string> lAvailablePorts = new List<string>(); lAvailablePorts.AddRange(SerialPort.GetPortNames()); string sPortsAvailabl...more >>

Is Dot Net Really belongs to Object Oriented ?
Posted by Reny at 5/7/2006 10:59:55 AM
Correct me if I am wrong. In an Object Oriented environment each and everything are objects. That means we cannot directly instantiate a class nor we can directly reference a member belongs to a class i.e. ClassName.MethodName () If I am right in that sense, we are doing the just opposite i...more >>

Serializing an enum variable
Posted by Pedro at 5/7/2006 5:05:10 AM
Hello, Here's a piece of code that i have which is giving me an error and im not sure how to fix it. I'm trying to serialize an enum variable wich a value outside of the enum list and the serializer throws an error saying its an invalid value (of course). But how toget around it? Public...more >>

ToolStripSplitButton: unexpected Click event
Posted by Philipp Schumann at 5/6/2006 3:42:25 AM
Hello, when clicking on the chevron (arrow) for dropping down the a split button, the Click event is raised. Is there a way to detect that only the drop down part of the button was clicked, or to suppress this behaviour altogether? Cheers, Phil -- If you keep your mind sufficiently...more >>

ClickOnce LONG DELAY
Posted by Larry at 5/5/2006 11:55:13 PM
When clicking the link from a client PC that points to the MyApp.application file, initially there is a windows that pops up in the upper left hand corner of the screen that says "Verifying Application Requirements" This windows seems to pop up very quickly and then just goes away. Th...more >>



Redirect StdIO-Problem: Console.In.Peek() hungs !
Posted by Manfred Braun at 5/5/2006 5:09:02 PM
Hi All ! I think, there is a bug in the System.Console class related to use the STDIO streams. I am doing a very simple thing in a console-based program named CS [ConsoleTest] Console.In.Peek(); and the program hungs if no parameters were provided on the commandline. If I use simple red...more >>

Deserializing XML file
Posted by Sriranjan at 5/5/2006 3:10:39 PM
Hi, How do I deserialize an object based on a random XML file? I have tried using the XMLSerializer.Deserialize method but it does not set the values for the members. I need tto do this because I am trying to invooke a web service by passing this object as the input. Here is the sample XML ...more >>

how to retrieve a "Type" for a type expressed in string
Posted by Benny at 5/5/2006 2:33:02 PM
String.GetType().FullName == "System.String". Given the string "System.String", how can I get an instance of Type for System.String? Thanks....more >>

Array.BinarySearch ALWAYS NEGETIVE
Posted by JP at 5/5/2006 1:51:02 PM
Why doesn’t this work? If State="NY", the resulting IF statement returns 31, if the State="NC" the resulting IF returns -27, yet NC is in the array list. Its random as to which stats work and which do not. AL will return 0, but AR will return -3, yet its in the list. I know the value when ...more >>

FileIOPermissionAttribute - how to use it
Posted by A1b2c3d4 NO[at]SPAM community.nospam at 5/5/2006 11:14:02 AM
Hi, I have a question concerning the usage of the FileIOPermissionAttribute. I have an assembly (essentially a loader) which reads files, does stuff with the contents and writes records to an SQL database. The paths to the files on which it operates are passed as parameters on a method wi...more >>

SmtpMail connection question.
Posted by Mitch at 5/5/2006 9:27:01 AM
I've got 2 different applications that use the same SMTP server. One is written in C# and uses the SmtpMail class. The other is in C++ and uses the ATL CSMTPConnction class. The SmtpMail code works just fine. The CSMTPConnection code fails. In digging down into the ATL code, I can see wh...more >>

Get remote computer MAC address
Posted by Sai at 5/5/2006 7:24:02 AM
Hi, I have IP address of remote computer I need Mac address of the remote computer. Can anyone help me in this. Thanks, Sai...more >>

Simple questions about interfaces
Posted by Water Cooler v2 at 5/5/2006 12:00:36 AM
Sorry! I know these are basic, stupid questions, and I already knew the answers to these, I swear, and I have used them countless times, I swear, but at the moment I am fighting a bout of amnesia and it is extremely important for me to know the answers just now. Can an interface have: 1. ...more >>

CListBox ... InitStorage()
Posted by jmarc at 5/4/2006 8:53:17 PM
Doesn't seems to work! Filling a CListBox with over 75,000 strings in it, took more than 5 minutes ! I tried using InitStorage( nbitems, length_item ) before filling the listbox, and it doesn't seem to change anything. It supposed to be used to allocate CListBox memory before using AddStg...more >>

Memory leak when using OleDb
Posted by Arild Bakken at 5/4/2006 6:31:05 PM
Hi, I'm facing a problem where using the System.Data.OleDb library to read binary data from a SQL Server 2000 database. The sample code: OleDbConnection objConn = new OleDbConnection("Provider=SQLOLEDB;Data Source=SQLSERVERNAME;Initial Catalog=pubs;Integrated Security=SSPI"); objConn.Op...more >>

Hyperlink in Gridview
Posted by Arne Garvander at 5/4/2006 1:02:02 PM
I need to do some custom formattiing in a Gridview. Some of the characters that goes into my hyperlink creates problems such '#'. How do I call a custom format function from inside a gridview? (I used to do this before in a dataview). -- Arne Garvander (I program VB.Net for fun and C# to ge...more >>

CLR Exceptions not getting handled in try/catch
Posted by Mike Treadway at 5/4/2006 9:21:03 AM
I've got a managed application that (on my computer) is not handling managed exceptions. I've got the following: try { string buf = (null as object).ToString(); } catch(Exception e) { MessageBox.Show(e.Message); } When I run the application and perform the UI event that runs t...more >>

Micrososft Visual Studio .Net 2003
Posted by MittyKom at 5/4/2006 9:20:01 AM
Hi All Is there anyone with a trail version of Micrososft Visual Studio .Net 2003 NOT 2005. I have tried searching for it and all links have been removed. I even called Microsoft and they cant find it. Please help. Thank you in advance. ...more >>

.NET equilavent to C's backtrace(), or How do I find a calling function?
Posted by cmn_ at 5/4/2006 9:13:42 AM
My problem is this: I am programming an application in C#.NET / WinForms. It contains a MonthCalendar, and whenever the DateChanged event is fired, and *only* when changing the month, the application goes into an infinite loop. The event procedure is in a seperate thread, although I'd rather n...more >>

Ignorant question maybe...
Posted by Zamdrist at 5/4/2006 7:47:43 AM
I assume, in order to implement .Net Framework 2.0 I need Visual Studio 2005, right? I currently have Visual Studio 2003. Thanks ...more >>

ClickOnce - making windows application to be available online and offline
Posted by maya at 5/4/2006 7:31:59 AM
Hello, When publishing windows application: 1. What are the differences between making it available online and offline, or just online (except for the shortcut and displaying icon in the start menu)? 2. When there are updates for application which is available online and offline, are all t...more >>

Changing True/False Values
Posted by MikeSwann at 5/4/2006 6:56:02 AM
Dear All, Firstly, I hope this is the correct place to post this question. I have a form which will be used to print labels. There are only 2 labels which are needed, and the second is a sub-set of the first. I have designed the form for the first, with the idea of hiding/disabling the...more >>

Modifiers of controls in UserControls
Posted by Andreas at 5/4/2006 2:06:14 AM
Hello I have a problem with the visibility of private controls in my UserControl. My UserControl contains a private PictureBox and a private Label. When I put my UserControl on a form and get all controls of the form with: .... Dim myControls As ArrayList myControls =...more >>

configure which .NET framework to use for a console application
Posted by Xavier at 5/4/2006 12:52:01 AM
hello, i have on a w2k3 server the .NET v1.1 and .NET V2.0 installed. Where can i configure the consoleapplication which framework is to be used?. thanks ...more >>

IsolatedStorage
Posted by MikeH at 5/3/2006 11:53:01 PM
Hi I want to use IsolatedStorage to store user data for a Win Forms app. The majority of users are non-roaming but some are. Sholud I use ... IsolatedStorageFile.GetStore(IsolatedStorageScope.User Or IsolatedStorageScope.Assembly Or IsolatedStorageScope.Roaming, Nothing, Nothing) roa...more >>

Disable Devices in .NET
Posted by Samuel Shulman at 5/3/2006 11:04:19 PM
Hi Is it possible to disable/enable devices (as one can do in device manager) in VB code? Thank you, Samuel ...more >>

Excel in Windows Forms: Access Denied
Posted by Ariel Dolan at 5/3/2006 5:09:20 PM
I am trying to open an Excel file from a C# Windows Forms application. On the statement: ExcelObj = new Excel.Application(); I get an "Access is Denied" error (System.UnauthorizedAccessException). The curious thing is that this error occurs only on my home computer, but not on my office com...more >>

Print image directly to Printer
Posted by Teresa at 5/3/2006 3:37:02 PM
Is there a way to print image files directly to a printer? I found several examples for printing raw data to the printer, but it's limited to text printing. Any suggestions are welcome. Thanks in advance....more >>

ClickOnce Run - doesnt run app
Posted by Mike Oliszewski at 5/3/2006 3:11:56 PM
I'm trying to get my first ClickOnce test app to execute and I'm not having any luck. After publishing my test app via VS to a server running IIS, IE comes up with the ClickOnce application launch page, but when I click the "Run" all that happens is it views the application schema, nothing is...more >>

Where can i find a .Net Framework 1.1.4322
Posted by MittyKom at 5/3/2006 3:08:02 PM
Hi All Where can i find a .Net Framework 1.1.4322? I am trying to install SQL Server 2000 Report Pack for Financial Reporting and i have been prompted to have .Net Framework 1.1.4322 installed. I installed .Net Framework 2.2 amd it still was asking for .Net Framework 1.1.4322. Thank you i...more >>

Process.Start executing old version of my EXE
Posted by google NO[at]SPAM schwarzsolutions.com at 5/3/2006 2:38:37 PM
Hi everyone, >From my WinForms app I am executing an external process. It turns out that I have replaced the EXE of the external process with a newer version and my WinForms app is still executing the old one. I am using Visual Studio 2005 and programming in C#. I have been wrecking my brai...more >>

Where to store Application Data and configuration files?
Posted by James at 5/3/2006 1:38:55 PM
Hi all, I am new to .NET programming. I am wring a project, say FOOBAR, it contains 3 executable files, say p1.exe, p2.exe, p3.exe, which will be installed to C:\Program Files\FOOBAR The programs need read from a configuration file, say config.txt. Normal users could edit this file manua...more >>

merge small text tiles to a big file?
Posted by guoqi zheng at 5/3/2006 8:23:14 AM
Dear Sir, One of our applications needs to use millions of small text files. I think it has some performance problem due to too many text files. I read about the File System google are using, they use 100-200 mb file size, each files can contains many objects(webpages). Is it possible t...more >>

Sendkeys to DOS application
Posted by JM at 5/3/2006 5:07:02 AM
Hi there, I need to develop a program that captures input from a serial port and/or network and fools a native DOS application into thinking it comes from the keyboard. I've tried using Windows.Forms.Sendkeys.Send(), but I encountered an exception every time the method was called (somethin...more >>

Mailing word document in VB.net
Posted by zxc at 5/3/2006 3:22:50 AM
hi i want a code for mailing a word document created by Vb.net through VB.net ... below is my code of creating word document, retrieving database values from MS SQL server and generat report using word document .. now document has been created and saved but i dont know how can i mail this docu...more >>

Enble shutdown scripts in XP Home
Posted by Prathibha at 5/2/2006 10:52:01 PM
Hi, I would like to run a script at shutdown in winxp home. I can do this in Xp professional using group policy.Since Group policy is not supported by XP Home is there anyother way i can accomplish the same? Thanks & Regards...more >>

Attempted to read or write protected memory
Posted by Seok Bee at 5/2/2006 9:07:01 PM
Dear Experts, I have created a script to extract the Event Logs from the system into an excel sheet. The logs are separated into 2 worksheets (Application Log and System Log). After this excel file being created, it will be sent out via email to the list of recipients. I run the script ...more >>

.NET framework for pocket pc, same as compact framework?
Posted by spam NO[at]SPAM darrenw.net at 5/2/2006 8:57:31 PM
I'm trying to determine which framework I should use for development for a pocket pc device from Symbol. Is there a framework for pocket pc or is this the same as the compact framework? Is CE the same thing or doesn't that term get used anymore? Any help will be great. Thanks, Darren. ...more >>

Contains method doesn't work on BindingList<T>
Posted by Hiten at 5/2/2006 7:52:02 PM
Hi, I have a BindingList<T> collection and I am adding concrete object T in to the binding list. Before adding them, I want to verify if object with same data exist in the collection. When I use Binding list’s Contain method to check if object exist in the collection, it always returns fa...more >>

Want a key value collection that maintains ordering
Posted by illegal.prime NO[at]SPAM gmail.com at 5/2/2006 4:21:30 PM
Hi all, is there a key value collection in .Net that maintains the ordering in which I add items. I'm finding that I'm creating a number of classes that contain a name and then some object. I would prefer just to use some collection that maintains the ordering in which I add things (like Arra...more >>

ConfigurationManager and 2.0
Posted by Brent Dunham at 5/2/2006 1:45:57 PM
I'm developing a class library that uses the ConfigurationManager for applicationSettings. I created a Setting Class deriving from ConfigurationSection, added properties nad attributes to reflect the schema. All is good on adding the new section, except that when the Section is detected as n...more >>

Developing a weblog in c#
Posted by Cornelis at 5/2/2006 10:37:02 AM
Hi there, I want to setup a weblog in .net 2.0 c#. Is there an example project that is free available? Regards, Cornelis...more >>

tool for reports
Posted by Vigj at 5/2/2006 8:59:02 AM
Hi all I need a suggestion I'm developing a simple winforms app to manage data in an Access DB (but in future could be Sql Server or something else). I need to create some reports on DB data. I'm using C# on Visual Studio 2005 Prof. What tool you suggest me to use? I know that Crystal sh...more >>

Reflection
Posted by Steve at 5/2/2006 8:13:02 AM
Hi! Can I create a class or a method in run time with .net? How I do it? Thanks!!...more >>

ClickOnce Software Publisher Certficate
Posted by Andy at 5/2/2006 8:06:02 AM
HI all, I'm trying to create a certificate to use to sign applications which are only deployed internally. I installed Certificate Authority on our Win2k3 Standard OS. I can create a code signing certificate request and issue it, but the problem is that if I use that certificate, the Pu...more >>

Linking to MSN Spaces from messenger problems
Posted by Mervkiwi007 at 5/2/2006 6:19:02 AM
For some reason I can't see the links to contacts' MSN spaces in MSN Messenger v7.5. Also, I keep getting errors in IE when I try to access my space from the MY Space button in Messenger. The stars indicating updated contacts' spaces don't appear any more and their spaces information on their ...more >>

How to create a custom prerequisite VB.NET 2005
Posted by ilaygur NO[at]SPAM gmail.com at 5/2/2006 4:39:20 AM
Hello everyone To make a long story short, I have a COM dll refrenced in my vb.net app. I am using the ClickOnce publishing to deploy my app (best way for internet updates). This specific com dll (I have others refrenced with no problem), does not work with its interop created. If i do not REGS...more >>

CAS LocalIntranet
Posted by sfgianthater NO[at]SPAM gmail.com at 5/1/2006 8:35:40 PM
I am completely at a loss here.. Nevermind I am also a newbie.. I created a C# 2.0 console application that needs to write to a network share. I have strong named my app.. And have triedmany different combinations all with no success: Created a new permission set, with Permission Settings, ...more >>

UDP server scalability question
Posted by andrew queisser at 5/1/2006 5:42:20 PM
I've got the following situation and I'm wondering about scalability of different solutions: 1) Client sends a request to a fixed port on a UDP server 2) UDP server sends an ACK and launches the request (worker thread) 3) UDP server sends response data back to client 4) Client sends ACK back...more >>

dll hell
Posted by Peter Kirk at 5/1/2006 12:34:12 PM
Hi I have some classes which use log4net (ver 1.2.9.0). These classes run inside a cms-framework - which apparently also uses log4net internally, but version 1.2.0.3. This causes problems with my classes - I get an error like: Could not load file or assembly log4net, version=1.2.9.0, cultur...more >>

DataGridViewComboBox: Displaying drop down list on Mouse click
Posted by Raj Kumar at 5/1/2006 11:57:02 AM
Hi! I having two DataGridViewComboBox columns in a datagridview. I am trying to display the drop-down list when the user clicks in the cell or the drop-down arrow (I am not sure if either is possible). Does anyone know how I can do this? Thanks for your time. Regards, Raj...more >>

Very Easy Question, How to write log to SECURTY Event Log? Please help
Posted by John at 5/1/2006 9:33:08 AM
Is there any special code I have to write to log event to Security Event Log? The following code give me "Very Easy Question, How to write log to SECURTY Event Log? Please help" Error // Create an EventLog instance and assign its source. EventLog myLog = new EventLog(); myL...more >>

Create virutal directory as a child node of web site with VS deplo
Posted by sylvain at 5/1/2006 7:56:02 AM
I wish to create virtual directory as a child node of the website I'm installing using a VS.Net Web Deployment project. The virtual directory needs to point to a local directory. Is there a way to do this using the VS.Net Web Deployment project?...more >>

page to load in div tag
Posted by jessnair NO[at]SPAM gmail.com at 5/1/2006 3:55:16 AM
Onclick of buttons i need the corresponding page to load in the 'content' div tag, for some reason the following is not working..........? function load(arg) { var url = arg + ".html"; document.getElementByID("content").src = url; } <div id="content"> </div> ...more >>


DevelopmentNow Blog