.net-3.5

Installer Project giving error in VS2k8

Hi guys, I have a installer project on VS 2k8, .net 3.5. Its giving me the following error: Error 1 Invalid icon file 'MSDN Magazine Managed Preview Handlers', located in 'Application Folder' C:\Users\jaminator\Desktop\APPreview\Handler\InstallPreviewHandlers\InstallPreviewHandlers.vdproj InstallPreviewHandlers It is a demo appli...

Change Code to .net 2.0

hi It seem that .net 2.0 do not support OrderByDescending for dictionary keys , how can I change this code to .net 2.0 private static Dictionary<byte[], Func<BinaryReader, Size>> imageFormatDecoders = new Dictionary<byte[], Func<BinaryReader, Size>>() { { new byte[]{ 0x42, 0x4D }, DecodeBitmap}, { new byte[]{ 0x47, 0x49...

HTML and CSS version used in VS 2008

I am currently using VS 2008 and Asp.net 3.5 with the basic tool kit provided. What i want to know is the version of CSS and HTML that it uses. I was going through HTML 5 is it possible to use it and the latest CSS version ? Thanks ...

Can a .Net 4.0 assembly be used in a .Net 3.5 application?

Possible Duplicate: How to reference .NET 4.0 assembly within .NET 3.5 projects Is there any way to ineteroperate a 4.0 assembly (a WPF interface) within a 3.5 application (an MFC Application). This application is giving us no end of trouble attempting to migrate it to 4.0. ...

"Server failed to resume the transaction" error in SQL Server 2008 + .NET3.5 + LINQ

The aspx.cs Code: the code itself is pretty big, and the code here is fictional, but it looks (the important part) like this: foreach (Transaction trans in vTransactionList) { switch (trans) { case 201: codehere; break; case 202: codehere; break; case 203: ...

Object-oriented programming with Java

I have the opportunity to take a course with Open University to do programming with Java. Would that help me to understand .net and write .net applications? If you find my question rather weird, can anyone advise me which is the most useful .net programming language to learn using Visual Studio? Is there free on-line or any other metho...

SQL Server 2005

I created a table as emp_attendance in which I used some columns. Now I want to compare current date of system with current date of table means shows that record which are entered in same date. thank you. ...

How can a total newbie design a UI with Blend 3 ?

Hi guys, I am totally new to WPF. I learned that Blend is a tool that is used to design UI for WPF applications. Is there a standard procedure to follow while designing UIs ? Can you give demo examples of UI with source code? ...

Text on image not appearing, in preview handler vs2005 .net2

hi i am trying to show image of my file in previwew pane i am able to display the image of my file but i am stuck in the part where i need write some text on the image before adding it to preview pane. // create an image object, using the filename we just retrieved String strImageFile = file.FullName.Substring(0, file.FullNa...

Changing of selection in manually bound ComboBox.

I fill the combobox with the below method and when I change the selection it's changed in all the Comboboxes why? PowerProjectDBLinqDataContext dataContext =new PowerProjectDBLinqDataContext(); IEnumerable<Winding_Building_typeCombo> ls = dataContext.Winding_Building_typeCombos.ToList(); ComboBox cbx; for (int i = 1; i <= win...

Warn when leaving scope with unsaved property values

We have our own custom ORM wrapper with classes like Contact, Company, etc., which have properties such as Name, Address, and so on. You "create" an instance of a class, which implicitly downloads the current record from the database: // fetch a contact with ID myRecordID from connection myConnection Contact myContact = Contact.Create(m...

SpeechRecognitionEngine.SetInputToAudioStream streaming realtime audio

In .NET 3.5, System.Speech.Recognition SpeechRecognitionEngine.SetInputToAudioStream Method doesn't seem to support real-time input. I am developing a windows application and I want to provide real-time input stream over the network. How could I accomplish this? Could someone help me with a work-around? Thank you. ...

When to create a web garden

I have an application that is currently running on IIS 6.0 with one worker process (the default). I am trying to determine if creating a web garden will improve performance. I have read a bunch of articles that say that a web garden is not the right approach for everyone (since it duplicates resources, cache is not shared, etc). I cou...

Define constants (enum like) for using in all projects and easy maintenance.

I had this question solved: http://stackoverflow.com/questions/3898217/define-dynamic-enum Which I needed to get some Codes defined in the web.config from a class in App_Code for easy call. Well, the problem now is that I need to use this same Codes inside my business classes (and they won't access Web.config keys.. Accepting any solut...

How do I invoke a Delegate faster than by using DynamicInvoke?

Currently I useDynamicInvokewhich is very slow. Still using theDelegatetype how can I directly invoke the Delegate without late-binding/theDynamicInvoke? Delegate _method; _method.DynamicInvoke(_args); Thanks. ...

SUBSONIC using subcommander via VS2008 causing following errors - help please

Hi Guys Ive been using subcommander to generate my dal. Im using vb.net and sqlexpress and .net 3.5 My webconfig looks like this <!-- add subsonic in for dal--> <section name="SubSonicService" type="SubSonic.SubSonicSection, SubSonic" allowDefinition="MachineToApplication" requirePermission="false"/> </configSections> <connection...

Convert an image to 16 bit color depth

I need to take a screen shot and convert that screen shot to a 16 bit color depth. I am using C# and .net cf 3.5. I think I could adapt this solution to do it, but I want to know if that is overkill. Is there a way to do this just using .NET CF (ie, no/less p-invokes.) If it can be done just using .NET CF then it would be easier on...

Facebook C# Library

Does anybody know of a good library out there for developing for Facebook using the REST API in C#. I've been using the Facebook Developer Toolkit for some time now, but have more recently become annoyed at how key functionality is broken (even in the updated 3.1 beta). I looked into using the Facebook C# SDK, but this only appears to h...

Wix 3.5 Create Scheduled Task

I've got a couple of projects I'm using Wix 3.5 for, along with Paraffin which is going really well, but I'm stuck trying to figure out how to create a Windows Scheduled Task as part of the installation. I could just run a bat file that creates the task, but I don't think that would give me the uninstall features that Wix has, nor allo...

How to add custom information in detail pane of win vista and win 7 using c#.net

Hi, i have a file type for my application for which i want to show some custom information in Organize\Deatails Pane in windows explorer. Like for a word file it shows author and stuff similarly i have some custom information for my file which i want to show. Anybody with idea on how can i do it? ...