HTML only WebBrowser in C#?
Any way to tell a WebBrowser in C# to show the pages in HTML only? I'm trying to make a web scraper and I don't need pictures that make the process way slower than necessary. ...
Any way to tell a WebBrowser in C# to show the pages in HTML only? I'm trying to make a web scraper and I don't need pictures that make the process way slower than necessary. ...
We are developing a .Net Windows application in C# for commercial distribution. Objective I want to add a function to allow the user to email a file to any email recipient from within the application without needing an email client on their PC, just an internet connection. The email they send needs to appear that it has come from them ...
I am new to C#, Parallel.ForEach, and .NET in general. I want to parallelize a search that involves thousands of locations. For each location, I compute great circle distance. That is a calculation I want to spread to different cores. My question is how do I do this if I only have one thread-local variable, as in this MSDN TPL exampl...
I am new to creating websites for people on a money-earning basis.. I created my Dads website for my final year project, and he will pay me eventually but obviously I cant charge him as much as anyone else. I have just been to a trade show where I picked up 1 definite and 2 possible sites to do. The definite one is as follows: They wan...
My .NET application needs to decode 2D bar codes in DataMatrix format. I originally used a commercial library called Tasman.Bars, which had great royalty-free licensing terms, awesome performance, and supported many different bar code types... except that on certain images it would crash. These images were very rare, but this was still ...
I find myself often faced with this problem: I have a dictionary where the key is some simple numeric ID and the value is an object. The ID is also contained in a specific property of that value object. Then, I want to be able to deserialize some (format-inflexible) XML that looks like: <listitem> <id>20359</id> <someotherval>f...
I've been starting to write many more unit tests for my code (something I should have been doing for much longer,) as well as use code profilers such as EQATEC's to identify bottle necks. I'm wondering if there's a correct method for monitoring performance in unit tests? Obviously, a code profiler would be best for optimization, but wha...
I've got a large folder on an offsite backup machine that gets populated with files by rsync (through deltacopy) every night (running windows xp) from the main work site. I've discovered some annoying folders that cannot be opened, or deleted, or even checked for file sizes. I get the such and such a folder is not accessible, access is d...
I am trying to find a way to get the date of the matching day from last year, so for example today is the 4th Friday in July, what would the date of the same be last year? I am getting the sales from a restaurant and I need to check them against last years sales on the same day. ...
I am currently developing a system that has need for a session time out like subsystem. It is a compact framework 3.5 application, but the principles are very similar to WinForms, so most Winforms solutions will likely work. Here is the deal, I would like a way to throw an event which lets the MainForm, which is controlling the show, kn...
<!-- Custom action to set the .NET version --> <CustomAction Id="SetNetVersion_Cmd" Property="SetNetVersion" Execute="immediate" Return="check" Value="$(var.SetNetVersionCmd)" /> <CustomAction Id="SetNetVersion" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="check" Impersonate="no"/> <!-- Run the action --> <I...
Environment: IIS 6.0 In my web service there is only a simple web method that return the current cultrue and DateTime format: [WebMethod] public string GetDateTimeInfo() { string culture = Thread.CurrentThread.CurrentCulture.Name; string dt = DateTime.Now.ToString(); string ...
Hi All, I am developing a application which requires to delete a file no matter it is being used by other process Consider the following snippet of code. using System; using System.IO; namespace DotNet_Concepts.File_Operation { class Deleting_File_Which_Is_In_Use { static void Main(string[] args) { ...
i create usercontrol when i add it on my wpf windows get this error: Error 47 The tag 'UserControl1' does not exist in XML namespace 'clr-namespace:WPFTestApp;assembly=WPFTestApp'. Line 115 Position 14. ...
Hello everyone, I am using C# + VSTS 2008 + .Net 3.5 + ASP.Net + IIS 7.0 + ADO.Net + SQL Server 2008. I want to develop an ASP.Net aspx page which has the following function, 1 It could accept 3 Url parameters param1, param2 and param3, and the request looks like this, http://mysite.com/foo.aspx?parame1=abc&param2=def&param3=g...
Are there any free-to-use libraries for .NET so that I can read Canon's raw format, CR2, into my image processing application, retaining the full color depth? I believe it is a linear 14-bit/channel integer format, however some processing is required due to the layout of the image sensor array. I don't want it in crappy 8-bit/channel pr...
I've got a very basic database schema and have created a dbml from it. Two tables are related in a one-to-many. (A)1-*(B) ... hence each A gets an EntitySet called "BSet". If I do: foreach (var a in db.A) { Console.WriteLine(a.Name); foreach (var b in a.BSet) { Console.WriteLine(b.Number); } } I find that it prints out t...
I have a database client application. Some people will run multiple instances (i.e. processes) of it to connect to different databases simultaneously. I'd like to have this app accept a custom URI scheme for simple commands such as 'open record 123'. The URI contains the database it pertains to, so, depend on the contents of the URL, one...
We have a client who wants us to prove him that we have the right to distribute the .Net framework along with our application. Can someone help me out? Does Microsoft have any link where they clearly say it is free to use for commercial purposes? ...
I have a server process bound to a port that receives network packets at essentially random intervals. When a packet is received it is parsed and an object representing this packet's data is created. I would like to be able to 'push' this data object to any number, 0..n, client processes running on the same machine. The clients will alwa...