User Profile

Collapse

Profile Sidebar

Collapse
Honduras2811
Honduras2811
Last Activity: Apr 18 '14, 12:47 AM
Joined: Apr 7 '14
Location: Cabool, Missouri, USA
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • In the properties window for the Label, there is a property for DragMode. I've never used it, and don't know how it works, but you might want to try that.

    MSDN Help on DragMode says the manual mode determines when a Drag/Drop starts and ends. It would be better if you read it, because I have never used Drag/Drop for anything.
    See more | Go to post

    Leave a comment:


  • Well, there's a problem. Whatever it is that has the text in it is considered an object. One of the properties of that object contains the text you want, but, in order to get to it, it is necessary to know the name of the property. In order to get that far you need to know exactly what the object is. But take a look at this thread.

    http://www.vbforums.com/showthread.p...in-nested-form...
    See more | Go to post
    Last edited by Honduras2811; Apr 8 '14, 03:16 PM. Reason: grammar

    Leave a comment:


  • Honduras2811
    replied to Polynommial calculator
    OK. I got it to compile with no errors. It produces 0s, but it does it very quickly.[

    I converted it to VB 6 because I haven't used VBA for a decade. If you have any questions about the changes I made, just ask.

    Here's the modified code.

    Code:
    Option Explicit
    
    '---------------------------------------------------------
    ' Procedure : cmdRun_Click
    ' Author    : Rory Starkweather
    ...
    See more | Go to post

    Leave a comment:


  • I don't know what the other application is, but you need to ask for the property that contains the text you want, not the name of the control. It's giving you the answer you are asking for, but what you are asking for is not what you want.
    See more | Go to post

    Leave a comment:


  • Honduras2811
    replied to Polynommial calculator
    This looks interesting. I'll see what I can do with it.

    After a very quick look there are some serious problems with your code. Did it run at all? If so, I'm surprised.

    1. PolySolver should be declared as a Function, not a Subroutine. Returning a value makes it a function.

    2. Haphazard use of parentheses. Parentheses determine the order of execution of mathematical functions. Never be afraid to use too many...
    See more | Go to post
    Last edited by Honduras2811; Apr 7 '14, 04:00 PM. Reason: Saving space

    Leave a comment:


  • I started programming with Borland Turbo C 1.0 back in 1987. It came on one 3.5 inch floppy at the time. I didn't have a lot of money then, so I was pretty much restricted to the Borland manuals, but I had a hard time with them.

    In the end, the way I really learned the language was by deciding that I wanted to do something with C, and beating my head against the wall, and the function reference alternately, until I got it done.
    ...
    See more | Go to post
    Last edited by Honduras2811; Apr 7 '14, 02:40 PM. Reason: Left out a part.

    Leave a comment:


  • Things are hard to see in that code. I never thought I would ever say this, but, in my opinion, you are using too much white space. The indentation is also a problem.It appears that the 'do' is directly below the '{' of the main function. At first I was wondering if the main function had ended somehow with no '}', but then I remembered what language this is.

    In my opinion, if you think about it, you could make finding problems visually...
    See more | Go to post
    Last edited by Honduras2811; Apr 7 '14, 01:57 PM. Reason: Left out some white space. :)

    Leave a comment:


  • WOT Part 2

    What I suggest you do depends on whether you have ever been able to communicate with anything using Com3 on your computer before.

    Anyway, take a break from programming for a while and do some manly hardware stuff.

    Whatever kind of cable you are using, see if you can find, or make at least a loopback tester. (On Arduinos all you have to do is jumper two pins to go into loopback mode.) Just remember...
    See more | Go to post

    Leave a comment:


  • On second thought, that doesn't sound too friendly, and that was not my intent.

    First, have you ever established communications with any device using Com3? Back before USB ports, computers usually had two com ports, but they were Com1 and Com2. The newer computers don't have any real DB-9 or DB-25 com ports at all. One of the reasons I'm confused is that most of the PICs I have seen have either a DB-9 or DB-25 connector.
    ...
    See more | Go to post

    Leave a comment:


  • How about just a little more information?
    1. Is this a question or an answer?
    2. If it's a question and you are getting an error message, what is it?
    See more | Go to post

    Leave a comment:


  • Honduras2811
    replied to Disabling buttons
    Read Joe's action party record If he isn't in action group B

    Code:
        cmdB.Enabled = False
    See more | Go to post

    Leave a comment:


  • 1. Do you have a Com3?
    2. How are you updating the Textbox?
    See more | Go to post

    Leave a comment:


  • Honduras2811
    replied to do loops. very confusing
    There are several different loop constructs available in VB. The major difference is what makes them stop looping. You need to pick your loop construct based on the stopping condition.

    If you know how many managers are in the table, you can use a For loop.

    Code:
        Dim lngIndex as Long
    
        For lngIndex = 1 To lngNumberOfManagers
            ' Do something
        Next ' lngIndex
    Note that...
    See more | Go to post
    Last edited by Honduras2811; Apr 7 '14, 09:59 AM. Reason: Minor modification to one of the loops.

    Leave a comment:


  • 1. Add a timer to the form.
    2. Set the interval in milliseconds in the Form_Load Sub, or with code.
    3. Enable the timer when ready.
    4. Use the Timer_Timer event to trigger a SendKeys function.
    See more | Go to post

    Leave a comment:


  • Each object on a form has a ControlID for use by the system. When you create a new object you have to create a new ControlID for it. Textboxes also need to know the ControlID of the previous Textbox, probably because of the Validation option.

    The line that starts with set instantiates the new Textbox.
    Everything after the line that starts with 'With' just sets the position of the new Textbox.
    All the If End If structure...
    See more | Go to post

    Leave a comment:


  • Honduras2811
    replied to Gettitn the color name.
    Have you tried the QBColor Function then a Select Case?
    See more | Go to post

    Leave a comment:


  • I assume that the question is why do you get that error message from your linker when you try to link that program.

    1. Are you trying to link any other files at the same time as part of that project?
    2. Are you sure that none of the header files you have included are dependent on Classes?
    3. Is there a file named Classes in the Include sub-directory?
    4. What are you using to control the compile/link process? Make,...
    See more | Go to post

    Leave a comment:


  • Assuming you can't set it at design time, this is a fairly common problem, and there are several ways to fix it, but I need to know a little more. Does your application use a database or something like that? Does the application keep track of multiple bookings, or only one?

    The solution is that the value of the checkbox needs to be stored somewhere outside the program. If you use an external database to store information, you can add...
    See more | Go to post

    Leave a comment:


  • Are you sure that you are getting the error message from the Blob, or could it be something else?

    The first thing I notice is that ne1 is declared as an Integer, but you are assigning a String to it. I suggest you use:
    Code:
    ne1 = Val(Text5.Text)
    That should also work with ne2.

    However, Values() is declared as an array of strings. So you have two choices. You can either declare ne1 and ne2 as Strings (This would be...
    See more | Go to post
    Last edited by Honduras2811; Apr 7 '14, 07:44 AM. Reason: Afterthought

    Leave a comment:


  • As I understand it, the Min property of the scroll bar sets the minimum value that the scroll bar shows, not the increment that it updates by.

    I think you might want to look at the Value property instead.

    Edit: Also the LargeChange and SmallChange properties.
    See more | Go to post
    Last edited by Honduras2811; Apr 7 '14, 07:10 AM. Reason: Left out something.

    Leave a comment:

No activity results to display
Show More
Working...