For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > April 2006 > Identify Source Control Array Index









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Identify Source Control Array Index
vandanger

2006-04-27, 7:56 am

Please help!

I'm using OLE drag-n-drop in my VB6 app.

I have an Image (not PictureBox) control array which I'm able to drag
onto another Image. It works but I need a way of identiying the array
index of the source control. I can get the name of the source control
using Source.Name but can't find a way of identifying the index.

So far I've tried storing the index in a public variable at the point
of OLEstartdrag, mousedown, and even dragover. The only one which seems
to execute at all is dragover but then I have to carefully avoid all
the other controls in the image array before I reach my target!

Aghhh

Charlie

vandanger

2006-04-27, 7:56 am

Woops -

used Source.Index

I think I need a break

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com