Add A Horizontal Line That Looks Same As Border Lines Of Group Box?

Dec 22, 2010

On 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 Replies


ADVERTISEMENT

Divide The Content In My Application To Groups Each Group Has Its Own Rectangle Border With The Group Name Located At The Top Border

Jul 22, 2009

I want to divide the content in my application to groups each group has its own rectangle border with the group name located at the top border, i've seen it before and i'm not sure what is the correct name of this control, anyone knows what I'm talking about ? EDIT: Ok, I found the Groupbox Control but how do i use it? should i just drag other controls inside it or i should add controls directly into it?

View 2 Replies

VS 2010 Giving A ListBox A Horizontal Scroller Once It Passes Its Visible Border The Same As The Vertical Does?

Aug 29, 2010

With no answers from Google and not finding the answers by searching, just curious as you were to go about simply giving a ListBox a horizontal scroller once it passes its visible border the same as the vertical does?

View 3 Replies

Draw A Grid Using Vertical And Horizontal Lines

Dec 7, 2011

I'm trying to draw a grid using vertical and horizontal lines.Both For..To statements work fine when one of them is commented out otherwise, they won't work together. At run, only the first For..To statement is executed.[code]

View 6 Replies

Setting The Border Style Of A Group Control?

Apr 11, 2010

Is there a way to set the border style of a Group control ? To my disappointment I can't see such a property ,unlike in VB6 .This is important because it allows the users to create a variaty of frames . I also tried the Panel control ,but that does not have the Text property ...

View 4 Replies

Move A Horizontal Line On Form?

Jul 7, 2010

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.

View 2 Replies

VS 2010 VB - GUI Horizontal Line/bar/separator?

Aug 1, 2011

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 Replies

Entire Screen Fits On The Horizontal Line?

Sep 12, 2009

I 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.

View 5 Replies

Line Length Application - Horizontal / Vertical Distance

Dec 7, 2010

Class lineLengthWindow
' declaring variables
Private m_objGraphic As Graphics = CreateGraphics()
Dim pointX1 As Integer
Dim pointX2 As Integer
[Code] .....

View 2 Replies

Word Wrapping - Cannot Select Last Line Of Richtextbox (when A Line Is Wrapped It Becomes Two Lines)

Jul 5, 2009

The following code selects a line ina richtextbox. It works OK expect from one problem:

When a line is biger than the size of the richtextbox, it wraps it. This create a big problem as I can not select the last line of the richtextbox (when a line is wrapped it becomes two lines). When I set wordwrap to off it works just fine

Private Sub RichTextBox1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles RichTextBox1.MouseMove

RichTextBox1.Focus()

[CODE]...

View 3 Replies

Compare Two Lines - Check Whether The Previous Line Is Equal To Next Line?

Jun 6, 2010

i am using while loop. i need to check whether the previous line is equal to next line ...

Try
Dim r As Integer
r = str.IndexOf("action = LGN; description = Success")--- i need to check next line also same content[code].....

View 1 Replies

Set The BUTTON Border Line Color Transparent?

Sep 29, 2009

How to set the BUTTON border line color transparent? Because my BUTTON background pic is not a square. So when i click the button i will see the border line ..

View 2 Replies

Winforms - How To Have Colored Single Border Line For Rich Textbox And Buttons

Feb 21, 2011

For rich textbox in vb.net i want to have single border line. Fixed single and Fixed 3D are having some dimensional effect which i do not want. And i would also like to change the color of the border.

And same thing with the button, for them how to have single line border and specified color.

View 1 Replies

Different Detail Line In Windows Report Per Group?

Sep 13, 2011

How can I make a report that contains for every record key 3 different layouts for the detail lines

e.g. title activity
Local organization
Loc. Budget Overhead
Accepted Date
Date req.
Date act.

[Code]...

View 1 Replies

Add New Line Between Two Lines

Jul 8, 2009

[Code]....

I want to add some text beside the text which contain "T" I have the same value below the line DETECT,ON but i just want to add text to the lines between FMAT,2 and DETECT,ON. Can i use indexOf methode to get the lines between FMAT,2 and DETECT,ON

View 5 Replies

Modify A Large Group Of Pictures Boxes Without A Line For Each Individual Box?

Feb 3, 2011

I'm fiddling around with trying to make a sort of map/world. I'm using 16 x 16 pictureboxes named PictureBox1, PictureBox2, etcThe issue is that when I put the images into all the pictureboxes, I have to have a line for each picturebox (so say I have 100 boxes, I have 100 lines).The only difference in each line is the picturebox number, the rest is identical. I'm basically telling it to set that picturebox's image based on the number that a variable I've created has stored.I've got a game idea, and I'm just trying to figure out how to do the map. I want it to work like the old school RPG games like Dragon Warrior, or the more recent Dwarf Fortress. I'm still not sure if I want to use graphics or letters. At this point, I'm just trying to figure out how I can create the main screen where the user moves around. This is what I've come up with, as it works with what I know. I'm pretty new to this, although I've messed around with VB6 a lot.

Dim tile(30) As Integer
Dim tilelocation(3) As String
Dim x As Integer

[code]....

View 7 Replies

Adding Line Between Two Lines?

Jul 8, 2009

M48
METRIC,LZ
VER,1
FMAT,2
T00

[code]....

I want to add some text beside the text which contain "T" I have the same value below the line DETECT,ON but i just want to add text to the lines between FMAT,2 and DETECT,ON. Can i use indexOf methode to get the lines between FMAT,2 and DETECT,ON

For now i used this code to add text

Dim filename As String = strFileName
Dim tfLines() As String = System.IO.File.ReadAllLines(filename)
If File.Exists("C:kaya.txt") Then

[code]....

I want the text to be added to the T value above the line DETECT,ON. because this code add the text beside T whenever it finds the T value. how add line only between line FMAT,2 and DETECT,ON?

View 12 Replies

For Each Line In Selected Lines?

Jan 28, 2010

how can I get the lines which are have selected text in them?For example:The selected lines would be 1, 2,3 and 4 (0 being the first line)How can I get to code like:

For Each line as string(or integer) in textbox1."SelectedLines"
'Do something here for each line
Next

View 2 Replies

Border And Border Color Of Textbox And Label

Aug 4, 2009

I am using vb express 2008.How I can have border around a Textbox or Label and change the color of border. Like we have different border styles and colours in MsWord and other applictions. Also how a Lable can be made transparent?

View 4 Replies

Creating Forms With Border Like Calendar Border?

Nov 15, 2010

How we can create a form with border like calendar border. I changed ControlBox to False and Text to vbnullstring. but only when FormBorderStyle is Sizable or SizableToolWindow form border apears. This form is sizable. Is there any way to create forms with this border but not sizable? I want to create form like this:[URL]

View 6 Replies

Go To Specific Line In A RTB And Delete All Lines Above?

Jan 16, 2010

I have a RichTextBox.

I want to input an integer and the RichTextBox to go to that line and delete all lines above it.

For example, if I have 100 lines in the RTB, and I specify "25" as the integer, I want lines 1-25 deleted and for the RTB to keep 26-100.

View 2 Replies

Private Lines As New List(Of Line)?

Apr 19, 2009

vb.net is SOOOOOOO annoying.i am drawing a list of lines to a control. So, I declare:Private Lines As New List(Of Line) Private CopyOfLines as New List(Of Line)In code, I have a custom Class called "Line".

I am wanting to reuse the list called "Lines" so I can start a new list while retaining the old list. So I copy it's contents to "CopyOfLines", then clear the contents of "Lines":

CopyOfLines = Lines
Lines.Clear

Problem is the contents of CopyOfLines ALSO gets cleared! Is there no way to break the connection of "CopyOfLines" to "Lines"? This seems so unnecessary. After all, if I say:

a=10
b=a
a=0
Then (b) will still = 10 while (a) = 0.

Why does vb.NET have to break such simple logic and turn it into a gargantuan issue? I wouldn't mind it as much if the MSDN library would make it possible to find references to "List (Of whatever)", but all I get are references to text in a textbox. It seems that every time I go to the MSDN, I get a convoluted, runaround explanation or simply no documentation of something someone has done in their own code? Where did THEY find the information?

View 30 Replies

Count Similar Lines And Write It As 1 Line

Apr 2, 2009

I have a text file that has similar lines..; i want to count those similar lines and write it as 1 line with a new fieldname Quantity indicating the number of similar lines... the similarity of the lines can be found using the fieldnames Name,DNF,REP_DNF and REP_ASM.

[Code]....

View 4 Replies

Extra Blank Line Between 2 Lines Of Text?

Jan 12, 2011

first why do I have a extra blank line between 2 lines of text

I have a mainform from which I display a second form with a few comboxes

[Code]...

View 2 Replies

Stop Adding Lines To Array At A Specified Line

May 11, 2012

I'm trying to create an array, but I do not want all data from the textbox to be inputted. The textbox will look something like this:

[Code]...

View 6 Replies

Syntax - Not Allow Line Continuations Over Commented-out Lines?

Jun 25, 2010

I just had this throw a compilation error while refactoring some legacy (hence VB.NET) unit tests, where I wanted to just comment out one of the sample inputs to MBUnit:

<RowTest> _
'<Row("Something")> _
<Row("SomethingElse")> _

[Code]....

Is it actually treating the whitespace/commented-out line as an actual line? Generally, when I gripe about VB.NET, I preface it with, "Now, I wouldn't want to be the guy writing their grammar, but..." This seems like one of those cases where I don't know the answer, if I'm right.

View 1 Replies

Adding Additional Lines To Multi-line Text Box?

Apr 6, 2012

I have a line of data that represent a data import. When the import is done, I would like to keep that exsisiting line, and add another line for the next import. So I have a display of mulitiple lines, showing multiple Imports.So this is one I have for the first section, it loops through the data so you see the rows incrementing

TextBox1.Text = clsDatRow.iFirstVal.ToString + " ROWS:" + iCountRows.ToString + " " + Date.Now.ToString
TextBox1.Refresh()

Now, I can I keep the line of data, and add a new line so for the next import, it does the same thing. It ried vbnewline, but it just clears that line, it doesn't move down to a next line.

View 6 Replies

Find Line Intersection Point With A Grid Of Lines?

Jun 4, 2009

I am suing VB 2008 express edition.

I am trying to solve this problem since many days. The problem seems to be rather mathematical, but I faced difficulties dealing with Grids and how to store them using visual basic.

[URL]

In my problem, I have a world of 200 x 200 units divided into 4 x 4 grids (Each of 50 units).

There is a line crosses some areas has the coordinates of Point A (Starting Point) of (XA = 12.43, BA = 159.48) and Point B coordinates (Ending Point) of (XB = 112.95, YB = 20.95).

The question is, how can find the length of (A to C1), (C1 to C2), (C2 to C3), (C3 to C4), (C4 to C5) and finally (C5 to B)?

In addition, how can I indicate the square in which the line is inside?

note that the method should work for all conditions (-ve and +ve line slopes) and for different A and coordinates.

View 1 Replies

Read Lines From Command Line To Windows Form?

Jun 9, 2010

Hey Overflow, I have an application which serves as a user interface for a spartan/command line program.

I have the program running on a separate process, and my application monitors it to see if it is responding and how mush CPU it is utilising.

Now I have a list of files in my program (listbox) which are to be sent to the application, which happens fine. But I want to be able to read text from the com-line so as to determine when the first file has been processed.

Com-line says one of "selecting settings", "unsupported format" and "cannot be fixed". What I want to be able to do is when it says one of these three things, remove item(0) in listbox1.

I thought of programming an event which handles com_exe.print or something or other, if possible.

View 2 Replies

Reading Specific Line In Textfile (skip Some Lines)

Oct 17, 2011

I'm currently use visual basic 2008. The problem is I have try this code but,it produce no output. There is no problem with the code I guess. Here is my code

Dim i As Integer = 0
Dim line As String
'Dim reader As StreamReader = New StreamReader("C:\drill.txt")

[Code]....

View 14 Replies







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