473,503 Members | 1,638 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

treeview text highlighted after a video clicked

2. Header << Play Video (a) [Duration 0:00 to 0:030] and (b) [Duration 0:30 to 0:41] on click

a) sub header 1 << Play Video (a) only on click
b) sub header 2 << Play Video (b) only on click

When I click 2. Header it was default highlighted blue background with white foreground.
So 2. Header is playing videos on (a) and (b) after I click on 2. Header. There will be a slider to detect the duration.
So now, I want a) sub header 1 to be highlighted when the slider is at part A video [2. Header is still showing video (a)]
Same for b) sub header 2 to be highlighted when slider is at part B video.[ 2. Header is still showing video (b)]



And I did this code...

Expand|Select|Wrap|Line Numbers
  1. private void SeekToMediaPosition(object sender, RoutedPropertyChangedEventArgs<double> args)
  2.   {
  3.    _timer.Stop();
  4.    TimeSpan t = TimeSpan.FromSeconds(VideoTime.Value);
  5.    Video.Position = t;
  6.    _timer.Start();
  7.  
  8.    if (t.TotalSeconds < 30)
  9.                 {
  10.                     twoA.IsSelected = true;
  11.                 }
  12.                 else if( t.TotalSeconds <41)
  13.                 {
  14.                     twoB.IsSelected = true;
  15.                 }
  16.  
  17.       else
  18.     {
  19.      threeB.IsSelected = true;
  20.     }
  21.    }
  22.   }
  23. And I didn't get what I wanted because, at only the
  24.  
  25. if (two.IsSelected == true)
  26.             {
  27.                 if (t.TotalSeconds < 30)
  28.                 {
  29.                     twoA.IsSelected = true;
  30.                 }
  31.                 else
  32.                 {
  33.                     twoB.IsSelected = true;
  34.                 }
  35.             }
i already dun see the isSelected function to go to twoB after 30sec later... Any clue? ):
--------------------------------------------------------------------------------
Nov 15 '10 #1
0 1026

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

Similar topics

2
1793
by: Julian Jordan | last post by:
Hi I'm trying to write a system in which you can highlight some text in a form box, click a button (or press a key combination) and the text highlighted gets surrounded by a given html tag. ...
2
5962
by: Derrick | last post by:
I have a windows form, many combo boxes, i create items and add to the items collection in code. When viewing form, many combos have their text selected, highlighted. Is there a preferred way to...
2
1438
by: Bernie Yaeger | last post by:
I have an mdi app that has a main menu on the parent form. I would like to use a treeview in place of one of the menu options, so that instead of a menu option - say, 'reports' - it would have...
1
3436
by: namanhvu | last post by:
Hi everyone, I'm trying to create a form where the radio button is automatically selected when the input text field beside it is clicked. I know I need to use "onClick" somewhere but I don't...
0
1271
by: gav1972 | last post by:
Working on this piece of code but when i click on my add button in the form the text boxes that i am using do not clear and so i can't add a new record any help would be great. The code for my data...
4
3705
by: Milkstr | last post by:
Hi I have a asp page that shows usernames in a reapeating region so it lists all the users of my site, i want to be able to click on the user and the page then to bring up their details that or...
3
1623
by: rbunn83815 | last post by:
Hello Everyone! I saw a few discussions on saving highlighted text in a text box. I am interested in saving text highlighted anywhere on a web page and to save that text as a string in C#. ...
2
2240
by: Manikandan | last post by:
Hi, I'm using .NET1.1. I have a windows form with two controls 1.Treeview 2.Checkbox I added the items into tree view, the user selects the item in treeview. When i click the item in...
4
2978
by: Xenomorph | last post by:
I have a program where you click an item on the TreeView on the left, and then work with whatever pops up on the right. There are many entries on the TreeView, and when you click something on the...
1
3196
by: jonc1 | last post by:
I am attempting to write some simple video playback code. This is easy I am using Microsoft.DirectX.AudioVideoPlayback which works fine. I want to overlay some text on the video. To do this I...
0
7202
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
7086
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
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
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,...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
382
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.