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-29
[00:44]<edjg>I'm not sure about overlapping windows
[00:45]<edjg>a window can still have focus even when something obstructs it (like if a dialog or form pops up after your form gains focus)
[00:45]<edjg>ah
[00:45]<edjg>if(this.Focused)
[00:45]<edjg>that's the closest you will get I think
[00:46]<edjg>and should work just fine
[00:47]<a969|dt6>what about Form.BringToFront ?
[00:49]<edjg>That will bring it to the front, he wants to check if its in the front
[00:49]<edjg>I imagine checking for focus would be good enough
[00:50]<a969|dt6>is he? i couldn't tell by his question
[00:50]<edjg>I'm pretty sure
[00:50]<gjrvcxnne>WOW
[00:50]<gjrvcxnne>whoah
[00:51]<gjrvcxnne>ppl answered
[00:51]<gjrvcxnne>that usually doesn't happen
[00:51]<edjg>heh
[00:51]<gjrvcxnne>i want to check if it's in front, and bring it to front if it is
[00:51]<gjrvcxnne>which just bringing to front would solve
[00:51]<gjrvcxnne>http://thedailywtf.com/forums/thread/39361.aspx
[00:52]<gjrvcxnne>THAT's truly wtf code
[00:52]<gjrvcxnne>what sucks, is that I have no reference to the form...
[00:52]<kjr>ah yes, the topic is finally short again
[00:52]<gjrvcxnne>lol
[00:54]<a969|dt6>GoatCheez: lol, if it were c# if wouldn't even work correctly if the boolean was null
[00:54]<gjrvcxnne>I'm thinking this might achieve the results i desire:
[00:54]<gjrvcxnne>while ((currentForm != null) && (!(currentForm is NETTest.formMain)))
[00:54]<gjrvcxnne> { currentForm.SendToBack(); currentForm = System.Windows.Forms.Form.ActiveForm; }
[00:55]<gjrvcxnne>of course, if the form was minimized, it would simply minimize everything
[00:56]<gjrvcxnne>damnit... doesn't work as well as i'd hoped lol
[00:57]<edjg>heh
[00:57]<edjg>Explain, in ENGLISH, exactly what you are trying to do :P
[00:57]<gjrvcxnne>see, the problem is when i'm in the debugger... i have this one fuction that takes a screenshot of a control or form... when i'm in the debugger, the screenshot captures teh debugger as opposed to my application
[00:57]<edjg>ah
[00:57]<gjrvcxnne>so i'm trying to get that function to bring the applicaiton to the front first before taking a screenshot
[00:57]<edjg>if(myForm.Focused)
[00:57]<edjg>what's wrong with that
[00:57]<edjg>oh
[00:57]<gjrvcxnne>i don't have a myForm in that function
[00:57]<edjg>you want to bring it to the front
[00:57]<gjrvcxnne>(either)
[00:58]<edjg>hmm
[00:58]<gjrvcxnne>yeah
[00:58]<edjg>well you can call Focus() to give it focus
[00:58]<gjrvcxnne>no reference to the form, and need to bring it to the front
[00:58]<a969|dt6>GoatCheez: was the nickname "feta" taken?
[00:58]<edjg>hrm
[00:58]<gjrvcxnne>if i had a reference to it
[00:58]<edjg>how the hell do you bring it to the front without a reference
[00:58]<gjrvcxnne>no, this nickname is taken from a butchering of my last name...
[00:58]<edjg>It sounds like you're just going to have to pass on the form reference from wherever it was created
[00:58]<gjrvcxnne>Emon: in a strange, and odd way i'm sure
[00:58]<gjrvcxnne>Emon: maybe, i might... hopefully not... we'll see
[00:59]<edjg>hopefully not? It's not that messy to pass a form reference
[00:59]<edjg>not just one
[00:59]<gjrvcxnne>well, heh... lol
[00:59]<edjg>I seem to have to do that all the time in Java with Swing
[01:00]<edjg>but after a while it DOES get messy
[01:00]<gjrvcxnne>it's not hard, but uh... lol... the way this app works... uh...
[01:00]<edjg>One of the reasons I like SWT much more. Not to mention that SWT uses native widgets...
[01:00]<gjrvcxnne>let's just say...
[01:00]<gjrvcxnne>uh... lol
[01:00]<edjg>heh
[01:00]<frsvfd>are there code profiling features built into vs2005?
[01:01]<edjg>hmm
[01:01]<edjg>afraid I wouldn't know
[01:03]<gjrvcxnne>huh, looks like I already pass the form
[01:03]<gjrvcxnne>lol
[01:03]<edjg>doh
[01:04]<gjrvcxnne>that means Focus() doesn't work
[01:04]<edjg>eh?
[01:04]<edjg>Focus() won't work if the window is minimized IIRC
[01:05]<gjrvcxnne>it's not minimized...
[01:05]<edjg>oh
[01:05]<gjrvcxnne>just in the background
[01:05]<aucr>how do i make my textbox autoscroll to the full length
[01:05]<aucr>i tried textBox2.SelectionStart = textBox2.Text.Length;
[01:05]<edjg>and that doesn't bring it to focus?
[01:05]<aucr>didnt work
[01:06]<edjg>jukg: http://www.dotnet247.com/247reference/msgs/21/109472.aspx
[01:06]<gjrvcxnne>Emon: no... i might have to sleep or something though, i didn't give it any time
[01:06]<edjg>oh
[01:06]<zgzzcygnv>that bsdiff/bspatch thing takes a shitload of time
[01:06]<gjrvcxnne>nope, no luck still
[01:07]<zgzzcygnv>90 seconds to generate a patch for a 4MB file?
[01:07]<edjg>AnarkiNet, it's on a pentium 1 :P
[01:07]<edjg>rtfp :P
[01:07]<zgzzcygnv>oh right
[01:07]<aucr>Emon: thanks man
[01:07]<gjrvcxnne>lol
[01:07]<edjg>np jukg
[01:07]<aucr>forgot the caret function :P
[01:07]<edjg>I think for a P166 or whatever that's pretty good
[01:08]<edjg>It's really damn fast on my athlon xp 3000
[01:11]<gjrvcxnne>just about quittin time
[01:12]<aucr>i have a backgrounderworker control, and when my form exits, it hangs in memory, i tried to kill it on the form unload by doing backgroundworker1.CancelAsync(), i also tried Application.Exit(), neither of these worked, any ideas?
[01:12]<vyzusdjvnev>sup ppl
[01:12]<aucr>WorkerSupportsCancellation is set to true also
[01:14]<aucr>tried ExitThread as well
[01:14]<gjrvcxnne>is the thread in a loop?
[01:15]<aucr>yeah







