Search:

Type: Posts; User: boops boops

Page 1 of 13 1 2 3 4

Search: Search took 0.55 seconds.

  1. 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...
  2. 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...
  3. 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...
  4. 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
  5. Replies
    11
    Views
    636

    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...
  6. Replies
    11
    Views
    636

    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?
    ...
  7. 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...
  8. 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
  9. Thread: Post Race!

    by boops boops
    Replies
    65,934
    Views
    10,066,492

    Re: Post Race!

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

    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
  11. Replies
    3
    Views
    468

    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...
  12. 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....
  13. 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...
  14. Thread: Post Race!

    by boops boops
    Replies
    65,934
    Views
    10,066,492

    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
  15. Replies
    13
    Views
    1,042

    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...
  16. Replies
    14
    Views
    803

    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
  17. Replies
    14
    Views
    803

    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...
  18. Replies
    14
    Views
    803

    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
  19. Replies
    14
    Views
    803

    Re: Oddity with mouseleave event....

    It seems that MouseLeave gets a higher priority than other mouse events. If you leave it to MouseMove, by comparison, the mouse can too easily slip past the panel boundary without raising an event. ...
  20. Replies
    13
    Views
    1,046

    Re: Mouse move event too slow

    It's not clear what you mean by "lost" points. If you draw a line with the mouse, all it does is raise events or emit messages at slightly irregular intervals. They do not create a line themselves,...
  21. Replies
    8
    Views
    800

    Re: Multithreading and timer

    No, that applies only to the Windows.Forms.Timer. Try a System.Timers.Timer instead. I find it very easy to use. There's also a Threading Timer, maybe someone else can advise you if it's better for...
  22. VS 2019 Re: Form Load is missing "Handles MyBase.Load"

    It's cut/paste (or plain delete) that removes the associated Handles clause. Copy-paste doesn't do any damage. It's all for your own good, you know:bigyello:. BB
  23. Re: .NET visual form designer, only 50 lines of code!!!

    Hi xioyao,

    I searched the Web for DemoToolboxService, but apart from the present thread and a handful of Chinese-language web pages, the only English-language occurrence I found was in a 2009...
  24. VS 2019 Re: Datagridview selected cell forecolor not to be changed

    Here's how you can change a cell's SelectionForeColor:


    dgvTable.Rows(row number).Cells(column number).Style.SelectionForeColor = color

    Is that sufficient information?

    BB
  25. VS 2019 Re: Placing Graphics Functionality into a library class

    The Graphics object can only function when it has a surface to draw on - in other words, a specific Control or Bitmap. I don't think you can pass it as an argument to another class without losing...
  26. Re: [RESOLVED] A Mentally Challenged Person Tries to Find Tab Order

    I've noticed in VS2019 that Tab Order disappears from the View menu whenever you switch between Toolbox, Properties or Solution Explorer windows. But if you select the View menu again without...
  27. Replies
    7
    Views
    698

    Re: My application clogs-up memory...

    Alain, surely it's just the way the Garbage Collector works. The GC process has heavy overheads, so it's more efficient to let the garbage heap up until it's necessary to haul it all away.
    BB
  28. Re: Help with Geometric Median formula

    I'm not sure about your description of the brute force method. Suppose, for example, the points are dotted around roughly in a circle. The point which has the smallest total distance to all the other...
  29. Re: Trying to make bitmap with a transparent background.

    It's not the fault of the Bitmap because it can have transparency and semi-transparent colours -- as long as the format is 32bit, but that's the default anyway when you declare a new bitmap by size. ...
  30. Replies
    9
    Views
    981

    Re: Adjustable cursor.

    Dim bmp As Bitmap
    With PictureBox1
    .BorderStyle = BorderStyle.None 'if necessary
    bmp = New Bitmap(.Width, .Height)
    .DrawToBitmap(bmp, .ClientRectangle)...
  31. Replies
    9
    Views
    981

    Re: Adjustable cursor.

    PictureBox1.DrawToBitmap

    BB
  32. Thread: Post Race!

    by boops boops
    Replies
    65,934
    Views
    10,066,492

    Re: Post Race!

    On the contrary, you stood quite enough.
  33. Replies
    10
    Views
    930

    Re: Forms.timer of threading.timer?

    Have you considered the System.Timers.Timer? I know nothing about your server problems, but I understand that the Timers.Timer has the merit of raising its Elapsed event on a separate thread, and you...
  34. Replies
    2
    Views
    422

    Re: Change image size from text

    Hi YourMomsFire, it helps to give names to the bits and pieces of data that you use, especially when you are just learning. I suppose you already know how to use the Dim statement to give a name to...
  35. Replies
    15
    Views
    5,191

    Re: How to get rich

    Do I detect a slight irritation? Goodnight, for those who believe in night.

    BB
  36. Replies
    15
    Views
    5,191

    Re: How to get rich

    Curse you and your thermodynamics:mad:! Now I'll have to go off and invent an entropy inverter. I don't know any VB6 but I expect it will do the job. Oh, and an ironic smiley. I thought the last line...
  37. Replies
    15
    Views
    5,191

    How to get rich

    It's beautiful weather in Amsterdam at the moment, but cold. The canals are largely iced-over. Luckily, my apartment has gas-fired central heating. Electric heating would be better for the...
  38. Re: winmm.dll mciSendString - How to loop from specific song point?

    Or maybe getting some sleep. Not everyone lives in the Sapila time zone.
    BB
  39. Re: Programming an editable graphic in VB Forms Application

    You need IsVisible for hit-testing the dot, not IsOutlineVisible.

    So I hope it's not too late to save you from wasting time wondering what color to choose for the Pen argument (answer: any color,...
  40. VS 2010 Re: Stop Flicker of the windows form in visual basic 2010

    Hi Lokesh, I can suggest a fairly easy way to change your code from post 1 above.

    1. Copy all the code (including the Region statement) from the Paint event to the Load event.
    2. Delete the...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width