MS Developer Applications

     Go!
Prospero Blocks


 

Chat Center

Access Conference Room
Topic: Access

Board Folders

Misc. Tech Questions: 2346 msgs in 552 dscns, Latest: Jul-6 Misc. Tech Que...
2346 msgs in 552 dscns
Latest: Jul-6
Access Database Design: 1194 msgs in 247 dscns, Latest: Oct-27 Access Databas...
1194 msgs in 247 dscns
Latest: Oct-27
Access Forms/Reports: 3425 msgs in 749 dscns, Latest: Nov-1 Access Forms/R...
3425 msgs in 749 dscns
Latest: Nov-1
Access Code/Macros: 2335 msgs in 550 dscns, Latest: Sep-24 Access Code/Ma...
2335 msgs in 550 dscns
Latest: Sep-24
Access Roundtable: 851 msgs in 199 dscns, Latest: 5/17/09 Access Roundtable
851 msgs in 199 dscns
Latest: 5/17/09
SQL Server/Queries: 1044 msgs in 248 dscns, Latest: Oct-15 SQL Server/Que...
1044 msgs in 248 dscns
Latest: Oct-15
.NET Programming: 838 msgs in 197 dscns, Latest: 3/18/09 .NET Programming
838 msgs in 197 dscns
Latest: 3/18/09
VB/VBA Programming: 1081 msgs in 270 dscns, Latest: Nov-3 VB/VBA Program...
1081 msgs in 270 dscns
Latest: Nov-3
VFP/Fox:Lang/Design/OOP: 4508 msgs in 740 dscns, Latest: Nov-16 VFP/Fox:Lang/D...
4508 msgs in 740 dscns
Latest: Nov-16
VFP/Fox:Forms/Controls: 2396 msgs in 423 dscns, Latest: Nov-4 VFP/Fox:Forms/...
2396 msgs in 423 dscns
Latest: Nov-4
VFP/Fox:Data/DBC/Views: 1697 msgs in 277 dscns, Latest: Sep-7 VFP/Fox:Data/D...
1697 msgs in 277 dscns
Latest: Sep-7
VFP/Fox:Reports/Misc/2x: 1815 msgs in 397 dscns, Latest: Oct-6 VFP/Fox:Report...
1815 msgs in 397 dscns
Latest: Oct-6
Delphi/Kylix/Pascal: 896 msgs in 86 dscns, Latest: 1/23/07 Delphi/Kylix/P...
896 msgs in 86 dscns
Latest: 1/23/07
Breakpoint Chatter: 1855 msgs in 119 dscns, Latest: 4/12/09 Breakpoint Cha...
1855 msgs in 119 dscns
Latest: 4/12/09
Message Area
VB/VBA Programming

image control zorder

 Subscribe SubscribeGet a printer-friendly version of this discussion Print Discussion 

#1 of 7

     Posted Nov-1 1:32 AM   
B.Krein
 
From  B.Krein  Posts 69  Last Nov-3
To  All      [Msg # 25198.1 ]    
I have an issue where i have an image control which I am flashing on my screen.  The issue I am having is that a testbox is in the same area as the image and I cannot seem to change the zorder of the image or text box such that the image is in front of the text box.  Is there a way to make the image cover the text box control?  Thanks

 OptionsReply to this Message Reply

#2 of 7

     Posted Nov-1 7:35 AM   
Peter Janssen
 
From  Peter Janssen  Posts 152  Last Nov-16
To  B.Krein      [Msg # 25198.2 Message 25198.2 replying to 25198.1 25198.1 ]    
Hi B,

>>Is there a way to make the image cover the text box control?<<
Image.ZOrder only works for image controls, so it is only usefull if you have several image controls on a form.
Either use a picturebox control or set the .Visible property of the text control to False


Regards, Peter
 OptionsReply to this Message Reply

#3 of 7

     Posted Nov-1 12:10 PM   
B.Krein
 
From  B.Krein  Posts 69  Last Nov-3
To  Peter Janssen      [Msg # 25198.3 Message 25198.3 replying to 25198.2 25198.2 ]    
My issue with using a picture box is that I do not know how to have an irregular shaped image.  For instance when using the image control I populate it with a picture of a STOP sign and use a .GIF file so I can make all of the corners transparent.  This way the portion of the screen that it hides is just the shape of the stop sign.  Can I do this same thing with a PictureBox?  Thanks
 OptionsReply to this Message Reply

#4 of 7

     Posted Nov-1 2:44 PM   
Peter Janssen
 
From  Peter Janssen  Posts 152  Last Nov-16
To  B.Krein      [Msg # 25198.4 Message 25198.4 replying to 25198.3 25198.3 ]    
>>This way the portion of the screen that it hides is just the shape of the stop sign.<<
Try using the .Visible property of the textbox control instead.
Here's an example:

Private Sub ShowImage(boo As Boolean)
'Show only Image1 or Text1
'True = show Image1, False = show Text1
   Image1.Visible = boo
   Text1.Visible = Not boo
End Sub


Regards, Peter

 OptionsReply to this Message Reply

#5 of 7

     Posted Nov-1 10:19 PM   
B.Krein
 
From  B.Krein  Posts 69  Last Nov-3
To  Peter Janssen      [Msg # 25198.5 Message 25198.5 replying to 25198.4 25198.4 ]    
Thanks, that would work if the entire textbox was under the stop sign, but I actually have a number of text boxes in the area and some are partially blocked so it looks a little strange when I do this.  I take it from your reply that you cannot use the transparent background on a picture box like you can on an image box?  Thanks for the suggestions
 OptionsReply to this Message Reply

#6 of 7

     Posted Nov-2 4:28 PM   
Peter Janssen
 
From  Peter Janssen  Posts 152  Last Nov-16
To  B.Krein      [Msg # 25198.6 Message 25198.6 replying to 25198.5 25198.5 ]    
>> I take it from your reply that you cannot use the transparent background on a picture box like you can on an image box?<<
Well, it can be done but it needs some coding.

What if you put all the textboxes into a Frame control, set the Frame.BorderStyle = 0 and use the Sub ShowImage() given earlier to display either the image or the textboxes.


Regards, Peter




 OptionsReply to this Message Reply

#7 of 7

     Posted Nov-3 12:50 AM   
B.Krein
 
From  B.Krein  Posts 69  Last Nov-3
To  Peter Janssen      [Msg # 25198.7 Message 25198.7 replying to 25198.6 25198.6 ]    
thanks, that could work I was just hoping there was a way to bring the image to the front.  I see if I can rearrange some of the controls to get what I am looking for.  Thanks for the help
 OptionsReply to this Message Reply
 Subscribe SubscribeGet a printer-friendly version of this discussion Print Discussion 
VB/VBA Programming

image control zorder

  
 
     

Welcome, Guest

  • Post a message
  • New messages to you
  • Log in

Start Search
Advanced Search

Prospero Blocks
 
 
 
Special Offers
 
 
 

Finding People

 
 
 

Cool Clicks!

 
 
 
© 2009 CompuServe Interactive Services, Inc. All rights reserved.

Legal Notices | Privacy Policy