.net-3.5 Questions

9

Solved

I'm using a progress bar to show the user how far along the process is. It has 17 steps, and it can take anywhere from ~5 seconds to two or three minutes depending on the weather (well, database) ...
Parrett asked 10/6, 2009 at 18:9

4

Solved

How can I write a LINQ expression (or anything else) that selects an item from a List and join them together? Example IList<string> data = new List<string>(); data.Add("MyData1&qu...
Wright asked 21/4, 2010 at 3:33

4

Solved

I have a nullable type, e.g. SomeEnum? and a set of values, e.g. IEnumerable<SomeEnum?>. How to check that all items has the same value using LINQ (and get this value)?
Dementia asked 4/12, 2010 at 17:48

2

Solved

How can I launch an Outlook email window (similar to what mailto: does in a hyperlink) ? This needs to be done in a LinkButton click event.
Yautia asked 10/5, 2010 at 16:24

5

Solved

I'm currently evaluating the .net client profile for a future project, and there are some things I've found that I think make it pretty useless, unless I am missing something of course. I've insta...
Potency asked 16/5, 2009 at 15:53

8

Solved

How can I create a dictionary with no duplicate values from a dictionary that may have duplicate values? IDictionary<string, string> myDict = new Dictionary<string, string>(); myDict....
Mcgough asked 22/9, 2009 at 19:27

10

Solved

When I use Response.Redirect(...) to redirect my form to a new page I get the error: A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll An excepti...
Masturbate asked 5/5, 2010 at 22:2

5

Solved

I have two dictionaries containing a string key and then an object. The object contains five fields. Is there an elegant way to ensure both dictionaries first contain the same keys and then if this...
Boykin asked 20/11, 2012 at 9:40

5

I have a WPF project defined like this: MyApp.sln MyAppWPF MyApp.Domain In one of my xaml files in the MyAppWPF project I'm trying to reference a class defined in MyApp.Domain project. I have...
Atrip asked 19/10, 2008 at 18:6

3

Solved

if i have objectA that implements ISomeInterface why can't i do this: List<objectA> list = (some list of objectAs . . .) List<ISomeInterface> interfaceList = new List<ISomeInterfa...
Paediatrician asked 4/1, 2010 at 5:42

2

I´m trying to build my c# .NET solution containing 18 projects. Out of the blue I´m receiving an odd error message for one of my projects (the web gui). Error as follows "Error 1839 'Could not lo...
Pneumonia asked 5/6, 2012 at 10:32

1

Solved

How can I get the byte size of a type ? For exemple, the size of a Double is 8, but how can I get this value programmatically ? Thanks in advance :)
Beast asked 20/7, 2015 at 7:56

2

Solved

I need to set a voltage in an application. I'm used to using sliders in Labview, and would like to replicate that using a C# program. I've figured out that the track bar only does integer values, ...
Legatee asked 24/5, 2011 at 14:20

4

I have a bunch of Checkboxes on my form with their Checked properties bound to Boolean properties on the data model: chk1.DataBindings.Add(new BindingValue(this, "Checked", "MyBooleanProperty1", f...
Hamper asked 19/6, 2015 at 15:46

10

Solved

I'm trying to create a query which uses a list of ids in the where clause, using the Silverlight ADO.Net Data Services client api (and therefore Linq To Entities). Does anyone know of a workaround ...
Ericaericaceous asked 17/12, 2008 at 11:24

2

I'm getting what appears now to be a security error in my WCF Service. Originally my error was about a falted state(removed using around client proxy to clear this error), but have found more infor...
Parthenogenesis asked 10/6, 2010 at 11:23

4

Solved

I'm trying to get number of unread emails from Exchange for specific user. I'm able to get number of emails from Inbox like so: SearchFilter sf = new SearchFilter.SearchFilterCollection(LogicalOp...
Univalence asked 2/10, 2012 at 9:4

7

Solved

I read from the DB a long json. I want just one attribute of that json. I have got two options: a. Create an interface for that json and deserialize to that interface. (Is it an overkill as I ne...
Outstare asked 20/9, 2011 at 13:28

4

Solved

Apparently VS 2008 does not allow setting a breakpoint just on the setter of an auto-property. I.e. if I define an auto-property like this: public int CurrentFramesize { get; protected set;...

6

Solved

I have a solution with a single project file. I am deploying as a ClickOnce application. It all runs fine and well on my computer but when I try to run it on someone else's I get this error Syste...
Forfend asked 4/11, 2011 at 17:44

2

I realized a WPF Control Library to use as an Addin in MS Office 2007. The WPF-Class is instantiated by the host and creates a toolbar with some buttons in MS Office. By clicking a button the WPF w...
Beauvais asked 26/5, 2010 at 15:1

5

Solved

...I'm a little confused, or unsure about how to deal with errors that arise from LINQ statements. I just love being able to pull one or more items from a collection, based on some criteria... with...
Loading asked 10/9, 2010 at 21:21

1

Summary: Several different users will use my application on a specific machine. I want the application to store its data in a single common file on this machine regardless of which user is running ...
Giblet asked 12/3, 2013 at 15:48

4

Solved

There is a built in function from the Microsoft.VisualBasic assembly. I can use it in VB like this: Financial.Pmt((dAPR / 100) / 12, iNumberOfPayments, dLoanAmount) * -1 My current project is in...
Erechtheum asked 29/6, 2010 at 18:25

2

For installation reasons, I'd like to use 3.5 in my application. The only feature that I would be lacking is UseLayoutRounding, which worked very nicely with my custom controls. Is there a way to e...
Teter asked 1/1, 2011 at 14:53

© 2022 - 2024 — McMap. All rights reserved.