.net-3.5 Questions
2
Solved
I wrote a customcontrol. It is a textbox with a button which opens a OpenFileDialog.
The Text property of the TextBox is bound to my dependency property "FileName". And if the user selects a file ...
Idiophone asked 19/12, 2011 at 9:51
2
Solved
I've a solution targeting .net framework 3.5. All the references to core dlls have runtime version 2.x since they were compiled with it. Why is it so? Does this mean I'm not using latest versions o...
Nyx asked 13/12, 2011 at 10:24
3
Solved
I have a bit of mess with projects coming some on 4.0 some on 3.5
Is it possible to find out what version of .NET was the dll built looking into the file (not from code!) ?
Pomeroy asked 26/7, 2010 at 9:41
5
Solved
I have a previous question which I have provided my solution; however, I don't have access to ConcurrentQueue<T> since I am on .Net 3.5. I need Queue<T> to allow concurrency. I read thi...
Danelledanete asked 29/12, 2010 at 15:22
4
Solved
Does anyone know of a faster way to enumerate through a directory and sub-folders to gather all the files in the enumeration? This is what I have right now:
Public Shared allFiles() As String
allF...
Betancourt asked 28/6, 2009 at 4:28
2
Solved
This is the first time ever that I'll be using SafeHandle.
I need to call this P/Invoke method that needs an UIntPtr.
[DllImport("advapi32.dll", CharSet = CharSet.Auto)]
public static extern ...
8
Solved
I have a Linq to Entities query like this one:
var results = from r in entities.MachineRevision
where r.Machine.IdMachine == pIdMachine
&& r.Category == (int)pCategory
select r;
Usual...
1
I'm trying to use Pex to test some code. I have an abstract class with four concrete implementations. I have created factory methods for each of the four concrete types. I had also created one for ...
Axiomatic asked 21/9, 2011 at 18:49
1
Solved
I created a user control for Windows forms application. All it has is a TableLayoutPanel with four cells. Cell[0,0] and cell[0,1] have labels. Cell[1,0] has a treeview and cell[1,1] has CheckedList...
5
Solved
My client gave me very diffrent requirement yesterday.
I have one folder at server where thousands of files are comming daily. He want me to write a logic to check dates of file. If files are ther...
5
Given a method
public static bool Connection.TryCreate(out Connection connection) {}
And a piece of calling code:
Connection connection;
if (!Connection.TryCreate(out connection))
// handle fa...
Hendecagon asked 19/11, 2011 at 18:25
1
Solved
i've changed a project to target
.NET Framework 3.5
rather than
.NET Framework 4.
The project now crashes whenever i try to access settings:
Settings.Designer.cs:
return ((global::Syste...
Guaranty asked 15/11, 2011 at 18:45
3
Solved
I ran across this code during some debugging.
private bool HasBaseType(Type type, out Type baseType)
{
Type originalType = type.GetType();
baseType = GetBaseType(type);
return baseType != origi...
2
I have been working on a utility to convert various files to PDF for easy printing/emailing. I'm trying to add support for CGM files but have not been able to find any libraries to help me do so.
...
Parament asked 17/11, 2010 at 14:52
7
Solved
If I use a FileStream to create a StreamReader, will the StreamReader close when I close the FileStream or will I need to close the StreamReader too?
public void ReadFile()
{
var file = new FileS...
Hospers asked 24/11, 2009 at 19:0
3
Solved
I have a Silverlight 3.0 application that is using a WCF service to communicate with the database, and when I have large amounts of data being returned from the service methods I get Service Not Fo...
Boehmer asked 18/3, 2010 at 21:59
1
Solved
I have an asp.net page with multiple validation summaries setup with ShowMessageBox="True" and several validators. I have run into a situation where when validation fails the validation summary dis...
4
Solved
I have tried compiling the service EXE file as AnyCPU, x86, and x64. It works on my Windows 7 x64 box. I'm installing with installutil, the .NET 4 version.
When I start the service, I get an ...
Suspender asked 23/7, 2010 at 15:0
1
Solved
to create & find users & groups in Active Directory i've been using this code:
http://anyrest.wordpress.com/2010/06/28/active-directory-c/
that is using the new System.DirectoryServices.Acc...
Saltcellar asked 17/10, 2011 at 10:49
5
Solved
Possible Duplicate:
typesafe NotifyPropertyChanged using linq expressions
I'm working on a large team application which is suffering from heavy use of magic strings in the form of Not...
Speiss asked 11/10, 2011 at 15:23
1
Solved
I have several c# structs that give shape to structures in a very large data file. These structs interpret bits in the file's data words, and convert them to first-class properties. Here is an exam...
Tangram asked 10/10, 2011 at 19:59
1
Solved
.Net 3.5
I know that the columns doesn't inherit the datacontext and by reading other posts i thought this would work:
Visibility="{Binding RelativeSource={x:Static RelativeSource.Self},
Path=(F...
Abecedarium asked 10/10, 2011 at 10:12
2
Solved
I am sing C#, .NET 3.5, and SMO to create a copy of a database (our production database) to some other databases (our DEV and Test-database) in SQL Server 2005.
I have managed to create a backup f...
Rajah asked 16/8, 2011 at 14:0
1
Solved
I have a WinForms app deployed to multiple machines in the same office. Up until this Monday, all users in the office used the app without issue and used the OpenFileDialog to select files to impor...
Segura asked 29/9, 2011 at 20:20
3
Solved
I'm wondering if anybody's found a good solution to this:
In our unit tests; we commonly use Assert.AreEqual() to validate our results. All is well and good; until we start trying to use this on D...
© 2022 - 2024 — McMap. All rights reserved.