Search results for query: *

  1. B

    Graphics interpolation issue

    I have used all of them and tried various combinations of values, but I hardly see any change. Maybe there's a specific combintion of parameters for what I'm trying to achieve but I have the feeling I am going nowhere by fooling around with it. Perhaps I should go back to Bilblt.
  2. B

    Graphics interpolation issue

    Hi, I've spent the last few weeks in a hospital and finally I'm discharged. Getting back to my problem I have tried these properties (one at a time), Graphics.CompositingQuality Graphics.PixelOffsetMode Graphics.SmoothingMode Graphics.TextContrast Graphics.TextRenderingHint with different...
  3. B

    Graphics interpolation issue

    I'm using 2 pictureboxes, one with a source image and the other to zoom in on an area inside a navigation rectangle. I'm using DrawImage to magnify the image (image on the right) In the source image there is some text added with a graphics program. This text looks bad on the zoomed image due to...
  4. B

    How to Mousewheel?

    You're right, I'm using Windows 7. However the form mousewheel event is raised even when the mouse is over the picturebox as if the latter were not there, so I think I can make do with it with just a little bit of arithmetic.
  5. B

    How to Mousewheel?

    Why does this work: Private Sub frmMain_MouseWheel(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseWheel Console.WriteLine(e.Delta) End Sub while this doesn't? Private Sub PictureBox1_MouseWheel(sender As Object, e As MouseEventArgs)...
  6. B

    Validating event override

    In this example I'm using a textbox and a cancel button and it does work as the form closes when I click cancel. However even in this case the messagebox displays its warning before the form is closed. How can I prevent it? Public Class Form1 Private Sub Form1_Load(sender As Object, e As...
  7. B

    Validating event override

    If I click on the x box at the upper right corner of the form to close it, a textbox validating event fires because of missing or wrong data. How can I avoid that?
  8. B

    How to set the exe file icon

    Just remembered I'd forgotten to say: thanks!
  9. B

    How to set the exe file icon

    Now if I go to the Control Pannel to uninstall the program it turns out it appears in the list of installed applications with the generic icon. How do I fix this?
  10. B

    How to set the exe file icon

    Thanks a lot!
  11. B

    How to set the exe file icon

    When I deploy a project, the exe file shows a generic icon rather than the one I thought I'd chosen. I'm using VS 2015 and this is what I have done: 1. Go to Project => Properies => Resources => Add Resource => Add existing file => Browse folders and select a specific icon 2. In the project...
  12. B

    Class usage

    I see the point, thank you.
  13. B

    Class usage

    I was wondering if it's correct -I mean sound programming habit- to refer to a class from another class if they have nothing to do with each other. For example, Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim c1 As New Class1...
  14. B

    Combine 2 images and highlight the most similar areas

    It has a (white) border already. Still I recently had to deal with a background with dark and light areas such that the colour under the border was difficult to distinguish. I am considering make the rectangle colour the negative of the background but I'm not sure if that's the best option.
  15. B

    Combine 2 images and highlight the most similar areas

    My application draws a rectangle filled with a black brush with a certain degree of transparency on top of a background image. The rectangle is clearly visible except if the background consists of a large gray area, in which case it becomes difficult to distingish. The way to manually overcome...
  16. B

    Is it possible to get a form's properties if all you have is a handle?

    Thank you, your suggestion has worked, GetWindowRect yields the coordinates of the window even if it's outside the application: Public Class Form1 Private Structure RECT Dim Left As Integer Dim Top As Integer Dim Right As Integer Dim Bottom As Integer...
  17. B

    Is it possible to get a form's properties if all you have is a handle?

    Given the handle of another application's window, how do I get its properties, for example the location and size?
  18. B

    Include data files when deploying

    Great, it finally works! Thanks a lot.
  19. B

    Question Project settings

    OK, thanks.
Back
Top