473,508 Members | 2,006 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Freeze pane for a list box?

34 New Member
Hi,

I have a huge amount of columns in a list box, but I don't want a very wide list box. I need to see the first 3 columns constantly and want to scroll through the rest of the columns (like the freeze pane function in Excel). Please advice.
Jul 3 '07 #1
3 4137
Rabbit
12,516 Recognized Expert Moderator MVP
Listboxes don't come with this functionality. The best I can think of is to use custom navigation buttons that change the column widths.
Jul 3 '07 #2
Riun
34 New Member
Thanks Rabbit. How can I go about doing that?
Jul 4 '07 #3
Rabbit
12,516 Recognized Expert Moderator MVP
Off the top of my head, the column width would be something like:
1";1";1";0";1"

Which would mean you would see the first 3 columns and the last column.
Pressing the back button would run the following code:

Expand|Select|Wrap|Line Numbers
  1. Me.ListboxControl.ColumnWidth = Replace(Me.ListboxControl.ColumnWidth, "0"";1""", "1"";0""")
  2.  
This is untested but in theory should change the column width setting to
1";1";1";1";0"

It would give the illusion of freezing the panes. Of course you'd have to put in a check so that it doesn't hide the first 3 columns.
Jul 4 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3750
by: (Pete Cresswell) | last post by:
I've got about 4,000 mutual funds. Each fund currently has up to 255 "returns" associated with it. A 'return' being a decimal number and a date for that fund. I have a feeling that the...
2
2814
by: Jenny | last post by:
Hi all is there way to realise a function like EXCELs window/freeze pane within a scrollable panel of a website? Thanks for each help! Jenny
0
1002
by: Jenny | last post by:
Hi all is there way to realise a function like EXCELs window/freeze pane within a scrollable panel of a website? Thanks for each help! Jenny
0
1215
by: dbuchanan | last post by:
Hello, The actions pane locks up after selecting a listbox. I have tried all kinds of things and have narrowed it down to this. If I click in the listbox the action pane locks up. Neither a...
1
3166
by: jmalone | last post by:
I have a python script that I need to freeze on AIX 5.1 (customer has AIX and does not want to install Python). The python script is pretty simple (the only things it imports are sys and socket)....
2
2631
by: Gabriel Rossetti | last post by:
Hello everyone, I'm trying to use python's freeze utility but I'm running into problems. I called it like this : python /usr/share/doc/python2.5/examples/Tools/freeze/freeze.py...
0
1484
by: =?Utf-8?B?YmFtbm9sYQ==?= | last post by:
When using Windows Live Hotmail and the "bottom" reading pane option chosen, the messages list shows up but no message, not even when I (single) click on the message. The only way to open and...
12
4784
by: keirnus | last post by:
Hello, There's a freeze pane function in datasheet but for horizontal scroll only. How about for the vertical scroll? I need to implement this to be able to view the total data of each column...
3
3829
by: mr3573 | last post by:
i want to save an excel file as html. the problem is , i want to keep the selected freez pane in html form too. it it possible?. i'm beginner and maybe that will be possible by some software. one way...
0
7226
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7125
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7328
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7049
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5631
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5055
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4709
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1561
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
422
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.