.net

Change default highlight colour of TabItem in TabControl WPF

Hi, Im trying to change the default highlight colour of a tab item in a tab control in WPF. In the image the highlight colour is orange, I just want to know if there is away to change it to another solid colour? Here is my XAML which declares the TabControl and 2 TabItems <TabControl> <TabControl.Background> ...

WCF discovery: Interface not found exception

I'm trying to use .net 4's discovery in WCF. But no matter what I do, I'm getting this not very useful exception: System.ArgumentException crossed a native/managed boundary Message=Interface not found. Source=mscorlib StackTrace: at System.RuntimeTypeHandle.VerifyInterfaceIsImplemented(RuntimeTypeHandle handle, RuntimeType...

Namespaces - How deep is too deep

We are currently reorganising some of our services projects so their naming is more logical. We have the following structure: Djp.Services.Type. ServiceName This seems to make sense as a logical grouping, however what I want to know is, is it acceptable to have further levels under this based on the folders in the project. For exa...

Spring.Net: Inject ApplicationContext / ObjectFactory itself

Hi Is there a way to pass the IObjectFactory or the ApplicationContext that is currently executing as dependency to an object? For example <object id="SpringActionInvoker" type="xxx.SpringActionInvoker, xxx"> <constructor-arg ref="reference_to_the_ApplicationContext_or_ObjectFactor_that_is_executing" /> </object> I want to us...

MEF. How to load a winform into winfrom container ?

Hi guys, I have dicided to play a little bit with MEF2 and net3.5 and I have thougth it would be easy but I am stuck now. Generaly the idia of my toy is I want to have form containet where I am going to load form extantions and show them. I did this code My extantion : using System.ComponentModel.Composition; using System.Windows.For...

Select configfile during installation

Is it possible to add a custom buildaction which allows the user to select the wanted configfilesettings during installation? My issue is that I have a large configfile (and logfile) which currently includes settings for developmentmachines, testenvironments, stagingenvironments and production. I would like the installer to ask me (for ...

Converting MIDI byte array to MP3 byte array

Converting MIDI byte array to MP3 byte array Does someone know how to convert a MIDI file (average playback time of 30 seconds) which is represented in a byte array to an MP3 byte array. So ideally i need to have a C# function which accepts a MIDI byte array and returns a MP3 byte array. The conversion should not take more than 2 - ...

Linq to SQL Performance

Succinct How do I performance tune my Linq To SQL DAL methods? Specifically the amount of data being transferred. Verbose I have a Winform app that uses Linq To Sql to access it's data. We have 5 branches, 1 physically at the same location as the SQL server and the other 4 at various distances and bandwidths. My app is your typical...

How do I get a WPF element to respond to changes in a VB Module?

Hi, Objects whose Properties are observed for changes must implement the System.ComponentModel.INotifyPropertyChanged event to alert their WPF-element observers that a change has occurred. If I have a Visual Basic Module whose Properties I wish to have observed by a WPF element, how should I go about routing the Properties of that Modu...

Does Windows Phone 6.5 Support XNA and Silverlight?

Thank you...... ...

Updating lonvar columns in sqlbase database via .net

I need to put the item-id of a newly created appointment into a table. The Database is Unify Sqlbase and i use their .net data provider to access it. My code goes as follow: ItemId newAppointmentID = user.ExchangeConnection.createAppointment(subtype, text, finalDateVor, finalDateNach); SQLBaseCommand writeComm = sqlbaseConnection.Crea...

TcpClient -> How to retrieve a stream from a sub-directory like http://localhost:8000/admin?

I have a Stream running at this URL: http://localhost:8000/admin I want to connect to it via a TcpClient, but don't know where I can specify the directory. currently I do this: tcpClient.Connect(IPAddress.Parse("127.0.0.1"), 8000); ...

LinkedList, First and Last

I have a question about LinkedList<>. There are properties of this list First and Last. Will that properties correct if I will set Last.AddNext(First)? I need to have a list where Last>Next = First, but identify clearly the First and Last elements. I have a cycle process.NextStep, NextStep, but need to be able to identify each Step (p...

Including .NET Framework 2.0 with InstallShield in my Application Setup

I have application develop in .net 2.0. I have downloaded InstallShield 2010 I want that Installshield make setup for my application which detect dotnet framework if not available then install this framework from my setup file instead of going to internet and install it. How can i achieve this task using InstallShield? ...

Automatic Disposal Extension Method reasonable?

I've been writing some custom WinForm controls which do a pretty heavy amount of drawing and therefore tend to have a lot of disposable graphics based fields lying around (Brushes, Pens, Bitmaps etc..) and as a result my Control's Dispose() method has to call Dispose on each of them. I got concerned that I (or a future maintainer) could...

is jQuery the best way of dealing with user interaction in C# .net environment?

Hi, I'm wondering, .net has all these build in GUI elements. The purpose is that we build a .net web application and for the coding itselve I know my way. But as for user interaction, ajax, etc.. I'm very familiar with jQuery in PHP but I noticed that in .Net everybody starts using it too. Is jQuery the best way these days to deal wit...

Does Windows Phone 7 already support Visual Basic?

I just know that it supports C#, but I read things showing in Visual Basic. Does WP7 already support or is it just users creating things? Thank you. ...

Entity Framework - First query slow

Hello As the title suggest i'm having a problem with the first query against a MS SQL database using the Entity Framework. I have tried looking for an answer on different sites but no one seems to actually have a solution to this. I'm loading quite a lot of rows from the database including two 0-many relationships. The tests was done i...

Microsoft .net, is it worth it?

So with Microsoft .NET, you get the advantage of language interoperability. But I've heard that this is slower than native applications. What if you only need one language? Then what are the advantages. I am a C and C++ programmer, and .net seems to be heavily tied with C#. Is this the case? And is dot net portable, or tied to windows? ...

What is "&H5DC"?

My friend had a VB.NET project and lost the source. I decompiled project binaries and got it back. In the decompiled codes I saw some lines like image.Height = &H5DC. Apparently it is integer but I don't get it, what is "&H5DC"? Is it hexadecimal? How can I find out its actual integer value? ...