Image index of TreeView node changes upon selection.
When I tried using the imagelist in treeview, the image index changes when treenode is clicked. I have no idea why it is happening. Can anyone help me? Thanks in advance ...
When I tried using the imagelist in treeview, the image index changes when treenode is clicked. I have no idea why it is happening. Can anyone help me? Thanks in advance ...
Hi, I am attempting to implement some additional statistics gathering in a C# server application - I have about 20 or so variables I'd like to be able to report to network monitoring tools; so I am assuming (hopefully correctly) that SNMP is the correct way to go. There are however two problems: The application is an open source serv...
I've tried to get a solution for the above said question from MSDN Social and other resources from Microsoft. I was specifically looking for offline scenarios where client come online only to fetch updates from the Server. There are plenty of articles on Sync covering Sql CE but MSFT team seems to be ignoring questions from the communi...
Hi , This is a .net CLR related question. I have 3 objects object A,B,C A refres B and B refers c What happens to these objects in the heap if i kill the Object "A" explicitly.Which will be garbage collected?(Object A or B or c or all?) Can some one explain the garbage collection process in this scenario in detail. Thanks in advanc...
In digital imaging, when overlaying two visual layers there are multiple ways you can calculate the image that results when light from a lower layer shines through an obstructing layer in some way. This can offer effects that do not occur as natural phenomenon, such as multiplying colours. Here's an example of the layer blending mode m...
I have the following method: static double NewtonMethodModified(Func<double, double> f, double x0, double h) { ... } Now, I'd like to know how to call it the following way: NewtonMethodModified(<lambda expression here>, 1.0, 1.0); I'd guess this should be something like NewtonMethodModified(x => 10x-5, 1.0, 1.0); but it doesn't ...
In .NET is there any API that allows me to restrict some IO operations to the specified path? For example: Root Path: C:\Test\ Now I want to call a function like this: IO.Directory.CreateDirectory("../testing/",Root) And now I want the API to handle this situation for me and do not create a folder other than the specified direct...
Hi I am exploring ways to implement something Visitor Patterns alike without all the decorating visit methods. Sofar I found out I could use Option Strict Off in VB.NET but it has some side effects. I have a set of Shape classes that inherit from a baseclass Shape. Assume we have the following class that Accept's shapes: Public Class Sh...
Hi The following code for RIA works in my silverlight client. But I dont want all the data from table "tbLeagues" - so how would i filter it? JasonsDomainContext context = new JasonsDomainContext(); dgLeagues.ItemsSource = context.tbLeagues; context.Load(context.GetTbLeagueQuery()); Reading many articles ...
Hello, I have somethings to store some data. Some of it information about how I'm implementing and other is some secure info like passwords,Activation code. Now how do I store this info on a file (info.dat). I don't want user to see ANY of this data when he opens info.dat in a text editor. What do I need to do? How to do? ...
Hai i am getting a date input(Not the DateTime.Now) from the user and i want that to transform and show in a Date format. E.g: in the XAML, will be specified and i want that to be shown as "PrintedOn - October 24,2008" .The string formatting is string.format("{0} - {1}",userText, userDate). Where am i going wrong?How can i convert the U...
I'm looking for a tool that I can run against my code base to determine which areas of my code are covered by NUnit tests I've written. I would appreciate any suggestions at all, and example usage if needed. Thanks! ...
I'm building a product that will ship after .Net 4.0 is released. Is MEF an integral part of .Net 4.0, so I can count on them being released together, or is it some external component that might be released separately and thus it is dangerous to use? ...
Hi, I'm trying to create a transparent ListBox in a WPF application. I want the ListBox to be completely transparent, thus a background image is visible "behind" the ListBox. However, I want my ListBox items to be totaly opaque, that is to say, they lay on top of the background image. Do anyone know how I can accomplish this? Thanx i...
I'm trying to check the validity of a particular 'stand-alone' code file from within my C#.Net app. Is there any way that I can check the file and get a visual studio's style errors list out? I'm only interested in running a basic check to ensure that the basics would validate. I.e. all variables are declared and method names are valid....
I have a class with a Property called 'Value' which is of type Object. Value can be of any type, a structure, a class, an array, IList etc. My problem is with the setter and determining whether the value has changed or not. This is simple enough for value types, but reference types and lists present a problem. For a class, would you as...
I ran into a remoting exception: "This remoting proxy has no channel sink which means either the server has no registered server channels that are listening, or this application has no suitable client channel to talk to the server." The cause is best explained by this blog entry I found: The second case is more obscure. This occ...
I have a Parallel.ForEach loop running an intensive operation inside the body. The operation can use a Hashtable to store the values, and can be reused for other consecutive loop items. I add to the Hashtable after the intensive operation is complete, the next loop item can look up in the Hashtable and reuse the object, instead of runni...
I need .NET UI control that acts as a designer/editor window similar to what you see in some of these applications: - Visual Studio - Visio - Balsamiq - Windows Workflow - Photoshop I hope to use WPF, but will settle for WinForms. I need to create custom widgets that I can drag, drop, and edit in the designer/editor window. I ...
public class Foo : IFoo ... What is the difference between IFoo foo = new Foo(); and Foo foo = new Foo(); ...