if this was the form_load code in the form1 form where the back button in
and i returned to the main form
VB Code:
Private Sub Form_Load()
RichTextBox1.Text = Main.txtFileText.Text
With RichTextBox1
.SelStart = 0
.SelLength = Len(.Text)
.SelAlignment = 1
End With
Dim Result As Long
'// Set initial direction RTL
SetParaDirection (PFE_RTLPAR)
'// Set data structure arguments
vbBO.cbSize = LenB(vbBO) 'Size
vbBO.wMask = BOM_DEFPARADIR 'Attribute to set
vbBO.wEffects = BOE_RTLDIR 'Default direction
'// Set default direction RTL
Result = SendBOMessage(RichTextBox1.hwnd, EM_SETBIDIOPTIONS, 0, vbBO)
'// Adjust RightMargin of RichTextBox control
RichTextBox1.RightMargin = 9300
With RichTextBox1
.SelStart = 0
.SelLength = 0
End With
If Main.Option2.Value = True Then
translate 'function
Else
GetData 'function
End If
RichTextBox2.Text = Main.txtFileText.Text
End Sub
should i just copy this code to a Module
what about the functions calls, how they will be defined?