473,325 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Moving a tabbled control around on the form?

I've got a form that has a TreeView in the upper part of the form and a
TabControl in the lower.

When processing a Resize event, the TabControl does not need tb resized - just
moved so that the TreeView can be expanded/contracted to fill the available
space.

But there seems tb some sort of chicken-and-egg problem with objects within the
TabControl. Their coordinates are expressed relative to the form instead of
the TabControl and their movement is constrained by the boundaries of the
TabControl.

Best-sounding suggestion I've seen so far was offered up in
microsoft.public.access: write a loop to incrementally nudge the objects within
the TabControl and then move the TabControl a little bit with each iteration.

But I'm still not getting anywhere.

What I'm fishing for is somebody who can point me to a working example or an MS
white paper on the subject.

If anybody wants a more concrete statement of the problem, I posted
a 112k sample db at http://tinyurl.com/oznty

MS Access 2003.
--
PeteCresswell
Oct 11 '06 #1
2 2264

(PeteCresswell) wrote:
I've got a form that has a TreeView in the upper part of the form and a
TabControl in the lower.

When processing a Resize event, the TabControl does not need tb resized - just
moved so that the TreeView can be expanded/contracted to fill the available
space.

But there seems tb some sort of chicken-and-egg problem with objects within the
TabControl. Their coordinates are expressed relative to the form instead of
the TabControl and their movement is constrained by the boundaries of the
TabControl.

Best-sounding suggestion I've seen so far was offered up in
microsoft.public.access: write a loop to incrementally nudge the objects within
the TabControl and then move the TabControl a little bit with each iteration.

But I'm still not getting anywhere.

What I'm fishing for is somebody who can point me to a working example or an MS
white paper on the subject.

If anybody wants a more concrete statement of the problem, I posted
a 112k sample db at http://tinyurl.com/oznty

MS Access 2003.
I'm just speculating but I wonder if 1) resizing the tab control to
fill the entire form section, then 2) moving the textbox, then 3)
resizing and repositioning the tab control would work. You might have
to iterate through step 3 a couple or more times to get everything
right, but I don't think you'd have to resort to as many 'nudges' as
you described above. Step 3 might also be amenable to use of the
SizeToFit method.

Bruce

Oct 11 '06 #2
Per de***************@gmail.com:
>I'm just speculating but I wonder if 1) resizing the tab control to
fill the entire form section, then 2) moving the textbox, then 3)
resizing and repositioning the tab control would work. You might have
to iterate through step 3 a couple or more times to get everything
right, but I don't think you'd have to resort to as many 'nudges' as
you described above. Step 3 might also be amenable to use of the
SizeToFit method.
You're the second one to pick up on that - and it sounds sensible to me.... It's
just that I haven't been able to make it work yet. Maybe this weekend...
--
PeteCresswell
Oct 11 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Glenn | last post by:
I have a list of records in a third party grid: when an item is selected, a user control (bound to a control module level dataset) is filled with the selected record. I have another form with a...
2
by: PMB | last post by:
Thank you in advance for any and all assistance. I'm trying to input data from strings to a memo field. I would like to know how to check first to see if there is text there currently and if so...
12
by: swingingming | last post by:
Hi, in the NorthWind sample database, when clicking on the next navigation button on the new order record with nothing on the subform (order details), we got an order with nothing ordered. How can...
2
by: Carl Gilbert | last post by:
Hi I have a math kinda problem where I'm trying to split some lines when two or more lines connect two shapes. The reason I am doing this is to make it clear that there are multiple lines...
5
by: Wicksy | last post by:
Hi all. I have a VB.NET app with a loop running that is continually managing a number of threads AND updating a ListView object depending on the results of the worker threads. The problem I...
1
by: Rich | last post by:
I have a solution that is in development under VS2003 and has been 'ported' to VS2005. The painful experience of running this newer version of VS revolves around one form. This form is very dense...
2
by: Diogo Alves - Software Developer | last post by:
Greetings I would like to knowhow can I put a sliding panel... I've done this: if (panel1.Width < 300) { while (panel1.Width < 300) { panel1.Width = panel1.Width + 40;
3
by: Mark | last post by:
Is there a way to just move the field values and not the field descriptions within a form in design view? I try to grab just those values and it takes the descriptions with it. Some field names are...
2
by: Ron | last post by:
I have this weird problem...I have a custom composited control written in C# comprising of a label and a textbox (in an assembly) If I import the control into a C# Win Forms project and place...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.