vii)
Drag and drop feature makes V.B programming easier.
Answers
yes . drag and drop feature make v.b program easy
Answer:
In computer graphical user interface drag & drop is the action of clicking on an object (virtual object on screen) and dragging it to a different location (on screen) as required.
The basic sequence involved in drag & drop is
Target identifies the target object (the one being dragged over or dropped on). It can be a form, an MDI form, or a control. If the target is a control that is part of a control array, these event procedures will have an additional argument that specifies the Index property of the control within the control array.
Source identifies the source control (where the drag-drop operation began).
X and y gives the horizontal and vertical position of the mouse pointer with respect to object. These values are always expressed according to the object's coordinate system
State specifies the relationship between the mouse pointer and the target, as follows:
- A value of 0 indicates the pointer just entered the target.
- A value of 1 indicates the pointer is leaving the target.
- A value of 2 indicates that the pointer is moving within the target.
When a source control is dragged and dropped, here's what happens:
When the mouse pointer leaves the source control, the parent form receives a single Drag Over event with the State argument equal to 0.
As the pointer moves over the form the form receives multiple Drag over events with the State argument equal to 2.
When the source is dragged over another control on the form, the form receives a Drag Over event with the State argument equal to 1 (signaling that the pointer has left the form), and the control over which the source was just dragged receives a DragOver event with the State argument equal to 0 (signaling that the pointer has entered the Form).
When the control is dropped, the object it is currently over receives a DragDrop event.
System Requirements
The example codes given in the tutorial runs on any Windows computer running XP, 2000, or Vista. Project is done in Visual Basic 6 as front end and Microsoft Access2000 as back end. The tutorial is primarily intended for use by VB programmers, and you may be requiring VB6 software installed on your computer to run the program.