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: 1822.25 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-05
[07:13]<svrz[xjdn]>no the name is bound to a textbox, the current selected item of the listbox has name, a color, a type etc. this all appears on the right... and there's the Textbox Name, and when i change the name there (which is the same as the Listbox item text) it doesn't change it into the listbox
[07:13]<svrz[xjdn]>it will change it if i .add and item to the BindingList caus that causes a refresh of the listbox item collection
[07:13]<svrz[xjdn]>so i wonder if that can be automated, or how i can call this "refresh" in the onvalidate event of the textbox
[07:17]<azyfm>hm, beats me at the moment
[07:17]<svrz[xjdn]>heh... no problem
[07:18]<svrz[xjdn]>a BindingList has a ListChanged event... can i raise it? i don't see a RaiseListChangedEvent
[07:19]<azyfm>you can derive from the BindingList and call OnListChanged
[07:19]<azyfm>BindingList<T> is designed to be derived from
[07:20]<svrz[xjdn]>as an interface or as bas class?&
[07:20]<svrz[xjdn]>* base
[07:20]<azyfm>BindingList<T> is designed to be a base class
[07:20]<svrz[xjdn]>ok i'll try that
[07:25]<svrz[xjdn]>ahaha!!! it works!
[07:25]<svrz[xjdn]>(respectfully)
[07:26]<azyfm>heh
[07:29]<svrz[xjdn]>thanks seriously
[07:29]<svrz[xjdn]>okayu enough for tonite, have a nice evening/night/morning/afternoon, where you are
[07:37]<sjgvnc>How do you compare DateTime to DBNull?
[07:37]<azyfm>a DateTime can never be DBNull
[07:38]<sjgvnc>If you have a Typed Dataset who has a DateTime property that is nullable, It returns DBNull in the property
[07:39]<azyfm>it also has a IsBlahNull() method
[07:40]<azyfm>and it doesn't return DBNull in the property, you get an exception if you try to access that property
[07:41]<sjgvnc>yeap
[07:41]<sjgvnc>and I want to know how to do a check so it doesn't throw an exception
[07:41]<sjgvnc>but the exception says its dbnull
[07:41]<sjgvnc>if you read it
[07:41]<azyfm>I told you how to do the check, use the IsBlahNull() method
[07:43]<sjgvnc>From what class?
[07:43]<sjgvnc>DateTime does not have a IsNull method
[07:44]<sjgvnc>well maybe a static method, let me check
[07:44]<azyfm>the datarow
[07:44]<azyfm>if the typed datarow has a property Blah which is a nullable DateTime, there will also be an IsBlahNull() method
[07:46]<sjgvnc>thanks that worked
[09:01]<sjgvnc>Hey do any of you guys know how to alter a tables default value in mssql (It already has a default, and I need to change it to: convert(datetime,convert(char(19), getdate(),120)))
[09:06]<sz2yzgrzzsx>i hate mysql
[09:06]<sz2yzgrzzsx>we are not getting along at the moment
[09:10]<fyfuym-syfggag>brb
[09:10]<fyfuym-syfggag>ex boss wants to see me
[09:11]<-- sgvgzs xzs fuyv (>/dev/brain")
[09:12]<azzzdjjxzzd>'bout what?
[09:12]<fjfyvr>*a
[10:10]<dnscr>heat is no good..
[10:11]<sdnffdxdlld>no, no its not
[10:11]<sdnffdxdlld>this is why my vote goes for nuclear winter
[10:23]<sdnffdxdlld>wow this is a good swarm ... 43 seeds and 3 peers ^_^
[10:57]<sdnffdxdlld>lol
[11:04]<afd>:)
[11:06]<afd>;)
[11:07]<mjzymygo>hi peeps
[11:07]<mjzymygo>smippy:.... link to the bitch? ;)
[11:13]<mjzymygo>dmh...
[11:13]<mjzymygo>you here?
[11:13]<sdnffdxdlld>oh I also found intellisense for management studio ^_^
[11:13]<mjzymygo>where?
[11:14]<sdnffdxdlld>1 sec
[11:14]<sdnffdxdlld>http://www.red-gate.com for intellisense
[11:15]<sdnffdxdlld>bitching: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=528204&SiteID=1
[11:17]<mjzymygo>has anyone talked to DMH today?
[11:18]<vyzusdjvnnv>Hello everybody
[11:18]<mjzymygo>lo
[11:18]<sdnffdxdlld>lo virus :)
[11:19]<vyzusdjvnnv>sup Moridin8 and smellyhippy
[11:19]<sdz>hmmm
[11:19]<sdnffdxdlld>lo SDr :)
[11:20]<sdz>I'd like to declare a static array of a struct, and would like to set it's members immediately
[11:20]<sdz>struct filepattern { byte[] magicnum, MajorType majorType, MinorType minorType }
[11:21]<sdz>static filepattern[] patterns = {
[11:21]<sdz>but only new-ing seems to work
[11:21]<sdz>any other ways?
[11:21]<vyzusdjvnnv>yea
[11:21]<vyzusdjvnnv>get me a beer and ill tell you :)
[11:23]<vyzusdjvnnv>a real one :)
[11:24]<sdz>well, get your ass here [europe / hungary / budapest], and you'll have it, there's still some left from yesterday party ;->
[11:24]<vyzusdjvnnv>;)
[11:26]<sdz>please share the info?
[11:28]<vyzusdjvnnv>I don't use structs ;)
[11:28]<vyzusdjvnnv>i did in C but not C#
[11:28]<mjzymygo>smellyhippy: just found a flaw in that intellisense thing ;)
[11:29]<vyzusdjvnnv>lol
[11:29]<azzzdjjxzzd>how come? (about no structs)
[11:29]<mjzymygo>yeh... how come?
[11:29]<sdnffdxdlld>then report it matt :P
[11:30]<mjzymygo>doesn't show sysdatabases in the list... no matter the options selected...
[11:30]<mjzymygo>but dude... THANKYOU... nice tool. *kiss*
[11:30]<azzzdjjxzzd>ok, I'm lost; what is the tool you guys are talking about?
[11:31]<mjzymygo>Intellisense for SQL Management Studio
[11:31]<azzzdjjxzzd>OH
[11:31]<mjzymygo>an acknowledged M$ oversight of major proportions
[11:32]<sdnffdxdlld>yeah ... even my sql tool I made has basic intellisense ... shame on MS
[11:32]<sdnffdxdlld>shame!
[11:32]<mjzymygo>AngryJohnny: you can have sloppy thirds if you want ;)
[11:33]<sdnffdxdlld>my word ... this machine doesnt have 1.1 installed :O
[11:33]<mjzymygo>what a shame...
[11:33]<vyzusdjvnnv>im gonig to bed guys goodnight
[11:33]<mjzymygo>ciao
[11:33]<sdnffdxdlld>night dude :)
[11:34]<azzzdjjxzzd>peace







