.net

WatiN: MsHtmlBrowser will not TypeText

From the WatiN website: // Open a new Internet Explorer window and // goto the google website. IE ie = new IE("http://www.google.com"); // Find the search text field and type Watin in it. ie.TextField(Find.ByName("q")).TypeText("WatiN"); // Click the Google search button. ie.Button(Find.ByValue("Google Search")).Click();...

framework for java as .NET is ther for c#

As .NET is framework for c# is there any framework for java? I mean whenever people talks about c#, .NET will be involved in that discussion but in case of java i didnt find as such. ...

Syncfusion XlsIO - Unexpected token exception

Hi We have a Syncfusion GridControl that contains formulae like: IF(R2<>0,100*(R3-R2)/R2,0) These formulae work fine in the grid and the formulae calculation engine gives the correct results whatever regional settings/number formats we have on the PC concerned (e.g. English, French, Hungarian). They also work perfectly when we use the...

Why is there no IArray(T) interface in .NET?

Question (in short): I asked why .NET has IList<T>, which implements ICollection<T> and therefore provides methods to modify the list (Add, Remove, etc.), but doesn't offer any in-between interface such as IArray<T> to provide random access by index without any list modification. EDIT 2010-Jan-21 2:22 PM EST: In a comment to Jon Skeet...

How to forward value converter and converter argument from template parent?

I created a custom control called RegexTextBox which derives from TextBox. To this I added a Regex dependency property. All of this works fine. Next thing I created a NumericUpDown button control based upon the NumericUpDown in Kevin's WPF Bag-o-Tricks. I replaced the default TextBox with my RegexTextBox and added 3 more dependency prop...

Which is faster, a function call with a lock, or a virtual call?

I have a class which doesn't currently need to be thread-safe, but in future we might want to make a thread-safe version. The way I see it, I can either make it thread-safe now by putting locks around the relevant functions, or I can make them virtual now and put locks around them in overrides in a descendent class later on. That is, t...

How to include a PDF Viewer plugin with a C# .NET app using webbrowser control?

I've have an app that is a xml/xslt driven document viewer. In its current state, a user points their own browser to the xml file and can view the pdf files from menu selections in their browser so long as they have a PDF viewer plugin such as Adobe Reader installed on their machine. Using the .NET webbrowser control, I was able to crea...

Can .Net Application be converted into a Portable App i.e. single .exe

Can a .Net application be converted into a single .exe portable application? i.e. no installer, it just runs? I imagine all the dll's, resources etc need embedding into the exe? If so, how would I do this? Thanks ...

Handling Assembly Resources

I am currently developing a utility class as a part of my business layer. The task of this class is to load a template PDF file, fill out the PDF with iTextSharp and return the resulting stream. I am having some "analysis paralysis" as to how to store the predefined PDF templates in my business layer. Do I throw all of my PDFs into a fol...

.NET Code Signing Pricing

I am looking into options for code signing our company's application, and it seems there are several different providers such as: VeriSign Thawte Comodo GoDaddy Are there pros and cons for each provider, or are they all basically the same and I should use the one with the cheapest price? My end goal is to have my application known a...

difference between framework and platform

i have seen people using these two words interchangeably. But i know they both are not the same. So wanted to clearly know how different they are. ...

Minimal-locking thread-safe hashtable?

Are there any available implementations of a Hashtable that provide thread safety with minimal locking in .NET? Or in another language that can be ported to .NET? We're looking for something in between using a BCL Dictionary<,> class with lock() and a distributed caching application like memcached or Velocity. The intended use is for ...

.NET Custom search on combobox auto-complete

Hi everybody, I have a combobox control in my form. I have enabled autocomplete feature in suggest mode. By default, the control suggests all the strings wich starts with the text the user have introduced. Is there any way to change this behaviour to make the control suggest all the strings wich contains current text? I'm trying to avo...

C# .NET object disposal

Should be an easy one. Let's say I have the following code: void Method() { AnotherMethod(new MyClass()); } void AnotherMethod(MyClass obj) { Console.WriteLine(obj.ToString()); } If I call "Method()", what happens to the MyClass object that was created in the process? Does it still exist in the stack after the call, even thou...

Calling Web Service from Javascript - what's it doing under the hood?

Hello Recently a colleague had to call a .NET 2.0 web service from script. We noticed that we'd have to put the [ScriptService] attribute, either via AJAX extensions or upgrading to 3.5. That's all I've been able to find out - no-one explains what it's doing under the hood! Can anyone enlighten me? Thanks Duncan ...

How can I get current directory in msbuild script?

Hi, In my msbuild script I need to pass the full directory as a parameter. How can get it? Example: I am running the script from C:\dev, I want a relative path temp, so I am after C:\dev\temp Note: I don't know from which folder the script will be run. ...

ASP.NET MVC Default Project Structure and the Scripts Folder

Is there any advantage to leaving the Scripts folder where it is in the default ASP.NET MVC Project structure. In my mind it makes more sense to create subfolders for scripts, css files, and images under the Content folder. Any downside to doing this? ...

XElement is not in correct structure - Linq to XML newbie questions.

// Remove element with ID of 1 var userIds = from user in document.Descendants("Id") where user.Value == "1" select user; userIds.Remove(); SaveAndDisplay(document); // Add element back var newElement = new XElement("Id", "0", ne...

Can we use Oracle Developer Tools 11g with Visual Source Safe ?

Is it possible that i can check-in/out my Oracle database Packages using Oracle Developer Tools 11g for visual studio ? ...

What are equivalent open source libraries to these closed source ones?

I have a project (.NET 3.0, c#) that needs to be converted to open source (probably GPLv2). The project uses some closed source libraries at its core that need to be replaced with open source ones. Can anyone point me in the direction of the best open source replacements for the following libraries? Infragistics (Windows Forms) (prim...