473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Image Change with Tab Control

67
Hi All

How do i change an image with a Tab Control. I have a Tab Control with 6 pages
and want to change an image in the Form Header depending on which tabbed page is being edited. I have tried several ways with vb but only get the first image. Please advise.

Regards

Wayne
Nov 17 '08 #1
3 3243
missinglinq
3,532 Expert 2GB
The first thing to understand is that tabbed pages are indexed starting with zero, i.e. the first page has a value of 0, second page has a value of 1, third page has a value of 2, etc.

Secondly, you need to understand that the OnClick event of a tabbed page only fires when you click on the page itself, not the tab at the top of the page!

Lastly, you need to understand that the tabbed control Change event fires anytime the tabbed pages change. But to base something on the Change event, you have to identify the particular page that has focus.

Expand|Select|Wrap|Line Numbers
  1. Private Sub YourTabbedControl_Change()
  2. If Me.YourTabbedControl.Value = 0 Then ‘First Page
  3. 'Assign image for first page
  4. ElseIf Me.YourTabbedControl.Value = 1 Then ‘Second page
  5. 'Assign image for second page
  6. ElseIf Me.YourTabbedControl.Value = 2 Then ‘Third page
  7. 'Assign image for third page
  8. End If
  9. End Sub
Linq ;0)>
Nov 17 '08 #2
Wayneyh
67
Thanks missinglinq

That works great now.

Best regards
Nov 17 '08 #3
missinglinq
3,532 Expert 2GB
Glad we could help!

Linq ;0)>
Nov 17 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Hemant | last post by:
I am using the Kodak Image Edit Control in one of the applications that I have been working in .Net. However, one of my requirement is to zoom the image to best fit the window size available. ...
15
by: Jose Michael Meo R. Barrido | last post by:
Hi! Can u please tech me a way to know if the image in the picturebox has changed? what event should i catch the chage?
4
by: Kevin Myers | last post by:
Hello, Please forgive my reposting of this note with hopefully a more relevant subject line. On an Access 2000 form under Windows 2000 I would like to use a Kodak Image Edit Control to...
1
by: Roberto Castro | last post by:
I have some problems with the way I am showing the BLOB fields in the Image web controls. It does work on my localhost though sometimes I need to hit Refresh for the images to load properly....
1
by: Tina | last post by:
I am trying to adjust the size of an image web control but if I try to say myimage.height = 200 it says that an integer cannot be converted to a webcontrol unit. I also tried a ctype cast but that...
1
by: Ola Myrgart | last post by:
Hi ! I have a problem how to display an image in a different page together with some text. The image is stored in a SQL DB and the insertfunction works well. It´s when I try to wiew the image on...
2
by: John Austin | last post by:
I thought I would experiment for the first time with an Image standard control in VS 2005. I pressed create web site, I copied a jpg into the App_Data folder, added an image control to Default.aspx...
4
by: jaggi80 | last post by:
Hi everybody, I have to use an Image Edit control in my VB project for Editing a image, but I am unable to add Image Edit Control in my VB project. While adding IMGEDIT.OCX from add component window...
0
by: hardieca | last post by:
Hi, I would like to create an adapter for the image web control to cure a pet peeve of mine. Currently, if I write out: <asp:Image ImageUrl="myPic.jpg" AlternateText="Some text"...
2
by: crapycoder | last post by:
hi all, please help....!! i have added a kodak image edit control on my form. when i click get image button, "abc.img" will be displayed. i have a button named "copy to clipboard". when...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.