Search:

Type: Posts; User: boops boops

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Thread: Post Race!

    by boops boops
    Replies
    66,475
    Views
    11,506,434

    Re: Post Race!

    Lay off the Easter eggs then.
  2. Replies
    9
    Views
    689

    VS 2019 Re: drawborder and Style

    No, I wrote the quoted code myself, 9 years ago. The red colour was just an example of a custom border appropriate to that particular thread. It seems to me that the OP is asking for a standard...
  3. Replies
    9
    Views
    689

    VS 2019 Re: drawborder and Style

    I get the impression that Johanna isn't looking for coloured or otherwise fancy border effects, just the standard Fixed3D border. If that's the case, then you don't need the code quoted in post #1...
  4. Replies
    3
    Views
    366

    Re: Maybe or may be not

    The link explains the difference correctly but never mind, I should think that people understand the intention. What I find more irritating is FD's "miss-understanding". Does that mean a good...
  5. VS 2010 Re: How to make pictures transparent on Visual Basic?

    Never mind, at least the latest frameworks aren't bamboozling you:wave:. BB
  6. VS 2010 Re: How to make pictures transparent on Visual Basic?

    I suppose you are aware that both TransparencyKey and Bitmap.MakeTransparent respond only to an exact A, R, G and B combination. If one of these bytes deviates by 1 or more in 256, the rest will...
  7. VS 2010 Re: How to make pictures transparent on Visual Basic?

    I can't reproduce your problem. I tried .NET Framework 4.8 (VS2019) and 3.5 ClientFramework as well as .NET 6.0 (VS2022). A picture box with a partly transparent BackColor and with a partly...
  8. Re: Made a scrolling sine wave but it is very slow. Is there a better way?

    Since you ask for a better way, I suggest that you draw the sine wave just once.

    Here's a brief summary of how to do it: draw the sine wave on a bitmap, turn that into a TextureBrush, and use the...
  9. Replies
    7
    Views
    402

    VS 2010 Re: Anti-Aliasing Brush Function

    The edges of filled shapes (e.g. Ellipses and GraphicsPaths) are in fact antialiased by the appropriate SmoothingModes. See Remarks in MS documentation.

    Rectangles won't be aliased anyway, unless...
  10. Thread: Post Race!

    by boops boops
    Replies
    66,475
    Views
    11,506,434

    Re: Post Race!

    Maybe because they are imposters...?
  11. Replies
    17
    Views
    1,592

    Re: resize image dimensions in vb.net

    I haven't read all the code in this thread, but I can't help feeling that it's overcomplicated. After all, you can resize an image with one short line of code:


    Dim img As New Bitmap(sourceImage,...
  12. VS 2022 Re: Child form in front of the controls on parent form

    The the "Me" in form1.Show(Me) is a simple way to make it the Owner of form1.

    The owned form is locked in front of the owner (and its child controls) in the Z order, so no other form can come...
  13. VS 2022 Re: Child form in front of the controls on parent form

    Leave out the MDIParent and TopMost statements, and add 2 letters to the remaining line:


    frm1.Show(Me)


    BB
  14. VS 2022 Re: Show a PictureBox transparent over a ListBox Help!

    Unfortunately, I didn't. My internet connection started playing up. I managed to get one message posted before it packed up altogether and missed your prior posting. I couldn't get it repaired until...
  15. VS 2022 Re: Show a transparent PictureBox over a ListBox Help!

    Here's a code example using a PictureBox. It produces result that looks to me something like what you wanted in post #1.

    In the designer, create a Form (Form1) with a ListBox (ListBox1 with your...
  16. VS 2022 Re: Show a PictureBox transparent over a ListBox Help!

    The WPF listbox can't easily be activated from the Form. It can be done, and it wouldn't take thousands of lines of new code, but you do need a basic knowledge of XAML and WPF as well as the...
  17. VS 2022 Re: Show a PictureBox transparent over a ListBox Help!

    If you read the documentation, you may notice that it says under the heading Remarks:

    In other words, the ListBox paint event is about as useless as ...
    I was going to cite male nipples (vide...
  18. VS 2022 Re: Show a PictureBox transparent over a ListBox Help!

    Sorry, my mistake.

    The WinForms ListBox has been drawing itself in its own obstinate way for the last 20 years, constantly ignoring Paint events and OnPaint subs. And you don't want the...
  19. VS 2022 Re: Show a PictureBox transparent over a ListBox Help!

    In System.Drawing, it's the parent control - the Form, Panel or other Container - that renders transparency for its child controls. So all you have to do is change the PictureBox's parent to the...
  20. VS 2022 Re: Printing a PictureBox in Zoom Mode. help!

    PictureBox.SizeMode and Graphics.DrawImage are different ways of displaying the image. The image itself isn't changed by either option. It's just a coincidence that an image drawn with...
  21. Replies
    1
    Views
    397

    Re: Smooth rounded boarderless form?

    A possible approach is to take advantage of the WPF Window, which supports partial transparency and hence anti-aliased edges. See my "Shaped Form" step-by-step example in the VB.Net code bank (link...
  22. Re: ZoomPictureBox: picture control with mouse-centred zooming

    Hi John, you are right. When I posted the last link nearly 3 years ago, I intended move it to post #1 where anyone could find it. But I discovered some errors and never got around to fixing them....
  23. VS 2019 Re: MouseOver Event doesn't work when object hidden

    Here's another way to do it that would require fewer changes.

    Instead of hiding the 'overlay' picturebox, set its background to near total transparency, e.g. alpha=1. As long as the alpha is more...
  24. Re: Detect resize Top/Bottom vs Left/Right?

    An alternative that also works. It's a little bit more concise even discounting the Debug lines.


    Private formAspect As Double
    Private formWidth, formHeight As Integer

    Private Sub...
  25. Re: Why is my PictureBox image not found ?

    Your code doesn't even refer to Tags. Instead, you are relying on the PictureBox.Name property. If you've added all the picture boxes in the designer with default names, then maybe looping from 0 to...
  26. Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Did you know that you could omit 4 lines of that code? Namely the radius.AddLines. It's possible because CloseFigure automatically closes any gaps in the path by adding straight lines.

    BB
  27. Replies
    11
    Views
    907

    Re: Overlapping Calculation

    Clipping doesn't have to be complicated at all. In the Paint sub, all you have to do is put Graphics.SetClip(rectangle) before drawing the lines. Here's an example using the line and rectangle...
  28. Replies
    11
    Views
    907

    Re: Overlapping Calculation

    There's something still unclear. Do you want to draw only line segments that cross the rectangle completely? Or do you also want to draw line segments that end somewhere inside the clip rectangle?
    ...
  29. Re: ZoomPictureBox: picture control with mouse-centred zooming

    As far as I know all code posted in the CodeBank is unlicensed, so you are free use it however you like. if you include the code in a licensed project, it would be polite to add a comment referring...
  30. Re: ZoomPictureBox: picture control with mouse-centred zooming

    That question applies to any code library, not just ZPLib. And it's not something I know much about. Please address your question to another forum such as Visual Basic .Net or C#.

    BB
  31. Thread: Post Race!

    by boops boops
    Replies
    66,475
    Views
    11,506,434

    Re: Post Race!

    Darned jay walkers. They should stick to the bicycle lanes like they do in Holland.
    BB
  32. Replies
    3
    Views
    609

    Re: Region troubles

    Good idea. It results in a dilation of the original shape (opposite to erosion). That's not quite the same as widening by scaling, but there's nothing hacky about it if it's the effect you want. BB
  33. Replies
    3
    Views
    609

    Re: Region troubles

    The GraphicsPath.Widen(pen) method does indeed create an outline, not a "solid" shape. For example, if your graphics path shape is a circle, the Widen function will convert the path into a hollow...
  34. VS 2010 Re: TextRenderer.MeasureText Return same height for different width

    If you want a single line to fit a certain width, you can just scale the font size. For that, get the width of the string in (say) default font size, and scale it up or down to fit the desired width....
  35. Re: SmoothingMode AntiAlias and HighQuality not working in Form_Paint

    To resize an image or bitmap with Graphics.DrawImage, you need the Graphics.InterpolationMode settings. Probably you want
    Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic in your...
  36. Thread: Post Race!

    by boops boops
    Replies
    66,475
    Views
    11,506,434

    Re: Post Race!

    Żou mean this isn't cyan when you want it to be?

    or, as NOPARSE would have it:

    You mean this isn't cyan when you want it to be?

    BB
  37. Replies
    13
    Views
    1,449

    Re: How to hide cursor?

    The Control.GetNextControl function provides a simpler way to iterate through all the child controls and their descendents. Here's an example based on DDay's code above:


    Private Sub...
  38. Replies
    14
    Views
    1,061

    Re: Oddity with mouseleave event....

    Not if there are child controls on the panel (see post #1). But maybe you found another way to solve the problem. BB
  39. Replies
    14
    Views
    1,061

    Re: Oddity with mouseleave event....

    For what it's worth, I've elaborated the above code to allow for adjacent/overlapping controls on the form:


    Private mouseEscaped As Boolean = False

    Private Sub Form1_Load(sender As...
  40. Replies
    14
    Views
    1,061

    Re: Oddity with mouseleave event....

    You could loop through the form's controls and use AddHandler to detect MouseEnter for each control except the "popup" panel itself. Do you need help with that? BB
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width