.net

Winforms application with no main form - dialog not shown on top

I have a winforms application that doesn't really have a main form - it's just a simple file handling tool so it doesn't really need one. When the application starts, first an OpenFileDialog is used to select a file. Then, a dialog box is shown using Showdialog() with some options for how the selected file should be processed. Finally...

Any experience of using Naked Objects frameworks for .net?

On first sight, Naked Objects look very promising in that they allow a full system with a basic UI to be created quickly, then refined. Has anyone got real life experience using any of the .net Naked Objects frameworks? How should I choose between the different Naked Objects frameworks? Does anyone know of a .net Naked Objects framewo...

LINQ to SQL cross apply

I would like to create a query with a cross apply into a user defined table value funtion in LINQ. The SQL would be really rather simple as below: SELECT * FROM MyTable mt CROSS APPLY MyTVF(mt.id) This post gives an example of a LINQ query that results in generated sql that contains both a cross apply and an outer apply but only for ...

SourceControl of ContextMenuStrip is Nothing in ToolStripMenuItem Click?

I have single ContextMenuStrip attached to more controls. In use the Opening event of ContextMenuStrip to filter/disable some context entries. In this case the property ContexteMenuStrip.SourceControl is set correctly. The problem I have is on the Click event of a ToolStripMenuItem. This item is inside a ToolStripDropDown. I get the ...

Help with WebDav protocol?

Hi, We want to use WebDav ProtoCol for FileTransfer and other file related activies through our client application. So here are my basic questions: 1- How to setup WebDav on my system? 2- Can I install WebDav on Linux ? 3- If want to program using .NET and C# , do I need to add external library or System.net and System.xml Namespace ...

Is there a way of referencing the xml comments to avoid duplicating them?

This is not a biggie at all, but something that would be very helpful indeed if resolved. When I'm overloading methods etc there are times when the xml comments are exactly the same, bar 1 or 2 param names. I have to copy/paste the comments down to each overloaded method, where they are the same. Sometimes, however, this can cause m...

Is there a general method to check whether a property define supported by a Linq provider, especially OData?

I successfully ran the following statement with the NorthWind.sdf in LinqPad: from s in Shippers select new { s.ShipperID, s.CompanyName, Count=s.ShipViaOrders.Count() } At the same time , I failed to run a similar statement with the Odata Service (http://services.odata.org/northwind/northwind.svc) in Linq...

CUD Methods won't fire

I'm trying to use RIA Services with Repository pattern, Every CRUD operations worked perfectly until I implemented the repositories. Now only query and Submit methods are working. I tried the methods both with and without Query, Insert, Update and Delete attributes. Does anybody know what the problem is? [LinqToEntitiesDomainServiceDes...

Where to use ISessionScope or Transactions?

I have 3 major layers: UI->BL->DL (and I'm using Active Record/Nhibernate if it matters). My question is simple: where should TransactionScopes and ISessionScopes be implemented? My idea is to use transactions either on BL or DL and ISessionScopes only on BL, wrapping multiple (or not) methods from DL so they will share one session. Is...

Complex cell selection contraints with WPF DataGrid

I am trying to work out a way to achieve the following cell selection constraints: Only allow multiple cells from the same row to be selected Only allow contiguous cells to be selected Do not allows cells in column 1 to be selected So far I have looked at SelectedCellsChanged event but that does not seem to want to let me change the ...

.NET : How to use JIT compiler

I would like to use directly the .NET JIT Compiler, is it possible ? I mean, I would like to do a thing like : ?> jit.exe myfile.msil myfile.exe Or in a c# code ? ...

Connect to remote MongoDB instance from ASP.NET

I'm having some trouble nutting out why I'm unable to connect to a new database I've created at MongoHQ. I want to include the correct connection string in my Web.config file and have my Mongo object refer to that for the database connection. The connection strings (edited, obviously) are: Public Access mongo flame.mongohq.com...

Is it rude to trigger OnNext from different threads in Reactive Extensions (Rx)?

When implementing IObserver yourself, you know how well you would cope with a situation where OnNext is invoked from different threads, concurrently or sequentially, but what are the expectations of the built in Reactive Extension primitives when it comes to this? Will BufferWithTime, for example, cope with OnNext being invoked from mult...

Please give reference/guidance to make a web application for managing mails(like Microsoft Outlook ) in Asp.Net MVC(C#)

Please give reference/guidance to make a web application for managing mails(like Microsoft Outlook) in Asp.Net MVC(C#) We need to implement common functionalities from Microsoft Outlook sending and receiving email. Allows user to register mailbox, change password, and modify user information. Allows administrator to create, delete,...

SQL Server 2005, Management Studio errors, possibly .NET Framework

Hi, I'm facing the following problem. When I'm trying to open SSAS 2005 properties I have this error, the same in 2008: TITLE: Microsoft SQL Server Management Studio ------------------------------ Cannot show requested dialog. ------------------------------ ADDITIONAL INFORMATION: Cannot show requested dialog. (SqlMgmt) ---------------...

Signing a managed assembly that references an unmanaged assembly

I'm trying to sign a .net assembly with Visual Studio (2010). On the properties page for the project, I selected the Signing tab, and checked "sign the assembly" and provided a strong name key file. The problem is that this project references another -- unmanaged project. When I try to build the .net assembly, I get the message: "Asse...

How to swap out MSMQ in NServiceBus 2.0 for a different transport technology

What is the correct way to swap out MSMQ transport layer to leverage another transport technology under the hood from within the NServiceBus 2.0 API? ...

Calculate CMYK coverage on PDF

Hi all, I don't suppose is there any free or open source libraries out there that able to calculate the CMYK coverage on a pdf file. I tried looking around I don't seem to able to find any. If there isn't any out there if anyone could point me in the right direction of what do I need to do in order to calculate the CYMK coverage on a pd...

is workflow right for dynamic workflow creation in web based application ?

Hi, I am new to workflow and just know some of its features. I want to do a project in WF. It will be a web based intranet application where user will be able to define workflow dynamically through web interface. Duration for completing a task can be many days. With these requirments I am not sure will use of WF helpful in quick develo...

How to start with class design for an enterprise application?

How can i start with the class design before starting the development of a large application (both WinForm and WebApp). What are the initial 'be-careful' things i should check before designing the class structures? How to identify the usage of interfaces, abstract classes, delegates, events etc in my application design? ...