I've set out to write a method in my C# application which can return an ordered subset of names from a table containing about 2000 names starting at the 100th name and returning the next 20 names.
I'm doing this so I can populate a WPF DataGrid in my UI and do some custom paging. I've been using LINQ to SQL but hit a snag with this lo...
I have always wanted to make a music player. But i have no idea how to. I dont need it to be cross playform, just as long as it works.
Each part is its own question but let me know if i am missing any. I broke it up into simple, unknown and long
Simple
Selecting Files/Directories using a Dialog
Saving playlist and other settings (jso...
Hi folks, is it possible to store multiple datatypes in an array, if not, what could the reason be?
TIA
...
I'm using an ASP.NET to call my WCF service. in my service, I access a file but I get this exception :
FaultException '1 was not handled by user code : Access to the path 'C:\Users\attilah\Documents\Visual Studio 2008\Projects\at\att\UploaderTemp\attilah\file1.pdf' is denied.
...
Background
Even though it's possible to compile C# code at runtime, it's impossible to include and run the generated code in the current scope. Instead all variables have to be passed as explicit parameters.
Compared with dynamic programming languages like Python, one could never truly replicate the complete behaviour of eval (as in th...
I'm using TextWriterTraceListener to ouptput my trace information to a log file. Unfortunately it locks the logfile and I am not able to open it externally while the application is running. Any way to make this possible?
...
I have a text file with a list of 300,000 words and the frequency with wich they occur. Each line is in the format Word:FequencyOfOccurence.
I want this information to be accessible from within the C# code. I can't hard code the list since it is too long, and I'm not sure how to go about accessing it from a file on the server. Ideall...
I'm putting a control together that takes advantage of the Gesture support in Windows Mobile 6.5 (using the Microsoft gesture library). However, When my control is embedded into a TabPage, I don't get to see any gesture events instead the TabControl appears to swallow the events for its quick tab switching.
Is there a way that I can eit...
Hi!
I wondered which Unit testing framework would be a good one to get really familiar with? I know this might be a question of opinion, but I thought I'd ask anyways. I know that I will need to do it someday, so I might as well learn to use it. I know that there is quite a few out there, but which one is effective for C# development?...
Still not solved:
I have the following issue:
I have a user control looking like this:
<UserControl x:Class="UserControlSettings"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid x:Name="mainGrid" ShowGridLines="True">
<Grid.ColumnDefinitions>
...
I tried fmod.net but got a 'System.BadImageFormatException' error. I then tried WindowsMediaPlayer and have sounds playing. However i am having issues playing a sound when the current one ends (callback code below. It doesnt seem to like me playing a new song during a state change however i cant find another way to inform me when the son...
I mean for some basic operations, like reads/writes of class attributes.
Or, maybe, it introduces some higher level synchronization?
...
I'm converting some ASPX pages to user controls (ASCX).
I still need some of the page redirection to work.. and server.transfer is not an option (I need the URL in the address bar to change).
Is there a way to either user Response.Redirect() from within a user control or a similar method?
Thanks.
...
I was basically wondering if it is possible to optimize this code:
AmountComments = Int32.Parse(r.Attribute("AmountComments").Value)
Ideally I would want to write something like
AmountComments = r.Attribute("AmountComments")
r would be a xml tag of type XElement, which is selected before in a Linq query.
...
NOTE: I'm a veteran Java developer (10yrs) and have recently decided to make things interesting and jump over to the ASP.NET / C# world. Thus the question...
I have a business requirement to build an ASP.NET web application that can be installed into an "enterprise data center" for use by an entire organization or can be downloaded by a...
Hi
I a student in my final term of my Computer Science Bachelor Degree. I really like doing web programming especially with ASP.NET. For the last 2 years I been programming on and off in .Net. Since I am usually taking about 7 courses a semester and not much time to play around with .Net. Every time I had a break like summer break I de...
Hey guys
Just wondering how how people handle Authorization when using MVVM and/or View Models.
If I wasn't using VM's I would be passing back the Model and it would have a property which I could check if a user can edit a given object/property but when using MVVM I am disconnecting myself from the business object... and thus doen't ...
I have convinced a company to change Crystal Reports. But then? What to use? Telerik?
I want:
designer
bind an object model, not a
denormalized view
execute from batch, generate report in batch
export to word or many other formats
reporting site
Uh, my backend is Progress Software, so ODBC driver. Or NHibernate objects...
...
Are there any good commercial .NET logging tools out there? I'm aware of the open source versions such as log4net and NLog, but does anyone know of any .NET logging tools with commercial support?
...
The idea is to have a windows service, that clients can connect to (tcp, wcf, remoting), and when the data changes in the windows service, send the changes to the clients. An example of this would be a stock pricing server, and when the price changes for instruments, send the changes to the client.
Wcf does have streaming, but is that ...