.net - GDI+ Change Line SmoothingMode?
Feb 17, 2010
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
[code]....
Result (don't take in consideration labels and circles):apparently smoothing mode is not taken inconsideration...
View 4 Replies
ADVERTISEMENT
Dec 28, 2008
How do i change a line in a richtextbox?[code]...
View 4 Replies
Nov 17, 2011
how to change the shape of the end of the line
I would like to Cap type . Square, as here
View 9 Replies
Jan 25, 2010
A string contains the following lines:
:61: C123456,1235AC
:81: hekljkjkjskdjfjafja;f
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:.
View 3 Replies
Jun 15, 2009
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 user
View 11 Replies
Apr 11, 2012
I have a text file with the format:
(title,price,id#)
CD1,11.00,111111
CD2,12.00,222222
CD3,13.00,333333
[Code]....
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.
View 3 Replies
Jun 4, 2011
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
Sep 12, 2011
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
Dec 15, 2010
Is it possible to change the width of a line series with the chart bundled in .net 4?
View 3 Replies
Jan 8, 2010
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
Jun 23, 2010
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
Jan 14, 2012
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)
View 5 Replies
Oct 26, 2011
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!")
End
[code]....
View 5 Replies
Apr 29, 2010
I have text file in c:, which called Hello.txt [code]...
View 7 Replies
Oct 26, 2009
Change value of column from text file line? I have lines like this[code]...
View 1 Replies
Dec 29, 2009
How do you change the text of a line in a textbox by integer?
View 4 Replies
Dec 3, 2010
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.
Code:
Private Sub DisplayGraph_frm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[code]....
View 1 Replies
Apr 22, 2012
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 colour
View 10 Replies
Sep 30, 2010
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
Oct 14, 2011
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
[code]....
View 3 Replies
Jan 16, 2011
how to read text from a listbox line by line and put current line in a label?
View 3 Replies
Dec 1, 2011
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
[code]....
View 9 Replies
Jul 5, 2010
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
[code].....
View 1 Replies
Jan 13, 2009
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
Quote:
something=234
blabla=io
ServerRoot=C:Server
i need to change c:server
View 2 Replies
Sep 16, 2010
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
[code].....
View 17 Replies
Feb 4, 2012
I'm using Visual Studio 2010 / VB / dot net 4.0, and I have a drop-down menu in my left column that switches resource languages for the end user. It reads like this:
--------English ------- <<- Engish is always the default top language option
French |
Spanish |
[code].....
View 2 Replies
Feb 7, 2011
a user copies multiple lines of text (say, from an email) into the clipboard. Based on my observations, when one tries to paste the text into a single-line textbox, only the first line is actually pasted in. (I am aware that the "obvious" solution would be to set the Multiline property to True, but there are reasons I am looking to avoid this and to put multi-line data into a single line.)
In the TextChanged event handler, I wrote code that parses the clipboard data to successfully convert it to a single-line, comma-delimited format.
Private Sub txtMassTrackingNo_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles txtMassTrackingNo.TextChanged
[Code].....
View 5 Replies
Jan 29, 2009
Is there a way to show the line number of the line of code that caused an exception within a Try...Catch block?
View 5 Replies
Mar 17, 2010
I'm trying to read a file line by line into an array but It skips the item at index:3 I have it msgboxing just to make sure and it wont even touch it.
Dim Btn As Button = DirectCast(sender, Button)
Dim path As String = Application.StartupPath & "Libraries" & Btn.Text.Replace(" ", "_") & ".ipt"
Dim i As Integer = 0
Dim lines As String() = IO.File.ReadAllLines(path)
[code]....
View 3 Replies
May 16, 2012
How do i read through a textfile line by line checking for and removing duplicate values?
View 1 Replies