I've got a f(x) that returns a collection of user controls. .Net lets me just treat the f(x) name as the collection. Is there something wrong with doing so?
ex)
Private Function GetCcB() As Collection(Of Reports_ucColumn)
Dim cc As New Collection(Of Reports_ucColumn)
cc.Add(Me.ucColumn0)
cc.Add(Me.ucColumn1)
cc.Add(Me...
I hate it when I try to apply some logic to positioning elements on a form, only to have the rug jerked out from under me because of some bizarre gotcha like the visible area of the Control being affected by a Border which, in effect, creates a 3 pixel margin all around the inner, visible area of the Panel, and completely throws off any ...
Hello,
I'm learning erlang and I'm very fascinated by the mnesia db. I want to build some real world application in C# / F# using erlang as backend.
I'm searching for a good solution to communicate with erlang nodes from the outside world.
What I found so far:
(A) OTP.net, an opensource .net library implementing the 'native' erlang c...
We are currently using a .asmx web service method which serializes our object to Json to be returned to the client and consumed by MS Ajax code. For some members of the object, we use custom converters via classes that derive from JavaScriptConverter and override the Serialize method. We "wire up" these custom converters in our web.con...
I have been working on variety of projects at my work. I am thinking to organize all the projects within solutions in the following tree structure:
[Common Libraries] -- virtual and real folder
project1
project2
.... -- projects or folders
[Application Group1]
[Application1]
project1 -...
Greetings!
I have a class which is used like a cache:
public sealed class MyCache<T> : IDisposable
{
private ReaderWriterLockSlim theLock = new ReaderWriterLockSlim();
private Dictionary<int, T> theCache = new Dictionary<int, T>();
public void Add(int key, T value)
{
// ... logic/code to add to the dictionary
...
How might I create a brush that paints a regular, repeated grid of 1-unit thick lines spaced evenly in both the horizontal and vertical axes? Imagine graph paper, if you will.
Ideally the solution would allow control over the brushes used for the lines and the background (the regions within the squares). In this way the background cou...
I've investigated several C# DLL's and have not found any that work especially well. My requirements are:
PDF documents are uploaded via an ASPX page.
Text needs to be extracted and stored in the DB with the PDF.
Solution cannot have additional cost for replicating the Web App (so if I know it will work, a fixed-fee solution would be...
Anybody have any experience with 3rd Party WinForm .NET grid controls?
Before I spend the afternoon downloading and trying out several of the grids and/or control packs, anybody have opinions on vendors? functionality? etc.
Some of the ones I'll be looking at are:
XCeed Grid
Telerik Grid - Part of RadControls for WinForms
...
If I have two assemblies, one containing just business rules (assembly A), and the other that acts as an interface to external dependencies such as File system, DBs, web services, etc. (assembly B), should A reference B or should B reference A?
For Example:
If I have a SourceCodeInterpreter class (assembly A), should it instantiate a S...
I know this is fairly subjective, but I'm diving into testing and learning about mocking, and I'm trying to figure which framework I should use. If you could please tell me which ones you recommed and most importantly why it's better than others you've used I would aprpeciate. Or if anyone knows where I can get a side-by-side comparison ...
We have a rather complex page that loads the user controls dynamically (some of them are nested). It is a very slow performing page.
Could adding the controls dynamically be adding to the bottleneck? Would it help if we add the control in the .NET cache object and not use LoadControl if it already exists in the cache?
Any other tips/st...
I am a senior level developer but I haven't had a lot of formal training and I although I have used many design patterns and seen them used in my years as a developer, no one really went out of their way to say. "Oh this is an observer pattern, or this is a Singleton pattern."
Reading over some of the design patterns, I came across the ...
So do we not need to implement our own Swap method? Is Interlocked.Exchange the intended Swap method from Microsoft?
...
What's the difference between the two? Can we use them interchangeably?
...
Our organization's software is compiled for the .NET 3.5 Framework. We have some customers who wish to plug into our libraries, but insist on using older versions of Visual Studio (that preceded .NET 3.5), such as VS 2003. Is there a way for those customers to plug into our application, despite the fact that they're using older versions ...
I need to create a block of unique lines to test a different project im working on.
so i created a simple program to generate a random string of X length.
The issue is that if i call it once i get a random string if i call it again (in a for loop for example I get the same string for the entire execution of the loop.
I have a feeling ...
I remember seeing a poster a few years back that had a nice break down of the .NET framework class Hierarchy in a poster. Every link I find to it on google points to a non-existant place on the MSDN site.. Does anyone know where one can find an up to date one?
...
I previously asked a question about my meeting planner app, and how to delete a specific entry in the array. Someone had the interesting suggestion of using a ArrayList, instead of a normal array. I am attempting to learn ArrayList, but to no good result. I can't even get the ToString method to work correctly to write what I want it to i...
I have two LinkedLists, I'd like to move all elements which match some criteria from LinkedListA to LinkedListB (LinkedListB is not empty to start with). Any ideas?
...