Home All Groups Group Topic Archive Search About

.NET Framework

microsoft.public.dotnet.framework
Score Property reflection
Saso - 4 Nov 2006 11:25 AM - 3 messages
Hello! I was wondering if there is a some way to mark a class property, without modifiers use. By using reflection, I know how to get all properties that returns int, but how to get only specific int properties? See example below: ...
Score Permissions to use installutil.exe
David Samson - 4 Nov 2006 5:30 AM - 4 messages
I need to give a local account on the windows server permission to use installutil.exe to uninstall/install .NET windows services without giving the account Administrative access.  Any ideas? ...
Score writing to the 32-bit registry from a 64-bit application (that darn WOW6432Node)
Chris Mullins - 3 Nov 2006 11:14 PM - 2 messages
I need to write to the 32-bit registry, and need to do so from a 64-bit MSI. It never occurred to me that this would be difficult... I have an application that installs some 64-bit binaries for development use ...
Score Why Assembly.Load get returns wrong assembly.
Vlad Hrybok - 3 Nov 2006 7:16 PM - 13 messages
Background: I created a windows service with .NET 1.1 that is a shell that simply loads assemblies and then loads a certain type there and calls a method. Those dynamically loaded assmeblies meant to be upgardable. I wrote a code that ...
Score How many people have .NET 2.0?
Nathan Funk - 3 Nov 2006 7:05 PM - 9 messages
I develop end-user apps and would like to access stats about how many people have .NET 2.0 installed on their computers. My new app will rely on the 2.0 framework, but now I'm second-guessing myself as to whether this was a wise choice. With the 20MB framework ...
Score x86 vs x64
param - 3 Nov 2006 5:38 PM - 11 messages
Hi all, We are considering migrating some of our production web and application servers to 64-bit platform. My question is do I need to re-compile my code on a x64 machine running a x64 version of Windows and x64 version of .net? ...
Score Accessing Shared Properties of a Parent Windows App from Class Lib
Jon Ebersole - 3 Nov 2006 5:08 PM - 4 messages
I have a windows app that instantiates custom objects from a class library many times over and over.  Each object interacts with the database and must create, open, and close the database connections as needed.  As you can ...
Score ListView won't show items on x64?
Alex Clark - 3 Nov 2006 3:58 PM - 3 messages
Hi All, I've found that the ListView control won't display items when my program is running in x64 mode.  I've tried this on both a Pentium D running XP Pro x64 edition and Windows Server 2003 R2 x64 on a Core 2 Duo.  Same results on ...
Score PowerPoint Narration
Calwest - 3 Nov 2006 3:01 PM - 2 messages
What is the simplest easiest way of adding narration (voice) to a PowerPoint Presentation? Thanks ...
Score Detect if an Excel file is open
Jakob Lithner - 3 Nov 2006 9:18 AM - 3 messages
How can I detect if an Excel file is open? Is it possible to use the Excel "Open Exclusive mechanism"? Would it help if I can assume they are running on the same machine and only opened by Excel Application? ...
Score .NET version confusion
Budhi Saputra Prasetya - 3 Nov 2006 5:23 AM - 4 messages
Hi All, I have 1.1 and 2.0 installed on my machine. I also have application that is using 1.1. When I run the application on my computer, which version of the ..NET Framework that it will use? Is there a way to check it? ...
Score Prevent Inherited Property From Persisting
mikesnoise - 3 Nov 2006 3:38 AM - 3 messages
I have a control called FolderTreeView that derives from System.Windows.Forms.TreeView and automatically populates itself with TreeNodes representing the Windows file system. Here's the behavior I'm seeing: 1) Add the FolderTreeView control to my Form in the designer. ...
Score IPAddress class in Framework 2.0
Jason - 2 Nov 2006 8:26 PM - 5 messages
All, Please note the following: IPAddress ip = IPAddress.Parse(“10.1.176.10”); Works fine, as expected, as does: bool good = IPAddress.TryParse(“10.1.176.10”); Both return the proper result. HOWEVER… IPAddress ip = IPAddress.Parse(“10.1.176”); ...
Score Iterate XML Document and Add Attirbute?
xeroxero - 2 Nov 2006 4:28 PM - 3 messages
I have an XML document with this as a sample fragment: <?xml version="1.0" encoding="utf-16"?> <directory path="c:\\test\\directory"> <file name="fileA.doc" /> <file name="fileB.txt" /> </directory> ...
Score FileWatcher Multiple Unrelated Directories
Jon Turlington - 2 Nov 2006 4:10 PM - 2 messages
I have a Windows Service that I use to watch for certain files of certain sizes being created in directories. When the file size is of my specified size a SQL connection is made to determine if any action should be taken. The problem is that this puts an extremely high load ...
Score Removing ASP.NET Development Server Icon in notification area
jpero09 - 2 Nov 2006 3:43 PM - 2 messages
Does anyone know of a way to disable the "ASP.NET Development Server" icon that appears in the notification area of the task bar when launching an app in 2.0? Or atleast the balloon tip? ...
Score showing a document to the user which is in IO.filestream object
sameer - 2 Nov 2006 3:03 PM - 3 messages
HI all, application details: --------------------- visual studio 2003 ..net 1.1, vb.net, winforms Application read a document ( could be word, pdf, tiff, jpeg etc) from the local filesystem into to the system.io.filestream object and now i want to ...
Score Question about ReaderWriterLock
Nadav Popplewell - 2 Nov 2006 12:26 PM - 5 messages
Hi Everybody, I've got a question about ReaderWriterLock: Let's say I want to write a function that will update an object under write lock both if the calling thread has a reader lock or not. That Is, I want a function Write() that will work properly in both these ...
Score Socket.BeginReceive problem
Cecil Sheng - 2 Nov 2006 7:02 AM - 3 messages
Hi, I use socket in my program and I have a problem on BeginRecieve. The code is like this: connection.Socket.BeginReceive(Buffer, 0, Buffer.Length, SocketFlags.None, new AsyncCallback(RecieveData), connection); I test the code with telnet on win32, netcat on freebsd, both works fine. ...
Score How to activate an existing program
Bob Altman - 2 Nov 2006 12:12 AM - 4 messages
Hi all, I need to activate a running Windows application from my .Net application. (I want to display the application's main form if it's minimized and try to give it focus.)  For example:   Dim procs() as Process = Process.GetProcessesByName("SomeApp") ...
Score SMTPClient Message.Send Error - please help!!!
Sammy - 1 Nov 2006 10:31 PM - 6 messages
I am using the following code on a company that hosts our web site. I have noticed lately that their mail server/smtp is unavailable several times a minute for a second or two. This is causing my script to fail when it calls ...
Score Simple "Not" Match?
xeroxero - 1 Nov 2006 9:44 PM - 5 messages
I have code that recursively traverses a directory and writes to a file. I would like to ignore any directory or file that matches a pattern that is in a string array ( '*.obj' , 'doc*.*' ). Can anyone show an example of how to do that? ...
Score xml serialization of List<byte>
lee.crabtree - 1 Nov 2006 8:39 PM - 2 messages
I'm trying to serialize a generic List of bytes, as in List<byte>.  Out of the box, it works, but it winds up like this: .... <LineData>0</LineData> <LineData>0</LineData> ...
Score ArgumentExceptionIsUnHandled
Laurence - 1 Nov 2006 7:11 PM - 2 messages
In VS.2005 Using VB.NET on a windows XP (sp2) fully patched. I have a project that has a Microsoft DataGridView on it. Occasionally, when I click on a column header, I get: ArgumentExceptionIsUnHandled At least one object must implement IComparable ...
Score trouble with Serial Port class vs Hyperterminal
Bill - 1 Nov 2006 6:18 PM - 7 messages
I am using VS2005 and VB and the .Net 2 Serial Port class at 9600 8 N 1 I have been using some example code to connect to another device over a serial port and issue text commands and receive feedback ...
Score virus scan uploaded document.
sameer - 1 Nov 2006 5:29 PM - 3 messages
Application details : winforms over webservice or webforms with Vb.net vusual studio 2003 sql sever 2000 I am working on a document managment module of the application, all the user does is upload a document to the server which is stored in the database, ...
Score Namespace and Project reference
Anandhi - 1 Nov 2006 3:39 PM - 2 messages
I have a class A in my project. I also have a project reference projectB. The project and classA have method Add(). I have added the classA in my code by "using" in my webform. Will there be a compiler error, If I refer to add() of ...
Score Framework and Window 2003
Jamal - 1 Nov 2006 2:31 PM - 5 messages
All, We have a production sever that has window 2003 and currently run ASP applications. I would like to run ASP.NET 2.0 along side ASP. It appears that the framework 1.1 is already installed but I'm not sure how to verify. ...
Score System.Net.Mail.MailAddress.To
Amelia - 1 Nov 2006 12:51 PM - 3 messages
In the old System.Web.Mail, you could use a string of delimited email address (say stored in a config file) and bulk email setting it to the TO property. eg "pers***@whereever.com,pers***@whereever.com" The new System.Net.Mail.MailAddress.To appears to allow the string ok (we ...
Score Behaviour of streams in and out of scope
Kevin - 1 Nov 2006 11:05 AM - 2 messages
Hi... I was wondering what happens to streams when they're passed between objects, because my understanding of them is that they're effectively a pointer to a data structure (or a location within it), rather than a copy of the structure ...
Score Listening on USB port
mikemeamail - 1 Nov 2006 7:10 AM - 2 messages
Hi all, Could anybody help me, to know how can we in .Net : - Detect when a USB key is plugged to a computer - Know which account is currently accessing the USB drive I believe i need to create a windows service and propably use remoting. ...
Score Explicitly close DataReader if I close the underlying connection?"
MarkusJNZ - 31 Oct 2006 11:27 PM - 3 messages
Hi, I have a DataReader which I think may be the cause of connections remaining open to a MSSQL database. basically the pseudo code is below ====== SqlConnection conn = new SqlConnection("connectionString"); SqlCommand cmd = new SqlCommand("Select * from blah",conn); conn.Open(); ...
Score PrintPreviewControl
Richard MSL - 31 Oct 2006 11:12 PM - 4 messages
I am using a PrintPreviewControl to show report output. I would like there to be a way for the user to select a portion of the output, then right click and choose an option which would trigger an event in my program. Is there a way ...
Score How to get value of IntPtr
Notre Poubelle - 31 Oct 2006 9:41 PM - 3 messages
Hello, I'm using the IEnumMoniker.Next method, based on an IEnumMoniker reference I've obtained by looking up values in the running object table.  The third parameter to IEnumMoniker.Next is an IntPtr.  It's supposed to return the ...
Score VS 2005 TS Opens a form in changed state?!
Leon_Amirreza - 31 Oct 2006 6:56 PM - 2 messages
When I double click the form icon in the solution Explorer It Opens the form with an * in its name tab (and indicates that the form has been changed since last save action) HUH ?!?!? I hadnt had even a chance to change somthing ...
Score Unexpected behavior PrincipalPermissionAttribute
vecozo@online.nospam - 31 Oct 2006 5:34 PM - 3 messages
Hello, We have encountered some obscure and unexpected behavior of PrincipalPermissionAttribute, if applied to both a class as well as a method in this class. The class permission seems to form an inclusive or with the method permission. We have a different scenario ourselves, but we will take an example of MS:  ...
Score Paypal & asp.net
Blasting Cap - 31 Oct 2006 3:48 PM - 4 messages
I have an application that needs to use Paypal to verify the legitimacy of a credit card, not the actual charge. The only thing I can find thru Paypal's SDK is stuff that's a COM add-in. Is there a web service that anyone knows of that'll do this process? ...
Score Converting .Net1.1 app to .Net2.0 app resulted in loss of CLR 2.0 and more
Marcus - 31 Oct 2006 2:29 PM - 4 messages
Hi, I converted my .Net1.1 application (written in VS2003) to a .Net2.0 application. I let VS2005 do the job as it suggested when trying to load my VS2003 project in VS2005. I then included the output exe from this project into my VS2005 setup ...
Score Messagebox not getting displayed properly.
trialproduct2004 - 31 Oct 2006 6:32 AM - 2 messages
Hi all, I have installed dotnet on my Pc. I created one windows application in which i am displaying messagebox. when i run my application what i found is contents are not getting displayed in messagebox. Can anyone tell me why this is happening. ...
Score what is best way to talk to https webpages within .net? any good librarys for talking to https websi
Daniel - 30 Oct 2006 11:45 PM - 2 messages
what is best way to talk to https webpages within .net? any good librarys for talking to https websites? ...
Score when CurrentPrincipal is set in async call back, NET 2.0 loses CurrentPrincipal
kochobay - 30 Oct 2006 10:04 PM - 5 messages
i use a form to login the system. After database checks System.Threading.Thread.CurrentPrincipal is being set in async call back. During database chekcs, user interface displays a progress bar. And this works fine with .NET 1.1. But i newly ported application to NET 2.0 (Visual Studio 2005) and ...
Score Converting To .NET 2.0 Changes 'UserAppDataPath' Value...?
A_StClaire_ - 30 Oct 2006 7:31 PM - 2 messages
hi all, in my Outlook add-in, I was using System.Windows.Forms.Application.UserAppDataPath to get the user roaming directory. however since moving from Visual Studio 2003 to 2005, I noticed the value returned by this property changed.  namely, it went from ...
Score Version Tolerant Serialization -- backwards compatible?
gfunked - 30 Oct 2006 7:06 PM - 2 messages
Once the hotfix for Version Tolerant Serialization is applied to a 1.1 client, can that patched client still serialize to/deserialize from an unpatched 1.1 server, and vice versa? ...
Score Known File-types Previewer
Andrea Anastasescu - 30 Oct 2006 2:52 PM - 3 messages
Hi there, I have to integrate a previewer into a desktop application, that retains some links to resources (local files, internet-links, personal mails - this is not of certain concern). This window should be able to give a preview of the document: be it an ...
Score OT-develing on several machines
Jon Doe - 30 Oct 2006 2:44 PM - 3 messages
Hi Sorry for this OT post. What is the norm when you have to use 2 or more machines when you develop? I use a workstation as my main developer machines, but quite often I need to use my laptop instead for variouse reasons. How does people tend to handle ...
Score How to compile Web Reference project using NAnt
Anbu - 30 Oct 2006 7:12 AM - 2 messages
Hi, I need to compile a windows applications with Web References using NAnt scripts? Any suggestions? TIA ...
Score Is it possible to extend system search?
Lloyd Dupont - 30 Oct 2006 6:18 AM - 3 messages
I have an application with produce document/file with a lot of textual information into it (in a TAR-GZ format). This application is for the general public (as opposed to corporate, so I cannot assume too much on what's on my user's computer, except we require XP ...
Score Use dll created in dotnet using them from vb6
Raul - 29 Oct 2006 12:35 PM - 3 messages
Dll created from dotnet, like the calls can be made from VB 6. Greetings and thank you ...
Score Two versions of .Net on the same server
DavidE - 29 Oct 2006 10:03 AM - 7 messages
Hi, I had version 1.1 on the production server and then I installed version 2.0 so I have both installed there. I created a web application using vs 2005 and I move it to the server. When I try to browse an asp.net page I get an error: ...
Score Getting the physical path of network drive.
rony_16 - 29 Oct 2006 10:00 AM - 2 messages
Hi , I am writing a program that part of than program if to add a new network drive to the user. The adding part i know how to do (by win api "WNetAddConnection2A") but i want to check first if this path (network path) exist of his ...
Score Adding Attachement to MailMessage leaves attached file open
Clay - 29 Oct 2006 12:51 AM - 2 messages
I have a simple program that picks up a file from a folder and emails it to an account on our exchange server using SMTP.  Below is a copy of my code for attaching the file to the message and sending it.  The email message gets ...
Next » 2 3 4 5 6 7 8 9 10