I'm looking for an audio library that works with .NET that allows for smooth looping. I've tried DirectX AudioVideoPlayback and Mentalis. Both are easy to use, but the looping skips a bit. I'm wondering if that's my fault or theirs. I have sound samples that I know can loop cleanly (WinAmp can do it fine) but I can't get my C# app to do ...
I have a large amount of data stored in an xml file 173MB (4.6 million lines) that I have stored in my winforms working directory.it is the result of writing a datatable to an XML file. The datatable was originaly populated from a query to a SQL server.
The reason that I have it stored locally rather than requesting it from the server ...
Looking into how to provide the icon for my custom mmc snap-ins.
Language = c#
...
Just wondering about how to avoid Magic Strings in Querystrings? I have a lot of code like
if (string.IsNullOrEmpty(request.Form["projectId"]) ||
!int.TryParse(request.Form["projectId"],out projectId))
return null;
and naturally, I have to hardcode the projectId in the calling pages.
One way is to have a static/const "Dicti...
Does the entity framework 4.0 track changes on Plain old C# object?
If so, should my class do something special (implement an interface/raise events when changing the value of a property?)
Also, how can I get the state(modified/unchanged, etc) of a POCO? Is there a way to know the "old" values of properties?
...
Hi,
I'm using Sandcastle Help File Builder to build the documentation for an open source project, and I'm facing two issues :
The documentation content is in French. I set the language to French in the SHFB project, but most of the generated text is still in English ("Properties", "Inheritance Hierarchy", "See also"...). I saw that th...
Hey guys I'm fairly green when it comes to wpf, so I need a little help, here is what im looking to do.
I want to create a custom media element, I want to be able to load a video and play any where from 15 secs to 1 min of the video, I want to be able to dynamically set this on load up based on user settings. I'm loading tons of videos...
I am currently designing a user control which will have other controls contained within it. I would like to be able to control the region in which the they are rendered (similar to Graphics.SetClip).
Ideally I would like to beable to have them render to an off screen image which I then present to the user as I choose. The last resort ...
I have a treeview control, and it's child node is mapped to element in a list, when the element in the list state changes, i need to update the corresponding treeview node, also, when user select a treenode, i can map to the element in the list, what's the best way to record the mapping?
...
Hey, I am hitting trouble constructing an XmlSerializer where the extra types contains types with the same Name (but unique Fullname). Below is an example that illustrated my scenario.
Type definitions in external assembly I cannot manipulate:
public static class Wheel
{
public enum Status { Stopped, Spinning }
}
public static class...
I want to show some bold and some simple word within the same sentence.If I use the textbox
then every word will be simple, not some bold and some simple so I want a control's text
property in that I can write some bold and some simple word within the same statement
...
hi friends,
I have developed a web application in asp.net in visual studio 2008.
Its working good in my local machines.
I have installed iis and also .net frameworks seperately in another system, and its working through the local host of that machine.
my question is can i make my web application and all .net framewoks as a single pac...
I work for a medium sized business integrating a moderate number of systems into one web application written in Ruby on Rails and running on Redhat. One of the functions of the application is to communicate with remote equipment. Some of the equipment I can communicate with directly, some I have to rely on the equipment reporting in to a...
Is there an easier way to write this?
I know if i didnt need cookies i could have done
var sz = new WebClient().DownloadString(url);
But i need cookies bc of login data so i am stuck with this instead. Is there a way to make it short like the line above?
request = (HttpWebRequest)HttpWebRequest.Create(url);
request.C...
Hi!
A .NET application calls C dll. The C code allocates memory for a char array and returns this array as result. The .NET applications gets this result as a string.
The C code:
extern "C" __declspec(dllexport) char* __cdecl Run()
{
char* result = (char*)malloc(100 * sizeof(char));
// fill the array with data
return resul...
I would like to know what is a good, stable, framework that you guys suggest for implementing evolutionary optimisation techniques like PSO or GA?
I have written my own ones and I like them, I would be interested in comparing or adding to existing stable ones (or just using them if they are solid and extensible).
...
hi all
plz some one tell me how to convert string to 'System.Web.HttpPostedFile' .
i have one image whoes path is stored in one variable of type string ..
how can i store that path in 'System.Web.HttpPostedFile' (that is file upload .)
...
I've recently moved from [Windows 2003-32 bit, IIS 6 .NET 2.0] to [Windows 2008-64 bit, IIS 7 .NET 2.0].
Everything seems to be working fine except from the HTTP 500 error I am getting periodically and I also get timeouts in my database MSSQL 2005-randomly and on any on random stored procedures (DB is optimized and working fine-all stor...
How can I define a dynamic array in C#?
...
Today I learned this
JavaScriptSerializer ser = new JavaScriptSerializer();
Foo foo = ser.Deserialize<Foo>(jsonSz);
I had to match the class with the json I was pulling from a remote site. It saved me much time that I could just write the class and not worry about processing the data and putting them into the class. I also didn't need...