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 > april 2007 > threads for april 1 - 7, 2007

Filter by week: 1 2 3 4 5

Master Volume Control in C#
Posted by Alex Maghen at 4/7/2007 4:40:00 AM
I'm looking for a nice compact class for controlling the Master Volume of the PC speakers in C# *without* using DirectShow. I have found one sample that works fine for getting and setting the volume. But it does not support getting and setting the MUTE state. This means that if the computer is...more >>

socket programming in asp.net possible?
Posted by John at 4/7/2007 12:10:02 AM
Hi all, I am new to .net technologies. ASP.NET supports socket programming like send/receive in c or c++? I am developing web-site application in asp.net and code behind is Visual C#. In page_load event, I am using atl com component. Here one for loop is there. In this for loop...more >>

Java to C#
Posted by dotnetboy at 4/7/2007 12:00:00 AM
i want to convert a java project to a c# project. i found a lot of tools on the internet. anyone can tell me which one is best one? Cheers ...more >>

windows xp pro activation
Posted by macka at 4/6/2007 12:00:01 PM
4 months after recieving windows genuine advantage kit for win xp pro my pc crashed and after rebooting it says you need to activate windows before you can log on so I click on yes to activate now and the pc logs out and in again with the same you need to activate windows before you can log on...more >>

Third Party Assembly - Strong Naming - URGENT!!!!
Posted by BillGatesFan at 4/6/2007 9:12:20 AM
I trying to use a third party assembly that was written in 1.1. I'm trying to use it in 2.0. In order to use it in my project I have to strong name it, because my assembly is strong named. I managed to strong name it (a.dll) finally. But I just found out that the Third Party Assembly refere...more >>

EnumWindows, how to identify windows
Posted by Zamdrist at 4/6/2007 6:19:11 AM
I can return a list of windows and their titles using the API, AddressOf & Callbacks, however I get all programs/processes like GDI+, DDE Server, etc. I really just want the programs opened in the taskbar, such as Outlook, Query Analyzer (whatever)...How can I fliter the list? I was hoping to...more >>

Product Key
Posted by Terry at 4/5/2007 7:46:48 PM
Can anyone help me with getting a new Product Key #, I have misplaced the original. Is there anyone outhere that knows a substitute I can use. Please help, I'm desparate, I can't open any files. Thank you From http://developmentnow.com/g/6_2006_7_0_0_0/dotnet-framework.htm Posted via Developmen...more >>

Video playback
Posted by Joel at 4/5/2007 6:20:01 PM
Just wonder... i just recently upgraded my computer... have Media player 11 installed. I can hear the sound, but can't see the picture. If I turn down the accelleration, i can see the picture, but it's dark with no color. Wondering if it could be a vid card issue?...more >>



PC won't start automaticly after re-start
Posted by Sentinel at 4/5/2007 5:38:01 PM
While I am signed into Windows if I "re-start" my PC,(not Turn Off) it closes Windows and goes through it's normal rebooting process before it should re-open the login window once again of it's own accord, except as it's coming back on it will not get to the login window on it's own(automatica...more >>

Exception in RSACryptoServiceProvider
Posted by ajayleo NO[at]SPAM gmail.com at 4/5/2007 5:13:13 PM
Hello The following line of code throws an exception" The System Cannot find the file specified". This is on .Net 2.0. RSA rsaKey = new RSACryptoServiceProvider(); //Creating with Default key Appreciate the help Thanks rsaKey shows up as follows during debugging. -rsaKey {...more >>

Problem catching all exceptions in a windows service
Posted by Simon at 4/5/2007 2:18:54 PM
Hi all, I'm having a problem creating a global exception handler in a windows service that I'm making. Another poster suggested that the way to do this was to use the CurrentDomain.UnhandledException event to catch and deal with any exception that crops up. The problem is, when I try and ...more >>

Convert string to KnownColor?
Posted by mianiro at 4/5/2007 1:12:03 PM
I have a piece of code that is trying to convert a string to a knownColor via CType. Is this not possible? I keep getting an error that you cant convert a string to an integer. Is there another way to do this? For Each clr as object In Colors If Not Color.FromKnownColor(CT...more >>

Need Help: DateTime.Parse CultureInfo Problem
Posted by kilaen NO[at]SPAM gmail.com at 4/5/2007 12:46:57 PM
I have this method that converts dates from a culture of origin to a destination culture. It's not working as intended, hopefully someone can enlighten me and tell me what I'm doing wrong. I've included the code, the values being passed in, and the output. Thanks in advance! value = "01/04/200...more >>

vs 2005 c#: where is configurationmanager class?
Posted by Ace at 4/5/2007 12:46:02 PM
hi, i have a web project that was converted to .net 2.0. i am trying to read a value from web.config; however, i can't see to have access to configurationmanager class rather i only see configurationsettings class. then i created a brand new project in vs 2005 and noticed that i have access ...more >>

Append Nodes to existing XML File/Document .net 1.1
Posted by Daniel Di Vita at 4/5/2007 11:38:05 AM
I have a XML file that I need to append child nodes to. Here is an example of that file: <root> <item> <stuff1>The Stuff for 1</stuff 1> <stuff2>The stuff for 2</stuff 2> </item> <item> <otherstuff1>The other stuff for 1</otherstuff1> ...more >>

Shell MegaPack.Net 8.0 Released.
Posted by Sky Software at 4/5/2007 4:48:39 AM
Shell MegaPack.Net 8.0 recreates the entire Windows Explorer shell browsing UI functionality in your app in just a couple of seconds. It provides a familiar yet powerful file/folder browsing UI right inside your own forms and dialogs and is a perfect replacement for the plain, inflexible, modal APIs...more >>

.Net 2003 C# (with Crystal..being culprit) error
Posted by Neal at 4/5/2007 4:26:01 AM
Hi All It's windows app, runs fine of course on Dev machine, produces the Crystal Reports but on Client Machine with DotNet runtime installed and also app, get Runtime error. (Take out the Crystal refs + reports) and no Errors. Thread thru JIT error if I ref Crystal (I know it has to...more >>

Reflector
Posted by Citizens in the world at 4/5/2007 1:14:04 AM
Hello Expert, Can you recomment some materials about Reflector in .Net? How should I use it in application buiding?What's the relation between CTS and CLR? Any help will be appreciated.Thanks in advance....more >>

Forcing a .NET framework 1.1 application to use .NET framework 2.0 without creating application config files
Posted by pdabak NO[at]SPAM yahoo.com at 4/4/2007 11:02:34 PM
Hello, I have a console application that is compiled using VS 2003 and hence targetted for .NET 1.1 runtime. This application uses some shared assemblies (my own) that were also initially compiled using VS 2003 and hence targetted for .NET 1.1. Recently we have moved those shared assemblie...more >>

What is System.Collection.Specialized.OrderedDictionary - .net 2.0 msdn
Posted by Rolf Welskes at 4/4/2007 5:41:44 PM
Hello, in .net 2.0 I find System.Collection.Specialized.OrderedDictionary. Ok it's a dictionaly, collection of key-value-pairs and I have access over index. BUT: Nothing about the kind of implementation. So I have no idea, for what best to use this collection. Is for example myOrde...more >>

Illegal System DLL Relocation
Posted by pia at 4/4/2007 4:52:12 PM
I receive this message when starting my computer, seems to be after automatic windows update: RTHDCPL.EXE – Illegal System DLL Relocation. The system DLL user32.dll was relocated in memory. The application will not run properly. The relocation occurred because the DLL C:Windows\s...more >>

.Net 2.0 & Dns.GetHostEntry
Posted by Joe K at 4/4/2007 3:11:08 PM
I am intermitently getting a System.Net.Sockets.SocketException ("No such host is known") when calling Dns.GetHostEntry(). It doesn't seem to have any pattern to it, but seems to be occurring on a variety of IP addresses (e.g. internal addresses such as 192.168.x.x). Anyone else see this? Is ...more >>

visual studio 2005 installation
Posted by Mohammed Youssef at 4/4/2007 11:04:05 AM
I am trying to install visual studio 2005 on my by, allways i am getting error message, Error 1304.Error, writing to file C:\Program files\Microsoft visual studio 8\common7\tools\spyxx.exe verify that you have access to that directory...more >>

Working with windows out side the VB.Net app
Posted by Zamdrist at 4/4/2007 7:15:28 AM
Looking for a clue in on the .Net functionality to manage windows outside the application, i.e. other applications. Just looking to find the window handle by title and adjust its properties such as top, left, etc. Much like here, but using Win32 API http://vbnet.mvps.org/index.html?code/hel...more >>

Project new "ItemGroup" reeking havoc
Posted by mario at 4/4/2007 6:11:20 AM
I believe the following started after I installed ASP.NET 2.0 AJAX Extensions 1.0, but I cannot be certain that that is the cause. Scenario: Using VS.NET 2005 SP1 When I attempt to build any project it wants to check the project file out of VSS. If I say OK and allow checkout, things...more >>

c# 2.0 iterators
Posted by AVL at 4/4/2007 3:52:02 AM
Hi, what is the c# 2.0 iterators features.. where can i get more information on this feature with some good smaples.... please help me out...more >>

C# Nullable types
Posted by AVL at 4/4/2007 3:38:02 AM
hi, i'm a new bie to c#.net 2.0.... i've come across a new feature by name nullable types...need some info on it what is actually a null value... what exactly is advantage we get by specifying a value type as a null value... please clarify...more >>

textreader vs stream reader
Posted by AVL at 4/4/2007 1:52:01 AM
hi, i'm a newbie....... i would like to know the usage of text reader and streamreader... which of these would give better performance..... when shud one use textreader and streamreader........more >>

system assigned port with HttpListener?
Posted by Phil Bolduc at 4/3/2007 11:44:01 PM
I want to be able to use an ephemeral port (system assigned port) with the HttpListener class but cannot figure out how to do it. With a TcpListener, you would do something similar to: IPEndPoint localEP = new IPEndPoint(IPAddress.Any, 0); TcpListener tcpListener = new TcpListener(lo...more >>

.Net system service??
Posted by GaryDean at 4/3/2007 5:19:46 PM
How do I write a system service in .Net? -- Regards, Gary Blakely ...more >>

Multiple inheritance alternative
Posted by koulbassa at 4/3/2007 4:50:01 PM
I have several classes in my project: varietyData gradeData attributeData TreeData Because the TreeData class encompasses each of the previous 3 classes, to me it would make the most sense to allow TreeData to inherit from each of them. Unfortunately, this is not possible in .NET. O...more >>

Command Window error when attempting to modify variable
Posted by luke_airig NO[at]SPAM hotmail.com at 4/3/2007 2:54:49 PM
Microsoft Development Environment 2003 Version 7.1.3088 Microsoft .NET Framework 1.1 Version 1.1.4322 I am trying to modify the value of a variable in the Command Window (immediate mode) but I am getting an error. Here is the code snippet: U_Appr_InfoDS.U_APPR_INFODataTable dt = da.GetA...more >>

PlatformNotSupportedException on Windows 2003 server x64
Posted by Geofrey van Hecke at 4/3/2007 2:44:50 PM
Hi everybody, I've devloped an .NET DLL (written in C#) and referenced by a VB6 application. The dll uses the System.Net.Sockets.Socket class to connect a remote PC. For an unknowed reason, under Windows 2003 server x64 version, this DLL raises an System.PlatformNotSupportedException exc...more >>

How to read configuration section for sub-classes
Posted by Roy at 4/3/2007 1:12:02 PM
Can ConfigurationSection or ConfigurationElement retrieve the configuration information in a generic way such as string or XmlNode type? I have sub-sections in the configuration which is specific for sub-class to initialize itself and needs to be passed to it in a generic way defined in base...more >>

Crash with WPF Reportting .NET Runtime 2.0 Error
Posted by stevendom57 NO[at]SPAM gmail.com at 4/3/2007 8:11:47 AM
I have an app written with a WPF '/ Winform hybrid application. On most machines it runs fine. On one machine I get a crash and the following is contained in the event viewer. EventType clr20r3, P1 ispec.exe, P2 1.0.0.8, P3 46124125, P4 presentationcore, P5 3.0.0.0, P6 45398ee6, P7 4f0e, P8 0,...more >>

powerpoint to video component
Posted by Manuel at 4/3/2007 8:10:42 AM
Hi Can you guys point me out a component (either activex or .net) to convert ppt to video. Google fond me several applications to do so... Not a single component, though! Cheers, manuel ...more >>

DllImport attribute
Posted by Dmitry Dorobin at 4/3/2007 7:42:03 AM
How I can write somthing like this: [DllImport("%ProgramFiles%\\aaa.dll")] where %ProgramFiles% - some DOS variable?...more >>

Killing a process while in a TransactionScope
Posted by gareththackeray NO[at]SPAM gmail.com at 4/3/2007 7:26:17 AM
Hi, We've been using the TransactionScope class which is great and really makes using Transactions a doddle. However, if we kill the process in the middle of a using(TransactionScope) block, it leaves it hanging, seemingly indefinitely, until we restart the DTC on either client or server. ...more >>

Find COM device connected
Posted by SP at 4/3/2007 5:03:15 AM
Hi, I would like to make a win service that test all the com ports and find the deviced connected. Some device have some commands that return data. How can I make this test? ...more >>

Making a copy of session objects
Posted by Abhishek at 4/3/2007 4:54:02 AM
Hi, Is there any way so that I can create a copy of session object... Dim _mclass As New _MyClass _mclass.GetSetVar1 = "Value1" _mclass.GetSetVar2 = "Value2" Session("A") = _mclass Dim _gclass As New _MyClass _gclass = CType(Session("...more >>

create new StackTrace-object for a thread
Posted by Markus Eßmayr at 4/2/2007 1:50:49 PM
Hi, in my application I need to get the current executing location of a thread. Until now I did this by Thread executingThread; .... executingThread.Suspend(); StackTrace executionLocation = new StackTrace(executingThread, false); executingThread.Resume(); .... This works very good. ...more >>

Accelerator key not working
Posted by B. at 4/2/2007 12:51:35 PM
I have a C# winform with accelerator key associated with some menus. If my exe is in unmanaged C++ and the winform is invoked through interop, the accelerator key not working. If I create a new C#.Net project and the same winform is invoked in the C#.Net project, the accelerator key works perfec...more >>

assembly always gets built optimized
Posted by bonk at 4/2/2007 12:17:57 PM
I have a c# project as part of a larger VS 2005 solution that always gets build optimized and I therefore can not evaluate any values while debugging through the code ("Cannot evaluate expression because the code of the current method is optimized."). This happens alltough the checkbock "optimiz...more >>

TextWriter.Synchronized
Posted by Kris Erickson at 4/2/2007 11:03:48 AM
Hi, Have run into a problem with TextWriter.Synchronized where we are logging errors. The call get the Textwriter looks like this: return TextWriter.Synchronized(File.AppendText(filename)); Where filename is the name of the log file and there are no other references to the filename wit...more >>

Regex question
Posted by Dave E at 4/2/2007 10:24:01 AM
I am trying to build a regular expression that will fail to match if the line starts with a particular phrase, for example I want the match to fail if the line starts with "To Do". In other versions of regular expressions there is the ~ operator that lets me specify this, so I could do someth...more >>

Why does "TypeConverter.GetProperties" exist
Posted by Larry Smith at 4/2/2007 10:08:57 AM
Hi there, Can anyone provide any insight on why MSFT introduced "TypeConverter.GetProperties()". There are two classes for dealing with metadata in .NET, 'Type" and "TypeDescriptor". Each has a "GetProperites()" method so why complicate the situation even more than it already is by adding...more >>

Fundamental COM incompatibility or newbie head-scratcher?
Posted by carl.clawson NO[at]SPAM pkinetics.com at 4/2/2007 9:46:57 AM
Take a COM interface with a property declared like this: [propget, id(1)] HRESULT SomeProperty([out] int *sideProperty, [out, retval] int *mainProperty); This is weird but in COM it returns sideProperty when you call it. It even marshals correctly if you remote it. ..NET appears unable to...more >>

What version of .net?
Posted by Egghead at 4/2/2007 9:46:26 AM
Hi here, I installed the Mar 2007 CTP and build some solutions with different .Net versions for learning some new C# features. After a few days, I lose track which solution building to which .Net version, and I cannot find it at the solution properties. Is there a method finding the .Net ve...more >>

C# code works if running from Visual studio, but not from executable file?
Posted by linda.chen NO[at]SPAM faa.gov at 4/2/2007 7:52:09 AM
Greeting. We have a 6 year old application, which contains both managed (C#) and unmanaged code (C++). For all the new components we try to create them in C#. We build all projects (both C++ and C# code) into a solution from visual studio .net 2003. In out solution we have a project implem...more >>

Web service exception
Posted by Shlomy at 4/2/2007 2:24:03 AM
Hi, I have a web service installed on windows 2003 x64 machine. I have a consist exception from the web service: System.InvalidOperationException: There was an error generating the XML document. ---> System.AccessViolationException: Attempted to read or write protected memory. This is of...more >>

saving object properties in sqlserver
Posted by Jeff User at 4/1/2007 5:38:23 PM
Hi Using vs2003 and sql server 2000 I would like ot save asp.net object attrributes such as alignment for a table cell, in sql server database. In my C# code I ahve to declare this as a HorizontalAlign type. then I give my variable the value "HorizontalAlign.Center". Now I can set the cell H...more >>

VS 2005 and .NET version selection
Posted by Z at 4/1/2007 12:30:01 AM
Hi, I am told that in VS 2003 (which I am running now) I cant select between ..NET 1.1 and .NET 2.0. I am considering buying VS 2005. Can I select .NET versions in VS 2005 (I have 1.1, 2.0 and 3.0 installed and I want to selected any of them) Thank you...more >>

VB.Net on the network
Posted by Marcus via DotNetMonster.com at 4/1/2007 12:00:00 AM
We have 200+ concurrent users. We are looking at using Oracle database as the backend and VB.Net on the network as the front-end. Does anyone know if this will work and how? We will go to the web in a couple of years, but right now we are limited to the network with concurrent users of up to...more >>


DevelopmentNow Blog