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-07-20
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
31
32
33
34
35
36
Next >
[13:38]<-- dyrnnprd wrs puyv> i mean the other left <-")
[13:48]<vr2drg>I'm writing an event handler for TabControl SelectedIndexChanged
[13:48]<vr2drg>inside the handler I want to know from which tabpage the user came from, is it possible ?
[13:51]<vr2drg>sorry was dc earlier
[13:51]<vr2drg>anyone knows answer to my question
[13:54]<mjzymygo>tabman: OnSelectedIndexChange is a simple notifier event
[13:54]<mjzymygo>so no
[13:55]<mjzymygo>you need OnSelected. ir sends though an instance of TabControlEventArgs
[13:55]<mjzymygo>that eventarg class has a properties called 'Action'/'TabPage'/'TabPageIndex'
[13:56]<mjzymygo>iirc
[14:00]<vr2drg>there is no OnSelected
[14:01]<vr2drg>I want to detect inside selectedindexchanged that which tabpage the user is coming from
[14:01]<vr2drg>I guess the sender argument inside the event handler should be of some help, I don't know how
[14:02]<mjzymygo>http://msdn2.microsoft.com/en-us/library/system.windows.forms.tabcontrol.selected.aspx
[14:03]<mjzymygo>if you have .net 1.1,
[14:03]<vyzusdjvnev>Morbiddo you agree with this guy saying I should use PHP or Ruby On Rails over ASP.NET?
[14:04]<mjzymygo>then: ((TabControl)sender).SelectedIndex or ((TabControl)sender).SelectedTab within the event handler
[14:04]<mjzymygo>VirusDotNET: that aimed at me?
[14:05]<vyzusdjvnev>i 'm asking on your opinion
[14:05]<mjzymygo>"...Morbiddo..."?
[14:05]<vr2drg>moridin8: we can even do this inside selectedindexchanged ?
[14:05]<mjzymygo>and which guy ?
[14:05]<vyzusdjvnev>a guy in the CSS room
[14:05]<mjzymygo>tabman: yeh... ((TabControl)sender).SelectedIndex or ((TabControl)sender).SelectedTab within the event handler
[14:06]<mjzymygo>PHP despite what people say IMHO is a waste of time these days
[14:06]<mjzymygo>Ruby on Rails rules, and I hate ASP.NET
[14:06]<mjzymygo>but I haven't used Ruby On Rails commercially yet.
[14:07]<mjzymygo>so my choice under pressure right now would be ASP.NET
[14:07]<mjzymygo>but if I had some time to create some proof's, then Ruby on Rails
[14:07]<lcs>Moridin8: the part about php seams true
[14:07]<lcs>Moridin8: each time i write something in php it looks terribly obscure
[14:07]<mjzymygo>pks: yeh...
[14:08]<lcs>and there is no easy way of including html code into php code
[14:08]<mjzymygo>I'll re-use PHP maybe when Phalanger gets itself production quality..
[14:08]<mjzymygo>but then only under duress
[14:08]<vyzusdjvnev>its a pain to include html in php
[14:08]<lcs>VirusDotNET: yeah, and the problem is that php was desinged to generate html code ;S
[14:09]<vyzusdjvnev>mhmm sure it was
[14:09]<mjzymygo>pks: yeh... I always found that funny
[14:09]<lcs>theoreticaly i could use some template system, but then i would do some modifications on the php code i would still have to modify template
[14:09]<lcs>so i just double number of files that have to be modified
[14:09]<mjzymygo>I stick to template frameworks on large projects... easy to content manage
[14:10]<lcs>i dont like templates
[14:10]<lcs>dunno why
[14:10]<mjzymygo>in CMS systems you kinda have no choice in the matter to be honest
[14:10]<lcs>i've been using smarty for creating of two websites
[14:10]<mjzymygo>and if done right can rip the pants off ASP.NET... but then ASP.NET is a productivity tool for idiots really
[14:10]<mjzymygo>;)
[14:10]<lcs>but i didnt like it
[14:10]<vr2drg>moridin: I guess you got my question wrong, I wanna know the tabpage the user is coming from not the tabpage on which the user is currently
[14:11]<lcs>coz first i had to write a function that does something, than port it to a smarty plugin, then write a tempate that uses this plugin
[14:11]<lcs>horrible
[14:11]<mjzymygo>tabman... then you need to create a queue as the user moves around and handle it yourself
[14:12]<vr2drg>oh man gr8 :)
[14:13]<mjzymygo>smellyhippy: wb stranger
[14:13]<sdnffdxdlld>tnx :)
[14:13]<dzrrjgd>I having problem with textBox1.Select(0, 3);
[14:14]<dzrrjgd>i have textBox1.Text = "test"; textBox1.Select(0,3) and it's not working....
[14:15]<as_>how can i delete what i've created with new? or do i not need to do that+
[14:15]<lcs>js_: just nullify it
[14:15]<as_>ah
[14:15]<dzrrjgd>nvm, needed focus before select
[14:16]<lcs>js_: or leave it as it is, it will be cleaned up by garabge collector as soon nothing will be referencing it
[14:16]<mjzymygo>js_... if the object has a Dispose() method... dispose it ASAP after use too
[14:16]<as_>great, thanks
[14:16]<mjzymygo>js_ I have a link for you...
[14:17]<mjzymygo>http://msdn2.microsoft.com/en-us/library/fs2xkftw.aspx
[14:17]<mjzymygo>take notes on the IDisposable interface and make the Using(){} construct your friend
[14:17]<lcs>js_: when dealing with IO object use .Close() :)
[14:18]<mjzymygo>pks: Close calls the Dispose() object for you a lot of the time. RTFM when it comes to IO.
[14:18]<mjzymygo>s/object/method
[14:18]<mjzymygo>>_<
[14:19]<lcs>Moridin8: but does Dispose call Close?
[14:19]<mjzymygo>sometimes
[14:19]<mjzymygo>;)
[14:19]<mjzymygo>stupid huh
[14:19]<lcs>hehehe ;)
[14:19]<mjzymygo>stuff IO object re-use right into the ditch.
[14:20]<mjzymygo>it's caught a few projects out I have repaired
[14:21]<vxznrmw>isn't it normal practise to do .Close(), .Dispose()
[14:21]<vxznrmw>in that order, if available
[14:22]<sdnffdxdlld>I only do a Close if I'm not gonna dispose the object for a while ... other wise I dont bother with the close and go straight for the dispose
[14:22]<sdnffdxdlld>normally via a using() statement
[14:22]<mjzymygo>smellyhippy: the thing is some IO objects call dispose for you when you close them
[14:22]<mjzymygo>FileStream is one of them
[14:23]<mjzymygo>^^^ thats a fib
[14:23]<mjzymygo>nope... sorry
[14:23]<mjzymygo>it's not a fib
[14:24]<mjzymygo>FileStream close method: public virtual void Close(){ this.Dispose(true); GC.SuppressFinalize(this); }
[14:24]<sdnffdxdlld>with a filestream I wouldnt worry about closing it as much as I would a db connection
[14:24]<mjzymygo>smellyhippy: I would... if you don't you keep a locking file token active against the file.
[14:25]<mjzymygo>remember NTFS only supports 255 in total
[14:25]<mjzymygo>(per file)
[14:25]<mjzymygo>^^^ only on Read Only Access
[14:26]<mjzymygo>anything else the locking gets dodgy
[14:27]<mjzymygo>there went the hippy
[14:27]<mjzymygo>ah wb
[14:27]<mjzymygo>what you last read?
[14:27]<sdnffdxdlld>;)
[14:27]<sdnffdxdlld>errr dodgy







