Solved

Priority of Controls placed over each other

Posted on 2006-06-14
3
196 Views
Last Modified: 2010-04-07
If I first place a Textbox on a form and then place a Datagrid on the form the Datagrid has priority i.e. if I move the Datagrid over the Textbox the Datagrid hides the Textbox. However if I place the Datagrid on the form first and then place the Textbox on the form and again move the Datagrid over the Textbox - the Textbox shows through the Datagrid i.e. the Datagrid appears transparent. Is there a property that determines this behaviour? I want the Datagrid to hide the underlying Textbox. I can solve this in one of 2 ways: 1) I can place the Datagrid on the form last or 2) I can programatically make the underlying Textbox invisible. However I am curious to know what determines this behaviour.
0
Comment
Question by:cdv
3 Comments
 
LVL 85

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 125 total points
ID: 16904294
You can make the DataGrid come to the front by using the ZOrder method.

Something like...

    Private Sub Form_Load()
        DBGrid1.ZOrder 0
    End Sub
0
 
LVL 1

Accepted Solution

by:
Extortioner15 earned 125 total points
ID: 16904314
right-click the item you want behind the other object, and choose "Send to Back". That should do the trick nomather the order you put it in!
0
 

Author Comment

by:cdv
ID: 16906711
Thanks. Both answers have answered the question.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now