how would i put the contents of a webpage into a string?
it would be the same thing as hitting ctrl+A and copying and pasting it.
is there a way to do this programmatically without 'sendkeys' ?
i do not want to look at the html source at all, i just want to copy the text on the site
...
I have a legacy delphi program and want to add some content implemented with WPF. So I encapsulate the WPF control with a .NET/ActiveX interop technology. That means something like:
[ComRegisterFunction()]
public static void RegisterClass(string key);
[ComUnregisterFunction()]
public static void UnregisterClass(string key);
The active...
I have a msbuild task that builds my solution and I am migrating it from .net 3.5 to 4.0. I have some dependent DLLs that have Local Copy set to true. The 4.0 version of msbuild is not only copying the dependent DLL (which I want), it is also copying all dependent assemblies of that DLL from the 32 bit version of the GAC to my bin. Not o...
I want to secure some applications for some people without teaching them how to add an encryption or authentication, so I thought about mocking up a simple application that launches another application if some password or authentication function returns true. How would I wrap the application so that only the launcher would be able to acc...
Hi, I'm writing a plugin (dll file) using /clr and trying to implement speech recognition using .NET.
But when I run it, I got a runtime error saying "Value does not fall within expected range", what does the message mean?
public ref class Dialog : public System::Windows::Forms::Form
{
public: SpeechRecognitionEngine^ sre...
I want to know the in-memory representation of .NET constructs such as "interface", "class", "struct", etc. There's an excellent book for C++ object model - <Inside the C++ Object Model> by Stanley. Lippman, I want a similar book for .NET and C#.
I have read some books about .NET, but they are mostly about the logical usage of .NET. No...
In c#, Given the following code:
public class Person
{
public int PersonID { get; set; }
public int Age { get; set; }
public string Name { get; set; }
}
and
List<Person> people = new List<Person>();
for (int i = 0; i != 15; i++)
{
Person p = new Person();
p.PersonID = i;
p.Age = i * 12...
int n = string.numDifferences("noob", "newb"); // 2
??
...
Is anyone know how to generate media foundation TypeLibrary which will then be imported as COM in managed code ?
I didn't found any dll or tlb file related to media foundation which i can import in my C#.Net application.
...
Enterprise Service Bus (ESB), .NET Service Bus, NServiceBus, RhinoServiceBus, MassTransit and so on.
I'm trying to understand what each of these technologies have in common or not in common.
I attended Juval Löwy's presentation on the .NET Service Bus earlier today and he stated that the .NET Service Bus could be used as a poor man's v...
Say I have a web site with a master page and an aspx page.
In my ASPX page, I am pointing to my masterpage with the MasterType tag.
<%@ MasterType VirtualPath="~/mymasterpage.master" %>
Say, I've defined a label in the markup of my master page.
If you look at the designer code, this label should be something like this.
protected gl...
I'm trying to understand what the correct approach for a constructor that accepts a Byte Array with regard to how it stores it's data (specifically with PhysicalAddress)
I have an array of 6 bytes (theAddress) that is constructed once.
I have a source array of 18bytes (theAddresses) that is loaded from a TCP Connection.
I then copy th...
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: mapping
Source Error:
Line 45: #endregion
Li...
OK, this is going to be my beating a dying horse for the 3rd time.
However, this question is different from my earlier two about closures/delegates, which asks about plans for delegates and what are the projected specs and implementation for closures.
This question is about - why is the Java community struggling to define 3 different t...
I am developing a WPF client program for some websites. It uses XML database. I am new to XML. Would someone please explain how to create,append(Most important),edit,read&encrypt XML file. It is a big question,i know . But, it is urgent.Have to complete the work ASAP. Searched in the internet, not getting correct info.
...
Hi,
I'm looking for a tool that allows me to analyze the compilation of a VS Solution (about 30 VS projects inside).
I would like to know after the global solution compilation, which projets fail and forward errors to developers.
Of course, I could analyze the compilation report... but I'm pretty sure that great tools are available !
...
I am using remoting over TCP for a prototype distributed server application where I want to have varying multiple services exposed from each remoting server process.
In some cases I want the services running from the same process but I don't want whatever is using the service to care about that.
I am wondering is it more efficient to h...
What is the usage of Local Database Cache project type in Visual Studio?
...
hi (excuse me about my english)
I'm a dotnet propgrammer. recently i wrote a client-server application that use system.net.sockets for connecting and use .net remoting for comunications.
when number of client increased(e. up to 100) sometimes server application freezed and after several minuts comebacks. i use sql2005 with pooling and t...
I am using P/Invoke methods in my .NET application. As the functions are C++ functions; each one has return type like int, intptr or any struct. The return type is enough to tell me if the function was successful or not. Do I still need to catch generic or COM exception in this case?
...