.net

setup save target dir .net

Hi Edit: I am using Visual Studio 2005. I wrote a Setup Project to install my application. After setup is complete, I need to get the destination folder that the user chose to install to (not the default destination folder, but the one the user actually chose during the install.) Is It possible to get this path and save the string into ...

simple way to read settings of an app.exe.config file from a linked dll

Is there a simple way to read from the global application.exe.config file from a dll? Currently I am loading the file as an XmlDocument but I wonder if there is a better solution. That's what I mean: If I create a new WinForms Project I have a Settings Tab in the Project properties where I can add some simple values (And I want to acc...

Where can I find video tutorials for the following .Net topics?

Asp.Net Pipeline Transaction Management in .Net/Sql Server ...

Muliplying all values in IEnumerable<int>

I have the following code and I am trying to work out how to multiply all values in my IEnumerable. I thought there might by a Multiply method like there is with Sum. I guess I could do a foreach over each item but these days this seems tedious. Any suggestions? //1:2:6 string[] pkgratio = comboBox1.SelectedRow.Cells["PkgRatio"].Valu...

I'm looking for internationalization verification tool

Hello, In process of internationalizing our .NET applications we stumbled to the fact that there is a lot of room for human error. Most popular is that a string is present in neutral culture resource file, but is not in culture-specific resource file. So, at runtime a neutral string gets loaded (which has been written by a programmer, n...

What UI Technology to use?

OK.. I am sorry for asking an often asked question once again, but I AM CONFUSED! First my requirements. To develop/ deploy on Windows XP/ 7. Easy to use and visually appealing for a not so tech savvy user. Regular reporting of data of a Non Profit Org. Having .NET as the preferable back end, as I have already devoted a year learning ...

ASP.NET Listbox not changing index

Hi, My question is probably a simple one to people used to ASP.NET, So here it is: I have a webform in a master page that has a listbox which populates itself with numbers which serve as unique id for my objects. The only problem is that the selected index property of the listbox is always -1 and it automatically deselects itself, no ma...

Will both of these Regex terms find the same matches using C# isMatch() method?

Hi, Will a regex created with the following terms match the same results? "canon| eos" "1d" and canon|eos 1d Now I do not want to match the quotation marks (") in the string. Will the fact they are in there make a difference. Will the first term match "canon but not canon? Am I right in what I am saying? ...

Importing data through API for thousands of users by using threads

In our application we need to import transaction data from paypal through an API for the users of my application and store in the database. I've thousands (approx 5k now) of users and it is increasing day by day. This application is a .net windows service. This imports data on hourly basis for all the users. At present we are importing...

When does .net check for assembly dependencies?

While pursuing a spearate problem I've come to a very peculiar situation. A demo code would be: public class Global : HttpApplication { protected void Application_Start(object sender, EventArgs e) { Log("In Application_Start"); SomeClass.SomeProp = ConfigurationManager.AppSettings["PropValue"]; } protecte...

What is the difference bettwen GoToPlaylistItem and GoToPlaylistItemOnNextTick

Unable to understand the difference bettwen GoToPlaylistItem and GoToPlaylistItemOnNextTick, though GoToPlaylistItemOnNextTick clicked on scenarios where GoToPlaylistItem din't work. If you wonder if there are any differences, Have a look at this Post for a problem solved by using GoToPlaylistItemOnNextTick while it was throwing null...

Unselect all rows on a .Net DataGrid Windows Forms

Hello! Does anybody knows how to unselect ALL the rows on a Windows Forms DataGrid control, using C#? By default, the first row is always selected... Also, I don't want to allow any kind of selection; do you guys know any method to this? I've already searched here but can't find... Any help would be great! Cheers! Edit: Ok, i've fou...

Showing Progress Dialogs - What is the best approach for Office addins

I have a .NET based Excel addin that displays a custom toolbar in Excel. There are about 30 commands that can be executed through this toolbar. The commands are executed on the same (Excel) thread. I want to display progress dialog for some of the commands that take some time to execute for which I used a non-modal dialog. The dialog wo...

Simple way to change whole project to root relative paths

I have inherited a web site that has all of the paths set using relative paths, that only work when the site is located in the web root. I have put the site in a virtual directory, and none of the paths work correctly. <img src="/img/logo/BadCo.gif" width="156" height="55" alt="BadCo" /> I can resolve this as follows: <img src='<%= ...

Using specific patterns to implement interfaces

I have been very intriuged by design patterns lately, and specifically following correct design patterns in my classes that implement one or several interfaces. Let's take an example. When a class implement IDisposable you should follow a specific pattern to make sure that your resources are properly cleaned up, by creating a private Di...

Joomla XML-RPC & .NET

I Want to build a .NET application that can Communicate with Joomla so that i can Access the Joomla Database and components to Perform Various Functions. So how do i get started in order to do so. I need to access the Joomla Articles and Jcal Event Calender and display the Data on .NET WinForm and Windows Mobile Application later on. ...

Is there a TextWriter child class that fires event if text is written?

I have written a method that accepts a TextWriter as an argument (Usually Console.Out, but not necessarily). When I call this method, some progress info is written to the TextWriter. However, since this method can run a long time, I want to update my UI with some status information. Currently, I am using a StringWriter but it does not ...

Which .net technology to choose when integrating RFID?

I have a RFID reader which reads my employee code. Now i want to log the date and time of the chip when it is scanned by the reader (ie) for an attendance system Login time and logoff time. I would like to use asp.net MVC and sql server 2005. Any suggestion how to integrate RFID with an asp.net mvc web application. Where should i start? ...

Nightly Code Metrics in Visual Studio 2010

Is it possible to set up an a process that runs over night (every night) to run Visual Studios Code metrics Analysis? ...

Regex to validate several ranges of values (.NET)

Hello guys, I have the option to use a regex to validate some values and I would like to know the best way to do it. I have several ranges (not in the same regex/validation) such as 1-9 (this is easy :P), and: 1-99 1-999 1-9999 Also, I need to check for leading zeros, so, 0432 is a possible match. Any ideas? I know that Regex might...