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
F

Fabio Zanetta

@Fabio Zanetta
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Empty catches’ blocks
    F Fabio Zanetta

    Yeah, and try something like this:

    protected override void OnPaint(PaintEventArgs e)
    {
    base.OnPaint(e);

    try
    {
        int zero = 0;
        int one = 1;
        int exception = one / zero;
    }
    catch
    {
        throw new InvalidOperationException();
    }
    

    }

    Let's say the exception is done by a third part plugin, so you can't control it. Want you try to catch it in the Application.ThreadException event? Ok, try it! ;) Not all scenarios allow you to fill the catch block.


    free .net reporting and gdi+ tools www.neodatatype.net

    The Weird and The Wonderful help database debugging sales tutorial

  • ToolBoxBitmap
    F Fabio Zanetta

    Let's say that ResourceFinder is in the namespace MyDllNameSpace.Images, the default namespace of your assembly (see Assembly properties) is MyDllNameSpace, the bmp should be into Images subfolder (so that ResourceFinder namespace is equal to default namespace + bmp folder): ToolboxBitmap(typeof(ResourceFinder), "ProgressBar.bmp")]


    free .net reporting and gdi+ tools www.neodatatype.net

    C# csharp testing debugging beta-testing

  • ToolBoxBitmap
    F Fabio Zanetta

    You need also the [ToolboxItem(true)] attribute. In my tests for this I went crazy because it **seems** to work only if you reference the compiled dll and not with a reference to the project and this is not documented at all.


    free .net reporting and gdi+ tools www.neodatatype.net

    C# csharp testing debugging beta-testing

  • How to remove article files?
    F Fabio Zanetta

    Hi all, I'd like to upload my article with new zip files to download. How can I remove the old ones if they have a different name? Thanks!


    free .net reporting and gdi+ tools www.neodatatype.net

    IT & Infrastructure question csharp winforms graphics tools
  • Login

  • Don't have an account? Register

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