473,809 Members | 2,699 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

disabling Trackbar scroll

Hi,
As a newbie to C# application programing ...I would like to know is
there a way to disable the user scroling of standard track bar
programatically ...

Thanks in advance

Sep 20 '06 #1
2 5940
Set SmallChange and LargeChange to 0

--
Regards, Peter

<gu*********@gm ail.comskrev i meddelandet
news:11******** **************@ e3g2000cwe.goog legroups.com...
Hi,
As a newbie to C# application programing ...I would like to know is
there a way to disable the user scroling of standard track bar
programatically ...

Thanks in advance

Sep 20 '06 #2
You should also handle the ValueChanged event and reset the value to its
default when the user press Home and/or End

private void trackBar1_Value Changed(object sender, EventArgs e)

{

trackBar1.Value = someValue;

}

<gu*********@gm ail.comskrev i meddelandet
news:11******** **************@ e3g2000cwe.goog legroups.com...
Hi,
As a newbie to C# application programing ...I would like to know is
there a way to disable the user scroling of standard track bar
programatically ...

Thanks in advance

Sep 20 '06 #3

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

Similar topics

1
1618
by: Pls Help | last post by:
Hi, I've encountered a weird TrackBar issue, it seems to hang completely when the TrackBar.Maximum is set to certain large values.. what's going on? Have tried this on a few different 2000/XP environments and it seems the behaviour is universal. Btw, before attempting the test below it's a good idea to make sure you haven't any unsaved work.. :)
2
3314
by: juergen | last post by:
how to design a trackbar/slider with diff. look??? For my win-application I need a trackbar/slider, that doesnt look like the control-trackbar offered by vb.net. ; e.g. something like the slider in win-mediaplayer..., but with my own design. tried to change the look, and create something that works like a slider, but didnt find a solution yet
3
5889
by: AtlasApollo | last post by:
Greetings! We are working on a project that has a bunch of TrackBars spec'ed as graphic controls. In other words, they are slick looking and green. In the design phase, these controls look great on the printed page, though when I try to get the TrackBar to look the way the concept was presented, it just doesn't seem to let me tweak it. Can you please tell me what I can do to easily customize the TrackBar
3
5401
by: Geoff Cox | last post by:
Hello, I am using Visual C++ 2005 Express Beta 2 and cannot sort out how to use the Scroll property value for a trackBar. Under Event properties the name for the Scroll property is trackBar1_Scroll so how do I print out the Scroll value?
0
1223
by: RuffAroundTheEdges | last post by:
I'm trying to get an aspx page to display a TrackBar. There is no TrackBar in the System.Web.UI.WebControls. Is there a TrackBar like control in System.Web.UI.WebControls? If not, is there a way to use System.Windows.Forms.TrackBar in an aspx page?
2
3571
by: Paul Helmuth | last post by:
All, I am trying to assess how much work it is going to be to "port" my current Visual Studio 6.0 applications to dotNet. It seems like many things that should be trivial are really problematic. I'm sure this mostly (but not completely) due to my lack of experience with dotNet. Anyway, the latest "trivial" issue concerns the Slider ActiveX control from
0
1806
by: deko | last post by:
I'm using VS05/.NET 2.0 with a TrackBar control in a Windows Forms application. I need to be able to manually scroll the trackbar (hold down left mouse button and drag), but I need to prevent automatic scrolling - that is, when a user clicks on the trackbar (on either side of the pointer) the pointer moves toward the clicked location. Is there anyway to disable this behavior?
1
7228
by: Kris | last post by:
Hi. We are developing an application in VS2005 in C#, .NET, that has lots of tabs. On one of these tabs, there is a horizontal trackbar. However, we are unable to set the background color of the trackbar to trasparent. The best would by transparent . Becouse the tabs are gradiently colored. It should work on standard windows XP theme. In that, the color fades from RGB 252-252-254 to 244-243-238. Why VS2005 says that trasparent is...
1
10934
by: martins | last post by:
hi how can I configure/set the trackbar control in order to scroll between decimal values i.e. between 0.5 and 1 for example
2
10191
by: mmdst23 | last post by:
I'm working on a video player app, and I want to implement a trackbar that behaves like the one in Media Player, that is the cursor position moves to where the user clicked instead of moving in that direction by a fixed value. Has anyone implemented something like this before? I haven't found anything on codeproject, or searching the .NET newsgroups. This seems like it would be a common control type, am I missing the easy solution? I...
0
9721
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
10376
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...
0
10120
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
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...
0
5550
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...
0
5689
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
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
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.