.net-3.5 Questions
2
How can I hide or collapse some group in ListView?
I just add some items
contactListView.Items.Add(new ISIMlistViewItem(contact));
if (contact.availability == 6)
contactListView.Items[contact.id...
6
Solved
I'm trying to get a grasp on WPF and MVVM and have been making good progress. The WPF and MVVM side of things are going well.
However, the XAML and data binding side is a whole other story :)
How...
22
Solved
I'd like to do two things on my progress bar.
Change the green colour to red.
Remove the blocks and make it in one color.
Any information about those two things I wonder how to accomplish will ...
19
Solved
What is the prefered method for creating a byte array from an input stream?
Here is my current solution with .NET 3.5.
Stream s;
byte[] b;
using (BinaryReader br = new BinaryReader(s))
{
b = ...
Implausibility asked 21/10, 2008 at 13:42
7
Solved
I want to:
Check a variable and determine if the last 2 characters are "Id"
If yes, remove them.
I can do it with this below, but then it will blow up if there is an "Id" subs...
2
Solved
Is there a substantial difference between the AppSettingsReader class and the AppSettings member of the ConfigurationManager class in .Net 3.5?
I'm building out some legacy code and a previous dev...
Potomac asked 16/8, 2010 at 22:3
4
Solved
For a .NET (Winforms) application are there any flip clock controls?
Ideally it would look something like the one found on the BlackBerry Bold:
alt text http://images.crackberry.com/files/u3/revi...
17
Solved
What is the quickest way to read a text file into a string variable?
I understand it can be done in several ways, such as read individual bytes and then convert those to string. I was looking for ...
10
Solved
I'm trying to create a unit test to test the case for when the timezone changes on a machine because it has been incorrectly set and then corrected.
In the test I need to be able to create DateTim...
7
Solved
I need to programmatically set a cell in editing mode. I know that setting that cell as CurrentCell and then call the method BeginEdit(bool), it should happen, but in my case, it doesn't.
I really...
Disinfection asked 29/11, 2009 at 2:11
7
Solved
I am writing unit tests that verify calculations in a database and there is a lot of rounding and truncating and stuff that mean that sometimes figures are slightly off.
When verifying, I'm findin...
35
Solved
I've added a proxy to a webservice to a VS2008/.NET 3.5 solution. When constructing the client .NET throws this error:
Could not find default endpoint element that references contract 'IMySOAPWe...
Spiraea asked 9/12, 2008 at 13:6
2
Is there any possibility to check from code if another process is not responding?
The problem is even if the app is crashed and on the Manager's list is marked as 'Not Responding', the Process.Res...
11
Solved
Does anyone know what would be the best way to detect which version of Office is installed? Plus, if there are multiple versions of Office installed, I'd like to know what versions they are. A bonu...
16
Solved
I have run into an issue with WPF and Commands that are bound to a Button inside the DataTemplate of an ItemsControl. The scenario is quite straight forward. The ItemsControl is bound to a list of ...
Jaundiced asked 2/12, 2008 at 23:49
3
Solved
I have a piece of code which is using Parallel.ForEach, probably based on a old version of Rx extensions or the Tasks Parallel Library. I installed a current version of Rx extensions but cannot fin...
Vinylidene asked 19/12, 2011 at 8:40
16
Solved
I have a list of integer values (List) and would like to generate a string of comma delimited values. That is all items in the list output to a single comma delimted list.
My thoughts...
1. pass t...
7
Solved
I used the code below to fill a data table -
OleDbDataAdapter oleDA = new OleDbDataAdapter();
DataTable dt = new DataTable();
oleDA.Fill(dt, Dts.Variables["My_Result_Set"].Value);
I get the er...
10
Solved
Suppose I have two classes with the same interface:
interface ISomeInterface
{
int foo{get; set;}
int bar{get; set;}
}
class SomeClass : ISomeInterface {}
class SomeOtherClass : ISomeInterfac...
3
Solved
I have a List<object> with different types of objects in it like integers, strings, and custom types. All custom types are protobuf-adjusted.
What I wanna do now is to serialize / deserialize...
Unamerican asked 29/5, 2009 at 1:14
6
I have been searching for a simple way to convert a dataset from a PostgreSQL database to JSON for use in a project that I am building.
This is my first time using JSON, and I have found it really...
8
Solved
I have a class like this:
class MyClass<T> {
public string value1 { get; set; }
public T objT { get; set; }
}
and a list of this class. I would like to use .net 3.5 lambda or linq to get...
4
Solved
I have two .NET applications that talk to each other over a named pipe. Everything is great the first time through, but after the first message is sent, and the server is going to listen again, the...
Whitleywhitlock asked 21/5, 2009 at 22:3
5
Solved
If I have a C# model class that is used by JSON.net to bind data from a serialized JSON string, is there a way that I can create a query string from that class in order to make the initial request?...
Daedalus asked 9/11, 2015 at 18:45
3
Solved
What naming conventions are you using for namespaces and sponsor classes? (i.e. the classes that hold extension method definitions)
Is there a standard/recommended .NET Framework naming convention...
Hogfish asked 26/6, 2009 at 20:16
© 2022 - 2024 — McMap. All rights reserved.