Search:

Type: Posts; User: groston

Page 1 of 3 1 2 3

Search: Search took 0.04 seconds.

  1. Re: Need some basic guidance to get started on a screen coloring project

    Windows 7 does not...
  2. Need some basic guidance to get started on a screen coloring project

    I run the program f.lux and like the effect it provides, i.e., it changes the computer's display such that it adapts to the time of day, i.e., warmer at night. However, using Process Monitor, I see...
  3. Replies
    1
    Views
    1,552

    Sudoku Game Builder

    Since folks here have helped me, I figured I would post this here. If you can suggest other places this should be posted, please share.

    I wrote this program (yeah, stupid name...) because I like...
  4. Replies
    2
    Views
    866

    VS 2012 Making my Resource code better?

    In my VB.net (2012) program, I defined some resources. I did this by right-clicking on the project name in the Solution Explorer window and choosing properties. From there, I picked the Resources tab...
  5. Replies
    4
    Views
    1,192

    Re: Printing a Windows form

    Thank you dday9 and .paul. When I used the provided code, I got an error. The problem is this: I put a break point on the line 'PrintDocument1.Print()' and the debugger shows PrintDocument1 as being...
  6. Replies
    4
    Views
    1,192

    Printing a Windows form

    I am trying to do something that should be simple: In my vb.net Windows Form application, when the F1 key is pressed the form should be printed. I do not need confirmation dialogs or anything like...
  7. Replies
    2
    Views
    574

    Using a hatch pattern

    I have an application with a DataGridView with various cells having different colors. Currently, when a number is picked, the cells with that number are colored differently. This all works without...
  8. Why isn’t my PictureBox background transparent?

    I have a VB.net forms application. The majority of the form is a DataGridView with the cells having a variety of background colors. In the application, when a button is clicked, a PictureBox is...
  9. Replies
    4
    Views
    771

    VS 2012 Remote variable access

    I feel like this is something easy, but I don’t know the answer. To make my code a bit cleaner, I moved a couple of subroutines from the Form module into another module, but note that this new module...
  10. Replies
    3
    Views
    1,080

    VS 2012 Re: Why on earth am I getting this error????

    jmcilhinney - Thank you! I changed the dgTest declarations line to

    Dim WithEvents dgTest As New DataGridView
    and it now works just fine.
  11. Replies
    3
    Views
    1,080

    VS 2012 Why on earth am I getting this error????

    Based on some suggestions I have received from this board, I am rewriting my program using a DataGridView as opposed to an array of buttons. Basically, things are going okay, but the program needs to...
  12. Replies
    7
    Views
    982

    VS 2012 Re: Drawing lines - what am I doing wrong???

    Just figured out what was wrong with my code: I did a REDIM on showOutlinePts, after each x, and the drawing appeared properly. Now, to learn about Tuples and TableLayoutPanels...
  13. Replies
    7
    Views
    982

    VS 2012 Re: Drawing lines - what am I doing wrong???

    jmcilhinney - Thank you. With regard to your first posting, I am starting the array with 0, but when I make the number of points four, i.e., the last index, the output is even worse.

    Also, I am...
  14. Replies
    7
    Views
    982

    VS 2012 Drawing lines - what am I doing wrong???

    I am still struggling to draw things the way I want them. Below is a very simplified version of the code, but it does show the issue. The basic idea is to draw a Sudoku board – 81 labels, with nine...
  15. VS 2012 Re: Ongoing trouble drawing a line across multiple controls

    passel - adding the second array works. Thank you.
  16. VS 2012 Ongoing trouble drawing a line across multiple controls

    The following code is the absolute minimum code needed to show the problem. If you want to try this, create a new Windows Form project and make the form 220 x 350 pixels. What this program should do...
  17. Thread: Drawing lines

    by groston
    Replies
    5
    Views
    1,390

    VS 2012 Re: Drawing lines

    jmcilhinney - thanks. If you look at my code, you will see (on line 86) that I assign the paint handler to every label. That is, however, the Form's paint event - so I took the line drawing code,...
  18. Thread: Drawing lines

    by groston
    Replies
    5
    Views
    1,390

    VS 2012 Re: Drawing lines

    The Paint method is the form's, the lines are drawn within that Paint method, and there are no Paint methods associated with the children. The lines, however, have to cross multiple children, so I...
  19. Thread: Drawing lines

    by groston
    Replies
    5
    Views
    1,390

    VS 2012 Drawing lines

    I am working on a program, just for fun, and have run into an issue I cannot resolve. The issue is simply this: When I try drawing a line over several Labels, the line only appears over the first...
  20. Replies
    4
    Views
    1,172

    Re: Another line drawing question

    I believe that all of the necessary files are attached. Note that the Project.vb file is to allow me to use command line variables - nothing has been added yet.
  21. Replies
    4
    Views
    1,172

    Another line drawing question

    In this post, https://www.vbforums.com/showthread.php?898980-Drawing-lines&p=5593486#post5593486, I had asked for help drawing lines in a form that would be over buttons, i.e., be visible. The answer...
  22. Thread: Drawing lines

    by groston
    Replies
    11
    Views
    1,988

    Re: Drawing lines

    My bad - sorry. I missed the AddHandler line in the first part. Once I added that, it worked as expected. Thanks!
  23. Thread: Drawing lines

    by groston
    Replies
    11
    Views
    1,988

    Re: Drawing lines

    Thanks for the replies

    Jmcilhinney – I tried the code in the referenced article, but the lines drawn were still obscured by the buttons

    .paul – Tried drawing directly on the screen, and the...
  24. Thread: Drawing lines

    by groston
    Replies
    11
    Views
    1,988

    Drawing lines

    This might be a dumb question, but I have been searching and have not found an answer – please help.

    I am writing a VB.net application. The first thing I do, in code, is place a number of buttons...
  25. Replies
    4
    Views
    1,272

    VS 2015 Re: What am I doing wrong???

    Thanks for the replies.

    OptionBase1: Same error

    PausiblyDamp: Dim dirPath As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
  26. Replies
    4
    Views
    1,272

    VS 2015 What am I doing wrong???

    I wrote a simple VB.NET application. When the program, which writes a super-short text file to the desktop, is run from within Visual Studio, it runs just fine. However, when it is run by...
  27. Re: [RESOLVED] Program work fine when stepping through, but hangs otherwise

    When I got away from the computer and thought about this, I realized that there is a logic bug in the code and the program is, properly, infinite looping...
  28. [RESOLVED] Program work fine when stepping through, but hangs otherwise

    I have written a fairly simple VBA program for Excel. When I step through the code, in the debugger, it works just fine and does what it is supposed to do. However, if I remove the breakpoints and...
  29. Re: Error that makes absolutely no sense - please help!

    doh!!! I forgot Loop - thanks!
  30. Error that makes absolutely no sense - please help!

    I have been programming for a ‘few years’ and feel that I can generally get things done. However, I just ran into a problem in Excel VBA that makes literally no sense to me. Here is the code...
  31. Replies
    2
    Views
    1,118

    VS 2012 Re: Label text vertically wrong????

    Andresson - You nailed it - thanks! I never noticed that...
  32. Replies
    2
    Views
    1,118

    VS 2012 Label text vertically wrong????

    I am having a VB.net problem that I do not understand nor can I resolve. I stripped everything from the program in order to focus on the problem and the code is attached. Basically the program reads...
  33. Thread: Weird error???

    by groston
    Replies
    3
    Views
    511

    Weird error???

    This one seems a bit odd. I am developing a program and most of the time, when run via the debugger, it works just fine. However, on occasion, an ‘InvalidOperationException crossed a native/managed...
  34. Replies
    5
    Views
    1,030

    Re: Trying to catch an error

    Since the variable DI is used elsewhere, couldn't simply move the line into a Try structure. Did this:

    Dim DI As DirectoryInfo
    Try
    DI = New DirectoryInfo(dirPath)
    ...
  35. Replies
    5
    Views
    1,030

    [RESOLVED] Trying to catch an error

    I am trying to write a simple program. In this program, I have the following line of code:

    Dim DI As New DirectoryInfo(dirPath)
    The problem is that when running the program, I get the error:
    ...
  36. Replies
    3
    Views
    621

    Re: Why isn't DrawString working?

    It seems that I made a stupid typo and the string was not placed properly. Sorry to have wasted your time.
  37. Replies
    3
    Views
    621

    Why isn't DrawString working?

    I have a Visual Basic Windows form program that works properly. In this program, there is a PictureBox object on the form and I created a Paint event handler for this PictureBox. In the handler, a...
  38. Replies
    3
    Views
    964

    Re: Paint event nto being called - why?

    .paul. - Thanks. For some reason, when I first wrote this a year or so ago, I felt that the approach I had laid out was the proper one, and I had that stuff in a Try structure. I greatly simplified...
  39. Replies
    3
    Views
    964

    Paint event nto being called - why?

    I have a Windows form program that gets some XML data from the cloud (more on this below), processes in, then modifies the form to display the data (via the Paint event which makes sense and which...
  40. Replies
    8
    Views
    2,345

    Re: Showing text over an image

    Thank you. Drawing the text in the Paint event handler of the PictureBox seems like the better approach. I have been doing some searching and I see how to add a Paint handler tot he form, but not to...
Results 1 to 40 of 103
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width