I know formats such as mp3, ogg and flac have tags such as artist, album etc.
I would like to extract that information if available. Right now i am using ffmpeg to conv the audio so a way to do it within ffmpeg is convenient but not required. My website is writing in C# ASP.NET. I dont mind parsing cmd line output or using a lib call.
W...
Hello,
I have a simple app with a MainForm that sometimes opens a second form. I have a Data Access Layer Class .cs and that has try catch statements. On a catch I call another class method logError.
Since logError can be called by any thread or from the 2 forms, it's in a separate class on its own.
What I would like is that if logEr...
Hi!
Edit: I made a mistake in my original question. It should be about methods Last and LastOrDefault (or Single and SingleOrDefault, or First and FirstOrDefault - plenty of them!).
Inspired by this question, I opened Reflector and looked at code of
Enumerable.Last<T>(this collection)
Then I jumped to code of
Enumerable.LastOrDefau...
I have this window where I have a block of text that contains a link. Something like:
Click here to read the documentation.
Which means only the "here" in the sentence is a hyperlink.
My problem is, I want to prepare this for localization. As a result, I have the text in resx files. So in the resx file I have "Click here to read the d...
I'm trying to use the PowerShell Add-Member cmd on all the items in an array and then access the member I added later but it doesn't show up.
You can see in the output of the below code that the NoteProperty appears to exist within the scope of the foreach statement but it doesn't exist on the same object outside of that scope.
Any way...
hi,
I start dicoverig C# today ...
as you know there is some difuculties
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int[] arr = new int[3];
int i;
for ...
I just start learning WPF, is that possible I can create an IE toolbar by using WPF, if so, is there any document about how to do that?
Thanks a lot.
...
In C#, for example, when I compare two nullable booleans (bool?) I get the following results :
true & null = null
false & null = false
true | null = true
false | null = null
The issue is that I couldn't understand how those results come, what's the rule which I can use to determine the result of a logical operator on two booleans, whe...
Hello,
I am working on windows mobile 6.I want to send email but i don't how to configure emulator for send email.Somewhere gives that for send email we have to synchronize with exchange server.But i don't know how to configure.
I am using this code:-
OutlookSession session = new OutlookSession();
Em...
Hello,
I've been looking at modifying the source of the Doppler podcast aggregator with the goal of being able to run the program directly from my mp3 player.
Doppler stores application settings using a Visual Studio designer generated Settings class, which by default serializes user settings to the user's home directory. I'd like to...
I am bit new to C#. I am working on a Database application and I need to execute a query say a SELECT and load it in to some sort of table view. Then I want to double click on a result and get it loaded to my original data entry form. Can someone tell me the way that I should follow? Dont waste your time to add coding etc. Simply the ste...
Hi,
In C# console application we can add dll reference by [Soln Explorer - References & then adding reference of reqd dll].
In that case,the application expects the dll to be present in same folder. if not, then application doesn't work[Throws exception].
Is it possible that, if a dll in not present in same folder as that of applicati...
Hello everyone,
If I have .Net 3.5 + VSTS 2008 + IIS 7.0 on my machine, could I develop and debug some classic ASP code (in VB Script).
If I can, any reference guide to setup development environment for both IIS 7.0 and VSTS 2008?
thanks in advance,
George
...
What's the best way to store settings for a screensaver that happens to use XNA? i'm thinking of using a .settings file but i'm unsure how to read that from my XNA code...
...
Which is the better in terms of capabilities, easy of use, documentation, samples, community/support, VS integration, known implementations, long-term viability, and build speed to implement a custom AOP framework?
I'll start with what I know (I have only tried PostSharp to so far):
Microsoft Common Compiler
Instrastruture (CCI): I've...
I believe (correct me if i am wrong), according to the C# rule for value types, there is no default constructor. The CLR will define the one for zeroing out the field values.
For reference type :
class Test
{
private string Name;
}
Will the default constructor be supplied by C# or the CLR?
...
Does .NET provide any built-in support for working with XML DTDs? I want to retrieve element type, attribute lists, and entity declaration information. I'm aware of the support for validating against a DTD, but want to be able to work with the DTD information itself.
I'd be fine parsing DTDs manually to accomplish this, but would rather...
In my program (a console application that does edit and imputation of data) I give the user the ability to provide a data dictionary in a number of different ways: tab-delimited text files, Excel workbooks or in a database. The dictionary consists of several (12-15) files/sheets/tables. I am trying to come up with a nice way to load th...
I have a background thread running that fires events, but how can I ensure a thread safe invocation of these events using NET CF?
I would use ISyncronizeInvoke on the NET platform, but I can't find this on NET CF. I'm sure there are an equivalent available.... or?
...
I want to make a program that will disable menu items of an appication for parental control using user32's enablewindow function. Using spy++ I can find buttons, controls etc, but I cannot seem to find menus and menu items. How could I find the handle for these so I could disable them when the user trys to click on them?
Thanks
...