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.21 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-07
Pages: < Prev
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
Next >
[01:32]<mggvrf_ffjss>2.0
[01:33]<lnvnzxu>hmm, well there goes my idea
[01:33]<lnvnzxu>there was a date picker bug in 1.0/1.1, but i believe it was fixed in 2.0
[01:34]<mggvrf_ffjss>hmm
[01:34]<mggvrf_ffjss>it only gets set once and that's from the user's input on the datetime control
[01:34]<izit>What can these Usercontrols be used for?
[01:35]<mggvrf_ffjss>*DateTimePicker control.. sorry
[01:35]<lnvnzxu>if i recall, the bug had to do with setting the value progratically and showing the checkbox, so it's unrelated anyway
[01:36]<lnvnzxu>IrIT: what template where you refering to, i don't see what you are talking about in that source
[01:36]<izit>hehe
[01:36]<izit>check the usercontrols
[01:37]<izit>They all have the prefix template
[01:37]<lnvnzxu>in $this.Name?
[01:37]<mggvrf_ffjss>well, shit
[01:38]<lnvnzxu>IrIT: dunno, just some weird naming convention there
[01:38]<lnvnzxu>oh in the type names too
[01:38]<lnvnzxu>ah, didn't search *.*, was just searching vc++ files, which includes .resx
[01:38]<izit>OKay. Just can't find anyway where I can read about what usercontrols can be used for
[01:39]<lnvnzxu>well, they're used like any other control
[01:39]<izit>Maybe you can help me with a problem peterhu? :D
[01:39]<lnvnzxu>if you have a discrete piece of UI that can be used between various UI elements (a window or a web form, for instance), then it makes sense to create a control that can be reused between them
[01:40]<izit>http://gotdotnet.com/Community/MessageBoard/Thread.aspx?id=376080
[01:40]<sdnffdxdlld>yeay \o/ the girl i wa talking to who got knocked off line has been txting me lots ^_^
[01:40]<sdnffdxdlld>and I cant sleep ... I knew this early wouldnt work
[01:40]<izit>Maybe I need to use usercontrols then, for my problem
[01:41]<lnvnzxu>IrIT: i haven't done an MDI application since the win16 days; i'm not sure how, in .NET, you track the child forms
[01:42]<izit>ok
[01:42]<kjr>damnit Mental_Floss ... pastebin
[01:42]<izit>But, the problem more is: How to change properties of a control added at runtime
[01:44]<sdnffdxdlld>peterhu, you can enumerate through the .MdiChildren
[01:44]<sdnffdxdlld>you change the proerties of a control loaded at runtime programatically
[01:44]<izit>smellyhippy -> http://gotdotnet.com/Community/MessageBoard/Thread.aspx?id=376080
[01:44]<sdnffdxdlld>ok \;0
[01:45]<sdnffdxdlld>stupid typing
[01:45]<lnvnzxu>you need to arrive at a reference to the control through some mechanism; for instance, you could keep a reference around when you create the control and refer to it explicitly, or you could index into the control collection by the name of the control
[01:45]<sdnffdxdlld>ooo nice remi :D
[01:45]<lnvnzxu>IrIT: i have to run home, but i'll be on later
[01:46]<zndy_wjfnz>I got one 2 weeks ago :D It's one of the best keyboards I ever had :D
[01:46]<izit>ok
[01:46]<sdnffdxdlld>yeah generally when i'm doing dynamic controls I add them to a Dictionary<> with an appropriate key for easy access
[01:46]<kjr>good god this query is horrible
[01:47]<kjr>why did my boss think he should do this...
[01:47]<izit>smellyhippy: can I see an example, please? :D
[01:47]<azyfm>Bosses move in mysterious ways
[01:48]<azyfm>And sometimes they appear at end of levels
[01:48]<kjr>Arild: his query totally killed the SQLD
[01:48]<kjr>I'm going to bet he forgot to fucking index
[01:49]<sdnffdxdlld>uhhh i dont have one handy
[01:49]<izit>ok
[01:49]<sdnffdxdlld>the only time i've had to do something in the ui that complex was for work
[01:49]<vxznrm>i have my schlong handy
[01:49]<sdnffdxdlld>my home projects tend to stay away from ui ;)
[01:49]<izit>;)
[01:50]<zndy_wjfnz>smellyhippy: you develop oss linux stuff?
[01:50]<sdnffdxdlld>no i dev c# stuff
[01:50]<sdnffdxdlld>windows based
[01:50]<sdnffdxdlld>both os and closed
[01:50]<zndy_wjfnz>hmm, okay. I thought of linux, because you said the ui tended to stay away :P :P
[01:51]<sdnffdxdlld>I like using GUI's ;) I jusrt dont like coding them
[01:51]<sdnffdxdlld>they're fucking bastards
[01:52]<zndy_wjfnz>:) I was just kidding ;)
[01:53]<izit>smellyhippy -> http://www.nomorepasting.com/paste.php?pasteID=64878
[01:53]<kjr>oh that's really fucking cute... I can't kill -9
[01:53]<kjr>and the init.d scripts don't work
[01:54]<kjr>why the HELL are we running an ubuntu server...
[01:54]<izit>you can't kill -9 :O
[01:55]<kjr>IrIT: mysql_zap issues a 15 then a 9
[01:55]<kjr>which apparently didn't do shit
[01:55]<kjr>because the permissions model on ubuntu is a piece of shit
[01:55]<mjzymygo>0_< http://thedailywtf.com/forums/thread/79265.aspx
[01:55]<mjzymygo>^^^ sadly very familiar
[01:55]<kjr>it turns out that it wouldn't let me sudo run the init.d script as my account, but only as "user"
[01:55]<kjr>even though I have full sudo permissions
[01:55]<izit>Well, isn't it just Deiban
[01:55]<kjr>IrIT: no, it's ubuntu being fucking stupid
[01:56]<izit>aah, sudo :)
[01:56]<sdnffdxdlld>IrIT: List<TextBox> dynamicTBs = new List<TextBox>(); << put that in your class
[01:56]<kjr>if a user has full sudo he should be able to do it
[01:56]<kjr>but no... I had to use a special ubuntu user
[01:56]<izit>Just do it as root?
[01:56]<sdnffdxdlld>then dynamicTBs.Add(textBox); each time you create one
[01:56]<kjr>IrIT: it's ubuntu... there IS no root
[01:56]<izit>sudo su
[01:56]<txnjzd>ubuntu server, just why?
[01:56]<izit>enter password
[01:56]<txnjzd>IrIT: sudo -s :-)
[01:56]<kjr>it'll give you an exception
[01:56]<izit>Now there is
[01:56]<sdnffdxdlld>yeah you want everwhere to be able to access it
[01:57]<kjr>wait... it only will as certain users
[01:57]<kjr>which is odd because I'm in user
[01:57]<kjr>s/user/wheel
[01:57]<sdnffdxdlld>then dynamicTBs[1].Text = "NewText";
[01:57]<sdnffdxdlld>would change the second added
[01:57]<kjr>wheel should be able to do just about anything...
[01:57]<izit>smellyhippy: can i give them names?
[01:57]<kjr>IrIT: shouldn't need to be root to do something I supposedly have sudo to
[01:57]<sdnffdxdlld>You could change the List to a Dictionary if you wanted to be able to use a specific key to access the collection
[01:57]<zndy_wjfnz>Kog: wheel usually means you can su to root
[01:57]<kjr>Remi_Woler: reread what we were talking about







