@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> :)
<1> can I make MessageBow.Show modal?
<1> hello?
<2> hmm
<2> its not? weird, should be imho :)
<1> shoulda woulda coulda
<1> seriously is it possible.
<2> to be honest, its been ages since i used c# :/ i'll fire it up and check it out
<1> cool thx
<2> i ***ume you meant MessageBox and not MessageBow? :)
<2> cause MessageBox is modal here :/
<1> its not though
<2> it is here :)
<1> its not modal to the form
<2> just get the all familar ding here if i try to click on the form while its visible



<1> modal in a way where you can't do anything else until that modal is closed
<2> yes
<2> i added a second button that changes the caption
<2> its just ding'ing until i click "yes" on the MessageBox
<2> then i can change the caption
<1> im doing it right now and its not modal
<2> weird
<1> there needs to be a way to specify it
<2> i'm 1.1 tho i think, so perhaps they changed it in 2.0?
<1> its the first paramater dude lol
<2> ah, new thing in 2.0 then
<2> first param in 1.1 is text or owner
<1> owner
<2> ah fun
<2> anyway, it's modal here without specifying the owner... :/
<2> i see from google groups that others have the same problem
<1> how do I get the IWin32Owner
<2> this doesnt work? (ie the form)
<3> sup
<1> i have to p*** it, thats what i need to
<3> Anyone know if there is a wrapper for developing cross-browser plugins?
<2> hmm not heard of such a beast
<3> ok. any suggestion on where to go for getting started with IE or firefox plugin developmeent?
<2> Darkclaw: p*** the form?
<2> fuzzpopfx: google? :)
<1> yeah the cl*** doesnt have that information
<1> its not local to the form
<2> Darkclaw: hmm? works here...
<1> what if I just want to p*** the IWin32Owner without p***ing the entire form?
<2> MessageBox(this, "Yah man");
<1> which method is i
<1> is it
<1> how do I extract that information
<2> extract ? from where?
<1> from this
<2> if you don't want to just use "this", then "IWin32Owner owner = this; MessageBox(owner, "Yah man");" or something similar (cant recall if you need to typecast interfaces :)
<1> good ide ;)
<1> thanks
<2> np :)
<1> yep that did the trick
<1> now im getting a cross-thread error but that is expected
<2> ah you got threads
<2> then its no wonder
<3> mozzila.org developer documentation seems to be anything but developer-friendly :P
<3> i can't seem to find a decent resource on their site about extension development
<3> maybe its hidden
<2> fuzzpopfx: hehe
<4> In the line "public abstract cl*** DemoBaseCollection<T> : List<T> where T : DemoBaseObject, new()" can someone biefly explain the part after the : ?
<5> T must inherit DemoBaseObject and have a default argumentless constructor
<1> its a List of type T
<4> The "where T : DemoBaseObject, new()" is the part that specifies the constraint of T, right? What's the "List<T>" part before that and after the first : ?
<5> inheritance from a generic list collection, the DemoBaseObject just sets some cosntraints to the type in the where clause
<4> My apologies for sounding like such a noob... :| I'm not a c# developer. I'm trying to convert some code from C# to VB.NET and I was doing fine until I hit the new generics stuff. :)
<2> why would you do that i wonder... :)
<4> Oh, duh! The inhertance. Now I feel like a dunce. I should have seen that. :)
<4> LordCrc: Because I program in VB.NET and I need this code. :)



<2> leep: i figured, but i still wonder ;)
<4> C# should have had some kind of delimiter between the inheritance and the generic constraints. Hehehe... would have made it clearer that it was two different things to a dunce like me. ;)
<2> it does
<2> :
<2> :)
<2> oh
<2> right :) my bad, im tired
<5> vb is more verbose, but you get a headache from it
<4> I do like the "tightness" of C# code better than VB, and I used to be a C coder a long time ago (got into C++ a little, but made the switch to Visual Basic due to a company change).
<1> if something is selected in a datagridview and it loses focus, shouldnt the color of the selected items dim or something?
<1> seems like it should
<1> is there a randomizing function in C#?
<1> just some basic bull****
<0> yes
<6> Math.Random ?
<1> how can I tweak the random function so that it doesnt just return one value from a low to max but an entire list of random numbers
<6> ...
<6> loop.
<1> loop what
<6> ...
<6> LOOP
<1> not helpful
<6> ... yes it is
<6> List<double> l = new List<double>(); while(true) l.Add(Math.Random);
<6> ...
<6> ta-dah!
<1> what does that do
<6> ...
<6> do you know C#?
<1> i knew that was coming
<6> because if you had any clue... a) the question wouldn't have been asked b) the answer "loop" would have immediately given you a hint on how to do it and c) the code i just showed would make *some* sense...
<1> why is a vector necessary
<6> ... it's called generics in .NET and it's not
<6> you could use ArrayList
<6> it just saves you from casting later..
<1> i dont know if it is efficient
<6> generics?
<1> no, the process
<6> what process?
<1> im just tired im going to sleep and look at this tomorrow
<6> haha. good night.
<1> what is the best way to make a function that returns a randomizer from min to max?
<1> not just one number but an entire range
<7> create a list of those numbers
<7> and shuffle
<1> i know but the implementation is messing me up
<1> its easy to describe but when it comes to doing it very hard
<7> shuffle is easy
<7> create two random numbers
<7> in the range of the length of the array
<7> switch those
<7> and do that a few times.
<1> thats cheesy
<7> it's called shuffling
<1> what is the best way to make a function that returns a randomizer from min to max?
<1> but not just one number but an entire list of numbers from min to max
<8> didn't I just asnwer that?
<8> Shuffle like you do with cards
<8> best way really
<1> didnt like your answer lol
<1> i want to use the random function
<8> yes
<8> you shuffle with random
<8> but you won't get back a list
<1> is there a stringarray or something
<8> StringCollection
<1> how do I get the count
<8> .Count
<1> hehe im so easy


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #csharp
or
Go to some related logs:

www.citynews.ca
ReplayTV SpinRite
#computers
#delphi
#computers
#freebsd
#politics
vinny boombats
#linux-noob
#visualbasic



Home  |  disclaimer  |  contact  |  submit quotes