.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...
Psychophysics asked 16/9, 2012 at 8:38

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...
Purse asked 13/8, 2010 at 12:18

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 ...
Fiche asked 22/4, 2009 at 19:2

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...
Sutherlan asked 12/3, 2011 at 18:41

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...
Victualage asked 19/5, 2010 at 18:42

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 ...
Legging asked 12/9, 2011 at 11:22

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...
Clothier asked 29/10, 2008 at 11:48

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...
Whipstall asked 6/8, 2010 at 3:21

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...
Latvian asked 17/8, 2010 at 8:30

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...
Albrecht asked 16/7, 2010 at 15:53

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...
Fan asked 11/12, 2009 at 18:45

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...
Runstadler asked 4/11, 2013 at 20:19

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...
Coben asked 19/11, 2008 at 22:5

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...
Award asked 10/12, 2008 at 11:59

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...
Vaginismus asked 26/7, 2009 at 0:6

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.