Unmovable Form And Scrollbar?
Dec 13, 2010I have a main form and thru a menustrip I display a second form with a listbox and a button to start the process.
View 10 RepliesI have a main form and thru a menustrip I display a second form with a listbox and a button to start the process.
View 10 RepliesHow would I make my form unmovable so you cannot drag it to move it? I also need to know how to make it always start in the same exact spot. I don't know why but it changes spots even thought the location is set: 0,0
View 3 RepliesSo with the stock Textbox, I set the Scrollbars property to Vertical. This is great if the text in my box never changes; I can scroll up and down while the box sits still. If I'm running a background operation that logs output to the box though, the scrollbar resets itself to the top every time I append text to the box.
I know I can set the Textbox.Selection property (or use the Select method) to reposition the carat in the textbox, make note of that position in a variable, then append text, reset the carat, and use the ScrollToCarat method to reposition the scrollbar where it belongs. That's a really (ridiculously) long way around. Anybody know if there's another/better way of holding the scrollbar position, short of actually building a custom control (or using a Textbox and a separate Scrollbar)? It never hurts to try. In a worst case scenario, you'll learn from it.
In my Windows Form application, i want to change the width of a scrollbar that belongs to a FlowLayoutPanel.
The Scrollbar is added "automatically" since the content of the Flow Layout Panel is larger the Form.
From what I've found on the web, it seems to be tricky.
How can I add a scrollbar to my form I tried the auto scrollbar option but is not working ?? Q2 How can I validate the user inpute inside a textbox to check that he type the desired word?? for Example validate if the user typed the word ( Bob)?
View 6 RepliesWould you like to print a form, without borders. I've tried several things but what I can only see in the picture. Also would like to put a scroll bar on the form to work in an A4 format.
View 6 RepliesHow can I add a scrollbar to my form I tried the auto scrollbar option but is not working ??
How can I validate the user inpute inside a textbox to check that he type the desired word?? for Example validate if the user typed the word ( Bob)?
I have a huge image which I loaded into a picturebox on a Child Form. The problem is that I can't seem to create scrollbars on the Child Form. So... I tried the Webbrowser control. The code I used:
WebBrowser1.Navigate("file:///" & Application.StartupPath.ToString() & "libmap.jpg")Doesn't work somehow. But then again... I'm not sure where to place that particular folder. I tried all the C:UsersRadjeshDocumentsVisual Studio 2008Projectsproject_name.... and subfolders, but I ca't seem to get it right.
How can I add a scrollbar to my form I tried the auto scrollbar option but is not working Q2 How can I validate the user inpute inside a textbox to check that he type the desired word?for Example validate if the user typed the word ( Bob)?
View 4 RepliesI tried several thing. But, I can't 'connect' the scrollwheel on the mouse with the scrollbar in the panel on the form.
View 1 RepliesI would like to display the autoscroll bar on MDIParent form when user moves MDIChild form. I set the autoscroll to false on the MDIParent form, but it does not display the scroll bar. What should i do?
View 1 RepliesI'm trying to create my own control to build a custom planning on it.After trying it with loose controls I got an error but after advice on my previous post, I redraw everything.I have now the header of the control finished, the header shows the days of the month for as many months that fit in the window.Now I want to put the list of data below it, but it will be more than the windows height, so I need to have a scroll bar that will scroll the data but not the header.I would not like to design my own scrollbar and rather use the scrollbar control for it, but when I put it in, I cannot use the NEW keyword.example:
Dim sb
As
ScrollBar
with this I get the error message: 'New' cannot be used on a class that is declared 'MustInherit'.How can I get a scrollbar on my form to scroll the list only (so not the header)?
How can I make a textbox have a scrollbar that appears when the text goes off the screen so the user can scroll down as needed?
View 3 RepliesI have inherited support for a program written in VB2008
The problem I have is as follows:
Users have a low screen resolution (company policy) and so can't see the bottom of a particular form.
The bottom of the form has buttons that allow them to navigate between its' four pages so they need to be able to see them. This being the case I need to add a scrollbar to the form.
If I try to drag and drop a vscrollbar from the toolbox it just sits there at runtime (you can slide the button on the toolbar up and down but nothing happens regarding scrolling the page.
All the reading I have done seems to point to forms being given scrollbars in accordance to the AutoScroll, AutoScrollMargin and AutoscrollMinSize properties of the Form itself.
By setting these properties I can get scrollbars to appear in the IDE but they are not there at runtime.
I think I'm probably missing something really obvious here but, so far, have been unable to work out what it is.
So, in my vertical scrollbar, the maximum value is 16. In my application, I made a Label to track the scrollbar's value, just for testing purposes. I noticed that when I move the bar to the bottom, the value is 6. And when a [i]release[/i] the button (stop holding it with the mouse), the value becomes 7. Something similar goes when I move the button to the top: It is 1, and when I release the button, it becomes 0. That's a bit weird, but what mainly bugs me is why I cannot reach value 16?
View 1 RepliesI'm working on a project which must run on several computers, each with their own version of windows.
In Windows XP the project runs fine, but in Windows 7 I get a horizontal aswell a vertical scrollbar. I can't seem to turn it of.
I'm using a MDI parent and several childforms, eacht childform neatly adjusted in size to fit the parent, not exeeding the parent limits.
autoscroll is false
windowstate normal
Am I missing something, or is this just a supurb item in wondows 7?
I am using Visual Basic.Net 2003 and have a DataGrid in the form that I am using but I can't find anuindication or procedure to add a vertical ScrollBar.
View 7 RepliesHow to detect if a scrollbar is at or not at the end of a richtextbox?
edit: when I say at the end I mean completely scrolled to the bottom, not anywhere else.
I create some vscrollbars dynamically and add scroll event handlers to them. I really want to detect when the user has finished scrolling with a mouse up event but this doesn't seem to be part of the scrollbar events.
View 3 RepliesI'm trying to make a user control similar to the Windows Vista/7 breadcrumb bar used in windows explorer. However, when I show the drop down menu for a breadcrumb with many sub items, I get a very long list that sometimes exceeds the screen size. In the Windows Vista/7 example however, there are a maximum of 18 items displayed at a time and a scrollbar appears at the right when the number of sub items exceeds this number (18).
[Code]...
My problem is that I built this program for my VB class, but I built it on my desktop at home which is a 23" monitor. When this is opened on a smaller screen, you dont get to see all of the project. I want to add a vertical scroll bar but that is beyond what I have been taught and beyond what my book teaches...
how to get a vertical scroll bar to scroll the whole form?
I have a TOS agreement that i would like my user to have to view ...
basically the same way "World Of Warcraft" does it ...
You must scroll to the bottom for the accept button to be enabled and clickable...
but in vb.net i cant seem to find a way to determine the vertical scrollbar postition .
I have a horizontal scrollbar on my form, and the form is longer (vertically) than the screen. What I'd like is for the horizontal scrollbar to always be visible at the bottom of the screen, no matter where the user is vertically. Right now, the user has to scroll all the way to the bottom of the form in order to see the horizontal scrollbar.
View 2 RepliesI have a form with multiple richtextboxes that have synchronized scrolling (ie when one RTB scrolls, the other RTBs scroll down with it). The only problem I have is that I have 10 RTBs, which means 10 scrollbars in total. I would like some of them to not show for simplicity reasons. Basicly the scrollbar of RTB1 to show and hide the rest.
View 1 RepliesI have a form with multiple richtextboxes that have synchronized scrolling (ie when one RTB scrolls, the other RTBs scroll down with it). The only problem I have is that I have 10 RTBs, which means 10 scrollbars in total. I would like some of them to not show for simplicity reasons. Basicly the scrollbar of RTB1 to show and hide the rest.
View 1 RepliesI have an app that uses the Tabcontrol. Can the page under the tab have the property set for a scrollbar? I can see the autoscroll, but thats not what I need.
View 5 RepliesI have seached through the net to find a solution to customize the scrollbars on a datagridview. I found some stuff, but this seem to be not very easy.
View 1 RepliesI have a game with a large panel in VBE2008 with a Vertical Scroll Bar Control.
The user uses his mouse to move it up and down, etc.
But how can the game program move this control?
For example, the control bar is slid down to the panel and I want my program to slide back to the top starting position when the user clicks on the Reset Button.
I have a bunch of dynamically created scrollbars. They show up as gray against my otherwise colorful UI.
Anyone have code to either set the scrollbar background to a given color or to make it transparent so it paints as the
background color of the panel it resides on?
I have one gridview which was in a panel and I set panel's Scrollbars property as vertical and height 200px. Gridview has number of rows (say 1000). If i scroll down and selected a 900th row,scroll bar will move to top.I want to focus on that row after selection(ie.scroll bar will be on the same position when we selected).
View 1 Replies