.net

use of savefiledialog box

hi im working on an window application form in which i have to save the data in text file which should contains the data the user would write in the richtextbox in that form...... ...

Dictionary.ContainsKey() not working as expected

I have a dictionary. Dictionary<YMD, object> cache = new Dictionary<YMD, object>(); The YMD class is one of my inventions, it is a class containing only the year, month, and date. The purpose is that the data will be indexed by the day is relates to. Anyhow, I have implemented the Equals() and CompareTo() functions, as well as the == ...

Crystal Reports not included in Visual Studio 2010 – What are the consequences for the introduction of the new VS version?

Yesterday I stumbled over the information that Crystal Reports will no longer be included in Visual Studio 2010. Instead – it will be provided as a free download, but with a separate installation and a separate release date. According to the linked information the release of CR will be later than that of VS. My projects depend in parts o...

How do you validate an application's configuration?

I want to run a system configuration check on an app machine where the check reviews required SQL connection, disk permissions, installed apps, and IP:port access (i.e. firewall isn't blocking outgoing access). I'm using Windows Server machines and .NET framework if it makes a difference. Is there a standard way of verifying an applica...

how to run process in background in .net using c#

i have to run process in background using thread and background worker. this process do the task of retrieve data from database,it retrieve successfully by i can not display that data into datagridview, there is give some data error event. so,pls help me for this. thanks . ...

Form scaling issue on Chinese OS (96 dpi)

Hi All, I have a sample .net application which consist of 2 forms. I have used images and various controls over these forms. When I run this application under XP or Win 7 English version, it works fine. But, when I run this application under Chinese version OS, the form size changes. It increases the form size, causing distorted forms. ...

Microsoft and SAP

For many years I have used the old "SAP DCOM Connector" to communicate between Microsoft based applications and SAP. Unfortunately this old but good and performant technology is no longer supported by SAP since years. Therefore I want and must migrate to another newer technology. First there is the "SAP Connector for .NET 2.0". At first...

WinDbg - Problem with 'Open Executable'

Hello, I tried to debug a .NET console app using WinDbg. I normally do this by File -> Open Executable, then WinDbg would load up the selected exe. This was working for the .NET app mentioned. But now I get the following output every time: Microsoft (R) Windows Debugger Version 6.11.0001.404 X86 Copyright (c) Microsoft Corporation. Al...

.NET Performance counters that monitor a machine's computing power.

Hello everybody, I've been researching a bit about .NET Performance counters, but couldn't find anything detailed (unlike the rest of the framework). My question is: Which are the most relevant performance counters to get the maximum computing power of the machine? Well, the .NET virtual machine, that is.. Thank you, Chuck Mysak ...

Database migrations for Entity Framework 4

I've been playing with Entity Framework 4, using the model driven approach to generate the database script from my entities. This is great but I'm not sure how this works when it comes to versioning the database. I'm guessing if I wanted to use an active record type migration framework I'd have to work the other way around and generate m...

Crypto Liberary for Iphone, BlackBerry, Android and .Net

Dear Gurus We are working on a application suite with support of windows(.net), Iphone, Android and Blackberry and all these application shares the same data (syncs with a wcf services). Whenever a device ads a new record, it encrypts the data and and saves in the local database and on sync it post the record to server as it is. Now...

Is it possible to create a custom attribute , when applied to a method will execute the method in a seperate thread .

Is it possible to create a custom attribute , when applied to a method will execute the method in a seperate thread . Class A { [threaded] public void execute() { } } main() { A obja = new A(); obja.execute() // will excute in a new thread if [threaded] attribute is applied } ...

Entity framework supported databases

I'm going to make a end-user desktop application, so I need a relative small database, such as Firebird or SqlLite. Does the Entity Framework 4 support other databases than SQL Server? ...

Drawing with .NET

I am looking for some Drawing class (Package) that will enable me in a easy way to draw images like the following. I have no Experience with Drawing so I will be glad to hear suggestions. My pic link ...

RSS.NET unable to parse feedburner feeds

I'm using RSS.NET for .NET 2.0. Try as I might, I get 0 channels for the following: feed = RssFeed.Read("http://feeds.feedburner.com/punchfire?format=xml"); I note that for other feeds this works e.g. feed = RssFeed.Read("http://www.engadget.com/rss.xml"); I guess it has to be a valid xml document. Do you think I should check for ".x...

Generating Excel through .Net doing odd things

Good Morning, I have a rather odd thing happening with an Excel WorkSheet that I am creating through .Net. I load up an existing workbook Dim _xlApp As New Excel.Application Dim _xlWorkbook As Excel.WokBook = _xlApp.Workbooks.Open(_templateFileName) set it to be visible before populating it (for debugging purposes) _xlApp.Visible = T...

System architecture suggestion for multiple services and components in .NET (C#)

We are working on a project that comprises of several windows services, data access layer component and a web site for user interface. The project also comprises of a web server (which will also run as a service and host the website). Now the goal is to integrate all the components and services together such that the components are able...

Logging NHibernate SQL queries

Is there a way to access the full SQL query, including the values, inside my code? I am able to log SQL queries using log4net: <logger name="NHibernate.SQL" additivity="false"> <level value="ALL"/> <appender-ref ref="NHibernateSQLFileLog"/> </logger> However, I would like to find a way to log SQL queries from the code also. ...

How to generate HTML 5 compliant code from Visual studio 2008?

Does Visual Studio 2008 support HTML 5 compliant code generated for browsers? ...

What is the most annoying / strangest thing that has happened to you using Excel Interop

Hi All, After developing using the Excel Interop with .Net for a while, i have become increasingly annoyed with the how many "odd things" happen - such as this question i posted earlier - My Problem. I appreciate that this is not a direct question and more of a collaberation of experiences, but i do think that it would be helpful how...