Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

BoneSoft

@BoneSoft
About
Posts
3.0k
Topics
72
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Overriding OnMouseWheel
    B BoneSoft

    I know it's 4 years too late, but I ran across this post while looking for information on the Delta values in the MouseEventArgs passed to OnMouseWheel. The reason controls like PictureBox don't fire that event is because it doesn't have focus. An easy fix should be to override OnMouseEnter and calling the control's Focus() method. You may also need to call your control's SetStyle method and give it ControlStyles.Selectable in it's contructor. It's probably way too late, but I hope that helps anyway. :)

    "Political correctness is a doctrine, fostered by a delusional, illogical minority, and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end" - Unknown

    C# question

  • Gradient Texture with Transparency
    B BoneSoft

    WPF is outside the scope of this project, but I appreciate the link. It does look interesting. :-D

    "Political correctness is a doctrine, fostered by a delusional, illogical minority, and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end" - Unknown

    C# graphics tutorial question learning

  • Gradient Texture with Transparency
    B BoneSoft

    In case anyone cares. Until I find a nicer cleaner way to accomplish this, I've decided to brute force it pixel by pixel. For my purposes, the image is meant to be a background image for a range between 0 and 255. This example does the gradient vertically. To do a different direction, I assume anybody who cares can work out the necessary changes. I'll settle for this only because my image will be very small, but I'd still like to find a more elegant solution.

    private Image GradientTransparent(Image src) {
    Rectangle bmpBox = new Rectangle(0, 0, src.Width, src.Height);
    Bitmap bmp = new Bitmap(src);
    Graphics g = Graphics.FromImage(bmp);
    for (int y = 0; y < bmp.Height; y++) {
    // image is meant to represent a range from 0 to 255
    int alpha = (int)((float)y * 255f / (float)bmp.Height);
    for (int x = 0; x < bmp.Width; x++) {
    Color pixel = bmp.GetPixel(x, y);
    pixel = Color.FromArgb(alpha, pixel);
    bmp.SetPixel(x, y, pixel);
    }
    }
    return bmp;
    }

    "Political correctness is a doctrine, fostered by a delusional, illogical minority, and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end" - Unknown

    C# graphics tutorial question learning

  • Gradient Texture with Transparency
    B BoneSoft

    Does anybody have an idea how to draw an image (like using TextureBrush) with gradient transparency (like using LinearGradientBrush)? The only examples I can find on drawing an image with transparency use ColorMatrix to give the entire image a transparency value, which is not what I'm looking for. I guess what I really need is a LinearGradientTextureBrush, which of course doesn't exist. Does anybody have a suggestion on how to accomplish this? I'm out of ideas. Thanks in advance for any suggestions.

    "Political correctness is a doctrine, fostered by a delusional, illogical minority, and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end" - Unknown

    C# graphics tutorial question learning

  • ****ing facebook [modified]
    B BoneSoft

    There's not. There are personal messages and wall postings for the world to see.

    "Political correctness is a doctrine, fostered by a delusional, illogical minority, and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end" - Unknown

    The Lounge css business sales help announcement

  • Han Solo Has Only...
    B BoneSoft

    Spanish? Who knows. However, in Japanese "han" means "half". Japanese doesn't have an "L", which would be approximated with an "R". Depending on how the "O"s are stretched, "Souro" can mean "race track". Or "Sourou" can mean "weather", "premature aging" or "premature ejaculation". So in Japanese Han Solo could mean "half track" or "half an early squirt". Which don't seem to pertain to the character, but that didn't stop me from posting my musings. ;P

    "Political correctness is a doctrine, fostered by a delusional, illogical minority, and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end" - Unknown

    The Lounge html visual-studio question discussion

  • What's the best system name you've heard?
    B BoneSoft

    Named a project MARIANAS once, cuz it was the epitome of feature creep.

    "Political correctness is a doctrine, fostered by a delusional, illogical minority, and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end" - Unknown

    The Lounge question

  • Just get your damn vaccine!
    B BoneSoft

    :wtf: Umm... Your brain is in the melon on the other end of you. Dufus. Though, if you were a mutant with muscle in your noggin, that would explain a lot, you really would be a meat-head. :laugh: Wow!

    "Political correctness is a doctrine, fostered by a delusional, illogical minority, and rabidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end" - Unknown

    The Back Room com question announcement

  • We never saw this one coming, did we?
    B BoneSoft

    Ilíon wrote:

    So, are you saying that since (according to you) there is no "need" to say that such persons are intellectually dishonest, there is therefore an obligation to not say they are (even if it's true)?

    No. "None of that needs saying" can be taken as "that goes without saying".

    Ilíon wrote:

    is not, just different verbiage for "'they' are intellectually dishonest," after all?

    Kinda.

    "Whenever you find yourself on the side of the majority, it's time to pause and reflect." - Mark Twain "Diplomacy is the art of saying 'nice doggy' until you can find a rock." - Mark Twain "If you pick up a starving dog and make him prosperous, he will not bite you. This is the principal difference between a dog and a man." - Mark Twain "Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read." - Groucho Marx

    The Back Room learning html com question announcement

  • We never saw this one coming, did we?
    B BoneSoft

    Ilíon wrote:

    So, are you saying that there are indeed people who are intellectually dishonest? And that one can decide, with an honorable degree of accuracy, when the term 'intellectually dishonest' applies to another person?

    None of that needs saying. What I'm saying is that they won't be happy until any murder done by a woman in the name of convenience is not only legal but smiled upon.

    Ilíon wrote:

    And on a different note and level, would the mind-set behind this hypothetical claim or position (which we all understand will be made)

    I haven't the vaguest clue as to what you're getting at.

    "Whenever you find yourself on the side of the majority, it's time to pause and reflect." - Mark Twain "Diplomacy is the art of saying 'nice doggy' until you can find a rock." - Mark Twain "If you pick up a starving dog and make him prosperous, he will not bite you. This is the principal difference between a dog and a man." - Mark Twain "Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read." - Groucho Marx

    The Back Room learning html com question announcement

  • We never saw this one coming, did we?
    B BoneSoft

    I bet they still claim they're not for killing babies. They're just not so against it. Some friggin people... X|

    "Whenever you find yourself on the side of the majority, it's time to pause and reflect." - Mark Twain "Diplomacy is the art of saying 'nice doggy' until you can find a rock." - Mark Twain "If you pick up a starving dog and make him prosperous, he will not bite you. This is the principal difference between a dog and a man." - Mark Twain "Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read." - Groucho Marx

    The Back Room learning html com question announcement

  • Zeitgeist
    B BoneSoft

    It starts off talking about the joke that is the Federal Reserve, and then moves into talking about corporate imperialism, economic hitmen, etc. I forget what it wraps up with, it's been a while.

    "Whenever you find yourself on the side of the majority, it's time to pause and reflect." - Mark Twain "Diplomacy is the art of saying 'nice doggy' until you can find a rock." - Mark Twain "If you pick up a starving dog and make him prosperous, he will not bite you. This is the principal difference between a dog and a man." - Mark Twain "Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read." - Groucho Marx

    The Back Room com question

  • Block Me Out: Why?
    B BoneSoft

    Yeah, I have mixed feelings about the lose of voting rights in some forums. :)

    "Whenever you find yourself on the side of the majority, it's time to pause and reflect." - Mark Twain "Diplomacy is the art of saying 'nice doggy' until you can find a rock." - Mark Twain "If you pick up a starving dog and make him prosperous, he will not bite you. This is the principal difference between a dog and a man." - Mark Twain "Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read." - Groucho Marx

    The Back Room com question

  • First 'anti-stab' knife to go on sale in Britain
    B BoneSoft

    I hadn't seen much of the hand to hand, mostly the short swords and a little bit of knife work. As for kung-fu, I was never really drawn to the Chinese arts for some reason. And now that I have Japanese ties, I'm really interested in the Japanese arts. Aikido always looked interesting to me, but from what I understand, to be a serious student to that art requires a few stress fractures since it involves so much joint manipulation. I suppose I'll have to stick to fencing and kendo. Which aren't too terribly applicable to the real world, but fun nonetheless.

    "Whenever you find yourself on the side of the majority, it's time to pause and reflect." - Mark Twain "Diplomacy is the art of saying 'nice doggy' until you can find a rock." - Mark Twain "If you pick up a starving dog and make him prosperous, he will not bite you. This is the principal difference between a dog and a man." - Mark Twain "Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read." - Groucho Marx

    The Back Room announcement

  • Block Me Out: Why?
    B BoneSoft

    CaptainSeeSharp wrote:

    Why can't you except hard reality?

    You mean use non-user-friendly messages when throwing exceptions? I can do that, but I usually get yelled at for doing it. ;)

    "Whenever you find yourself on the side of the majority, it's time to pause and reflect." - Mark Twain "Diplomacy is the art of saying 'nice doggy' until you can find a rock." - Mark Twain "If you pick up a starving dog and make him prosperous, he will not bite you. This is the principal difference between a dog and a man." - Mark Twain "Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read." - Groucho Marx

    The Back Room com question

  • First 'anti-stab' knife to go on sale in Britain
    B BoneSoft

    Yeah, I've watched some eskrima and that's one martial art that don't screw around with the "martial" part. It would probably be pretty handy to learn now days.

    "Whenever you find yourself on the side of the majority, it's time to pause and reflect." - Mark Twain "Diplomacy is the art of saying 'nice doggy' until you can find a rock." - Mark Twain "If you pick up a starving dog and make him prosperous, he will not bite you. This is the principal difference between a dog and a man." - Mark Twain "Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read." - Groucho Marx

    The Back Room announcement

  • First 'anti-stab' knife to go on sale in Britain
    B BoneSoft

    Swimming pools are the number one cause of death for kinds under the age of 12 in the US. About a thousand times more deadly to kids than guns.

    "Whenever you find yourself on the side of the majority, it's time to pause and reflect." - Mark Twain "Diplomacy is the art of saying 'nice doggy' until you can find a rock." - Mark Twain "If you pick up a starving dog and make him prosperous, he will not bite you. This is the principal difference between a dog and a man." - Mark Twain "Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read." - Groucho Marx

    The Back Room announcement

  • First 'anti-stab' knife to go on sale in Britain
    B BoneSoft

    Oakman wrote:

    You might be surprised and dismayed to realize how much damage can be done with a slashing attack.

    I've seen a few knife fights, and none of them really got a good stab in. However, you get sliced up pretty damn fast which is at least as bad.

    "Whenever you find yourself on the side of the majority, it's time to pause and reflect." - Mark Twain "Diplomacy is the art of saying 'nice doggy' until you can find a rock." - Mark Twain "If you pick up a starving dog and make him prosperous, he will not bite you. This is the principal difference between a dog and a man." - Mark Twain "Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read." - Groucho Marx

    The Back Room announcement

  • Exactly!
    B BoneSoft

    Yep, as I thought, not once did I ever call you stupid. But that was a weird way to apologize.

    "Whenever you find yourself on the side of the majority, it's time to pause and reflect." - Mark Twain "Diplomacy is the art of saying 'nice doggy' until you can find a rock." - Mark Twain "If you pick up a starving dog and make him prosperous, he will not bite you. This is the principal difference between a dog and a man." - Mark Twain "Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read." - Groucho Marx

    The Back Room html com

  • Exactly!
    B BoneSoft

    Unadulterated steaming BS. Where have I ever done that?

    "Whenever you find yourself on the side of the majority, it's time to pause and reflect." - Mark Twain "Diplomacy is the art of saying 'nice doggy' until you can find a rock." - Mark Twain "If you pick up a starving dog and make him prosperous, he will not bite you. This is the principal difference between a dog and a man." - Mark Twain "Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read." - Groucho Marx

    The Back Room html com
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups