Hey Guys, Thanks for reading!
I am trying to develop an application for a windows mobile pda but am having a problem with getting .png images from a resource folder. I have a number of images in the project Resources folder, and all I want to do draw an image box programmatically (i.e just using code) with a background image from the pr...
I have a multithreaded .Net C# application, it uses Direct3D 9/10 and XAudio2. (Direct3D is accessed by only one thread, same for XAudio2. Direct3D isn't the problem cause the error is manifest in either DX9 or DX10 mode without any change in its behaviour.)
Sometimes (there are some areas that gives this problem randomly) this applicat...
I need to save one XmlDocument to file with proper indentation (Formatting.Indented) but some nodes with their children have to be in one line (Formatting.None).
How to achieve that since XmlTextWriter accept setting for a whole document?
Edit after @Ahmad Mageed's resposne:
I didn't know that XmlTextWriter settings can be modified ...
To Any...To All,
My property grid is inspecting a class that has several color properties...
The colors are not system colors, nor 'Known' colors...
When displaying the colors the text value in the grid might look like this:
209, 175, 171
How do I define [Attribute] the Property so that when this color is chosen, the PropertyGrid un...
I'm trying to develop some asynchronous methods for a personal project of mine, and I'm looking into the framework for reference.
I've downloaded the .NET source code to take a look at the bits and bolts more closely (with developer comments, something that Reflector doesn't give us :-P )
Anyway, in a lot of .NET classes I've came acro...
I want to learn a bit of Silverlight by writing a simple proof-of-concept RIA. I am looking for hosting that is free and has minimal IT/configuration concerns. I see that Azure has a free introductory special. Is it advisable to go with Azure, or is there another, simpler offering out there?
(I have intermediate web dev experience (Djan...
This is code example which causes MarshalDirectiveException. Good explanation of SafeHandles could be found here.
[SuppressUnmanagedCodeSecurity]
private delegate SafeHandle testDelegate();
[SuppressUnmanagedCodeSecurity]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static SafeHandle test(){
FileStre...
Based on this answer...
http://stackoverflow.com/questions/201323/what-is-the-best-regular-expression-for-validating-email-addresses/201378#201378
Which led me to this site...
http://fightingforalostcause.net/misc/2006/compare-email-regex.php
I'd like to use this regex for email validation for my ASP.NET MVC app:
/^[-_a-z0-9\'+*$^&%=~...
I am building a minesweeper and was having difficulties with the mouse event. In the original Windows Minesweeper, the user may click and drag the mouse while pressing. The new tiles that the user enters while still pressing change to a cleared tile and the previous tile restores back to what it was if it was not clicked. On VB.Net, when...
I have wrote some application.
But when i run it on several operating systems we are getting those two files missing.
When i add them to the windows\system32 folder the application works fine.
I saw this solution how-to-install-msvcr71-dll-correctly but is there any way to make
my application to use more updated version of the file...
Forgive me if this is a silly question but I'm afraid that I don't know what 'the stack' is.
I know what 'a stack' is and I've learned the FILO/FIFO acronyms. But when people say things like 'a value type is allocated on the stack, not the heap' - I'm afraid I don't really know what that means.
When I introduce a logic error into a ...
I have an Employee class ( Id,Name,Age) with few objects. I am showing all the records in "Employee View" form using ListView control and allowing user to Add/Edit/Delete these records. And have separate Form to Add a new record or to edit an existing one.
(No database interaction, just have a List to persist these changes)
Now, I want ...
Hi folks
I have recently joined a new developing project building a thick client application using WPF and MVVM. I have developed applications in various .NET frameworks from 1.1 through to 3.5 and all major technologies; WebForms, MVC and WinForms. On all of my projects I have enjoyed every minute of it but on this project I feel that ...
Hi all,
I know about IKVM.NET that converts Java bytecode to .NET CIL. Is there a tool that performs reverse conversion? either with or without support for translating WinForms to JavaFX/Swing GUIs.
Thanks.
...
Dear all
I have a multithreaded C# program where I need to log how many ticks each thread spends in a specific spin wait lock.
I know there are methods for doing that from C or assembler, but is it possible from to access the same counter directly from C# in some way, that is, without going through the Stopwatch class (I assume callin...
I am looking for examples of open-source projects that have made use of different design-patters. One example that comes to my mind is use of Proxy Pattern in NHibernate
Help me find more
...
As all we know, Connection string is a very important info....
So taking this strategy while developing .net win-based application : "get a new connection object, use it, close and dispose it each time you need", How to handle connection string within the application?
...
I’m using Silverlight and the .NET RIA Services.
I’ve generated an entity data model from a database, created one domain class service for all the tables and chosen to generate the metadata.
Now, when trying to build I get errors in metadata that contain foreign keys in the generated file App.Web.g.cs. The problem is there are lots...
This is a continuation of questions like this one.
Is there known guidlines for tweek the performance. I don't mean gains in big-O, just saving some linear time.
For example, how much does pre-sorting save on either SortedList or SortedDictionary?
Say I have a person-class with 3 properties to sort on, one of them is age in years. Sh...
Hi all,
I'm writing a Windows Application that connects to a webshop through it's API and reads/writes values.
The Webshop can have multiple Payment gateways and I was thinking about writing a plugin to each one and create a user interface that will be available to select each one and load the correct assembly...
my idea is to have mu...