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 >
[16:29]<svzz[wjzc]>have you tested?
[16:30]<mjzymygo>yup...
[16:30]<mjzymygo>works fine for me
[16:30]<svzz[wjzc]>not here
[16:30]<svzz[wjzc]>close Form1.cs design
[16:30]<svzz[wjzc]>compile
[16:31]<mjzymygo>do you want the message box to appear in design mode
[16:31]<mjzymygo>or not design mode
[16:31]<svzz[wjzc]>and reopen it, the Message is there
[16:31]<svzz[wjzc]>i wnat the Messagebox in runtime only
[16:34]<svzz[wjzc]>so you believe me now? :P
[16:34]<mjzymygo>wierd...
[16:34]<mjzymygo>yeh
[16:34]<mjzymygo>*scratch nogin*
[16:34]<svzz[wjzc]>bingo, now it's gonna work
[16:35]<svzz[wjzc]>public static bool DesignTime { get { return System.Diagnostics.Process.GetCurrentProcess().ProcessName == "VCSExpress"; } } <- sticked that in my global Functions static class
[16:35]<svzz[wjzc]>that will work at debug and realease caus it's only when INSIDE the VC# IDE that the process reads "VCSExpress"
[16:36]<svzz[wjzc]>finally!!!!
[16:36]<fmcf>what if they using VS2005...
[16:36]<svzz[wjzc]>i am using VS2005
[16:37]<svzz[wjzc]>and i'm the only dev
[16:37]<cfudsd>the non express version
[16:37]<svzz[wjzc]>it'S jsut for design means
[16:37]<fmcf>what about DesignMode Property?
[16:37]<svzz[wjzc]>pdkl doesnT' work in CTORs
[16:37]<fmcf>awakeFromNib
[16:37]<svzz[wjzc]>only in Form Load or properties
[16:37]<fmcf>:P
[16:38]<svzz[wjzc]>huh!?
[16:38]<fmcf>oh just teasing, its the mac version of things
[16:40]<fnzjy>Weedy_lappy: What did I do?
[16:44]<rjjgwq>join ##java
[16:44]<awjzdd>mornin fellas
[16:45]<fnzjy>oh hell yeah; there's a ##java now oh joy...
[16:45]<mjzymygo>goon12: why>
[16:46]<sdnffdxdlld>lo wormy
[16:47]<fnzjy>http://pastehere.com/?xsmuch
[16:47]<fnzjy>does anyone else see something wrong there
[16:47]<fnzjy>in that image
[16:48]<fnzjy>That's an email i received...
[16:48]<fnzjy>tell me they arn't stupid
[16:50]<zyccus>I think they forgot to extend the deadline
[16:51]<fnzjy>i think so too
[16:51]<mjzymygo>Staz: you here?
[16:52]<e-2jfr>when i make a new thread and give it a method to run int hat thread
[16:52]<e-2jfr>how can i pass a parameter to it?
[16:52]<e-2jfr>i need it to have a reference to the object that creates the thread
[16:53]<svzz[wjzc]>Moridin8 yeah
[16:53]<mjzymygo>did you put 'this.InitializeComponent();' inside the Forms constructor?
[16:54]<svzz[wjzc]>that method calls the IDE's generated code no?
[16:54]<mjzymygo>yeh
[16:54]<svzz[wjzc]>yeah it's there
[16:54]<nfnrqnr>hi, does someone know howto fix "Unable to find a version of the runtime to run this application" ? on resgen.exe ?
[16:55]<mjzymygo>did you place it there?
[16:55]<svzz[wjzc]>no
[16:55]<svzz[wjzc]>did you get my test app?
[16:55]<mjzymygo>yeh
[16:56]<svzz[wjzc]>well you see it's there then
[16:56]<sdnffdxdlld>elec29a: ofr a guess install the right runtime :P
[16:56]<sdnffdxdlld>for
[16:57]<sdnffdxdlld>(I would have thought you have) so it might be that the install was dodgy and the paths are wrong
[16:57]<awjzdd>mornin smippy
[16:57]<awjzdd>Moridin8 oi!
[16:58]<-- szzvvgzbzzyg xzs>COLO")
[16:58]<mjzymygo>hi
[16:59]<mjzymygo>STAZ: this.panel1 = new B(this.DesignMode); <--
[16:59]<mjzymygo>STAZ: public A(bool inDesign) { MessageBox.Show(inDesign.ToString()); }
[16:59]<mjzymygo>is the only way
[16:59]<mjzymygo>wierd shit
[17:00]<svzz[wjzc]>wow...
[17:00]<fnzjy>weird*
[17:00]<svzz[wjzc]>i think i'll keep my process thingy
[17:00]<mjzymygo>it seems that when you add a control to the form, it doesn't assign the child controls DesignMode flag
[17:00]<mjzymygo>that is SO dumb
[17:01]<nfnrqnr>ok thx i retry with sp1 (did uninstall and reinstall net 2.0) but same error after..
[17:01]<svzz[wjzc]>my theory is that it EFFECTIVELY runs the code of the base class of the control you added
[17:01]<svzz[wjzc]>and it runs it as if it was effectively at runtime
[17:02]<mjzymygo>why the fuck didn't I get this problem with winforms?
[17:02]<mjzymygo>what was I doing different ??
[17:02]<svzz[wjzc]>Moridin8 my guess is that it's pretty rare people will use object derived form another object that derives a control
[17:03]<svzz[wjzc]>it's not simply class A : Panel... it's class B : A : Panel
[17:03]<mjzymygo>Staz: it's deeper than that. I'm looking at the code.
[17:04]<mjzymygo>the code has access to the ISite interface that allows for IContainer DesignMode property to be set
[17:04]<mjzymygo>it's just not there...
[17:04]<svzz[wjzc]>maybe it's a bug we should report... i'm sure they have a Report bug garbage at MS'
[17:04]<svzvzjryg>hi... i have public explicit operator ulong(Numeric bt) for my custom Numeric datatype, how can i convert implicit or explicit a decimal to Numeric?. i.e. Numeric x = (Decimal)1.0?
[17:04]<mjzymygo>you would also have thought that they woulda made DesignMode an internal rather than a protected...
[17:05]<mjzymygo>that way at least the child control could access it's parent form
[17:05]<mjzymygo>(parent forms DesignMode property)
[17:05]<mjzymygo>Staz: I reckon you should. See what the M$ official line is
[17:05]<svzz[wjzc]>well i did check ((ISite)this.Parent).DesignMode still returns the wrong value
[17:06]<mjzymygo>Staz: it would because the parent isn't the form
[17:06]<mjzymygo>you need to use FindForm()
[17:06]<svzz[wjzc]>ack
[17:06]<mjzymygo>but then the DesignMode property isn't public
[17:08]<mjzymygo>hows the router Andy? ;)
[17:09]<svzz[wjzc]>well 5 minutes is the most i can spend looking for a way to report the bug on MS website... too bad for them
[17:10]<awjzdd>StaZ[work] do yo think they actually care?
[17:10]<awjzdd>StaZ[work] they'll get to your bug in 3 versions ;)
[17:10]<mjzymygo>Staz: smellyhippy knows where to go...







