473,788 Members | 2,897 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.publi c.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 2286

(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.publi c.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
1231
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 different user control also bound in a similar manner with a grid lsit used to select the current record. There is also a tab on this form with another instance of the first user control that can be set to a different record then is showing on the...
2
2509
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 move to the end and input the new text. Also, would like to know if I can change the justification on each line of text as it's entered. i.e. Company Name, address, city state and zip would be centered and all the
12
12963
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 we prevent this from happening? Thanks. ming
2
3114
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 connecting the two shapes. http://www.blackwaterbadgers.co.uk/image1.bmp Image 1 shows how if you have a line between two shapes, the line is straight. if you have more than one line, the lines will start overlapping
5
2011
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 have is that if I try to move (drag) the form's window around the screen, or to scroll the ListView control, the loop pauses until I stop dragging or scrolling. I want the loop to continue whilst I'm doing trivial things like moving the window...
1
1303
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 in controls and has difficulty in VS2003 when changes were being made to the form in question ( as if the entire code behind was being rewritten adding the new lines of code behind -- albiet very predictable and stable ). The experience is VS2005...
2
9379
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
3047
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 a bit long and are running into the values. I just want to move the values over a few grids so I can see the description. There has to be a way. Thanks
2
1947
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 several of the controls on a page everything is fine...all of the positioning properties are correctly serialized to the designer code and the controls remain in their designtime positions. HOWEVER if I import the custom control into VB ..Net win...
0
9656
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10370
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10113
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7519
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5402
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4074
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 we have to send another system
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.