Change The Shape Of The End Of The Line?Nov 17, 2011
how to change the shape of the end of the line
I would like to Cap type . Square, as here
how to change the shape of the end of the line
I would like to Cap type . Square, as here
how can i show the line shape in toolbox i want to draw a lineView 11 Replies View Related
I'd like to know what the code is to make a picture box not able to cross a lineshape.View 3 Replies View Related
I want to be able to take a flat image and do this with it in my program
how do I change the points?
how do I load only PART of an image from abitmap into bbitmap?
is there any way that you could change the shape of a button?View 3 Replies View Related
I need to change the shape of my tabs... untitled.JPGView 2 Replies View Related
Is there anyway to change the shape of the picture box into a round,cross or star shapeView 16 Replies View Related
i need to change the shape of the Form to appear somewhat like the pic attached > is there any plugin, application or any thing related to thisView 4 Replies View Related
How do you change the shape of a cursor in a richtextbox?View 5 Replies View Related
Is there a way to dynamically change the shape to be drawn.View 3 Replies View Related
I used to change the Form shape in VB 6.0 using the following code:Private Declare Function CreateRoundRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3 As Long) As Long Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
I have an application that dynamically draws a chart onto a winform.Both the chart background and the individual chart bars are drawn using a VisualStyleRenderer object: For Each rect As Rectangle In barRectangles
Dim renderer As New VisualStyleRenderer (VisualStyleElement.StartPanel.UserPane.Normal)
this draws a nicely rendered rectangle with full XP visual styles, my question is: how do I change the colours used to draw the shape?
I am using Rack-mounted Equipment (US units).VSS as stencil. I need to Connect a server on Rack.View 1 Replies View Related
a set of color add into combobox
Dim mypen As New Pen(, 2)
how to make the color apply in the pen?? what to put before the coma??
Is it possible to change PowerPacks.LineShape smoothingMode?I tried to use this code(a class that inherits LineShape):
Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
Dim g As Graphics = e.Graphics
' no difference when changing the SmoothingMode '
g.SmoothingMode = SmoothingMode.AntiAlias
Result (don't take in consideration labels and circles):apparently smoothing mode is not taken inconsideration...
How do i change a line in a richtextbox?[code]...View 4 Replies View Related
A string contains the following lines:
Bet. kenmerk 123456
I have code for regex.replace which is working.
The problem is that I only want to change the line: Bet. kenmerk 123456.
Not the lines which starts with :61: and :81:.
is there a way to change the cursor position to the beginning of the another line in a richtextboxfor example, if i'm on the second line, i want code that will transport my cursor position to the beginning of the fourth line, etcfrustrated visual basic userView 11 Replies View Related
I have a text file with the format:
What is the best way to go change the price of the appropriate CD if I'm given the id# and new price?
I'm sure it has something do to with getting the line and splitting it, but I'm not sure how I edit just one line and not mess up the whole file.
I have a label on my code and i have 3 lines on it , what i want to do is to have my first line on white color and bold , next line normal white and third line on yellow normal ..View 9 Replies View Related
How can I change line color at run time? total 17 gridline showed in the graph, I only want to see 5 grid line and hide rest of gridlines when I use radar chart.View 1 Replies View Related
Is it possible to change the width of a line series with the chart bundled in .net 4?View 3 Replies View Related
Retrieving strings from a serial port with ReadLine works fine as long as the line ends with a linefeed chr$(10).However if no more strings are available to be read, Do Loop or For Next hang up waiting for the linefeed which never occurs.I believe using chr$(0) in place of linefeed would still work with strings ending with a linefeed..Just that the linefeed would be output.I have the complete MSDN Library.View 2 Replies View Related
I'm using in my winform project a RichTextBox control to display a kind of old console screen.This works perfectly but there is a space between the lines.Is it possible to change this space to be 0 or anything near that.If i paint a line from vetical line from line 1 to line 5 i don't want any spacing between the line.View 2 Replies View Related
I've got a listbox in visual basic 2008 with lines that look like:
item 0; item 1; item 2; item 3
How can I select that line and change within that line the value of e.g. item 3? (by default it's set to 0 and should be set to a value > 0 when entered by the user.
After that I need to calculate the total price based on the price in item 2 and the new value of item 3 (being >0)
Recently, I just helping my friend for developing game private server, in Game Client there are 3 application is needed, its is a patcher, launcher, and main exe, my friend use open source (C++ language) application for the patcher, the patcher is work nicely, and the launcher is program that launch main exe, its using launcher because main exe is need some argument to run, the launcher is created by me.The problem is the user can be run game directly without opening the patcher, so I want to change default command line (usually "0" / "1") in launcher to 3, and I have the trap if user open directly the launcher
If My.Application.CommandLineArgs.Item(0) = "3" Then
MsgBox("Please Run Patcher to proceed the game!")
I have text file in c:, which called Hello.txt [code]...View 7 Replies View Related
Change value of column from text file line? I have lines like this[code]...View 1 Replies View Related
How do you change the text of a line in a textbox by integer?View 4 Replies View Related
I'm using Visual basic 2010.net with service pack 4.0. I'm using the built in chart control to generate a line graph. I have a series plotted on the fastline graph. Is there a way of accessing the weight/thickness/boldness of the line and changing it? I was able ton change the colour and I could even change the point size on the fastpoint graph.
Private Sub DisplayGraph_frm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
I am currently drawing a line with Graphics. Drawline. Once this is drawn, under certain circumstances I want to change the colour of it. When the line is drawn, does it become an object that I can then refer, or do I simply draw a new line over the original in a different colourView 10 Replies View Related
I'm working on a VB.NET application using VS2010 for an application that will run on a touch-screen. I have a problem with a mutli-line text boxes, ListBoxes and DataGridView controls which contains a vertical scroll bar. The scroll bar is too small for anyone with big fingers. Is there any way to make that scroll bar wider so that it's more "finger friendly"?View 6 Replies View Related
what i need to do is open a txt file, read line by line, decode each line into an array and display. Now all works ok apart from one line.
sTextLine = objReader.ReadLine() <-- Value of string cannot be converted.
full code here
Dim objReader As New System.IO.StreamReader(sOpenFile.Text)
Dim sTextLine As New ArrayList()
Dim sText As String = ""
Dim i As Integer = 0
how to read text from a listbox line by line and put current line in a label?View 3 Replies View Related
How would i go about reading a file Line by Line that within that line The values are delimited by " Example of the data:
"bob" "cat" "1243"
"steve" dog" "6789"
I've started this with this code but not sure how to go about the next stage:
Using MyReader As New _
Microsoft.VisualBasic.FileIO.TextFieldParser(My.Application.Info.DirectoryPath & "Records28112011.jd")
MyReader.TextFieldType = FileIO.FieldType.Delimited
I am trying to read in a TextBox line by line and take the first 7 characters of each line and output everything in another TextBox.This is what I have so far.
Dim line, lines() As String
lines = TextBox1.Text.Split(Environment.NewLine)
Dim i As Integer = 0
I need to be able to change a path inside a document ( a config file to a program) to the current directory of the application im creating in VB so the text file looks something like
i need to change c:server
i need the app to preview the line in textbox in timeintervalof 1 s (can be change)nd when it will reach to the end it close the text file and andreread it after let say 1 m ..
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim myStream As Stream = Nothing
1-When I click on the ''Square'' radio button I want the shape to appear in the image box, then need I only need 1 text box to appear where the 4 side boxes are, this will be where I enter the value of the sides to calculate the perimeter and I also want the area and perimeter boxes to appear at the bottom since I don''t need the volume text box.
I have a project(solution) which aims to lance a Form from a lancer module. On my Form Design the buttons are nice and round. When I go to Run the solution and the the Form is set as startup project, all is OK but when lancer module is set as startup project all buttons change to hard rectangular shapes and rounded corners dissapear (see attachments).View 3 Replies View Related
how do you correctly dispose a shape in vb.net ie when you draw a rectangle using the pen function how do I depose it so that it will disappear from the form, for some reason once its drawn if I draw a new shape it keeps the previous one and just overlays the new one and I use shape.dispose, and pen.dispose?View 5 Replies View Related
I want to create a window in a different shape. Not rectangular or eclipse but lets say a window look like a panda.!!!View 1 Replies View Related
I have done the coding to create a diamong shape using the for next loop but the output comes out differently:
Dim row, space, asterisk As Integer
Dim height=5 As Integer
Dim height2=4 As Integer
I am using VB 2008 for this little first game I am trying to make. Currently a grid of rectangles is being generated when a button is pressed and when you click on the grid I am attempting to import the relevant image into the selected rectangle. Looking through the available options I can't find anything relevant to import the image onto that selected rectangle. Is there another method of importing onto a code generated grid? my current relevant code is: brackets, its my first time here.)
If Form1.MousePosition.X < rect.Location.X + rect.Width And Form1.MousePosition.X > rect.Location.X And Form1.MousePosition.Y < rect.Location.Y + rect.Height And Form1.MousePosition.Y > rect.Location.Y Then
I am working through my Visual Basic Book 2010 book and came across this Program example:Create 3 classes that inherit from a base class named Shape. The Shape class has an instance variable that is the name of the shape and also a CalcArea() function that must be overridden by each subclass. You will need to create the following 3 classes and use the formulas provided to calculate the areas.
Square ï¿½ Area = sideLength * sideLength
Circle ï¿½ Area = pi * radius * radius (use Math.Pi for the value of pi)
Triangle ï¿½ Area = ï¿½ * base * height
Each subclass should have a constructor that you use to set the name and the attributes required to calculate the area with. Each subclass should also override the CalcArea() function that is provided in the base class Shape. They will also need to implement the toString() method that will print out the shape name, any attributes (ex: sideLength), and the area.It also includes the Shape base class. You will need to add the 3 subclasses and add the appropriate code.