I am writing an application that I need to run at incredibly low processor speeds. The application creates and destroys memory in creative ways throughout its run, and it works just fine. I am wondering what compiler optimizations occur so I can try to build to that. One trick off hand is that the CLR handles arrays much faster than list...
I want to create a installer which
would just dump few files and folders
at a location specified by user. But
the problem is these files are
required to be picked up from a fixed
source folder and then the installer
is build. Also, these files may change
any time and then again a new version
of the installer is require...
Error:
'WithEvents' variables can only be
typed as classes, interfaces or type
parameters with class constraints
Background:
Public Class Tadpole(Of T As IVisibleChanged, P As IVisibleChanged)
Private WithEvents _Tad As T ' ERROR '
Private WithEvents _Pole As P ' ERROR '
Public Property Tad() As T ...
Public Propert...
I have a Grid which contains an Image in one of its columns. The image itself does not have any Width or Height set, but its size is correctly controlled through the ColumnDefinition set. From this I would assume that the image controller actually has a Width and Height set, but when I try to bind another element to its Width and Height ...
Does anyone have a sample on how to control timing of a audio clip in wpf c#
I'm using this code to control timing of a animated disappearing of a image.
DoubleAnimation AnimImage3Ut = new DoubleAnimation();
AnimImage3Ut.From = 1;
AnimImage3Ut.To = 0;
AnimImage3Ut.BeginTime = (TimeSpan.FromSeconds(12.0));
AnimImage...
Is this a good aproach to making sure the fields has valid values for a database?
internal class Customer
{
private string _CustomerId;
internal string CustomerId
{
get
{
return (_CustomerId==null?string.Empty:(_CustomerId.Length>20?_CustomerId.Substring(0,20):_CustomerId));
}
...
i have the files situated in the listview now i want to copy those files to a directory in windows..
how this action can be performed??
...
What is the best way to transparently inject dependencies (using IOC container) to user controls in WPF?
I assume that user controls are part of XAML for the window or other user controls.
Also I think parent (whoever it is) should not be responsible for this. Solution for manually injecting dependencies from parent looks not clean enou...
Hi,
I will prevent a window from iTunes to be opened.
I googled a lot but can't find an iTunes library that allows me to control such things, so I think I must get back to basics and close it after it opens, but how?
I think:
Tick a timer every 500 ms
Check if the window handle is opened
Close it
Is that possible?
How can I recogni...
Is there C# (.NET) library for Lego Mindstorm NXT, which is up-to-date?
NXT.NET for LEGO Mindstorms
last update 18.04.2008
http://nxtnet.codeplex.com/
MindSqualls
last update 05.06.2007
http://www.mindsqualls.net/
Lego .NET
last update 07.04.2005
http://www.dcl.hpi.uni-potsdam.de/research/lego.NET/weblog/
I know, there is MS...
Hi all,
I'm looking for an ESB for .NET. I've seen nServiceBus (http://www.nservicebus.com/) but before digg, I've a question
can Microsoft AppFabric work as an ESB ?
Should I rather look for nServiceBus or AppFabric ?
Thanks for your help
...
can anyone provide c# code for getting recorded video from camera via windows media encoder. Thanks..
...
I have a DataGridView bound to a DataTable.
Once the binding is done, I manually search through all the cells of the DGV and replace a single regular DGV cell with a DataGridViewComboBoxCell instance. The cell has its own data source bound to it.
The problem I'm having is that when the user makes a selection in the DataGridViewComboBoxC...
Good morning all,
After a day of googling, I’m at a loss. I decided to come here and ask the community. I am in the process of making a namespace extension for vista in C#. Now I understand that MS says not to do this, but I am simply doing it as a proof of concept.
The Problem: I am lacking the knowledge and understanding to figure...
on master file got ...
<div id="nav-main">
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" Orientation="Horizontal"
Width="573px" CssClass="menu-main" MaximumDynamicDisplayLevels="0"
StaticSelectedStyle-CssClass="StaticSelectedStyle" Height="32px"
StaticSubMenuIndent=...
I have a program that will let me manage users on our terminal server that we use to demo our software. I have been trying to improve the performace of adding users to the system (It adds the main account then it adds sub accounts if needed, for example if I had a user of Demo1 and 3 sub users it would create Demo1, Demo1a, Demo1b, and D...
first is the disclaimer, I did not design the database I am now supporting and I would not have designed it this way, but here I am.
Problem: My client has a table in his database that contains listings for rentals. In this table is a text field to store the city of the listing. What my client is hoping to see is a dropdown list of all ...
I need to do the following things for a text file..and insert the seeked words to a excel please give me some tips:
Seek the letter sequence anywhere in the file "stg-" take the first two characters from where it is searched ... eg if the sentence has abc-stg-c5-sfdsdf then it should take c5 and this c5 should insert in the first col...
How can I obtain the server address that was used for a request when it has multiple IP addresses?
E.g.
the server has the addresses 10.0.0.1 and 10.0.0.2.
when processing the request the server service needs to know if 10.0.0.1 or 10.0.0.2 was used by the client to connect to it.
So far I only found that
OperationContext.Current....
In my WPF application I have some drawing functionality. I have solved this using a Canvas and handling mouse gestures manually, and I also add the drawn Strokes (wrapped in InkPresenter) to this Canvas.
Using Blend I suddenly discover that there is something called InkCanvas. According to Blend this is a control that "Defines an area ...