.net

What NoSQL solutions are out there for .NET?

What NoSQL solutions are out there for .NET? Which have the best integration with C#? Which integrate with LINQ? Also which would be easiest to integrate into an application? ...

WPF Images - Trying use to use treeview, but can't get background to be clear

Greetings, I have a TreeView containing a set of TreeViewItems - Each TreeView is pretty simple (just some text, plus an image) - The images are usually folder & files icon. All good and simple...except for the fact that since the contents of images do not fit an exact square, there is some white background surrounding portions of each....

How to make PLINQ to spawn more concurrent threads in .NET 4.0 beta 2?

In former versions of Parallel Extensions you could set the number of threads: enumerable.AsParallel(numberOfThreads) But now that overload is not available anymore. How to do it now? ...

What's the benefit of Keyboard Accelerators added to an HashTable in .NET?

Hi, For a long time I had the following bookmark in Firefox: http://www.codeguru.com/csharp/.net/net_general/keyboard/article.php/c4639 I know decided to read it and implement it in the application it was supposed to be implemented some time ago. However, I don't see any benefit in such a method... I know that the idea behind the hast...

How can I make SMTP authenticated in .NET?

I'm trying to build an email application in Visual Studio 2005 and I'm using .NET's System::Net::Mail::Smtp class to send emails, but I can't figure out how to authenticate SMTP with a server (right now I've been trying with smtp.gmail.com the most). Here's my code: SmtpClient^ client = gcnew SmtpClient("smtp.gmail.com"); NetworkCreden...

Hidden Features of Windows.Forms

Despite the growing popularity Web Applications, and WPF, there's still a lot of work being done in "old-style" Windows.Forms, especially for in-house ("bespoke") business software systems. So, what are the best (and most hidden) features and tricks of Windows.Forms, the things that can help us turn out useful applications faster? (I w...

Undeclared Identifiers

I'm working on an e-mail app in c++ using .net, and I've run into a problem I can't seem to solve. I'm trying to implement some controller classes. The top chunk is my .h file, the bottom the .cpp file. The errors I'm getting are: 'ComposeMail' : undeclared identifier 'email' : undeclared identifier syntax error : identifier 'Compose...

How to connect to Apache OfBiz from .NET

What are the ways to connect to Apache OfBiz from a .NET application? I would like to know how can I get data from ofbiz and how I can update date from the .NET application into ofbiz. ...

Send message to a Windows process (not its main window)

I have an application that on a subsequent start detects if there's a process with the same name already running and, if so, activates the running app's window and then exits. The problem is that the main window could be hidden (only a notification area icon visible), thus leaving me with no window handle. At startup, previous instance...

C#.net Use HTMLDocument from Console?

I'm trying to use System.Windows.Forms.HTMLDocument in a console application. First, is this even possible? If so, how can I load up a page from the web into it? I was trying to use WebBrowser, but it's telling me: Unhandled Exception: System.Threading.ThreadStateException: ActiveX control '885 6f961-340a-11d0-a96b-00c04fd705a2...

Is it possible to invoke internal method from a dynamic method in .NET?

Dear ladies and sirs. I am trying to invoke an internal method from a dynamically generated one. The il code is simple: ldarg_0, callvirt, ret. Executing the method fails with TypeLoadException saying it cannot load the type on which the internal method is defined. When I think of it, this seems logical, because the dynamic method hos...

Embed a Windows Form in a web browser

I have a class which inherits System.Windows.Forms.Form. I need to make the form available via a Web browser. The form currently allows a graph to be generated given various parameters. So embedding it directly in a web page would be ideal for my needs. How would I go about doing this? Thanks. ...

Pop3 help for a C++ implementation!

Alright, so this is absolutely killing me... If anyone could help me, I would be the happiest man on the face of the earth... So, I need to create a C++ email client for a project at school, and I've been using the POCO open source C++ library, and I've been fine for working with email servers that do not need SSL authentication, but an...

Applications based on Visual Studio Shell

I like to know the list of applications using Visual Studio Shell Platform, to understand its capabilities. As of now i know IronPythonStudio ...

Serialization to Disk inplace of creating a simple database... Is there a pattern or industry name for this approach?

I am leading a development team of 5 or so developers and we have a need to persist a small amount of data. I am thinking we do not need to employ a full DB engine and instead we can simply serialize our data to disk. We would serialize our collections of object to and from disk as needed at runtime instead of to a DB where we have to ...

.NET Assembly Method Loads

Hi friends. How can I check which methods are called during a .NET application startup? I do not have the source code. ...

.NET Reflection set private property

If you have a property defined like this: private DateTime modifiedOn; public DateTime ModifiedOn { get { return modifiedOn; } } How do you set it to a certain value with Reflection? I've tried both: dto.GetType().GetProperty("ModifiedOn").SetValue(dto, modifiedOn, null); and dto.GetType().GetProperty("modifiedOn").SetValue(d...

Best Practice: Documentation Standards

Hello there, Here is the issue, I need to find/think of documentation standards for our team. We have several needs, we need documentation standards for Requirements Documentation, Technical Documentation - for projects and Code Style Documentation - for developers which would cover how developers should name, and organize the project'...

Translate .net application without different forms

I plan to translate an .net 2.0 application to different languages. For that I enabled the localizable attribute in every form. The problem with that is, that I have to apply changes to the UI in every language supported. Is there a way to just translate the captions of buttons, labels etc. without "translating" the positon, size etc? I ...

Book for learning WPF

I have read this question. My question is whether WPF Unleashed is still the most recommended (since the question is over a year old)? Also, what do you think about WPF Recipes or Pro WPF? ...