|
-
Aug 26th, 2005, 08:11 PM
#1
Thread Starter
Addicted Member
[Resolved]Alphebetical order?
Say I have 2 words in 2 text boxes, how can I make them display in the third textbox in alphebetical order?
Last edited by Garrett19212; Aug 26th, 2005 at 09:10 PM.
-
Aug 26th, 2005, 08:13 PM
#2
Re: Alphebetical order?
Why not just use a ListBox and set it to sorted instead of the third textbox?
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 
-
Aug 26th, 2005, 08:17 PM
#3
Thread Starter
Addicted Member
Re: Alphebetical order?
Ok, how would I go about making it alphebetical order thats the part im stuck on.
-
Aug 26th, 2005, 08:20 PM
#4
Re: Alphebetical order?
A Listbox has the Sorted property, which you can set to TRUE. That will ALPHABETICALLY sort the Listbox automatically.
Last edited by dglienna; Aug 26th, 2005 at 09:13 PM.
-
Aug 26th, 2005, 08:21 PM
#5
Thread Starter
Addicted Member
Re: Alphebetical order?
What do you mean by sorted? How does it sort it?
-
Aug 26th, 2005, 08:25 PM
#6
Re: Alphebetical order?
It sorts alphabetically automatically by setting the .Sorted property to True.
After you set it there is nothing else to do, thus, automatically.
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 
-
Aug 26th, 2005, 08:26 PM
#7
Thread Starter
Addicted Member
Re: Alphebetical order?
I just tested it and it didn't work, I set it to true is there anything else to do?
-
Aug 26th, 2005, 08:47 PM
#8
Re: Alphebetical order?
Here is an example.
VB Code:
Option Explicit
'List1 Sorted property set to True
Private Sub Form_Load()
List1.AddItem "Test"
List1.AddItem "VB Forumn"
List1.AddItem "Classic VB"
List1.AddItem "Alphabetical"
End Sub
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 
-
Aug 26th, 2005, 08:58 PM
#9
Thread Starter
Addicted Member
-
Aug 26th, 2005, 09:00 PM
#10
Re: Alphebetical order?
So you got it working now?
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 
-
Aug 26th, 2005, 09:10 PM
#11
Thread Starter
Addicted Member
Re: Alphebetical order?
Yup
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
|