I am trying the db4o object databse and so far I quite like what I am seeing, but I also read this post on stackoverflow http://stackoverflow.com/questions/21207/db4o-experiences/24499#24499 indicating that not everything that seems so easy is easy.
Right now, I have some questions regarding on how db4o is used in real world apps. So i...
Hi all,
I need to replace all system. environment.newline (s) in the string returned by my function with "System.Environment.Newline + \t" (i'm trying to apply indenting) and I need to do this several times .
now my question is which one is the fastest way to do this ?
I know that stringbuilder is faster than string.replace but I dont k...
I have the following datatemplate:
<DataTemplate x:Key="ColoringLabels">
<TextBlock Padding="0"
Margin="0"
Name="Username"
Text="{Binding Username}"
Foreground="Gray"
FontStyle="Italic"
/>
<DataTemplate.Triggers>
<D...
Let's say i have a 2d linear grid and a point in said grid. How do i map the point from that grid into a related non-linear grid?
The red dot is the point in the regular grid and i want to know how to figure out where the point would go in a similar deformed grid (an example one is shown). I'm thinking of using the difference between ...
Why doesn't link simply use the == operator in joins if t can use it in a 'where' clause?
...
I just upgraded my operating system to Windows 7. Visual Studio 2008 also seems to work perfect.
Next step is to upgrade my .NET application to use the new Windows 7 features. A quick seach with Google returned the following links:
Windows API Code Pack for Microsoft .NET Framework
Microsoft Windows SDK for Windows 7 and .NET Framework...
Here is the scenario. I'm having a List in my view model and I want to generate a toolbar - each button representing a CustomObject which will have the tooltip, icon etc.
I'm defining a template to display CustomObject in a toolbar button and also define the toolbar button ItemSource to the viewmodel collection and ItemTemplate to the o...
I have this LINQ query. The date is stored as a string in the database, but I need to order by it. So I convert it to a DateTime, but it doesn't order.
(from m in dbDataContext.TimeCards
where m.TIMECARDDATE != ""
&& m.TIMECARDDATE != null
orderby Convert.ToDateTime(m.TIMECARDDATE) descending
select Convert.ToDateTi...
Hi
I've DataGridView that bound a List<myClass> and i sort it by "Priority" property in "myClass".
So I want to drag an "DataGridViewRow" to certain position to change it's "Priority" property.
How could I "Drag & Drop" DataGridView Rows ?.
And how to handle this ?.
...
The string length can change, height is the same. The font is large for visibility.
But how do I do this?
I know painting on the control directly. But how do I do this without creating an image file, but all in memory. Because the string image will change with user interaction.
...
What's the reason for this?
I override OnPaintBackground and draw a string. It doesn't show up until I call this in the constructor:
this.SetStyle ( ControlStyles.UserPaint, true );
But then I don't see the items in the listview.
Why and how to solve this?
EDIT: code
protected override void OnPaintBackground ( PaintEventArgs peve...
Hi,
I've tried to use Subsonic 2.2 & System.Data.Sqlite.Dll latest version (1.65.0),
in my project.
and recevied an error message, which gave me the idea subsonic got a problem with the sqilte provider.
I've switched to it's previous version, 1.60.0 and it seems like the problem was solved.
any info regarding this issue?
does subsoni...
CPAN is a really helpful resource for Perl.
Why isn't there a CPAN for .NET? Should there be one?
Are there other programming or platform technologies that have a CPAN-like infrastructure?
EDIT
No one mentioned this: isn't the Comprehensive base-class library included in .NET one of the key reasons you would NOT expect to see a CP...
I am using Grammarian's ObjectListView. I changed my old listviews to that, but all I do is to fill in items. But when the app starts up and my mouse is over the listview, it immediately throws an exception for:
System.InvalidCastException was unhandled
Message="Unable to cast object of type 'System.Windows.Forms.ListViewItem' to type...
I'm trying to process Feedback Loop (FBL) messages to unsubscribe people that mark an email as spam (yes it's opt-in, and there is a one-click opt-out mechanism).
My first attempt is to use Advanced MIME Parser/Creator/Editor. However, FBL messages from major ISPs such as AOL and Yahoo are not correctly parsed. I posted that particular...
I have made a program that has two threads, soon to be three, that is trying to get an image from a web cam from both threads at the same time. Is there a way to do this or is there a better way to do this? (using openCV 1.1)
...
I'm experimenting with C# using Visual Studio 2010 Beta 2. What I'd like to do is display data in a similar format as Windows Defragmenter does, i.e. in a grid consisting of many small rectangular elements. These elements should be turned off and on depending on data (i.e. having different colours) and customizable in number of elements ...
I am trying to add a task dialog-style button control to my .NET application (C#). It is labeled "Custom Button" in the screenshot below.
What is the name of this control for .NET, or how can I get it in my .NET form?
I need compatibility with XP (and other non-Vista, non-7 OS's).
I do not need to create the entire dialog. I just ...
What are the differences between HasOne() and References() in nhibernate?
...