|
-
May 15th, 2005, 06:57 PM
#1
Thread Starter
Lively Member
-
May 15th, 2005, 07:06 PM
#2
Re: Writing backwards.
Set the RightToLeft property of the textbox to Yes and its automatically taken care of.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 15th, 2005, 07:11 PM
#3
Thread Starter
Lively Member
-
May 15th, 2005, 07:20 PM
#4
Re: Writing backwards.
Yup, in VB6 it was dependent upon your version of Windows for it to be enabled. Although now its independent of the OS.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 15th, 2005, 07:23 PM
#5
Thread Starter
Lively Member
-
May 15th, 2005, 07:27 PM
#6
Re: Writing backwards. [RESOLVED]
There are allot of properties that have no design time effect. If you want to know what a property does you should check the
MSDN help file or MSDN On-Line. Your missing out if you dont.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 15th, 2005, 07:34 PM
#7
Thread Starter
Lively Member
-
May 15th, 2005, 07:37 PM
#8
Re: Writing backwards. [NOT RESOLVED]
You'd have to use an RTL font such as Arabic or Hebrew to get that effect.
The other thing you could do is to capture each key being entered and place it yourself at the other 'end' of the string.
-
May 15th, 2005, 07:40 PM
#9
Re: Writing backwards. [NOT RESOLVED]
But the RTL property works correctly, but doesnt reverse the fonts.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 15th, 2005, 07:46 PM
#10
Thread Starter
Lively Member
Re: Writing backwards. [NOT RESOLVED]
VB Code:
If e.KeyChar.IsDigit(e.KeyChar.ToString) = False And e.KeyChar.IsControl(e.KeyChar.ToString) = False Then
e.Handled = True
' Here I can put the SendKey to send the pressing of the
' Left Arrow to windows so that it jumps onto the right side.
End If
The only problem I have with this that this event also manages the pressing of backspace. So if I press backspace, it will jump one character back, thus making backspace useless and a big hassle for the user. This code is in my textbox's KeyPress event.
I never know what to put in this section...

So sue me... ... ... I'm just kidding...
www.fat-pie.com Flash Movies... You gotta see 'em to believe 'em!
-
May 16th, 2005, 03:21 AM
#11
Thread Starter
Lively Member
-
May 16th, 2005, 03:29 AM
#12
Fanatic Member
Re: Writing backwards. [NOT RESOLVED]
Just thinking out loud here but you could set the cursor position with textbox.SelectedText = x and TextBox.SelectionLength = 0
"so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman
-
May 16th, 2005, 04:32 AM
#13
Fanatic Member
Re: Writing backwards. [NOT RESOLVED]
Her's my two cents:
VB Code:
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
e.Handled = True
Select Case e.KeyChar
Case ControlChars.Back
If TextBox1.SelectionLength = 0 Then
TextBox1.SelectionLength = 1
End If
TextBox1.SelectedText = ""
TextBox1.SelectionStart += 1
Case Else
TextBox1.SelectedText = e.KeyChar
If TextBox1.SelectionStart > 0 Then TextBox1.SelectionStart -= 1
End Select
End Sub
This doesn't deal with the Del-key or with any of the Controls like Crtl-Z 'N stuff. But it's something.
Last edited by grilkip; May 16th, 2005 at 11:14 AM.
"so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|