PC Review


Reply
Thread Tools Rate Thread

seltext in listbox

 
 
=?Utf-8?B?UGV0ZXJN?=
Guest
Posts: n/a
 
      28th Feb 2005
I have a listbox with several entries. When my users click on an entry, it
inverses the colors. Normally it is a white background with black text.
Access reverses it to be a black background with white text for only that
entry - which my users hate.

Is there any way to stop this from happening via VBA? I could use SelText
if it was a combobox to position to the first character but that doesn't work
with a listbox.

I'm stumped....any help would be appreciated.
 
Reply With Quote
 
 
 
 
Van T. Dinh
Guest
Posts: n/a
 
      28th Feb 2005
It is called "reverse video". They are always the opposite of what you set
in the "ForeColor" and "BackColor" Property of your ListBox.

You can experiment with the above Properties to find a combination that is
suitable in both "normal Video" and "reserve video" modes.

--
HTH
Van T. Dinh
MVP (Access)




"PeterM" <(E-Mail Removed)> wrote in message
news:B33915E6-0E12-4556-B5B8-(E-Mail Removed)...
> I have a listbox with several entries. When my users click on an entry, it
> inverses the colors. Normally it is a white background with black text.
> Access reverses it to be a black background with white text for only that
> entry - which my users hate.
>
> Is there any way to stop this from happening via VBA? I could use SelText
> if it was a combobox to position to the first character but that doesn't

work
> with a listbox.
>
> I'm stumped....any help would be appreciated.



 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXJN?=
Guest
Posts: n/a
 
      28th Feb 2005
thank you... however that doesn't answer my question of positioning the
cursor on the line that is selected in the listbox...is there a way to do
that?

"Van T. Dinh" wrote:

> It is called "reverse video". They are always the opposite of what you set
> in the "ForeColor" and "BackColor" Property of your ListBox.
>
> You can experiment with the above Properties to find a combination that is
> suitable in both "normal Video" and "reserve video" modes.
>
> --
> HTH
> Van T. Dinh
> MVP (Access)
>
>
>
>
> "PeterM" <(E-Mail Removed)> wrote in message
> news:B33915E6-0E12-4556-B5B8-(E-Mail Removed)...
> > I have a listbox with several entries. When my users click on an entry, it
> > inverses the colors. Normally it is a white background with black text.
> > Access reverses it to be a black background with white text for only that
> > entry - which my users hate.
> >
> > Is there any way to stop this from happening via VBA? I could use SelText
> > if it was a combobox to position to the first character but that doesn't

> work
> > with a listbox.
> >
> > I'm stumped....any help would be appreciated.

>
>
>

 
Reply With Quote
 
Van T. Dinh
Guest
Posts: n/a
 
      28th Feb 2005
I don't think there is any way of positioning the cursor since each line is
an *item* (as a whole) in the ListBox and you cannot get into a "part" in
this case.

Note that ComboBox is similar to ListBox but ComboBox has a TextBox inbuilt
in it and ListBox doesn't.

--
HTH
Van T. Dinh
MVP (Access)




"PeterM" <(E-Mail Removed)> wrote in message
news:AF8C7334-91F0-459C-A952-(E-Mail Removed)...
> thank you... however that doesn't answer my question of positioning the
> cursor on the line that is selected in the listbox...is there a way to do
> that?
>
> "Van T. Dinh" wrote:
>
> > It is called "reverse video". They are always the opposite of what you

set
> > in the "ForeColor" and "BackColor" Property of your ListBox.
> >
> > You can experiment with the above Properties to find a combination that

is
> > suitable in both "normal Video" and "reserve video" modes.
> >
> > --
> > HTH
> > Van T. Dinh
> > MVP (Access)
> >
> >
> >
> >
> > "PeterM" <(E-Mail Removed)> wrote in message
> > news:B33915E6-0E12-4556-B5B8-(E-Mail Removed)...
> > > I have a listbox with several entries. When my users click on an

entry, it
> > > inverses the colors. Normally it is a white background with black

text.
> > > Access reverses it to be a black background with white text for only

that
> > > entry - which my users hate.
> > >
> > > Is there any way to stop this from happening via VBA? I could use

SelText
> > > if it was a combobox to position to the first character but that

doesn't
> > work
> > > with a listbox.
> > >
> > > I'm stumped....any help would be appreciated.

> >
> >
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SelText Not Recognized - Help please =?Utf-8?B?ZGVmYXVsdDEwNQ==?= Microsoft Access Form Coding 3 24th Nov 2005 02:30 PM
SelText Not Recognized - Help please =?Utf-8?B?ZGVmYXVsdDEwNQ==?= Microsoft Access 4 24th Nov 2005 02:42 AM
Seltext property and Message control =?Utf-8?B?VmF1Z2hhbg==?= Microsoft Outlook Form Programming 2 16th Dec 2004 12:13 PM
text1.Seltext - vb.net equivalent? jn Microsoft VB .NET 1 29th Oct 2004 12:20 AM
Combo Box & SelText Tim Microsoft Access Forms 3 21st Oct 2003 03:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:05 PM.