Home All Groups Group Topic Archive Search About

.NET Framework

microsoft.public.dotnet.framework
Score WebClient::DownloadFileAsync() Throttling
Mark Olbert - 11 Mar 2006 8:59 PM - 5 messages
I have a situation where I would like to manage how fast an http download occurs from a server (basically, the server risks crashing itself if it goes full bore). I know there's no download rate paramter for the DownloadFile() methods in WebClient. I was wondering if some other class offers ...
Score File location with Windows Services ?
Mike B - 11 Mar 2006 7:03 PM - 3 messages
Is there a way to specify where support files are located for a Windows Service? I would like to have my service write and read it's files to/from a different location than Windows\System32. I would also like to have this location changed based on the where the user ...
Score Returning application name from hWnd handle.
Paul Aspinall - 11 Mar 2006 4:47 PM - 4 messages
Hi I am trying to find the application from a hWnd handle. ie. if the hWnd is to Internet explorer, I want to try to return iexplore.exe (as per processes in Task Manager), or some other indicator that its IE. ...
Score Returning application name from hWnd handle
Paul Aspinall - 11 Mar 2006 4:44 PM - 4 messages
Hi I am trying to find the application from a hWnd handle. ie. if the hWnd is to Internet explorer, I want to try to return iexplore.exe (as per processes in Task Manager), or some other indicator that its IE. ...
Score Finding the current application which has focus.
Paul Aspinall - 11 Mar 2006 12:54 PM - 3 messages
Hi Does anyone have any code which can be used to find the current application which has focus? I want to try to retrieve the application name, or process name from the app which has current focus. Thanks ...
Score static linking
Ilya Dyoshin - 11 Mar 2006 10:35 AM - 3 messages
Hi all! Is there a possibility to statically link used .NET components into my programm... (to enable it runs on machines that do not have .NET Framework) Like static link of MFC libraries.. Thanks in advance. ...
Score Best value Help file builder
Paul Aspinall - 11 Mar 2006 9:41 AM - 5 messages
Hi I'm trying to get opinions on the best free / best value help file (CHM) compilers out there. What do you use? Thanks ...
Score Image render and save problem
Hardy Wang - 11 Mar 2006 2:15 AM - 2 messages
Hi,     I found a piece of code to add drop shadow to a photo like below, after I save the image, it is actually a BMP file even though I specify a JPG file extension (see [link]). If ...
Score Large object heap and OutOfMemory Exception
ermonnezzaro - 10 Mar 2006 9:28 PM - 5 messages
hello there, I have developped a windows services in vb.net (framework 1.1 sp1). I read PDF files stored in a database and put them in an arraylist to create a unique document at the end of the loop. ...
Score .net, asp, dcom, sms rad framework...
g - 10 Mar 2006 5:27 PM - 3 messages
we are evaluating CRM packages and are looking for information on the differences/simliarities, pros and cons of these architectures used by various CRM Vendors. We have been searching for more information online and have not really found any comparisons. ...
Score Two different config file schemas
egottwald - 10 Mar 2006 5:15 PM - 3 messages
Does anyone know what the functions of the two config file schema definitions at:    [1] [link] and:    [2] [link](VS.80).aspx ...
Score Single source code to compile over .NET 1.0, 1.1, 2.0 and CF
Vipul Pathak - 10 Mar 2006 2:10 PM - 3 messages
Hi everyone, I have a .NET 1.1 application ready to be ported on .NET 2.0. With some of the features made obsolete in 2.0 and the new recomended methods are not available in .NET 1.1, It leaved me with a question in mind: ...
Score Extending WebBrowser using WebBrowserSite won't call methods - sample code?
DavidB - 10 Mar 2006 11:11 AM - 14 messages
Trying to extend a 2.0 WebBrowser control using WebBrowserSite as per docs. Tried implementing IDocHostUIHandler, IDocHostUIHandler2, IInternetSecuritymanager, IServiceProvider. The only methods which get called (so far) are IDocHostUIHandler2.GetOverrideKeyPath() and IServiceProvider.QueryService(). What do I have to do to get the others to be called? ...
Score Structures vs. Classes
thomasfarrow - 10 Mar 2006 9:04 AM - 10 messages
At work, our development team has a development standards document that insists Structures should never be used. I'm looking to change this standard but need a suitable argument in order to make the change. I know that Structures are value types, sit on the stack, and are ...
Score A nagging Regex question
Jim Parsells - 10 Mar 2006 5:29 AM - 8 messages
Given some text that looks like: random Text Key 1.00 More random Text Item more random text = "Wanted1", "More random Text" even more random Text EndItem Item more random text = "Wanted2", "Quoted Random Text" more Random Text even more random Text ...
Score .NET 2.0 and Windows Service
Mike B - 10 Mar 2006 12:28 AM - 7 messages
The following error occurs on trying to start a Windows Service that is based on a C# application I am writing: [SC] StartService FAILED 1053: The service did not respond to the start or control request in a timely fashion. ...
Score Key Press Event
Charles A. Lackman - 9 Mar 2006 11:59 PM - 2 messages
Hello, I am trying to create an application that captures the KeyPress Events that are happening anywhere on the OS (In any window that has focus).  I have a windows form that is maximized and set to transparent.  I have written code ...
Score Configuration dependent resource?
Juan Dent - 9 Mar 2006 8:33 PM - 2 messages
Hi, I need to have a string's value depend on the configuration of the assembly. Is this possible? Any ideas? ...
Score KB815131 "BUG" never fixed - Web Services and Custom Objects
eric.olstad@gmail.com - 9 Mar 2006 8:12 PM - 5 messages
Check out this knowledge base article: [link] Quote from the article: "Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article." I can confirm that this bug does indeed exist, and I can also confirm ...
Score Using CSC.exe
gbagshaw - 9 Mar 2006 7:36 PM - 3 messages
Hi All, I have a project created in VS 2003 that I want to be able to compile using CSC and not the IDE. This project includes references to other assemblies as well as web references. I have been looking through the Framework SDK and cannot work out how ...
Score Structure to byte array and back
Ken Allen - 9 Mar 2006 7:17 PM - 4 messages
Is there a relatively painless method for converting the contents of a structure into a byte array and back again? I have been using Marshal to do this, but it is a pain! To get the byte array I have to Marshal.StructureToPtr() and then use Marshal.ReadByte() ...
Score Document Management Source Code In VB.Net
HGJ - 9 Mar 2006 4:24 PM - 2 messages
I am trying to develop a Document Management. I don’t like to reinvent the wheel. Can some guide me to find some source code in VB.Net to work from. Please help me Thanks Harry ...
Score Canceling Asyncronous Calls
George Nentidis - 9 Mar 2006 4:21 PM - 3 messages
Hi there all, I am starting an asyncronous call to a method passing a callback delegate. (More specifically a BeginRead in a network stream). But there are times that I wish to cancel the asynchronous call before it finishes, before the delegate is called. ...
Score 2.0 exe calling 1.1 DLL
Sriram - 9 Mar 2006 4:11 PM - 2 messages
Is there a way for me to know which version of CLR was used to load a DLL while in Debug mode? I have a 2.0 exe that calls an 1.1 dll. I am sure that when the DLL is ...
Score BinaryFormatter produce larger file after ISerializable implemente
Slava - 9 Mar 2006 10:59 AM - 4 messages
Question about serialization to binary format under .Net 1.1 using C#. I have some set of classes, some of them are marked with SerializableAttribute. I use serialization to binary files to persist some object graph between app sessions. I've made an easy change to my code: each class which is marked as ...
Score mozilla firefox
bacardi - 9 Mar 2006 10:28 AM - 3 messages
i developed one web site which is working properly in Internet explorer,but it is not coming smoothly in the mozilla firefox,the alignment of controls going very strangely. Plz help me with some ideas.... ...
Score Extending the TreeNode - - -> HELP!
Don - 9 Mar 2006 1:30 AM - 3 messages
I've created a small test class to extend the Treenode object and am having mixed success. In the Treeview's 'BeforeExpand' event I've used code from the help topic "Adding Custom Information to a TreeView or ListView Control" ...
Score Using .Net 1.1 assemblies from a .Net 2.0 App
CuriousGeorge - 9 Mar 2006 12:18 AM - 6 messages
Can anyone point me at some references that discuss the issues involved in referencing .Net 1.1 assemblies from a .Net 2.0 application? We are migrating our application to .Net 2.0 and have a number of 3rd party ...
Score FileSystemWatcher onCreated tell where it was created from?
Brandon - 8 Mar 2006 8:55 PM - 8 messages
I'm trying to get a piece of software that will monitor a location on a drive, and if something appears on the location, report what was created and, if applicable where it was copied from. For instance, monitor my D:\ ...
Score how to use CompileAssemblyFromSource to generate windows gui exe
sotto - 8 Mar 2006 7:40 PM - 2 messages
I'm trying to compile some source from within in my c# 2.0 application. all works fine, but it always generates a windows console executable instead of a windows gui app. When i take a look with ildasm at the generated exe it says ...
Score .NET 1.1 connectivity with SQL 2005 ????
BizWorld - 8 Mar 2006 7:16 PM - 6 messages
does .net 1.1 supports SQL 2005 database connectivity??? are there any issues with it??? and secondly is conversion of 1.1 application supported in 2005 for converting them to 2005 versions or you have to manually update some code in ...
Score Web service for IP address to Geographic location.
Paul Aspinall - 8 Mar 2006 4:46 PM - 3 messages
Hi Does anyone know a Web service for IP address to Geographic location resolution? Thanks P.S. I am in the UK, but I assume any good web service would be worldwide?? ...
Score Label in custom control
jcavo - 8 Mar 2006 4:33 PM - 2 messages
Hi All, I have a custom control that includes a Label as one of its properties. During design-time I am able to modify the values of various properties of the custom control, including Font, Location, .. of the Label property. ...
Score GUI's, threading and stopping the user clicking etc.
Kevin - 8 Mar 2006 4:10 PM - 3 messages
I am would like to start making my programs more responsive by introducing threading. My programs perform reasonable size db queries and builds large treeviews etc.  I know how to create thread and set them off etc, which leaves the GUI nice and responsive for the user. ...
Score ieexplorer process.start() error status
jrbareta - 8 Mar 2006 3:56 PM - 2 messages
I am using VS2003 and my windows program may try to goto a URL site. I do this by starting a browser process thread   p.start(). If the web page cannot be found or a connection to the internet is not present, the browser ...
Score Reflection: Creating an array of a type?
Axel Dahmen - 8 Mar 2006 3:31 PM - 3 messages
Hi, I'd like to create an array of a Type. How can I do that using reflection? Currently I'm using the following code to create single instances:   constr=type.GetConstructor(new Type[]{...});   newObj=constr.Invoke(new object[]{...}); ...
Score Regulare Expressions VERY SLOW in .NET 2.0
jabbera - 8 Mar 2006 3:17 PM - 2 messages
We have a .NET 1.1 application that used many regular expressions to see if small stings started with certin characters. When we ported this application to .NET 2.0 the regular expressions ran many times slower increasing our process time from 30 seconds in 1.1 to 30 minutes in ...
Score Immediate Window
kalamantina - 8 Mar 2006 2:41 PM - 3 messages
Hi everyone, can some one tell me how to enable the Immediate window at the bottom of the Studio on runtime? I had it in the VS 2003 but in VS 2005 I can't find it. Thanks. ...
Score Closing tray applications from .NET
Dmitry Duginov - 8 Mar 2006 2:34 PM - 4 messages
I'm trying to make a utility that should assist backup procedure by closing multiple applications sitting in systray. The problem I bumped into is that many of those applications do not close their main window if I try to call ...
Score Asynchronous callback method: Thread.CurrentPrincipal roles empty
Roland_Müller - 8 Mar 2006 12:24 PM - 10 messages
Hello, we load data asynchron. We have some user roles defined in Thread.CurrentPrincipal! But if we want to check using IsInRole in the callback of the delegate the roles are empty!! Is this normal? Is it another thread? How would you access the Roles of Thread.CurrentPrincipal so that it ...
Score Re: VS 2005 SP1, When
Søren M. Olesen - 8 Mar 2006 11:17 AM - 2 messages
Well, I don't know if it's my environment (but I'm willing to install it on a completely clean XP if that helps), but with all the craches and inconsistent errormessages I get, I think the product is unusable for a ...
Score truncate file
leibnizster - 7 Mar 2006 10:56 PM - 3 messages
Hello, I have a 4 GB file and I want to truncate it to, say, 3.8. Cany I do something like seek to some byte in the file and then delete all the bytes that come after that? If yes how? ...
Score Web service for IP address to Geographic location
Paul Aspinall - 7 Mar 2006 10:55 PM - 4 messages
Hi Does anyone know a Web service for IP address to Geographic location resolution? Thanks P.S. I am in the UK, but I assume any good web service would be worldwide?? ...
Score DownloadFileAsync Thread Issues
Giovanni - 7 Mar 2006 9:50 PM - 2 messages
Hi All,      Trying to encapsulate the WebClient class and DwonloadFileAsync method in a separate class/assembly (business object), so that I can download and keep track of multiple downloading files.  Is there any way to marshall the ...
Score Maintaining the Session
kempshall - 7 Mar 2006 9:09 PM - 2 messages
I have a web application that contains a Java applet that uploads and downloads files between a client and server. My application is set to timeout the current session after 30 minutes (i.e. in web.config, there's <sessionState timeout="30">). Unfortunately, if someone is ...
Score threaded modal window
anastasescu_a - 7 Mar 2006 8:08 PM - 4 messages
Hi to everybody, I have the following situation: I have a lengthy operation inside a desktop application - something that has to be executed on the main thread of the app (this is a must) .... server.callLennghtyOperation(...) .... While this operation is executing, I'd like to show a Form (practically a ...
Score Slow tcp connections with .Net2005
Matthew Woods - 7 Mar 2006 6:55 PM - 2 messages
Hi, i have some C# code that i converted from 2003 to 2005. it connects to a server using tcp protocol. when i tested the performance of data transfer between both versions the 2005 app was about 10x slower. has anyone else ...
Score Send files to Compressed (zipped) folder
Amelyan - 7 Mar 2006 4:28 PM - 3 messages
I have a bunch of files I need to put into Compressed (zipped) Folder, MyFiles.zip file, similarly to what Windows XP does when you send files to compressed zipped folder.  What is the simplest way to compress these files ...
Score Exiting from a console application
Robe - 7 Mar 2006 4:00 PM - 2 messages
Hi, I want to know how can I exit from a console application in C#. In C++ there is a function called "exit()", but I don't know if there is an equivalent in C#. Thanks, Robe. ...
Score Code analyzer
mikeb - 7 Mar 2006 3:31 PM - 3 messages
Can someone recommend a source code analyzer for VS.net?  We're looking for something to give us statistics of our source code - lines per module, etc. Also, something that will point out unused code (variables, functions, code snippets, etc). ...
Score Services question
fangorn.mail - 7 Mar 2006 3:27 PM - 4 messages
I have written a .NET service and it runs great. But my company uses domain user accounts and not local user accounts, so I logged onto a test machine with my account and installed this .NET service. I set it ...
Score Access network shares from asp .net 2.0
Mathias Erlandsson - 7 Mar 2006 2:57 PM - 3 messages
Hi! I'm developing a web based filemanager and it should of course be able to read network shares inside our company. Everything works fine when I use basic authentication. But because we are planning to implement ADFS, we will only get to use Windows authentication ...
Score how to run vb.net application in visual studio 6 pro
jaffar - 7 Mar 2006 1:18 PM - 3 messages
hai all,           I am developing a vb.net windows application , is there any possible to run the vb.net application in visual Studio 6 Pro, if possible what are the ,minimum, requirments to run the application, ...
Score serialize to string
gusse.net - 7 Mar 2006 11:45 AM - 4 messages
how can i serialize a class to a string ? i can write the data to a xml file, but i would like to write to content into a string instead without using a file... I could write it to a xml file and from there into a string, but that would ...
Score VS 2005 SP1, When
Søren M. Olesen - 7 Mar 2006 9:04 AM - 3 messages
Hi Anybody who knows when a service pack will be released for VS2005 ?? ... which hopefully will fix the 'at least 3 crash a day' problem. TIA Søren ...
Score tools to validate a WSDL document
Jimmy L - 7 Mar 2006 8:11 AM - 2 messages
any tools /editor out there to validate WSDL document is valid one? i heard alot WSDL on the web are out dated / invalid. xmlspy a good one? do i need to get xml schema / DTD for WSDL since tools like xmlspy would ...
Score VS2005, Inconsistent Error
Søren M. Olesen - 7 Mar 2006 7:59 AM - 2 messages
Hi I'm getting a bit fustrated here...... I'm trying to migrate a (rather large) project from VS2003 to VS2005, however I have some errors which comes and goes, depending on what I do..... Typically the error says something lige: ...
Score deployment
Fox - 7 Mar 2006 7:23 AM - 3 messages
Hi where from I can get good deployment guide for Visual Studio 2005 windows applications Some questions 1. When Installing application which is already installed, there is an error that I need first remove the existing, how I can just overwrite it? ...
Score file protection
Jaisabari - 7 Mar 2006 6:33 AM - 4 messages
How to protect a file with a password , means the file which created from my program should not be deleted by any means in the client system, still,if anyone tries to delete the file it should ask for a password. ...
Score Index aspx files in a restricted ( shared server) enviroment
laszlo.csabi@gmail.com - 7 Mar 2006 2:57 AM - 2 messages
Hi, Any of you guys have any experience about searching HTML files within a Asp.net webapplication using other than Microsoft Indexing Server? Unfortunatelly the site is on a shared server enviroment and I can't use Indexing server to search among the HTML files. ...
Score Non-web scraping?
William Sullivan - 6 Mar 2006 11:48 PM - 5 messages
I need to scrape text off of a form.  I can find tons of info on web page scraping, but barely anything about scraping off of winforms.  Is there a tutorial out there about scraping forms via the windows API? ...
Score WebClient
Arne Garvander - 6 Mar 2006 9:51 PM - 4 messages
Can I use the webclient class to make an HTTP POST? ...
Score Dynamic assembly version loading
John H Clark - 6 Mar 2006 9:38 PM - 3 messages
Here is the scenario I want to achieve... 1. An assembly is created "on-the-fly" using the CodeDom compiler. 2. This assembly is then used by a running application. 3. At some point in time the "on-the-fly" assembly changes and is ...
Score HTTP Request
Arne Garvander - 6 Mar 2006 9:36 PM - 5 messages
How do I make a HTTP request from a class? I am writing a component that will run outside of the webserver. This component will send xml files to another http server. I am not using SOAP. ...
Score Class Library in .Net 2.0
Arne Garvander - 6 Mar 2006 8:25 PM - 2 messages
I use a helper class library on my web site. Under asp.net 1.1 I would only install helper.dll to production. In the 2.0 framework I get a Helper.pdb and helper.xml when I compile in ...
Score Tracing and Method Names
Jay Pondy - 6 Mar 2006 7:35 PM - 4 messages
In the example below where the TraceEvent method is being called how can I get the Methods name ("MethodA") I am passing as the message dynamically? It is a real pain to have to copy the methods name repeatedly into my ...
Score Drag drop events in .Net 2.0's WebBrowser control in winforms
Vin - 6 Mar 2006 5:42 PM - 2 messages
Hi, There are no events associated with dragover, dragdrop with .Net 2.0's WebBrowser control in winforms. After much googling could figure out that I need to write my own custom webbrowser class that implements IDropTarget, IDocHostEventHandler interface or something. I have no ...
Score Program says it wants version "1.1.4322" but I seem to have it
Opinicus - 6 Mar 2006 5:21 PM - 4 messages
A program that I want to install says it needs .NET framework version 1.1.4322. According to: Directory of C:\WINDOWS\Microsoft.NET\Framework 03-Feb-06  23:10    <DIR>          v1.0.3705 ...
Score .Net 2.0 app behavior on 64-bit machine.
Sriram - 6 Mar 2006 5:01 PM - 7 messages
Hi, I have an 1.1 .net app ported to 64-bit 2.0 framework that uses a 3rd party CAD drawing DLL(natively 32-bit but runs in WOW mode on 64-bit per their documentation). There does not seem to be any improvement wrt performance (that is, the .net ...
Score Framework Version Directive
Bob - 6 Mar 2006 2:25 PM - 3 messages
Is there a version directive that I can use to determine what version I am compiling under? i.e. #if FRAME_WORK_VERSION < 2 #ENDIF ...
Score Calculating Time-off period between 2 dates
Woo Mun Foong - 6 Mar 2006 1:17 PM - 2 messages
Hi, I need a function that can return the total time off between 2 dates. I have a table call tblTimeOff which has the following fields StartTimeOff, Interval (minute), Weekend Sample data for tblTimeOff:- 10.00AM, 15, 0 - Timeoff period 10.00am to 10.15am on Weekday ...
Score ASPNET account permissions
Paul Aspinall - 6 Mar 2006 10:50 AM - 6 messages
Hi I am trying to print, server side, from my web application. I'm getting problems, as my ASPNET account is a local account, and is not trusted on the domain to print to printers (ie. does not belong to 'Users' ...
Score Restricting Inheriting Scope of a class
Rahul Arora - 6 Mar 2006 6:34 AM - 3 messages
Hi All, I am designing some class for my DataLayer. The scenario is i have three classess Class1,Class2,Class3. Class1 is base class for class2 and class3. It's a DLL project. What my problem is i want only class2 ...
Score SqlDataReader underlying data
narshe@gmail.com - 5 Mar 2006 7:49 PM - 4 messages
I'm trying to figure out how the SqlDataReader works, and this is my main question: When SqlCommand.ExecuteReader() is called, are all rows of the query returned immediately? This would mean the a call to reader.Read() would just return the first row from the underlying data. Or does a call to ...
Score only test- solo test
toñooo - 5 Mar 2006 11:24 AM - 2 messages
<HTML> <HEAD> <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control"> <TITLE></TITLE> </HEAD> <BODY> <P>&nbsp;</P> </BODY> </HTML> ...
Next » 2 3 4 5 6 7 8 9 10