Search:

Type: Posts; User: boops boops

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    8
    Views
    370

    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...
  2. 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
  3. 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...
  4. 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
  5. 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...
  6. 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...
  7. Replies
    7
    Views
    468

    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
  8. 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...
  9. 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. ...
  10. Replies
    9
    Views
    643

    Re: Adjustable cursor.

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

    Re: Adjustable cursor.

    PictureBox1.DrawToBitmap

    BB
  12. Thread: Post Race!

    by boops boops
    Replies
    65,327
    Views
    7,535,855

    Re: Post Race!

    On the contrary, you stood quite enough.
  13. Replies
    10
    Views
    673

    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...
  14. Replies
    2
    Views
    292

    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...
  15. Replies
    15
    Views
    4,838

    Re: How to get rich

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

    BB
  16. Replies
    15
    Views
    4,838

    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...
  17. Replies
    15
    Views
    4,838

    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...
  18. 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
  19. 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,...
  20. 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...
  21. VS 2010 Re: Stop Flicker of the windows form in visual basic 2010

    If you set DoubleBuffered for the form to True in the IDE, you don't need the SetStyle statements. As I said, they do the same job.

    If the form still flickers, at least you know that the cause is...
  22. VS 2010 Re: Stop Flicker of the windows form in visual basic 2010

    You said you are double buffering but you are not. SetStyle.OptimizedDoubleBuffer only works in combination with SetStyle.AllPaintingInWMPaint and SetStyle.UserPaint. But that's been obsolete for so...
  23. Thread: Post Race!

    by boops boops
    Replies
    65,327
    Views
    7,535,855

    Re: Post Race!

    That's a dilemma. Don't go Russian into it...
  24. Re: 'Remove vertical spacing' not behaving as expected.

    I just tried it with 3 buttons stacked vertically. If you leave the Button.FlatStyle at Default, it's true you always get a slight spacing between them. But if you change the FlatStyle to Flat, they...
  25. Replies
    3
    Views
    449

    Re: Checking for 24 bit or 32 bit Images

    If you just want to check the pixel size, you can do it in one line:


    Dim bitsPerPixel As Integer = Bitmap.GetPixelFormatSize(bitmap name.PixelFormat)


    Result: 24 or 32 (you won't often get...
  26. Replies
    13
    Views
    1,046

    Re: cursor movement in VB

    You're right, Shaggy, I'm getting really rusty:eek:! A function (by mathematical definition) yields only a single result for a given input value. I'm glad you agree about the vertical line. BB
  27. Replies
    13
    Views
    1,046

    Re: cursor movement in VB

    I don't know why you say that. There could be any number of Y values. Just sticking to the conic section functions, an ellipse will always have two Y values or none for most X values, and the same...
  28. Thread: Post Race!

    by boops boops
    Replies
    65,327
    Views
    7,535,855

    Re: Post Race!

    It's a bun, isn't it? They get invalid if you sit on them for too long.

    BB
  29. Replies
    21
    Views
    1,626

    Re: Project with many panels

    I agree, the standard MultiLine implementation leaves a bit to be desired. But as long as you stick to the Multiline=False and Aligment Top or Bottom, there's a nice little forward-back arrow when...
  30. Replies
    21
    Views
    1,626

    Re: Project with many panels

    Have you considered using a TabControl for this purpose? You can add as many TabPages as you like and each page behaves much like a panel. Clicking on a tab brings the corresponding page to the...
  31. VS 2017 Re: My Form is on top of my Word document that I have just opened

    Maybe it will help to make Form3 an 'Owned Form' of Form2. Assuming that 'Me' refers to Form2:


    Form3.Show(Me)

    That will ensure that Form3 stays front of Form2 when shown, and both forms will...
  32. Replies
    6
    Views
    753

    Re: Random equation generator

    That's not an equation, it's an expression.
  33. Re: Why is my cursor going to the wrong place ?

    The main cause is Cursor.Position is in Screen coordinates and the point on a form ("Me") is in Form coordinates. The right way is:


    Cursor.Position = PointToScreen(New...
  34. Replies
    23
    Views
    1,584

    Re: No more drawing dots?

    Ha meister Schmidt, you've just taken the wind out of my sails:mad:! Never mind, this is the VB.Net forum, so I suppose there is some point in posting my own idea of how to paint a grid of hexagons...
  35. Replies
    5
    Views
    694

    Re: Containers Not Growing in AutoSize

    It's clear from the Document Outline window that you're using a FlowLayoutPanel, so the 4 mentions of TableLayoutPanel in post #1 may be confusing some of our devoted readers;).

    Am I correct in...
  36. Re: Use non ClearType or Non TTF Fonts in VB

    As an alternative to editing the form designer code, you might consider making the derived Label "switchable". The class could then look something like this:


    Public Class AALabel
    Inherits...
  37. Re: Use non ClearType or Non TTF Fonts in VB

    I think System.Drawing can only render TTF fonts. But you can disable anti-aliasing and ClearType by setting the TextRenderingHint property of the Graphics object that draws the text to...
  38. Replies
    3
    Views
    525

    VS 2019 Re: Windows Forms Font Problem

    A "framework" which works with OTF files in Visual Studio is WPF (actually part of the dotnet framework).

    It's possible to transplant individual bits of OTF-based text into a Windows.Form using...
  39. Re: Find location of points after ResetTransform

    Not resolved yet? You didn't indicate how you get those red dots, but I assume you calculate their coordinates somehow in relation to the grid of lines. TransformPoints does the trick; the only...
  40. Replies
    11
    Views
    1,200

    Re: Why does my screen blank ?

    Graphics.DrawLines draws a polyline, i.e a series of lines joined end to end. Poppa apparently wants to draw separate lines radiating from a centre, so Graphics.DrawLine is needed. BB
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width