.net-3.5 Questions

4

Solved

I need to show a form exactly in front of another form, this lead me to the following question. How come a form can have a start position as CenterParent while having the field this.Parent equals ...
Polytechnic asked 8/6, 2012 at 8:1

3

Solved

What is the best way to remove item from dictionary where the value is an empty list? IDictionary<int,Ilist<T>>
Ophthalmia asked 2/5, 2013 at 14:34

4

Solved

I am developing an winform application in .NET framework 3.5, using C#. In the application I need to display the IE version number, installed on the machine on which it runs. How can I do th...
Stuartstub asked 1/6, 2011 at 7:41

1

I want to call dll which is built using .NET 4.0 from C# project which should be built using .NET 3.5. I mean .net 4.0 dependent code should executed only when my machine has .net 4.0 install...
Jujitsu asked 16/4, 2013 at 13:29

3

Solved

How the C# compiler implement extension methods?
Unsociable asked 14/10, 2010 at 10:10

2

Solved

I have a .NET 3.5 web site with a table tag that contains col, colgroup, tbody and thead tags. This is a server side tag with the runat="server" attribute. This table was working fine in Visual Stu...

5

Solved

Mind you, I am using master pages, but can I locate a div within the page and throw some html in there? Thanks.
Sherwin asked 21/1, 2009 at 21:10

10

I am using C#.NET 3.5, and I have a problem in my project. In C# Windows Application, I want to make a textbox to accept only numbers. If user try to enter characters message should be appear...
Kliman asked 17/2, 2011 at 12:3

4

Solved

I'm loading blobs out of a database as a byte array and I put them in a memory stream so that I can load them into an xmldocument for parsing. However there are blobs that have multiple root nodes...
Misprize asked 21/11, 2011 at 18:8

6

Solved

I've run into a bit of a problem with my class hierarchy, in a WPF application. It's one of those issues where you have two inheritance trees merging together, and you can't find any logical way to...
Verina asked 17/8, 2009 at 18:47

2

I want to create an asynchronous socket Server using the SocketAsyncEventArgs event. The server should manage about 1000 connections at the same time. What is the best way to handle the logic for ...
Flowerage asked 8/10, 2009 at 14:55

5

Solved

Please consider the following code and comments: Console.WriteLine(1 / 0); // will not compile, error: Division by constant zero int i = 0; Console.WriteLine(1 / i); // compiles, runs, throws: Di...
Ancilin asked 5/1, 2011 at 22:7

3

Solved

Given: A VSTO Add-In An override object RequestComAddInAutomationService() which returns an instance of a class which is called Facade in my scenario. A VBA macro in Excel 2007 which accesses the...
Wart asked 10/11, 2010 at 14:52

4

Solved

How do I treat the SQLiteCommand object, do I have to call Dispose() after ExecuteScalar, ExecuteNonQuery and ExecuteReader or not? The documentation example on SQLiteCommand doesn't dispose it wh...
Earthling asked 14/3, 2013 at 11:39

5

Solved

I have a statement where a string is assigned in the following manner: for (int i = 0; i < x; i++) { Foo.MyStringProperty = "Bar_" + i.ToString(); /* ... */ } Are there any performance dif...
Ananna asked 29/12, 2009 at 14:1

2

Solved

I try to find how to assign a bool to a checkbox. I want that my checkbox.checked value refresh automatically when my bool data change. I know that for ComboBox there are the DataSource attribute t...
Lutero asked 6/3, 2013 at 19:52

2

Solved

I am receiving data from a device that's sending information over the serial port and I get this exception: "ObjectDisposedException Safe Handle has been closed". It may happen within seconds to se...
Imbrue asked 26/12, 2009 at 19:16

2

Solved

I am using ADO.Net DataServices to expose an Entity Data Model to Silverlight. The model has a stored procedure that returns void. I want to call this procedure from the Silverlight client. My und...
Spann asked 25/2, 2009 at 18:13

3

Solved

How do I do a depth first search using a Queue in c#? The following is my datastructure: public class Node { public string Name{get;set} public IEnumerable<Node> Children{get;set;} } No...
Hallah asked 20/2, 2013 at 9:10

1

I am retrieving a .docx file as a byte array. I am then trying to call the Doc’s read() function with said byte array as the data parameter but I am getting an unrecognized file extension error. I...
Unhesitating asked 12/12, 2012 at 14:47

2

Solved

This code doesn't work when it finds a none empty file throwing Unable to cast object of type 'System.String' to type 'System.Web.HttpPostedFile'. foreach (System.Web.HttpPostedFile f in Req...
Aaron asked 8/2, 2013 at 13:54

4

I understand that there are many posts about this, and I've been through all of them that came up on my search and implemented everything that was mentioned. I have a WCF web service that works on ...
Gilkey asked 30/1, 2013 at 18:50

4

Solved

How do you go about querying running processes to find out what folders or files they have locked? (i.e. you go to eject a drive and you're told that it can't be ejected because it's in use) I'd l...
Indistinctive asked 5/7, 2009 at 17:34

3

Solved

I'm trying to do something that I think should be fairly simple but I've spent way too much time on it already and I've tried several different approaches that I researched but to no avail. Basica...
Acreinch asked 6/3, 2012 at 15:13

5

Solved

I have a text box in WPF that is part of a datatemplate for a listbox. In that text box I can delete, backspace, spacebar, but I can NOT type in new words, letters or numbers. I CAN paste from note...
Waligore asked 23/2, 2009 at 18:50

© 2022 - 2024 — McMap. All rights reserved.