Move A Horizontal Line On Form?
Jul 7, 2010i want to display a moving horizontal line on Form
like y=1
then at next instance
y=2 and so on till y=480
i am to stop that line at any instanse by click.i'm using vb.net.
i want to display a moving horizontal line on Form
like y=1
then at next instance
y=2 and so on till y=480
i am to stop that line at any instanse by click.i'm using vb.net.
Feel pretty stupid for asking this but I'm looki to add a very simple horizontal line/bar/separator to my GUI for a small project.I'm using Visual Basic 2010 Express. Last time I did any programming was with VB6 and I'm sure you could do this easily with that version but 11 years is a long time.
View 4 RepliesOn my form I have an Group Box that I use to visually segment various controls on the form. how can I add a horizontal line that looks the same as the border lines of the Group Box?
View 3 RepliesI have resized the form by using the following code. what i want to do is that i want to fit the entire screen horizontally...so that the horizontal scroll bar doesent appear.....
Private Sub Resize_Form()
Dim cControl As Control
Dim i_i As Integer[code]..........
Which value do i change in the code that the screen squeezes horizontally ...? There are only two controls on the right side when we scroll....i think if the resolution is done correctly then it will fit in the screen.....but i dont know what chages should be made in the code.
Class lineLengthWindow
' declaring variables
Private m_objGraphic As Graphics = CreateGraphics()
Dim pointX1 As Integer
Dim pointX2 As Integer
[Code] .....
I have a label the length of whose text can be changed by the user at runtime.I want it to be centred left/right whenever the text is changed.
View 4 RepliesI need to add vertical and horizonatl scrollbars to my windows form application. I have set the AutoScroll property of the form control to true and also set the AutoScrollMinSize property bigger than the form size. The scrollbars appear in the design view, but when I run my project they do not appear.
View 5 Replieswhat code is needed in order to make an integer equal the horizontal location of the cursor on the form?
View 3 RepliesAfter my program enters a string in my multiline text box, how do I move to the next line??
I've looked around the forums but cannot find the answer??
The current Method I use is the textbox1.append, but I need to move to the next line rather than keep adding to the current line?
The following zipped up Visual Studio Solution on Skydrive is immediately buildable and runnable; a usercontrol on a Form. Problem? If you click on any of the Edit Buttons and move the Horizontal Scroll, the values as they change in the Label_Values are off by one when you release the slider button. I think this is a timing problem between the Paint handler and the Horizontal Scroll event handler at the very bottom of the User Control code. Sorry I didn't eliminate
View 2 RepliesIf I have an X-Y plot on a graphics and I also create a verticle line on the same graphics. I want to move the line cross the X-Y plot without disturbing this X-Y plot.
View 7 RepliesIs there a way to move a entire row from one array to another array, without having to move it cell by cell? Assuming that the row length in both arrays is the same.
View 1 RepliesThrough the years i have been programming i have found myself needing to move the mouse in a line. making the mouse move from one point to another is no problem at all, but i want to make the mouse move slowly in a straight line from one point to another.
[code]...
How do I proceed to the next line in list view?[code]...
View 12 RepliesI have a text that has a question followed by four possible answers. At the start, it loads up line 1 of the text file and puts the sentence fragments into their proper place (text.split is being used). I want to be able to have a click button event that then reads the second line and replaces the first line's sentence with its own. Click the button again, it goes to the third line.
This is what I've created. It reads the first line (But honestly, I think it reads the entire thing and the first line is the only thing that can fit in the selected spots). It then splits the first line into fragments, moving them to certain areas of the form. Question goes to the Question label, answers go to the selected button.
HTML
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim readText As String = ("C: est.txt")
Dim textParser As New TextBox
[Code]....
So, like I said, what would make it possible for me to create a button event that when I click on it, it moves to the next line in the txt file?
I have a gridview "Me.Mydata_tableDataGridView". When i hit enter on the last record I want the cursor to move to the first cell of the new line. At the moment, if i am editing column 2 and hit enter the cursor moves to colum 2 of the newly created[code]...
View 1 Repliestrying to move a line on a graph (to a new calculated value)This is as far as I can get:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim label5 As Double
y = 310
[code].....
This does not work?
Currently there are functions to draw line or move to points, commonly known as LineTo(x,y) of MoveTo(x,y). I am wondering if there is also a LineTO or MoveTo function(s) for 3D, i.e. LineTo(x,y,z) or MoveTo(x,y,z).
View 1 RepliesI use RichTextBox in project ,I want add counter ,when I press "ENTER" to move to new line this counter +1.
View 8 RepliesI use this cod but it not moving the text contnusly Private sub Timer1............ Label1.text = " " & Label1.text
View 1 RepliesIs it possible to move the cursor position in a multi line textbox? Here's an example; I have a form with a multi line textbox and a button. The button inserts several lines of [Code] How could I make the cursor go to the blank line between the parenthesis? [Code]
View 4 Repliesi have my main child form open. then i show the new form:
[Code]...
but when the form opens it flickers a lot. so i want move the new form behind the main form while it loads so the user does not see the flicker. once it is done loading i will set the form to topmost. how do i move the new form behind the main form?
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
i am asking about using the progress bar into the status bar to move when i load any child form inside the MDIParent form.
View 1 Replieswell i successfully docked a perpixel alpha form with the main form(form1). but the perpixel alpha form always appears at the top left corner of the screen and when i move the main form the form(perpixel alpha form) inside it dosen't move it stays at the top left corner. ALWAYS. to dock the perpixel alpha form i used
Me.toplevel = false
Me.parent = form1
What is the best way to resize & move a form using just VB commands? I have a form that I need to set the Height and Top props, problem is that takes two calls and there is a noticable flicker. I tried using SuspendLayout/ResumeLayout, DoubleBuffered, swaping the top and height calls around, etc, but nothing seems to help. The test forms only have one small listview and one or two buttons. [Code]
View 2 RepliesI have one form lays on the top of a form or a panel. I would like be able to drag the top form within the boundary of the bottom form or panel. How can I do that?
View 4 RepliesI am using this code to draw a line on a form using textboxes as the x and y coordinates. I then click the button with the code below that will draw the line.
Before the new line is drawn, I would like to have previous lines deleted first.
How can I delete these lines?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim canvas As New ShapeContainer
[Code].....
i want to be able to click anywhere there isn't a control on the form and be able to move the form to anywhere on the desktop...
the control box is off and the form text is blank, so there is nowhere on top of the form to click and move the form..
I was wandering if there is a way to move pictures around in a form and where ever you move them to, when you close program and open the program up they come up exactly where you lift them, And how can i add pictures to a form by say right click the form and select new picture and it adds it to the form, is there a way to do this, on how to do this or point me in the right direction.
View 1 Replies