473,698 Members | 2,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Manual Scrolling a Controls View

Hi,

I wish to create my own control (of type UserControl) which will show
audio data. In this control I have place 3 things, 2 objects that
represent audio plots for both left and right channels (each of type
UserControl), and a hScrollBar object. I will add further objects to
my control as time progresses. My main control will not be scrollable.
I have set the width of the plot controls to be equivalent in pixels
to what the audio file is in minutes. This scale suits my purposes but
I can add some zooming functionality later. I now wish to use the
horizontal scroll bar to slide certain sections of the audio into view
depending on the position of this scroll bar. How do I change which
sections of the plot controls that are visible?

Another way to do all this is to have the width of the plot controls
slightly less than that of the main control - so that it fits just
inside it. Then, I could simply pain to its view the segment of the
audio I wish to show - From 1:34 to 1:56 for example.

Which way would be best. Any other advice?

Thanks very mushc,

Barry.

May 30 '07 #1
0 1473

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3609
by: Wesman | last post by:
Threads, textboxes and scrolling Thanks in advance for any information on this matter. I have run into a small richtextbox, scrolling and tread issue. Which has me totally confused. Instead of trying to explain it I wrote some small C# code to demonstrate the fact that in the threaded version the textbox simple doesn't scroll like it should… please look to the startButton_Click method for the distinction between the two programs..
3
5230
by: Oddball | last post by:
Hello again, I have a problem that I can't seem to find any help for. I'm probably not typing the correct words into goo... *cough*... MSN. I have created a user control which I would like to use as items in a list. The list would display as many of these controls as I wish to add, scrolling as it needs to. I KNOW this functionality exists already in every list you care to mention but I don't know how to go about making a list...
1
2170
by: Tim Frawley | last post by:
I have a large form with many controls, almost like legal size paper in height. Just so I can head these off, I am not looking for suggestions to the effect of using Tab controls, multi-window or multi-page forms. The Forms AutoScroll property is set to true so the user can scroll the window. What I would like to do is scroll the form for the user. I have explored the possibility of Me.ScrollControlIntoView(control further
3
748
by: Nathan | last post by:
Hi, I have a panel on a form that contains a number of controls (all created at design time), so many that the panel has a vertical scrollbar in order to view all of them (panel1.AutoScroll = True). When the form first loads, the panel's scrollbar automatically scrolls to about the middle rather than staying at the top. After moving the scrollbar to the top, I click on one of the controls, and a dialog box appears to allow me to edit...
1
2356
by: Oberfuhrer | last post by:
Hello all VB.net friends ! i have done most of my programming in assembly, at least so far. Recently i decided to learn a high level language for windows programming. I didnt take long to realize that VB.net would be my perfect friend. I have already rewritten most of my assembly controls in VB, but i am not satiesfied with the scrolling performance, though. In assembler, where you can write directly to the video memory, this
1
1848
by: atif | last post by:
Hi, I m new to CSharp.. so may be my preliminary questions look stupid.. but plz help me.. I want to drag controls like buttons or some other user controls over form.. i have set form's autoscroll = true to handle scrolling automatically. but when i drag the components of form, scrolling occurs extra ordinary too fast.. so plz help me to control scrolling as in visual studion designer.. as we
2
1732
by: Rob Pollard | last post by:
Hi All, I am using the flow control (can't remember its full name), to display a few dynamically created controls based on the tags the user has added to my system. This works fine, except when a user scrolls this control area (when there are a lot of controls) the screen update is terrible whilst the user is actually scrolling. The result looks fine when they stop scrolling though. The nature of the problem is that it appears to me...
7
2891
by: robert.waters | last post by:
I have an Access database frontend linked via ODBC to a large (gigabytes) mysql database. I need to view a large amount of data in a a textbox (variable up to 300K), but I receive a 'there isnt enough memory' error whenever I scroll past N number of bytes in a textbox that has been filled with a lot of data. I am not sure what N is, but for a large chunk of data it occurs at about the halfway scroll, and smaller chunks might not throw...
1
2939
by: mrabie | last post by:
Hi All, I know this has been discussed before but i can't really find an answer to what i want to do. I am developing an application for touchscreen using C#. It's going to be a fullscreen application somewhat like a new windows shell. I want the user to scroll up/down the objects currently viewed on the display using finger gestures (e.g. like HTC TouchFlo where when moving your finger from the top to the buttom of the screen the...
0
8683
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9031
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8902
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7740
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
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 we have to send another system
2
2339
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.