Hi,
I have an external datasource that implements IHierarchicalEnumerable. I'm trying to use that datasource for my TreeView, but I can't find a way to specify the images and individual navigation urls the control should render (there is some business logic there).
The examples I have seen all assume the Url and the Name and Image fiel...
Please let me know if this has been asked before, I wasn't able to find any questions on this subject:-
I need to determine the inner exception of an exception thrown on a computer with the .net framework installed but not Visual Studio (nor is it possible to install Visual Studio on the computer). How can I examine this inner exception...
Hi,
I have the problem that I'm instanciating an object on the UI-thread (WinForms).
This object creation probably takes very long, and I would like to have some sort of a "timeout" for that method (because it's blocking my app).
The problems I have are:
1. the object must be created on the UI thread
2. the object is a foreign object,...
hello, i am using a BindingSource.Filter to list only certain elements of the datasource.
especially i use it like this a lot:
m_bindingSourceTAnimation.Filter = "Name LIKE '" + FilterText + "'";
now my question is, if it is somehow possible to use regular expressions with these filters.
i would especially need multiple wildcard (*) ...
I'm talking about managed .NET code.
If we run any program and attach VS to it we can see parameters' values for each method in call stack.
I'd like to create a logging solution which will log all parameters' values for each method in call stack. Actually I need this info in case an exception occurs.
I know it's possible with profiling ...
We are in a process of developing a really complex system consisting of several WCF services, ASP.NET MVC applications, administration tools (Windows Forms apps)... Some of those, will have instances running on several servers. We are looking for a good auto update solution for such a system. Most likely, we would need a separate auto up...
I am trying to write some complicated acceptance tests for my C# code. I notice that when I am writing my tests I am doing a lot of explicit casting to satisfy the C# compiler. I like the type-safety I get in my production code with a statically-typed language like C#, but for my tests I would be happy to use a dynamically-typed language...
Hi,
I have got a data migration app writting in .Net 3.0 VS2008.
I have deployed in debug mode and copied the PDB
file to the server I want to runit.
I get an exception but no line number.
This is how i display the exception
Why is there no line number of the exception???
Malcolm
string msg = string.Format("{0} {1} {2}",ex....
Here is a scenario: User installs .NET application that you have made. After some time, you find a security issue in it and create a patch for it. When patch is ready, you post it "somewhere", and when next Windows update is run on user's machine (automatically or manually), that application is updated, too. I'm wondering if this is poss...
Suppose you were writing a network-based WinForms application which is supposed to run in a "paranoid" environment due to restrictive company policies at the customer site. What kind of restrictions did such hostile environment have, and what did you do to design around them?
Some examples to begin with:
Problem: There is a very restr...
Hi
I'm trying to learn dependency injection and have come across a problem, when unit testing the application.
I'm writing a console application and the container is created and initialized in Main(), it's available as a get-property in Program.Container, so anywhere in my application I can call Program.Container.Resolve<..>().
I have...
I am using the .NET framework with the System.Data.OracleClient namespace. I have the oracle 11 client installed on my computer. I do not want to use the tnsnames.ora file to store connection information.
Could someone please tell me what the connection string would look like if I did not want to use the tnsnames.ora file? I will be ...
My deployed application uses ReportViewer (CLR 3.5) to print locally reports.
Recently users noticed problem with printing.
I've investigated that and turned out that in some PC reportViewer set page format to Letter (instead A4) that's why printouts are cut.
Note all user use same network-deployed version with same ReportViewer dlls. ...
I am designing a WinForms CRUD "like" app for a large group of Nurses and Social Workers to interact with Client information.
There are many different forms(about 30ish) that they need to "possiblly" interact with for any given client and they "can be" required to jump from one to another for a specific person.
I am strugghling wit...
What's the equivalent of the VB6's DoEvents in .NET?
EDIT:
I have a Sub that takes a long time to do its work. (it has a do-while) when I call it, The form turns white. in VB6 I used to put a DoEvents in the method (inside its do-while) to prevent this.
...
I am creating a webservice using Windows Communication Foundation (WCF) and I currently don't know what the best way to do validation with it is.
I have two methods: CreateCustomer(Customer) and CreateCustomers(List<Customer>).
If a client passes in a list of customers, and some of the customers are invalid, should I reject the enti...
I am aware of Castle's DynamicProxy and RhinoMocks, but I was wondering if, given the fact that Microsoft has introduced unit testing as a first class feature of Visual Studio, whether they have provided any standardized object mocking mechanism to accompany it?
...
. net datetimepicke can not Change to Persian calendar
I Need A Multi Culture DateTimePicker that support geregorian And Persian And Hijri Cultures.
...
Hello,
Before asking this question I have Googled for this problem and I have looked through all StackOverflow related questions.
The problem is pretty simple
I have a string "North Atlantic Treaty Organization"
I have a pattern "a.*z", at moment it would match
north ATLATIC TREATY ORGANIZation
But I need it to match complete words...
I have a solution that includes both a web and a Windows NT service application. These are of course two different projects but within the same solution. They do however share a lot of the same configuration.
Currently I have the same values in both the web.config and the app.config file. This is starting to get messy and I'd like to h...