Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > combo box editing


Reply
 
Thread Tools Display Modes
  #1  
Old 03-11-2004, 07:00 PM
TboXx's Avatar
TboXx TboXx is offline
Junior Contributor
 
Join Date: Feb 2003
Location: Charlotte, NC
Posts: 318
Question combo box editing


how do i make sure a combo box isnt edited, but you can select from the list?,
Thanks
__________________
Bow down and pay homage to my awesomeness
Reply With Quote
  #2  
Old 03-11-2004, 07:12 PM
Bljashinsky's Avatar
Bljashinsky Bljashinsky is offline
Senior Contributor
 
Join Date: Nov 2003
Location: California
Posts: 1,016
Default

Make its locked property set to true.
__________________
Check out my website:
Reimagine Memories
Reply With Quote
  #3  
Old 03-11-2004, 07:13 PM
TboXx's Avatar
TboXx TboXx is offline
Junior Contributor
 
Join Date: Feb 2003
Location: Charlotte, NC
Posts: 318
Default

if i lock it, then it wont let me select any thing in the combo box
__________________
Bow down and pay homage to my awesomeness
Reply With Quote
  #4  
Old 03-11-2004, 07:18 PM
mrjeffy321 mrjeffy321 is offline
Ultimate Contributor
 
Join Date: Apr 2003
Location: Texas, USA
Posts: 1,623
Default

set the combo box to style 2, dropdown list.
that will allow the use to only select items from the list.
Reply With Quote
  #5  
Old 03-11-2004, 07:22 PM
TboXx's Avatar
TboXx TboXx is offline
Junior Contributor
 
Join Date: Feb 2003
Location: Charlotte, NC
Posts: 318
Default

ahhh thats better
__________________
Bow down and pay homage to my awesomeness
Reply With Quote
  #6  
Old 03-11-2004, 07:24 PM
Byam Byam is offline
Freshman
 
Join Date: Mar 2004
Posts: 38
Default

Would this work also?

Private Sub Combo1_KeyPress(KeyAscii As Integer)
KeyAscii = 0
End Sub
Reply With Quote
  #7  
Old 03-11-2004, 07:33 PM
Gilad_r's Avatar
Gilad_r Gilad_r is offline
Senior Contributor
 
Join Date: Mar 2004
Posts: 851
Default

no, you can still paste text with the mouse...
Reply With Quote
  #8  
Old 03-11-2004, 07:36 PM
Gilad_r's Avatar
Gilad_r Gilad_r is offline
Senior Contributor
 
Join Date: Mar 2004
Posts: 851
Default

you know what it will work, because you can't press enter...
but if you don't want text at all, then still no.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing MSFlex Grid with A Combo (VB6/Access2000) colinuk Database and Reporting 4 01-27-2005 12:17 AM
Combo boxes get cut off/won't refresh kkonkle General 4 08-07-2003 06:50 AM
editing records through combo box selection pwehrwein Database and Reporting 13 10-25-2002 03:47 PM
Variable lists in combo boxes CyberiaJohn General 3 10-06-2002 08:31 PM
ado: first combo works without the second intersimi Database and Reporting 8 04-10-2002 12:17 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->