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.
User Profile
Collapse
-
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...Leave a comment:
-
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
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.Leave a comment:
-
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...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.
...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...Leave a comment:
-
Honduras2811 replied to how to receive data from visual basic 6 to pic microcontroller using serial portin Visual BasicWOT 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...Leave a comment:
-
Honduras2811 replied to how to receive data from visual basic 6 to pic microcontroller using serial portin Visual BasicOn 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.
...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?Leave a comment:
-
Read Joe's action party record If he isn't in action group B
Code:cmdB.Enabled = False
Leave a comment:
-
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.
Note that...Code:Dim lngIndex as Long For lngIndex = 1 To lngNumberOfManagers ' Do something Next ' lngIndexLeave 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.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...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,...Leave a comment:
-
Honduras2811 replied to check box validation in vb 6.0 to be checked always(permenant for future works)in Visual BasicAssuming 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...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:
That should also work with ne2.Code:ne1 = Val(Text5.Text)
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...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.Leave a comment:
No activity results to display
Show More
Leave a comment: