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 8 - 14, 2006

Filter by week: 1 2 3 4 5

ConfigurationSection question
Posted by ilya at 5/14/2006 9:51:01 PM
I am trying to create a custom Configuration Section that will have this kind of an xml representation <CustomSection> <Objects> <Object type="sometype"> <Property name="someproperty" anotherAttribute="somevalue"/> <Property name="someproperty" anotherAttribute="secon...more >>

Security.Permissions.SecurityPermission
Posted by hames.bond NO[at]SPAM gmail.com at 5/14/2006 9:48:39 PM
G'day, I have 2 Win2003 servers, 1 is my database server, 1 runs IIS On the IIS machine I have an ASP.NET 2 application that makes a call to a proprietry 3rd party COM Object/DLL that makes a call to a database on server number 2. When the DLL call is run, I get "Security.Permissions.Sec...more >>

VB.Net Code for signing an email
Posted by Jason at 5/14/2006 7:51:01 PM
Hi, Can you help me with some sample code for signing an email? I have the code to manage/Select the Digital Cert but cannot figure out how to sign an email with it. I have been using the CAPICOM interop to sign email but now that I have upraded to VS2005 I am wanting to convert the code to...more >>

<authentication mode="Windows" />
Posted by Frank Dulk at 5/14/2006 11:51:13 AM
Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered a...more >>

retrieving the XmlEnumAttribute values for an Enum
Posted by Edward Clements at 5/14/2006 9:45:02 AM
I have an enum defined as public enum velocityUom { /// <remarks/> [System.Xml.Serialization.XmlEnumAttribute("m/s")] ms, /// <remarks/> [System.Xml.Serialization.XmlEnumAttribute("cm/a")] cma, ... } This class was g...more >>

[OT?] download Wikipedia....
Posted by Lloyd Dupont at 5/14/2006 12:00:00 AM
I would like to use some of the data in the Wikipedia in one of my (.NET!) program. I'm still at the stage of trying to figure out how to download the data. Any tip on: - how to download WikiPedia data? - how to use the data once downloaded? ...more >>

DataGridViewTextBoxCell and binding
Posted by rfw68 at 5/13/2006 8:28:01 AM
Hello there, I wrote my own DataDridViewTextBoxCellEx, inherited from DataGridViewTextBoxCell which accepts an integer (index) as value and displays the correspondign string out of a dictionary collection. Now I want to use data binding to connect this collection (a private member and pu...more >>

Dynamic language dependent ressources
Posted by Stephan Hofmann at 5/13/2006 6:27:01 AM
Hello, how would you solve in general the following requirement: my application will ask you to login with a language, so you have installed on your desktop one version of my application, providing multilanguage support that means text, description, column names etc. will be displayed in y...more >>



[OT] Windows User Accout Issue......
Posted by Lloyd Dupont at 5/13/2006 12:06:06 AM
I'm trying to install a MSI (LINQ preview in fact), but at some stage it (unsuccessfully) try to upgrade the C# language service with the error message: ===== An error occured while applying security settings. Power Users is not a valid users group. ===== But the control panel\User Accou...more >>

DateTime Format "Fri, 12 May 2006 22:12:07 +0000 (UTC)"
Posted by Egbert Nierop (MVP for IIS) at 5/13/2006 12:00:00 AM
Hello, There are several datetime formats, that the DotNet framwork supports. The timeformat mentioned in the header, is produced by outlook and other mailers and in Javascript, but it seems this is not an implemented standard formatstring (such as "r"). Can somebody shed a light on this? ...more >>

how to get the scroll of Form or control?
Posted by Bill Gates at 5/13/2006 12:00:00 AM
I want to get the instance of the scroll to draw it by custom. But how can get it? thanks! ...more >>

install framework 2.0 over network
Posted by Henok Girma at 5/12/2006 6:50:28 PM
Hello Gurus, I wanted to install the framework on a network pc that does not have any keyboard/mouse. I believe Service Packs can be applied in such scenarios, is it possible to do so for the framework? any help/hints is greatly apreciated.. thank you, ...more >>

Webexception Error FTP 501
Posted by arbytech at 5/12/2006 1:32:02 PM
Hi everyone, I am trying to get the WebRequestMethods.Ftp.DownloadFile working using the 101 Samples for the Base Class Library from MS. I can get through the authentication part OK but when the code gets to: Dim ftpResponse As FtpWebResponse = CType(ftpRequest.GetResponse, FtpWebRespons...more >>

VSTS Source Control hanging...
Posted by Andrew at 5/12/2006 11:05:02 AM
When I try to use VSTS Source Control, it hangs indefinitely. For example, when I try to edit a workspace, or get latest, visual studio hangs. If I press Ctrl+F4, it comes back to life, as if a hidden window were closed. Also, from the command prompt, tf.exe hangs when I try to do any opera...more >>

Sql Server / VS.net 2005 debugger transaction lock problem
Posted by Florian Doyon at 5/12/2006 7:19:38 AM
Hello usenet, I am currently debugging an application that uses SqlTransactions. When running in the debugger, it seems that my transaction ignores the isolation level and locks everything in SQL Server... If I put a breakpoint before SqlTransaction.Commit gets called, all the tables used t...more >>

Visual Studio Version
Posted by mac at 5/12/2006 12:00:00 AM
Hi! I have my Visual Studio 2005 Prefessional Edition I wonder what version is this Here is the version.. Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200 Mirosoft .Net Framework version 2.0.50727 What is this? Is this part of the Beta Version...more >>

set default printer
Posted by Crespo at 5/12/2006 12:00:00 AM
Hi, I have a problem to set default printer programatically using c#. My codes works well in windows2003,but it fails in windows2000. My codes is just listed below: System.Management.ManagementObjectSearcher query; ManagementObjectCollection queryCollection; string classname ...more >>

How to convert KeyCode ?
Posted by Laurent at 5/12/2006 12:00:00 AM
Hi everyone, I developped a UserControl and for this control I need to handle the + and - keys. The KeyPress event doesn't suit because I want to have an effet when the key is down and when the key is up. So, I handle the KeyDown and KeyUp events, but I received KeyCode and not the transl...more >>

dotnet runtime component
Posted by Crespo at 5/12/2006 12:00:00 AM
Dear everyone, I want to create my program's installer using installshield. As my program needs dotnet runtime component to install first before it can run. How Can I combine this component in my installer. Any help will be really appreciated! Best Regards Crespo ...more >>

Issues running the .NET v2.0.50727 x64 on Windows XP Pro x64
Posted by Steven at 5/11/2006 6:45:01 PM
I have suucessfully been able to configure and execute 32bit 1.1 and 2.0 applications on my develpopment box however once I try to run 2.0 x64 I am getting a DNS error on localhost and I have not been able to resolve this issue and I was hoping someone could point me in the correct direction. ...more >>

a silly question
Posted by gs at 5/11/2006 1:37:51 PM
is it possible to compile some test code as legacy application without dotnet frame work? how? I don't have any non dotnet compiler on my pc. I want to test my dotnet com assembly for interop with an legacy application that works through com interface. and I want to verify that I got my int...more >>

Installing a Windows Service
Posted by SiJP at 5/11/2006 9:04:29 AM
I have created a windows service, and can happily install it and run it, but this involves manually running the InstallUtil command line tool for each installation. Can this not be automated to run from within my MSI? Thanks (vb.net, vs.net 2003, .net 1.1, windows xp sp2) ...more >>

PropertyInfo.GetValues(...) with Generics / Reflection
Posted by Christophe Peillet at 5/11/2006 8:24:01 AM
I am trying to use reflection to get the value of a property using Generics. A sample property is as follows: /// <summary> /// Gets the collection of links rendered at the bottom of the header. /// </summary> /// <value>The links collection.</value> ...more >>

dotNet 1.1 compatibility with 2.0
Posted by gvb at 5/11/2006 7:40:31 AM
I have a .Net 1.1 application that starts through internet explorer and uses webservice for data-retrieval. It is an application that runs for 3 years now (so it was first created with 1.0 framework and later compiled with 1.1). To get it running i had to add it to the trusted sites and set...more >>

Visual Studion & .NET 2.0 Framework
Posted by Infospy at 5/11/2006 7:03:01 AM
I Have Visual Studio .NET 2003 Is is upgradable for 2.0 Framework? Best regards...more >>

VB6 App Referencing VB.NET DLL Debug Nightmare
Posted by Fred at 5/11/2006 2:50:42 AM
HI All, I have a VB6 App and a VB.NET DLL. The VB.NET DLL Is used to call a web service. When I compile the app is works fine but when I try to debug the VB6 Code I get this error message: "File or assembly name GetGantnerTxns, or one of its dependancies, was not found." GetGantnerTx...more >>

Convert RTF to PDF (C#)
Posted by Anna at 5/10/2006 10:11:02 PM
I got the following problem: an RTF is loaded and stored in memory in a form of a byte array. I need to convert it to a PDF without the necessety to store it on the disk (i.e. I need either byte array or a stream). I tried to use TX Text Control which works fine except that it does not conver...more >>

Partial classes not good OO design
Posted by oshea00 at 5/10/2006 8:26:01 PM
Does Microsoft even bother involving developers anymore in their process of developing new "features"? I've spent about four hours with VS2005 now and can't believe the list of problematic improvements I've generated in that short time. Then I run across this partial class feature. What a...more >>

Deployment problem
Posted by Samuel Shulman at 5/10/2006 5:39:06 PM
Hi When I added a shortcut to the desktop folder it did work but the icon is not the icon of the application is there a way to change that T.Y. Sam ...more >>

Collections: Does 'Add' make a deep copy?
Posted by Steve Hiemstra at 5/10/2006 4:47:51 PM
Hi All, When I 'Add' an 'object' to a System.Collection (ArrayList, HashTable,...) does it just put a 'reference' to the object in the Collection, or is it a 'deep copy' (a new instance of the object)? SteveH ...more >>

Problems using Directory.GetFiles
Posted by daniel at 5/10/2006 3:39:01 PM
Hello, I am having some difficulties using Directory.GetFiles. I have a directory with contains: file1.fmt file2.fmt file3.fmt file4.fmt_ file5.fmt_ When i use Directory.GetFile(directory, "*.fmt") i returns all the filenames instead of just the .fmt files. Is there a function...more >>

Re: Graphics.PageUnit problem... (spelling checked.. ;-(
Posted by Lloyd Dupont at 5/10/2006 2:19:32 PM
I have to do some WYSIWIG rendering. Because I need to know exactly where is what and have to have the same output on both the screen and the printer I decided to change my Page unit to Inches. As I was testing my first thought was to draw red outline of some relevant rectangle. And here ...more >>

Customization In Web Application
Posted by Andrew Hayes at 5/10/2006 2:13:22 PM
All, Using VS 2005, C#.NET, SQL Server 2005, W2K3. We are developing a web application that would be shared by numerous customers for information management. Some of those customers want variations on the usual form layout. For example, we have a form where the user can enter their depe...more >>

Graphics.PageUnit problem...
Posted by Lloyd Dupont at 5/10/2006 2:00:05 PM
I have to do some WYSIWIG rendering. Bacause I need exactly where is what and have the same output on the printer I decided to change my Page unit to Inch. As I was testing my first though was to draw read outline of some relevant rectangle. And here I had my 1st encouter with those infamou...more >>

Running an exe from another application
Posted by Harry Keck at 5/10/2006 1:38:02 PM
I need to start execution of an exe in a command line fashion from a Windows application. Is there a way to do this using the framework, or do I have to instantiate the WScript.Shell somehow? ...more >>

2.0 Configuration. How do I abstract usage of WebConfigurationManager vs ConfigurationManager?
Posted by costasz NO[at]SPAM gmail.com at 5/10/2006 12:35:18 PM
Why did MSFT feel they had to separate the two? What if I am writing a class in an assembly that could be used by either an ASP.Net app or a Winforms app? I don't want to have each look for the data in different ways. I want to abstract that. Couldn't they have used a factory that returns an ICo...more >>

Windows groups
Posted by zolof at 5/10/2006 10:53:01 AM
Does anyone know how I can get the list of all available groups in Windows XP ?...more >>

Serialize List of objects as XML
Posted by Jarod at 5/10/2006 9:04:27 AM
Hello, I have a list of objects that I want to serialize as XML and save it as user setting. The objects are of type of the following class. [Serializable] public class SourceFolder { public SourceFolder(string path, bool controlled, bool includesSub) { ...more >>

Binding HttpListener to a free port
Posted by bughunter NO[at]SPAM hotmail.com at 5/10/2006 8:43:40 AM
Hi, When providing the HttpListener with a list of 'prefixes' to respond to there doesn't appear to be an option for binding to an arbitrary freely available port, and if there is then there doesn't seem to be a mechanism for discovering that port by the calling code. I'm happy to be proven...more >>

TransparencyKey vb.net 2005 on form works only on developing machine.
Posted by ilaygur NO[at]SPAM gmail.com at 5/10/2006 8:31:29 AM
Hi all, Setting the transparency key on vb.net 2005 form (I randomly chose the color yellow), works great on my machine, meaning i set the form's background color to yellow as well, and it becomes transperent. Deploying my app on 3 other machines, i fould out the yellow background shows on thei...more >>

Getting a file's ContentType
Posted by Nathan Sokalski at 5/10/2006 1:45:36 AM
I would like to be able to get the ContentType of a file programmatically (for example, I want *.txt files to return "text/plain"). I could not find a way to do this using VB.NET's classes, but I am also somewhat new to using the System.IO namespace for anything other than text files and the p...more >>

TextRenderer problem
Posted by Xafier at 5/10/2006 1:39:28 AM
Hi, I'm creating a control that overrides ListView and so I'm working on redrawing everything myself with some changes here and there... But I'm having a problem with drawing the text inside the rectangle on LargeIcon mode... I thought I'd finally discovered the solution with TextRenderer b...more >>

windows media player
Posted by Aswin Coolsaet at 5/9/2006 8:12:27 PM
Hi, How can I (remotly) control my windows media player. like the logitech software. like: windows media player is playing a list of songs. run my exe, and the next song is player. I can't find some information about it. thank you ...more >>

??? MethodInfo Props are Wrong (or Docs are Wrong) ???
Posted by Alan Foxmore at 5/9/2006 7:13:25 PM
Hi everyone, I hope you can comment on this -- I'm pretty darned sure that either some of the MethodInfo properties are wrong or the Microsoft documentation is wrong. Please have a look at the program below. It attempts to print out the accessibility (i.e., "visibility") of each method i...more >>

Effort/Time in migrating 1.1 to 2.0
Posted by Kyong Kwak at 5/9/2006 6:31:50 PM
Hi, wanted to know what people have experienced in terms of effort+time in migrating your apps to 2.0 from 1.1? Are there any case studies on msdn? I couldn't find any.. how well did it go with you all? days? weeks? months? we have a mid sized external app using mcms, a small asp.net a...more >>

Regular epressions with .net forward slash "/" character
Posted by Lorne Bonnell at 5/9/2006 5:37:20 PM
Afternoon all, Can somone help with this regular expression problem VB sample below Dim RegexObj As Regex = New Regex("") RegexObj.IsMatch( "<start field=fred col=2 />", "\x2f" ) Returns false with no match. This is a simplified example trying to end my capture onthe "/>" but the forw...more >>

PadLeft – What difference it make if the argument to this function carries an integer whose value is less than the length of the string object
Posted by Reny at 5/9/2006 4:45:00 PM
Hi, I came across a doubt on the String.PadLeft Method.The doubt is this -- What's difference it make if the argument to this function carries an integer whose value is less than the length of the string object For example in the sample code below(VB.NET) I could not see any difference ...more >>

Script for building/debugging services
Posted by arthernan at 5/9/2006 2:33:16 PM
I have found services debugging to be a big pain. One reason is because the play button in VS is worthless for this kind of application. So I wrote this scripts that will execute for an app whose name ends on Service, it will lookup the debug directory, Stop the service copy the executables an...more >>

problem with COM Object Wrapper or with Remoting... which one?
Posted by ThunderMusic at 5/9/2006 11:07:42 AM
Hi, I have a web project in VS 2005 and I'm using a wrapper to work with a COM object. this object must work in a remoting environment. So we've done a simple console app to give us the access to the remote object. In our test web app, everything works fine... if we copy paste all the cod...more >>

tool window & shortcut keys
Posted by Lloyd Dupont at 5/9/2006 10:42:30 AM
In my application I have some tool window. some of these tool window do accept key input. yet I would like key shortcut (CTRL+S, F2, etc...) to be handled by the main menus of my main window. how could I achieve somethink like that? ...more >>

Create System.Console from a winforms app
Posted by Michael D. Ober at 5/9/2006 9:26:29 AM
Is there a way to create a System.Console from code. I periodically have a WinForms app that needs to open a console window for progress tracking. Thanks, Mike Ober. ...more >>

GAC - What's using my assembly
Posted by DesperateDan at 5/9/2006 7:53:42 AM
How can I determine what is consuming a particular assembly that's in the GAC. (There's an assembly of ours that's not letting me delete it from the GAC. It's COM exposed and so could be used be either COM or .NET) ...more >>

DateTime Ticks/Milliseconds Question (possibly Thread.Sleep () related - ?)
Posted by Mr Bounce at 5/9/2006 6:54:54 AM
Hi, Slightly dim question, possibly. I dunno. When i run the following c#: for (int i = 0; i < 100; i++) { System.Diagnostics.Debug.WriteLine (DateTime.Now.Millisecond.ToString ()); System.Threading.Thread.Sleep (1); } I would expect the output to increment by at least 1 ...more >>

Capture keytrokes before AxWebBrowser
Posted by Martin Maat at 5/8/2006 7:52:31 PM
Hi, Is there an elegant way to capture/preview keystrokes in a Windows.Forms application that has an AxWebBrowser control which is focused? The browser seems to swallow anything while it has focus. I also have a (related?) problem with back and forward buttons on the mouse. They work jus...more >>

WebRequest: only get info about file, not download the file?
Posted by Roland_Müller at 5/8/2006 5:32:42 PM
Hello Group, i want to get the file size of some files located on a webserver, therefore i create a WebRequest with the URI of the file and then a WebResponse on the WebRequest to get the ContentLength: WebRequest webRequest = HttpWebRequest.Create(fileUri); webRequest.Method = "HEAD"; ...more >>

Outlook Add In is not shown for 1 user...
Posted by Pieter Coucke at 5/8/2006 4:49:11 PM
Hi, I developped some time ago an Outlook Add In (VB.NET 2005) that worked fine during several months with all the users. Suddenly, 2 weeks ago it stopped working for one of the users. The administrator desinstalled it and installed it again, but that didn't work. i did the same, desinst...more >>

Fat client - Server: Which technology?
Posted by Pieter Coucke at 5/8/2006 3:04:16 PM
Hi, Which technology's are used to make Windows Forms (Fat) Client - Server application with VB.NET (2.0)? - XML Webservices, Remoting, DCOM, ... are there others? - Which are used the most and why? - Pro's and cons? Any help or usefull links would be really appreciated! thanks a lot i...more >>

SmtpMail.Send problem (bad)
Posted by Chaz at 5/8/2006 1:55:02 PM
I have an asp.net (1.1) that "as" sending emails okay. Lately it is trowing the following exception: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UnauthorizedAccessExce...more >>

Using Assembly.Load(byte[]) to load multiple versions of dll, and AppDomain.AssemblyResolve
Posted by Stephen Ahn at 5/8/2006 1:54:21 PM
Using dotnet 1.1, sp1, C#. I have assembly "A", which references assembly "B". Neither of these assemblies are stongly named. I have an application which uses a plug in architecture, to load assembly "A" using Assembly.Load(byte[]). The app (actually a web service) needs to be able to ha...more >>

Check for Common character sequence ( I will pay)?
Posted by C at 5/8/2006 11:13:01 AM
Hi, Anyone know how I can do this? I will pay anyone via PayPal who can do this for me. Let me know? Write a function in C# that takes in an array of ASCII strings and finds all common character sequences. A common character sequence is defined as 3 or more adjacent characters that ap...more >>

C Api Access
Posted by DEWright_CA NO[at]SPAM online.nospam at 5/8/2006 10:15:02 AM
Ok, I have a app that has a C API, the API is very poorly documented and I am trying to figure out how to expose the API so I can see what is there. Suggestions? -- D @ premierdata...more >>

Microsoft .NET Framework Primer for the Visual Basic Developer
Posted by Zamdrist at 5/8/2006 9:30:39 AM
I find it mildly amusing this following paragraph from a tutorial MS wrote on an introduction to VB.Net for VB6 developers. It's written in such a manner as to sound as the VS does something for you (auto-generates) that previous versions did not. As if you had to write the Form class by hand in...more >>

FTP Listing Files Problem
Posted by m00nm0nkey at 5/8/2006 4:21:01 AM
Hello. I am starting to experiment with the FTP functionality within the .NET framework, but am having problems producing a list of files. This is my function which returns files in a string array: Public Function GetFileList(ByVal sMask As String) As String() Dim cSocket As Socket ...more >>

Express Editions free... until...
Posted by Bruno Alexandre at 5/8/2006 2:00:02 AM
"The Express Editions of Visual Studio are free forever if downloaded before November 6, 2006..." extract from: http://msdn.microsoft.com/coding4fun/inthebox/trickedoutapp/default.aspx so, for all of you that did not downloaded the free develop tools, do so... you have until November 6...more >>


DevelopmentNow Blog