|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
.NET Frameworkmicrosoft.public.dotnet.framework
Regarding SqlRowUpdateEventHandler
Hyderabadi -
4 Nov 2006 7:29 PM - 2 messages
Hi, I am trying to perform concurrent updates of same record using two connections and I want to display a message box when this happens. I am using two connections : in One I hardcode the Update statement on this record and In the other I use a form to modify the record values ...
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: ...
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? ...
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 ...
How to use the new .NET 2.0 with EntLib to serialize an object into configuration???
twang090 -
3 Nov 2006 7:35 PM - 1 message
Goal: 1. The configuration files will be another file from app.config 2. I will tell .NET the format by providing a serializable object What I usually do for configuration in .NET 1.1 with Entlib 1.1 is to ...
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 ...
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 ...
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? ...
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 ...
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 ...
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 ...
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? ...
.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? ...
TreeValidationException using UISpy to walk Office Excel 2003
JasonMueller -
3 Nov 2006 4:09 AM - 1 message
I can't find a forum for WPF questions, so I'm posting here, please direct me elsewhere if need be. I am using the UISpy tool to view the hierarchy of Excel 2003 (specifically, the Chart Wizard dialog). When I try to browse the elements under the dialog ...
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. ...
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â€); ...
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> ...
Cookie expiration ignored?
SJ -
2 Nov 2006 4:20 PM - 1 message
Hi, In my website, i have a cookie that allows the user to remain logged in for upto 90days. So I'm setting the cookie expiration time to 90 days in the future from the time the user logs in. I've been testing my code and for ...
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 ...
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? ...
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 ...
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 ...
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. ...
Writing 32-bit Registry Keys (WOW6423Node) from 64-bit MSI installer
Chris Mullins -
2 Nov 2006 12:38 AM - 1 message
I have an application that installs some 64-bit binaries for development use in Visual Studio 2005. As such I want them to appear in the .Net References menu when someone attempts to "Add References" to their project. Doing this means (normally) writing to the registry key: ...
picture it express 9
lost pics -
2 Nov 2006 12:22 AM - 1 message
it lost all my new baby pictures help how do i find them theywere on removeable media in picture it library I tried to save them to another disc and they dissapered I already erased them off of my camrea ...
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") ...
weird error message when compiling solution
sameer -
1 Nov 2006 11:33 PM - 1 message
hi all, application details: visual studio 2003 winfows with vb.net crystal reports 11 No strong name for any asemblies i am having a pretty weird problem here, my solution file has got 10 projects, out of which, 7 are asembl projects, 1 is winforms, 1 is crystal ...
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 ...
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? ...
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> ...
GetModuleHandle failed with error -2147023888
Coness -
1 Nov 2006 8:03 PM - 1 message
Hi All, I am getting the following error message and don't know how to resolve it. I have a simple webform with the following codebehind: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As ...
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 ...
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 ...
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, ...
Xml serialization over network stream
Nenad Dobrilovic -
1 Nov 2006 4:03 PM - 1 message
Hi, I am trying to use xml serialization over TCP connection, but I have a problem... I created classes using xsd.exe, then I managed to establish a connection among two clients. This is the code which is executing on the client side: ...
Problem Connecting to Servlet
Arti -
1 Nov 2006 3:51 PM - 1 message
Hi, I have a .Net application which has to communicate to Servlet on TomCat Server. I am able to send the request but it throws an exception while retrieving the response(Exception:The underlying connection was closed: An unexpected error occurred on ...
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 ...
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. ...
MSI WindowsInstaller.Installer List of products
rony -
1 Nov 2006 2:15 PM - 1 message
Hi, I am using the following code : WindowsInstaller.Installer i = null; Type oType = Type.GetTypeFromProgID("WindowsInstaller.Installer"); if (oType != null) { i = (WindowsInstaller.Installer)Activator.CreateInstance(oType); } WindowsInstaller.StringList s = i.Products; foreach (string s1 in s) ...
MSI WindowsInstaller.Installer List of products
rony -
1 Nov 2006 2:14 PM - 1 message
Hi, I am using the following code : WindowsInstaller.Installer i = null; Type oType = Type.GetTypeFromProgID("WindowsInstaller.Installer"); if (oType != null) { i = (WindowsInstaller.Installer)Activator.CreateInstance(oType); } WindowsInstaller.StringList s = i.Products; foreach (string s1 in s) ...
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 ...
DataGridView, taking the user back to the last selected row
scarleton@gmail.com -
1 Nov 2006 11:28 AM - 1 message
I have a DataGridView control that is set up as FullRowSelect & MultiSelect. Each line in the grid is part of a group of lines. There are times when the user should not be aloud to click on a line of ...
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 ...
Databound combo text property always blank after binding.
Greg -
1 Nov 2006 10:36 AM - 1 message
I have a databound combo box that after binding the data to it, if when the text property is queried, always returns a blank string, until the user interacts with it and changes the index (from 0 to somethign else). However, immediately after the data is bound, if set the index ...
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. ...
Disable / Enable single grid cell
D_W -
1 Nov 2006 12:39 AM - 1 message
Hi I use a datatable as a datasource in my datagrid (win form). I want the user to be able to edit certain columns but not in every row. anyone have a good idea how to do this? So far I have tested to set the datasource to ...
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(); ...
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 ...
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 ...
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 ...
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: ...
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? ...
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 ...
Validation of ViewState MAC failed
Shura Bhavesh A. -
31 Oct 2006 12:44 PM - 1 message
Please help me out for the error. Complete description for the error is as follows: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same ...
Serious problem with TableLayoutPanel on localizable forms
Karel Kral -
31 Oct 2006 11:35 AM - 1 message
Hello, I have serious problem with TableLayoutPanel. The same problem is described in post from James Minns (see bellow) with the complete steps to reproduce. Is there any workaround? *************** I have come across a bug which causes big problems with the ...
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. ...
Possible to use pinvoke to call DLL built with cygwin?
Sammy Yu -
31 Oct 2006 1:25 AM - 1 message
Hi guys, I'm trying to port an application onto Windows that was originally developed for UNIX using rpc, pthreads, and AF_UNIX sockets. I have used cygwin to compile this application successfully. One of the components built is a DLL which I want to invoke from a C Sharp ...
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? ...
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 ...
WMI Not Correctly Returning List of Network Printers
le grand fromage -
30 Oct 2006 9:37 PM - 1 message
Hey, guys. Here's the setup: I am writing a program for my college to take computer inventory remotely by querying the WMI of every machine by connecting via IP address. This is working really nicely to get the Dell ...
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 ...
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? ...
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 ...
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 ...
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 ...
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 ...
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 ...
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: ...
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 ...
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 ...
|
|||||||||||||||||||||||