Disable Scroll Bar On A RichTextBox?

Nov 5, 2009

1) disable the scroll bar on a richtextbox

2) transfer all scroll capability to a standalone scrollbar control

View 1 Replies


ADVERTISEMENT

RichTextBox Scroll 1 Line Instead Of 3 Or Disable Smooth Scrolling?

Feb 7, 2011

I am new to programming- basically I have a richtextbox1 with some data from the database,but when you scroll it scrolls 3 lines, whereas I want to scroll only one line at a time.

Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Dim mySelectQuery As String

[code].....

View 2 Replies

Disable Mouse Scroll Wheel In Combobox?

Jun 3, 2010

Does anyone know of a way to disable the mouse scroll wheel when a control such as a ombobox or listbox has focus? For my purposes, combobox is all I need the answer for.I have a combobox set to trigger a SQL query on SelectedIndexChanged, and accidentally scrolling the wheel while the combobox has focus causes about six SQL queries to fire off simultaneously.

View 3 Replies

Control Scroll Bar Of A RichTextBox?

Aug 22, 2011

I Want Just Ask If It's Possible I Have A RichTextBox And I Wanted To Detect If The Control Needs A Scroll Bar But Without Performing The Any Other Function (Without Changing The Text).

View 1 Replies

Programmatically Scroll A Richtextbox?

May 10, 2010

I need to jump to the last viewed position of the text in my richtextbox when I open my project again.

I used GetScrollInfo to obtain the position of the scroll box within the scroll box.

How do make my application to jump to this same location on the scroll bar and also within the text in the richtext control?

I am using VS 2008 with .NET Framework 3.5.

View 1 Replies

Richtextbox Auto-scroll?

Dec 9, 2009

i'm implementing search on a richtextbox and i want to auto scroll up/down left/right when needed. i tried ScrollToCaret but it always scrolls. even when the searched text already presented on the shown part of the text.

View 2 Replies

Richtextbox Scroll - But Then Loop?

Sep 12, 2011

I would like to be able to vertically scroll some text in a richtextbox control in a loop so when it reaches the last line in the richtextbox it jumps back to line 0 and starts over, I can figure out the scrolling using code:

[Code]...

Which is placed in a timer but I am not sure how to reset the scrolling back to the top once it has been through all the lines of text. Using the above code just seems to go on forever even if there is no more text to show... I tried setting the POINT values to 0 but that does not help.

Has anyone got some ideas on how I can do it, I want to use this code as it gives a nice smooth scroll efect.. how can I reset the scroll position back to 0/the top of the richtextbox?

View 1 Replies

Richtextbox Scroll Down Slowly?

Dec 16, 2010

what i want to do is have a richtextbox lets say this is the text

1
2
3
4

[Code].....

and i what i want to do is have a timer and have it scroll down line by line so each letter gets show and some letters go off the richtextbox cuz its small

View 3 Replies

Scroll A RichTextBox Control?

Jun 8, 2009

I am working in vb2008. I understand how to set a richtextbox's selectedstart property to a text block using .find. I would like to know how to tell the richtextbox to scroll to the selected position based upon the find operation and show its position at the top of the window. I would like to pass text blocks into my richtextbox control and have the control automatically scrolll to that position if the text block is found.

View 2 Replies

VS 2008 Disable Scroll Bars But Enable Scrolling?

Feb 4, 2010

I am building a basic web browser that I would like to not have any scroll bars (I can do this by setting the "ScrollBarsEnabled" button to False) but also still be able to have the scroll fulction via keyboard shortcuts.

IE when you press page up and down the page scrolls, but when they are disabled you can no longer use the page up and down keys to scroll.

Is there any "scroll function" in the browser like WebBrowser1.scrolldown etc that I could use? that I can have key strokes trigger?

A bit of an over view, the web browser is hosted in other software that has customizable buttons, these buttons can be set to send key strokes to the hosted app in this case my web browser.

Example of what I do for my home button

Private Sub browser_homebutton(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PreviewKeyDownEventArgs) Handles browser.PreviewKeyDown
If e.KeyCode = Keys.H And e.Modifiers = Keys.Control Then

[Code]....

Is there something similar I can do for scroll up and scroll down?

View 1 Replies

Allow RichTextBox Scrollbar To Control Another RTB Scroll?

Jul 10, 2009

I want to be able to have a richtextbox scroll event synced with the scroll of another richtextbox. Do any of you know how this is possible

View 4 Replies

Make Horizontal Scroll Onto Richtextbox?

Apr 8, 2010

1.how can i resize my project's form1?i mean my form1 only has fixed size.when i'm trying to maximize the form(by click a square on the top right corner of the form) my form remains in the same size even the window has fullfill my screen.

2.how can i make my project to become an installer?

3.how to make exe file from the project?

View 5 Replies

Richtextbox - Get Vertical Scroll Bar Position As Integer?

Oct 25, 2009

I have a RichTextBox and I need to find the position of the vertical scroll bar.

Is there any way to do this without Pinvoke? If not, what is a way to do this WITH Pinvoke?

I need to return an integer value.

View 1 Replies

Make A Richtextbox Scroll Automatically When Text Fills It Up?

Dec 7, 2011

how do you make a richtextbox scroll down automatically when text fills the screen so that the new line can be seen,

View 2 Replies

Disable RichTextBox's History

Feb 28, 2009

i'm making a web editor and i do a lot of syntax coloring in a richtextbox, but if i want to Undo it just undo's the font and the coloring, is there a way to disable the rtb's history ? I found this code on the internet but it doesn't seem to work

If e.Control AndAlso (e.KeyCode = Keys.Z) Then
While CodeRTB.CanUndo AndAlso CodeRTB.UndoActionName = "Unknown"
CodeRTB.Undo()

[Code].....

View 5 Replies

Change Backcolor Or Disable Richtextbox?

Oct 28, 2009

i have richtextbox which set enable to false. I want to change the backcolor to any color beside its default grey color. Is it possible?

View 4 Replies

Media Player And RichTextBox - Highlight The Text Being Played And Auto-scroll When It Plays The Next Line

Feb 9, 2011

I am trying to build a language tool, basically I am getting lines of text into a richtextbox and playing the audio for that line. Things are working great except that I want to highlight the text being played and autoscroll when it plays the next line. how to implement the line highlighting and autoscrolling.

View 2 Replies

C# - Disable Font-size Change For Richtextbox

May 29, 2011

In my vb.net application I am using richtext boxes with readonly property set to True
but still its font size can be changed using mouse wheel and default windows keyboard shortcut for fontsize change (ctrl+shift+ >/<). So how do I disable richtext box font-size change?

View 1 Replies

C# :: Disable Font-size Change For Richtextbox?

Mar 22, 2011

In my vb.net application I am using richtext boxes with readonly property set to Truebut still its font size can be changed using mouse wheel and default windows keyboard shortcut for fontsize change (ctrl+shift+ >/<

View 5 Replies

Disable Drag&Drop Of Files In Richtextbox In .NET?

Mar 17, 2010

I use a .NET richtextbox and I want to have the EnableAutoDragDrop property set to True. This allows user to drag&drop text, rtf and images around etc. However, I need to process files dropped into the richtextbox myself - I do not want them to be embedded as OLE objects when they are dropped.

How can I overcome this? Is there any way to delete embedded files from richtextbox?

(I've found API DragAcceptFiles which doesn't work for some reason.)

View 1 Replies

VS 2008 RichTextBox - Disable Mouse Scaling?

Apr 17, 2011

Finishing off my control, but I now found a nasty problem. When the user holds the 'Ctrl' key and scrolls the mouse scrollwheel, the control is scaled. I do not want that, since it would make the Font size fail.

I previously made it reset the scale on Control up, but that is just not a very elegant way:

Me.ZoomFactor = 1 I do not want the text scaled at any time, not even while the user is scrolling and it resets afterwards. I got to overriding the 'ProcessCmdKey' but no idea how to catch a scroll or zoom event.

Any way of disabling the RichTextBox scaling (or zooming) so it does not even occur? I have a control that inherits from the RichTextBox.

View 2 Replies

.net - WPF - Disable The Default EditingCommands Behavior On Custom Richtextbox?

Mar 26, 2010

I want to disable the majority of the built-in functionality of the WPF Richtextbox that is found in "EditingCommands"

How can I go about disabling them?

View 1 Replies

Disable Richtextbox Showing Hand Cursor Over Links?

Apr 8, 2010

I'm writing an vb.net application so that the user can type text to be added to a website. I'm using a richtextbox and I've added the facility to hyperlink selected text. This all works, but when the mouse cursor moves over a hyperlink it changes to a hand; how do I stop it doing that? It's confusing for the user as it looks like clicking the link will do something and it makes it awkward to correct spelling within the text of the hyperlink.

View 3 Replies

RichTextBox Disable Span/Extended/Word Selection?

Apr 2, 2010

When I select text with a mouse in dense text like an XML file the selection automatically extends to what it thinks is a white space (or?). How do I turn off this "word selection" and just select the characters the cursor passes over?VS2010 Beta, VB.Net

View 7 Replies

Disable Scroll Event Of Listbox After The Keydown Or Keypress Event?

Apr 9, 2010

Programming language is vb.net

View 1 Replies

Tab Control Scrolling - Middle Mouse Wheel Doesn't Scroll The Scroll Bar

May 22, 2012

I have a tab control with two tab pages. One page has the auto scroll enabled since there is to much content in the page. The middle mouse wheel doesn't scroll the scroll bar; I have to actually click and hold the scroll bar and drag it down to scroll. Is there a property to allow this?

View 2 Replies

Horizontal Scroll Control - Using It To Scroll A Series Of Panels Across A Form?

Nov 11, 2010

I am having an odd problem with the Horizontal Scroll Control in my program.I am using it to scroll a series of panels across a form.This is my code:

Private
Sub scrHoriz_Scroll(ByVal
sender As[code]....

The problem is that this works perfectly if I use the left and right arrows and it also works perfectly if I use the scroll bar's slider SLOWLY. If I scroll using the slider and move it quickly then the scroll gets out of sync.The small change and large change are both set to 1 and maximum is set to 8

View 3 Replies

Making A DataGridView Horizontal Scroll Event Scroll Another Control

Aug 5, 2011

I have a DataGridView with a panel above it, that contains a group of textboxes above each column. My DataGridView has a horizontal scroll bar. What I want to do is when the DataGridView scrolls horizontally, scroll the panel with textboxes above it, so they stay aligned.I tried handling the DataGridView's scroll event, but I'm not sure what to do with it.

View 1 Replies

VS 2010 Panel Auto-scroll Will Not Show Vertical Scroll Bar?

Jun 12, 2011

I am loading several command buttons into it (one in each grid box). I have the panel set to autoscroll. When TableLayoutPanel is set to AddColumns, all works well. However, I dont want horizontal scroll, I want vertical. When I set TableLayoutPanel to AddRows, a vertical scrollbar will not appear.

View 4 Replies

Leave Vertical Scroll Position As Is And Scroll All The Way Left?

Jan 6, 2010

How would I leave the vertical scroll position as it is and set the horizontal scroll position all the way left if it isn't already in that position? I've been using Me.AutoScrollPosition and have come up with code that is satisfactory but I haven't been able to always leave the vertical scroll position exactly as it is and just move the horizontal scroll position to the left limit.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved