Search:
Type: Posts; User: groston
Search:
Search took 0.04 seconds.
-
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
jmcilhinney - Thank you! I changed the dgTest declarations line to
Dim WithEvents dgTest As New DataGridView
and it now works just fine.
-
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...
-
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...
-
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...
-
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...
-
passel - adding the second array works. Thank you.
-
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...
-
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,...
-
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...
-
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...
-
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.
-
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...
-
My bad - sorry. I missed the AddHandler line in the first part. Once I added that, it worked as expected. Thanks!
-
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...
-
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...
-
Thanks for the replies.
OptionBase1: Same error
PausiblyDamp: Dim dirPath As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
-
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...
-
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...
-
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...
-
doh!!! I forgot Loop - thanks!
-
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...
-
Andresson - You nailed it - thanks! I never noticed that...
-
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...
-
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...
-
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)
...
-
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:
...
-
It seems that I made a stupid typo and the string was not placed properly. Sorry to have wasted your time.
-
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...
-
.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...
-
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...
-
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...
|
Click Here to Expand Forum to Full Width
|