Search results for query: *

  • Users: brainleak
  • Content: Threads
  • Order by date
  1. 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...
  2. 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)...
  3. 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?
  4. 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...
  5. 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...
  6. 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...
  7. 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?
  8. B

    Question Project settings

    Is it possible to store values of a user defined structure type in the project settings?
  9. B

    Include data files when deploying

    In the directory ...\AppName\AppName\bin\Debug\ I have a settings file, AppName.Settings and a text file Data.txt which is also read at run time. How must I handle them in the deploy project?
  10. B

    Enlarging a bitmap

    I have a large number of old printed photographs which I have been scanning. I've written short descriptions in the file names but I've thought I'd like to place the text on the pictures themselves. Not covering the image but on a narrow white strip I would add at the bottom. I have the photos...
  11. B

    Overriding Control Validation on Windows Forms in the Closing Event

    The thread's tile is precisely that of Microsoft's documentation site: https://msdn.microsoft.com/en-us/library/4y44hzat(v=vs.71).aspx I've tried out the stated example and when TextBox1.Text.Length is less than 8, I have included a warning message for display. The inconvenience is that this...
  12. B

    Read default data from a file?

    A vb6 application I wrote years ago would read some default data (mainly pathes) from an ini file at program start. Now I'm trying to rewrite it in vb.net and was wondering if there is a more convenient way to do this.
  13. B

    Modifying a setup project

    I created a setup project but later on I realized I'd forgotten to include the option to add a shortcut to the user's desktop. So I proceeded to add this option but then when I built + rebuilt the project it did not create new setup files. How am I supposed to handle this?
  14. B

    DateTime question

    Is it possible to do this in just two statements? Dim dd As New DateTime(2017, 3, 24, 10, 1, 33) dd = dd.AddDays(-11) dd = dd.AddMonths(-2) dd = dd.AddYears(-3) dd = dd.AddHours(4) dd = dd.AddMinutes(23) dd = dd.AddSeconds(-32)
  15. B

    Application deploy

    Could someone explain in detail how to deploy a vb.net application or direct me to some useful & well explained instructions? Googling around I found a recipe which seemed to work the first time, but then I tried it on another project and I got a message that the setup project failed to build...
  16. B

    String search from?

    (Coming from vb6 and gradually learning vb.net) I want to search String1 for occurrences of String2. If I try String1.Contains(String2) is it possible to include as a parameter the specific position for search start within String1?
  17. B

    Interpreter mode

    When I hit F5 in the IDE my project first compiles and then runs. Can I not run it in interpreter mode as in old VB6? EDIT: I realize I should have posted in the IDE forum, sorry about that.
  18. B

    IDE margin colours

    What do the green and yellow stripes mean?
  19. B

    Dynamic arrays

    Hello, this is my very first post here. I have been using VB6 for the last few years and I have recently decided to move on to .Net so I'm trying to learn the new features. In VB6 I would sometimes use the ReDim statement for 2 dimensional arrays like this: Dim myVar As Double '... nCols = 8...
Back
Top