IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.68 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-08-01
[20:01]<zgzzcygnv>take your retarded conspiracy theories somewhere where people care
[20:01]<mracn>I've got a break point in both methods on the first line, but it never breaks
[20:01]<svlnvnz>on forums.microsoft.com i can't find platform sdk or directx or directshow forums
[20:01]<azyfm>Maybe it's broken since it never breaks
[20:01]<svlnvnz>and also no global search
[20:01]<svlnvnz>that sucks
[20:02]<mracn>Arild: haha ;o)
[20:04]<azyfm>Macke: keypresses that happen when controls on a form are focused won't be passed to the form unless .KeyPreview is true
[20:05]<azyfm>so if you covered your entire form with a panel or something...
[20:06]<mracn>well, actually, this is a custom control, not a form
[20:07]<azyfm>same thing goes, except you don't have a .KeyPreview...
[20:07]<mracn>it does have focus though, I'm pretty sure of that
[20:07]<svzz[wjzc]>smellyhippy i could fix my stupid combobox, with this function : http://rafb.net/paste/results/c1yQXU85.html (stupid, but it works)
[20:08]<azyfm>I did something like this once:
[20:08]<azyfm>control.KeyDown += new KeyEventHandler( CommitDialog_KeyDown );
[20:08]<azyfm> foreach ( Control child in control.Controls )
[20:08]<azyfm> {
[20:08]<azyfm> this.HookUpKeyEvent( child );
[20:08]<azyfm> }
[20:08]<mjzymygo>pastebin
[20:08]<mjzymygo>;)
[20:08]<azyfm>meh, it's five lines
[20:08]<svzz[wjzc]>topic says 3 lines ;)
[20:08]<mjzymygo>topic says more than 3 lines is baaaad m'kay?
[20:08]<azyfm>didn't read the topic...
[20:08]<sdnffdxdlld>cool staz :)
[20:09]<sdnffdxdlld>my bastard combobox refues to listen to me so i think its gonna be a "come back later" jobby
[20:09]<svzz[wjzc]>Moridin8 is that how South Park's Mr McKay says his line in english?
[20:09]<mracn>Arild: But this is an overriden event: protected override void OnKeyUp(KeyEventArgs e) { ... }
[20:09]<pz2>has anyon experience with the .NET 2.0 books by Wrox?
[20:09]<svzz[wjzc]>smellyhippy exactly
[20:09]<azyfm>the focus thing still applies
[20:09]<azyfm>what a weird error message:
[20:09]<azyfm>[csc] D:\tmp\build\src\Ankh\Commands\UpdateItemCommand.cs(19,4): error CS0592: Attribute 'VSNetItemControl' is not valid on this declaration type. It is valid on '' declarations only.
[20:10]<azyfm>'' declarations?
[20:10]<mracn>sure, but I can't imagine why the control shouldn't have focus
[20:10]<mjzymygo>StaZ: yeh it is
[20:10]<sdnffdxdlld>I managed to bend the DateTimePicker to my will but the CB is just messed up
[20:10]<mracn>if I click it, it does get focus, but no keyboard events get fired anyway
[20:10]<svzz[wjzc]>Moridin8 oh thanks, i always wondered
[20:10]<mjzymygo>STaz: np
[20:10]<svzz[wjzc]>i can't listen to South Park in english, they speak too damn fast and too damn bad
[20:10]<mjzymygo>hehe
[20:11]<mjzymygo>Staz: your fucked then ;)
[20:11]<svzz[wjzc]>still got the French version :P
[20:13]<svzz[wjzc]>hey how do you call this in english : $
[20:13]<azyfm>"how do you say this in english"
[20:13]<svzz[wjzc]>no
[20:13]<azyfm>it's a dollar sign
[20:14]<svzz[wjzc]>thanks, thought it would've had a special name
[20:30]<azyfm>"Recently i saw a job posting from a company say that "candidates should dislike .NET" :) "
[20:31]<drdyrrr_>sounds like a bunch of sad acts then
[20:31]<azyfm>Raymond Chen has declared this week to be ".NET Week"
[20:31]<drdyrrr_>not for hating java but for being sad enough to declare what you should dislike
[20:31]<drdyrrr_>doh, hating .net even
[20:31]<drdyrrr_>my brain is scrambled today
[20:32]<azyfm>why name it that and not just implement IEquatable<T> on the one you already have?
[20:32]<drdyrrr_>try it
[20:33]<azyfm>Let's assume that I am lazy
[20:33]<drdyrrr_>where does the hash code come from
[20:33]<azyfm>new Random().Next ?
[20:33]<drdyrrr_>then it's hardly equatable
[20:34]<drdyrrr_>two classes that .equals each other should have the same hash code
[20:34]<drdyrrr_>otherwise you'll never get it back out of a hashtable
[20:34]<drdyrrr_>:p
[20:34]<drdyrrr_>the only option is to base it on the reference...
[20:34]<drdyrrr_>which for a mutable class is impossible.
[20:34]<azyfm>and that means where T: class ?
[20:34]<drdyrrr_>i could turn the one i have into it but i'd have to make .Target read-only.
[20:35]<drdyrrr_>which would break the match between it and System.WeakReference...
[20:35]<drdyrrr_>but probably makes more sense anyway.
[20:35]<azyfm>mutable classes shouldn't be in hash tables, anyway
[20:35]<drdyrrr_>indeed
[20:35]<azyfm>at least not if the mutability affects the hash code
[20:35]<drdyrrr_>hence why EquatableWeakReference is immutable.
[20:35]<drdyrrr_>which it needs to be for WeakList
[20:36]<azyfm>hm, I don't get why .Target is settable in WeakReference either
[20:36]<drdyrrr_>it is a bit stupid
[20:36]<drdyrrr_>java's is read only
[20:38]<drdyrrr_>right, got to go pickup the gf
[20:38]<drdyrrr_>bbl
[21:04]<frdlcyw>pfft
[21:08]<rrd2uppnw>how do i return null for the object in the constructor ?
[21:09]<rrd2uppnw>if i have "A bah = new A();" and i want the value for a to be null
[21:09]<rrd2uppnw>er value for bah to be null
[21:10]<azyfm>You don't
[21:11]<azyfm>no-can-do
[21:11]<rrd2uppnw>no ?
[21:11]<azyfm>only way a ctor can fail is by throwing an exception
[21:12]<rrd2uppnw>hm
[21:12]<rrd2uppnw>this = null doesnt work
[21:12]<azyfm>nope
[21:17]<rrd2uppnw>what is GetHashCode used for ?
[21:17]<sljjcn>hi all
[21:17]<sljjcn>in vs 2005
[21:17]<azyfm>for getting hash codes
[21:18]<rrd2uppnw>and where are those hash codes used
[21:18]<sljjcn>when i connect to a db troght the settings properties of the project how to change the connection string at runtime?
[21:18]<azyfm>in hash tables
[21:19]<rrd2uppnw>ok







