I need to decide about the DATA Access Layer of a medium sized web application to be run on the intranet of a company. I've worked with CodeSmith before and found it useful but it consumes lot of development time if the underlying database schema changes, so would like to do away with it and try my hands with some new DAL which would hel...
Suppose I have a table in my database that is made up of the following columns, 3 of which uniquely identify the row:
CREATE TABLE [dbo].[Lines]
(
[Attr1] [nvarchar](10) NOT NULL,
[Attr2] [nvarchar](10) NOT NULL,
[Attr3] [nvarchar](10) NOT NULL,
PRIMARY KEY (Attr1, Attr2, Attr3)
)
Now, I have an object in my applicatio...
I would like to generate a PDF or RTF document using iTextSharp library that can be copied to the clipboard, using the same code I use to generate the document on a file (FileStream).
This way my application would give the user two options: generate to a file or to the clipboard.
...
How to receive COM events generated in .NET 2005 with MS Word 97 (visual basic for applications)?
...
Does WinForms have support for this? Let's say I want to show a panel containing ListView made of some results. It is shown by clicking on a button in a form corner, and the panel is shown inside the form, above all controls, preferably with shadow in the back to make it more attractive.
I want this panel to be always inside the form, a...
Which are the advantages/drawbacks of both approaches?
return items.Select(item => DoSomething(item));
versus
foreach(var item in items)
{
yield return DoSomething(item);
}
EDIT As they are MSIL roughly equivalent, which one you find more readable?
...
In a VB.Net Windows app I create an Excel object thru early binding and populate the spreadsheet with rows returned from SQL.
The intent is to allow the user to select 1 or more rows from the spreadsheet, capture the select event, and then retrieve all the data from the selected rows for further processing. I know this would be simple ...
We have a requirement to print HTML documents using a .NET program.
We are using the following code to print. The print needs to happen in the background and should not ask for a print dialog. The problem we are facing is in case of multiple frames, multiple pages are being printed. Also, we only need first page to be printed. With th...
What purpose do protected or private (non-static) events in .NET really serve?
It seems like any private or protected event is more easily handled via a virtual method. I can (somewhat) see the need for this in static events, but not for normal events.
Have you had a use case before that clearly demonstrates a need or advantage for ...
How Do You create a .net application with no UI. How would I go about doing this? I don't want it to be a console application. The best choice would seem to be a winform application that never calls application.run.
The goal of the app is to be run and do a simple task. say check a server for an update or copy files. Nothing long r...
Is there an equivalent of JMS in .NET?
...
ESBs (Enterprise Service buses) have become quite popular in the enterprise Java world - but are there any equivalents in the .NET arena?
...
What I want is simply that all my TextBoxes as by default set their cursor at the end of the text so I want in pseudocode:
if (TextChanged) textbox.SelectionStart = textbox.Text.Length;
Because I want that all textboxes in my application are affected I want to use a style for that. This one won't work (for obvious reasons) but you get...
What s the best design pattern or best practice for data access (database access or file system access) in Distributed J2EE, .Net Environment, rails or php ?
...
I think the title sums it all .... We have a .NET 2.0 system trying to implement a distributed pub/ sub model. I came across NServiceBus, RhinoBus and MassTransit. Unfortunately, these are MSMQ based. I am tasked to figure out pub/ sub alternatives that uses a different messaging alternatives ...
the only reason for seeking MSMQ altern...
Hi~
I keep seeing references to Mage, but I don't understand specifically what it does and why it's useful/popular. If someone could give a quick rundown of it, it would be much appreciated!
Thanks ~
...
I need to allow user to store his documents on a USB flash drive so that they can be opened on any computer.
the idea is to convert common formats (pdf, doc, xls, etc.) to rtf and just show rtf (since that is always available and doesn't require any software to be installed on the pc).
are there any components that can do that?
I don't...
Hello,
i need to have semi-transparent image (by using alpha blending) drawn on fully transparent form - it means that image will be drawn over form transparent content.
Currently image is always drawn over window background color even if window itself is transparent.
This is current state, thanks for any help.
public Form1()
{
I...
Hi all ~
This is getting a bit frustrating now! Heaps of awesome Karma for whoever can help me sort this out. :-)
My cool little desktop C# app gets sent to users manually, zipped. They install it and all is well. One big missing piece to finish it off though is getting auto-updates to work.
PART I: Publish Wizard Steps
1) "Where do ...
I work for an IT department with about 50+ developers. It used to be about 100+ developers but was cut because of the recession.
When our department was bigger there was an ambitious effort made to set up a special architecture group.
One thing this group decided to do was create our own internal logger. They thought it was such a simp...