all groups > c# > december 2007 > threads for sunday december 16
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
WPF: Binding ComboBox inside of ListBox or ListView
Posted by Shimon Sim at 12/16/2007 11:52:42 PM
I can't figure out how to bind ComboBox inside of ListView or ListBox.
How do I set ComboBox.ItemsSource property?
I don't see the way to do it in code and not in XAML.
I have Collection that is bound to ListBox / ListView and string[] that
should be bound to ComboBox.
Thanks,
Shimon.
... more >>
find closest item in keyed collection
Posted by Steve Richter at 12/16/2007 7:43:56 PM
Does the .NET framework provide a class which will find the item in
the collection with a key which is closest ( greater than or equal,
less than or equal ) to the keys of the collection?
ex: collection keys are 20, 30, 40, 50, 60, 70, 80
find key which is >= 35.
would return the 30 key.
... more >>
System.AppDomain.AppendPrivatePath(string) is obsolete
Posted by Peter Morris [Capable Objects] at 12/16/2007 3:24:06 PM
System.AppDomain.AppendPrivatePath(string) is obsolete :
AppDomain.AppendPrivatePath has been deprecated. Please investigate the use
of AppDomainSetup.PrivateBinPath instead.
From what I can see, using this recommended new approach restricts me to
adding the bin paths *before* I do anythi... more >>
Instead of Control Panel Applet
Posted by Grok at 12/16/2007 3:00:19 PM
My C# application is a Windows Service. I have two problems that I
would like to solve in the correct way using C#.NET.
1) There are a number of user settings which I'd like to store in an
XML file. I read these settings each time the service does some work,
then close the file. Should I us... more >>
Returning scope_identity
Posted by Mick Walker at 12/16/2007 1:51:41 PM
Hi all,
I use the following logic to insert a new record to my database:
SqlConnection conn = new SqlConnection();
SqlCommand cmd = new SqlCommand();
conn.ConnectionString = ConnString;
cmd.Connection = conn;
cmd.CommandType = CommandType.StoredProcedur... more >>
SortedDictionary with IComparer bug?
Posted by Ralph Wiggum at 12/16/2007 1:11:19 PM
I'm trying to use a comparer to sort keys according to a specific priority. After adding the keys,
there is a KeyNotFoundException when I try to read values back from the dictionary. Even if the key is
in the SortedDictionary.Keys collection. Please help!
using System.Collections;
using Syst... more >>
make the computer press keys
Posted by Rogelio at 12/16/2007 1:06:01 PM
hey I need to make a program that opens a different program, then goes to
"File -> New" and then press enter to indicate a new document, etc..
is it possible to make a windows service, that will open a program press a
series of keys for me?
my reality is more complicated than my example, I... more >>
What Math.Tanh(1) return?
Posted by Polaris at 12/16/2007 11:19:35 AM
Hi Experts:
I have a question about Math.Tanh:
For a 45 degree 'angle' (radians is 45 * pi / 180 = 0.785), Math.Tan(angle)
returns 1 as expected; but Math.Tang(1) returns 0.76. Why not 0.785?
Thanks in Advance!
Polaris
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Im bored with MI5, spam no more, give me back CHR$(12)
Posted by christery@gmail.com at 12/16/2007 10:47:36 AM
just to clear the screen in console... yes I know ho to do that but 20
lines c/c# of code for cls...
and posting from msdn of the m$... is not an answer... always the
wrong namespace or something...
FF, FormFeed do just that (not posting)... I cant get it to work...
whats next EOF: is not ... more >>
Article: Generating 3D Graphics in .NET using POV-Ray
Posted by Nick Sterling at 12/16/2007 7:33:40 AM
http://londonelegance.com/tyburn-consultancy/hf3d/
Full source included...
... more >>
Problem implementing QuickSort algorithm
Posted by Meyvn at 12/16/2007 3:19:10 AM
Dear microsoft.public.dotnet.languages.csharp-ers,
I'm struggling with my implementation of a QuickSort algorithm. I
believe I grasp the concept (after looking up some explanation of the
algorithm), but there seems to be something wrong with my code. Any
help would be appreciated :).
Note: ... more >>
|