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.40 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-08-06
[07:14]<zczsxzz>okay, but if it were the top node, why would ".//blah" return anything at all since there's no objects of that type at the top level.
[07:14]<kuggys>one of the / does all children and grandchildren, and one doesn't. I've forgotten which is which.
[07:14]<zczsxzz>in this case I have a structure such as <map><area><name>someName</name></area><area .../></map>
[07:15]<zczsxzz>Yeah, / is top level, // is children, as I understand it. Not specifying a '/' or '//' would mean all nodes throughout the document.
[07:16]<kuggys>Unfortually it's been too long for me.
[07:18]<kuggys>You might want to review that. It doesn't match my memory.
[07:22]<dzzajqq>how can I make it so when my window maximizes, the controls in it increase in size too?
[07:23]<kuggys>marco22 play with the anchoring.
[07:23]<kuggys>Anchor top and bottom, and it'll always stay the same distance from each side, and then you set the form's MinSize so they can't scale it down too much
[07:24]<dzzajqq>anchoring? I'll look that up in the help
[07:24]<kuggys>It's pretty straight fowardd.
[07:24]<dzzajqq>I am used to boxes from GTK
[07:25]<kuggys>click on a button control. on the properties tab, anchor all four sides.
[07:25]<dzzajqq>ahhh
[07:26]<dzzajqq>thank you for the help :)
[07:27]<dzzajqq>also, I created a new AboutBox, by adding a new Windows Form to my Application (Solution), then I selected About Box from the list
[07:27]<dzzajqq>a form and a code file for AboutBox, were cretead allright
[07:28]<dzzajqq>I want to display that aboutbox from another form, the main one
[07:28]<dzzajqq>so I put this in a function AboutBox.ActiveForm.Show();
[07:28]<dzzajqq>wont work, tried creatinga new one by AboutBox about = new AboutBox();, but that will create a new one from the template
[07:28]<dzzajqq>any ideas?
[07:29]<dzzajqq>I know this is beginner stuff, but I just started with .NET (on Win Forms), today
[07:29]<kuggys>Oh...
[07:29]<kuggys>ActiveForm is a reference to the current dialog the user has selected
[07:29]<kuggys>to AboutBox.ShowDialog.
[07:30]<kuggys>AboutBox.ActiveForm is pointing to the current dialog the user is on, not the aboutBox
[07:31]<dzzajqq>right
[07:31]<kuggys>So that should fix your problem.
[07:32]<dzzajqq>no yeah, but there isnt a dialog
[07:32]<dzzajqq>I mean I want to show the form I created
[07:33]<dzzajqq>AboutBox.ActiveForm.ShowDialog(); does not do that
[07:33]<kuggys>What did you call your AboutBox?
[07:33]<dzzajqq>AboutBox, it was created from a template
[07:33]<kuggys>You shouldn't have ActiveForm in there anywhere
[07:33]<dzzajqq>of course not, there isnt an active form yet :)
[07:33]<kuggys>Do MyAboutClass form = new MyAboutForm(); form.ShowDialog();
[07:35]<`d0>hmm
[07:35]<dzzajqq>My?..
[07:35]<`d0>if he wants a dialog
[07:35]<`d0>he used the template for about
[07:36]<`d0>so he should just call it as kunnis stated
[07:36]<dzzajqq>i did, I dont get my modified form, just a template
[07:37]<kuggys>You created a new class when you used the template.
[07:37]<dzzajqq>ohhh I know
[07:37]<dzzajqq>ok, nevermind, just naming confusion
[07:37]<dzzajqq>I should have done AboutBox1 insted of AboutBox
[07:37]<kuggys>Ah, yes.
[07:37]<dzzajqq>AboutBox must be a predefined class in Windows Form or something
[07:37]<`d0>hm no
[07:37]<dzzajqq>that is why I get a vanilla aboutbox
[07:37]<`d0>you named it as AboutBox1
[07:37]<dzzajqq>nope, I named it aboutbox
[07:37]<`d0>in the class, view the form class...
[07:37]<dzzajqq>no one :)
[07:38]<`d0>no yhou didn't :) Look again at the class names
[07:38]<`d0>so such thing about class AboutClass
[07:38]<dzzajqq>of course not
[07:39]<dzzajqq>well I renamed it to AboutBox1 and I still get the same
[07:39]<kuggys>Did you modify the about box?
[07:40]<`d0>delete your aboutdialog
[07:40]<dzzajqq>yes, I did through the designer, I think that was my mistake
[07:40]<`d0>and add a new about dialog
[07:40]<`d0>start fresh :
[07:40]<`d0>)
[07:40]<dzzajqq>I mean I am supposed to change the strings somwhere else?
[07:41]<dzzajqq>yes, ok, for example, if I want to change product name
[07:41]<dzzajqq>I would not change the label in the UI, right
[07:41]<`d0>no
[07:41]<`d0>you goto assembly adn change it there
[07:41]<`d0>assemble properties *
[07:41]<dzzajqq>right, that is what i did with AboutBox, so it showed up as vanilla template
[07:41]<dzzajqq>heh
[07:41]<`d0>:o
[07:43]<dzzajqq>there, thank you so much `m0 and Kunnis
[07:43]<dzzajqq>and the name doesnt matter, it can be named AboutBox
[07:43]<dzzajqq>:D, nice
[07:44]<`d0>np
[07:46]<dzzajqq>I have to admit, this is a really nice development environment
[07:46]<dzzajqq>Xcode is nice too, but Objective-C.. bleh
[07:47]<`d0>nothing beats visual studio 2005 :)
[07:47]<dzzajqq>no, I have not encountered such a good dev environment in any plattform
[07:47]<dzzajqq>MonoDevelop is a nice try at a clone though
[07:48]<`d0>i should try that
[07:48]<`d0>when i get back to c#
[07:54]<dzzajqq>what are you doing right now?
[07:54]<`d0>java
[07:54]<`d0>now? I am just reading some math notes :s
[07:54]<`d0>I have a final is some days hehe
[07:57]<dzzajqq>yes, I have a lot of work to do.. but I cant stop myself from playing with VStudio
[08:10]<jdgysayggvysv>hello
[08:14]<dzzajqq>does if (mybool) do the same as if (mybool == true) ?
[08:14]<dzzajqq>too used to python
[08:18]<jdgysayggvysv>sure, i just use (mybool)
[08:23]<kuggys>Yeah, I try to start my bools with Is so my statements look like if( isFoo )... I think it's easy to read.
[08:32]<dzzajqq>nice
[08:36]<kuggys>Not always... but sometimes if the is/isn't factor is kinda confusing
[08:36]<kuggys>if isDisconnected....
[08:36]<kuggys>if isNotConnected







