.net

Using MS Access database as a file format for desktop application needing open / save type functionality

Hello! This is probably a pretty novice design question. I'm trying to work my way through a number of requirements and give the users the experience they're looking for... I've written a tool that does big calcluation-type things. It currently consists of a class library and command line tool (separate .NET projects.) We're using an...

Is there a .NET SDK for Adobe Photoshop/Illustrator/InDesign?

I have a page on my site where a user can upload a Photoshop, Illustrator, or InDesign file. It's for a print shop, and they need to do things like see which fonts are used in the file, check if the file contains spot colors, and other information like the dimensions, resolution, color space, etc. Is there an SDK out there that I can d...

Windows 7 UAC Auto Update application

We have an application suite that we update via a homegrown "Auto Update" application. This application basically connects to our "Updates server" and downloads files to overwrite, update, or even add new features/applications to our application suite. However, this does not work well with UAC. Our Auto Update application is a command...

AES Encryption Key in .NET, Enterprise Library Encryption Block

Hello, When using AES encryption with Enterprise Library Encryption Block, it generates an AES encryption key for my machine. If we have a team of 12 developers, I assume each has to generate their own key (machine specific)? I tried giving someone else my key, but it errored. Or should that work? If it shouldn't work, how to genera...

can css be applied to controls of the page.aspx?

Can css be applied to controls of the page.aspx? To anything and everything? ...

Reference the inherting class from the abstract class

Is there a way to reference the class (i.e. Type) that inherits a abstract class? class abstract Monster { string Weakness { get; } string Vice { get; } Type WhatIAm { get { /* somehow return the Vampire type here? */ } } } class Vampire : Monster { string Weakness { get { return "sunlight"; } strin...

C# Regular Expression

I can't seem to get this to work. I am looking for a regular expression that will validate a password. Allowable characters are a-zA-Z0-9, but the sequence must have at least 1 number and 1 capital letter. Can this be done? ...

Updating RibbonMenu

I'm trying to find a way to update a RibbonMenu's items (like a few RibbonButtons) when the RibbonMenu is clicked (i.e. something like a BeforeDropDown). I know I can update it with the event of another control, but how do it update it when it is clicked? This http://msdn.microsoft.com/en-us/library/microsoft.office.tools.ribbon.ribbonm...

Which .NET data storage technology: Data access local only and web service based

I'm just starting with .NET data storage and I'm confused by so many different technologies... This is a learning project. You don't need to go on reading, I need to make an architecture proposal first... Thanks so far My scenario: e.g. a local app that can store and tag images. The user can choose if he want to store his data loca...

Populating multiple printf format placeholders with same value

Using .NET string formatting you can plug the same value into a format string multiple times: Console.Write("{0}{0}{0}", 1) //prints "111" Is there any way to do this with printf-style formatting, supplying the value only once? ...

LLBLGen Pro with Entity Framework 4?

Hi All, I am doing a small study about what ORM to use for our next project. I have narrowed down to LLBLGen Pro / EF4. My question is: I am more convinced about EF4. Should we use EF4 alone or should we purchase LLBLGen Pro and select EF4 as target framework? Are there any advantages/disadvantages in doing so? Any guidance/pointers...

How to use USB web camera in .Net Compact Framework?

How to use USB web camera in .Net Compact Framework (on Windows CE based OS)? ...

Best commercial Html to PDF C# component

I have used the following pdf components - 1) iTextSharp 2) HtmlToPdf convert (http://www.html-to-pdf.net/) 3) Syncfusion Essential PDF I like HtmlToPdf the most which cost me $550. Now I've to repurchase it again for next project due to license restriction. I'm wondering any good commercial C# pdf components which can generate html...

Standard Input & Output in .NET

Hello All, How can I read from standard input and write to standard output. System.Diagnostics.Process.StandardInput's MSDN reference didn't help as it separately starts the process and then redirects the Standard Input/Output but what If the process is already running and called my Application to feed it some data. Here's an example to...

app.config not found in SQL Server external assembly call

Hi, In SQL Server ,I created an assembly to run an external DLL. When I run the stored procedure that execute my function I got an exception that my configuration file is not found. Does any one know where the app.config should be located so that SQL Server knows how to load it. I have it right now in the same folder as my DLL. Thanks...

How to write out an EntityReference (e.g.  ) to an XmlWriter, read by XmlNodeReader?

Background I'm reading and writing an XML document using reader and writer, with filtering logic in between the read and write operations to determine which parts read should be written back out (effectively it strips some tags out) ... My choice of implementation currently is the following using: XmlNodeReader, XmlWriter and XmlNodeTyp...

Retrieving the underlying dataitems of selected gridview rows

I have a button on the page and a gridview with checkboxes on the first column. The gridview is bound to a List. On buttonClick, I need to retrieve the underlying bound data item (MyEntity) for each selected row. How can I do this? I can't simply recreate MyEntity based on the gridview columns, because I am not displaying all the fields...

How do I copy an object with NHibernate

I am using Nhibernate (I am a complete noob), and what I want to be able to do is copy an entity that is loaded from the database and save it with a new Id... has anyone run into this situation? Any help would be very appreciated. ...

Enumerate windows on taskbar in Windows XP without P/Invoke using C#

Is there any method of retrieving only windows on the taskbar? I want to make a custom "taskbar" that will group APPs in any order (not just in common order like default windows task grouping). ...

Learning Materials for ASP.NET MVC 3.0? Please list!

Hello, I am looking for learning materials (like blog posts and tutorials) for ASP.NET MVC 3.0 specific materials. If you know of any books, blogs, sites or online resources that are exclusively, predominently or even mainly MVC 3.0 related, I would love to hear about them, also, specific links to individual MVC 3.0 related tutorials & ...