| | |
Help with WriteLine and Font Change
Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Feb 2007
Posts: 10
Reputation:
Solved Threads: 0
Hi All,
Would someone please help me with this problem I've been struggling with for a few days now.
I am trying to convert a file from this Upper Case:-
01m-matt-01-01 BIBLOS GENESEWS IHSOU XRISTOU UIOU DAUID UIOU ABRAAM
To this Lower Case into New Testament Greek:-
01m-matt-01-01 biblos genesews ihsou xristou uiou dauid uiou abraam
Sorry, the line is not showing correctly in HTML, it should be Greek characters
I can get it into Lower case but not change of font. This is the code that I have so far.
Would someone please help me with this problem I've been struggling with for a few days now.
I am trying to convert a file from this Upper Case:-
01m-matt-01-01 BIBLOS GENESEWS IHSOU XRISTOU UIOU DAUID UIOU ABRAAM
To this Lower Case into New Testament Greek:-
01m-matt-01-01 biblos genesews ihsou xristou uiou dauid uiou abraam
Sorry, the line is not showing correctly in HTML, it should be Greek characters
I can get it into Lower case but not change of font. This is the code that I have so far.
VB.NET Syntax (Toggle Plain Text)
Private Sub Translate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Translate.Click oFileName = filename_woExt & ".txt" Dim SR As New StreamReader(FileName) 'Input File Name Dim SW As New StreamWriter(oFileName) 'Output File Name Dim strLineData As String Dim OldFont As Font OldFont = Me.Font 'Read the contents of the input file line by line Do While SR.Peek <> -1 strLineData = SR.ReadLine Dim NewFont As Font NewFont = New Font("Symbol", 10, FontStyle.Regular) strLineData = strLineData.ToLower 'Convert line to Lower Case Font = NewFont SW.WriteLine(strLineData, Font) Loop Font = OldFont SR.Close() SW.Close() 'Change the 'Start' button text to 'Done' Translate.Text = "Done" 'For this line to work the button property 'Modifiers' must be set to 'Public' End Sub
![]() |
Other Threads in the VB.NET Forum
- Previous Thread: How to handle multiple files, to Excel
- Next Thread: changing on a form
| Thread Tools | Search this Thread |
"crystal .net .net2008 2008 access add advanced application array assignment basic beginner box browser button buttons center click code combo convert cpu cuesent data database datagrid datagridview datetimepicker designer dissertation dissertations dissertationtopic dosconsolevb.net eclipse editvb.net employees excel exists firewall forms html images isnumericfuntioncall listview map math memory mobile module msaccess mssqlbackend mysql navigate net number opacity open pan pdf picturebox picturebox2 port print printpreview record regex reuse right-to-left save search serial settings socket sorting sqldatbase sqlserver storedprocedure temp textbox timer timespan transparency txttoxmlconverter upload useraccounts usercontol vb vb.net vb.nettoolboxvisualbasic2008sidebar vba vbnet vista visual visualbasic visualbasic.net visualstudio.net web wpf wrapingcode xml






