473,657 Members | 2,585 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem adding Tab control to a form

Hi All,

I'm running MSDE 2002, ver. 7.0.9466 with Net Framework 1.0, ver. 1.0.3705
over Win2000ProSP4.

I created a new Visual C# project using the Windows Application template.

I'm trying to create a form (or dialog, I don't care which, for the moment)
which has a vertical splitter with the left half containing a few tabbed
pages and the right half a Rich Text Edit control.

I added a Panel and docked it to the left and added the TabControl to the
panel, along with a couple of tabs. I added a Splitter, which was generated
to right of the panel. I added the Rich Text Edit control to the right of
the splitter and gave it Fill docking.

That worked pretty well except that the tab control did not occupy the full
panel: it was docked to the lower right corner of the panel.

How can I correct this? Are there some patches I should be adding to my
configuration?

--
TIA,
Richard

640K ought to be enough for anybody.
Bill Gates, 1981
Nov 15 '05 #1
2 2153
Hi All,

I got one solution that seems to work. I commented out one generated code
line and substituted another as follows:
// this.tabControl 1.Location = new System.Drawing. Point(80, 280); // RLM

this.tabControl 1.Dock = System.Windows. Forms.DockStyle .Fill; // RLM

These changes were made in InitializeCompo nent, which should be proper,
right? That is, they shouldn't confuse the code generator nor get replaced
by future use of the GUI creation mechanism, right?
BTW, why wasn't the Dock property listed in the tabControl properties list?

Regards,
Richard

"Richard Muller" <Ri************ ******@comcast. net> wrote in message
news:eO******** ******@TK2MSFTN GP10.phx.gbl...
Hi All,

I'm running MSDE 2002, ver. 7.0.9466 with Net Framework 1.0, ver. 1.0.3705
over Win2000ProSP4.

I created a new Visual C# project using the Windows Application template.

I'm trying to create a form (or dialog, I don't care which, for the moment) which has a vertical splitter with the left half containing a few tabbed
pages and the right half a Rich Text Edit control.

I added a Panel and docked it to the left and added the TabControl to the
panel, along with a couple of tabs. I added a Splitter, which was generated to right of the panel. I added the Rich Text Edit control to the right of
the splitter and gave it Fill docking.

That worked pretty well except that the tab control did not occupy the full panel: it was docked to the lower right corner of the panel.

How can I correct this? Are there some patches I should be adding to my
configuration?

--
TIA,
Richard

640K ought to be enough for anybody.
Bill Gates, 1981

Nov 15 '05 #2
The Properties frame was too small, so I got fooled into thinking there was
only one or two properties. I just realized that and discovered, happily,
that there was a Dock property that I could have clicked, and which is set
to "Fill" as a consequence of my manual code changes. Oh well, live and
learn.
Nov 15 '05 #3

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

Similar topics

7
6518
by: Mike | last post by:
Hi! I posted this question in browser_ctl group as well but got no results. I have a form with embedded WebBrowser. Upon clicking on a link in the embedded webbrowser that calls JavaScript's window.open() call where I pass different width, height, top, left and other parameters, I open a new form of the same type as the original. I noticed that the webbrowser in the newly opened form is shifted to the right and bottom leaving gray areas...
6
7003
by: Robin Bonin | last post by:
In my user contol I am creating a set of dropdownlists. Each list is created based on input from the other lists. The problem I am having is setting the selected index on the lists. If someone changes box1, I want to set the selected index in box2 = 0. When I do this, I dont get an error, but when the page loads, it still has the selected value and not 0. It seems that it is getting the selected value from the viewstate
3
2339
by: Ankit Aneja | last post by:
I have a strange situation and I have no idea how to solve this. Its a Recruitment Search Page,in the Admin Page, for every button click event the Admin Person has to create a checkbox on the users page. So whenever the Admin person comes to know about the new category in the market he will be adding as different Sub-Categories for example ABAP, BDC etc..etc.. on every click event as Checkboxes. And these controls(checkboxes) should remain...
10
4008
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the application. What should happen, is that the main MDI form should close, taking the child forms with it. There is code to loop through the child forms, remove the controls on each of them, and then close the form, but this code should execute only...
0
2948
by: Pawan Narula via DotNetMonster.com | last post by:
hi all, i'm using VB.NET and trying to code for contact management in a tree. all my contacts r saved in a text file and my C dll reads them one by one and sends to VB callback in a sync mode thread. so far so good. all contacts r added properly. now when another login adds me in his contact, i recv a subscription, so i popup a form and ask for accept/reject. this all happens in a separate thread. popup form gets opened and choice is...
13
3931
by: Lee Newson | last post by:
Hi, I have just written my first application using VB.NET. The app works fine when i am running it within .NET for debugging purposes, however when i try to run the app from the .exe file that .NET creates i get the following error message: "An unhandled exception of type 'System.IO.FileNotFoundException' occurred in VisioTimeline.exe
7
2452
by: Dino Buljubasic | last post by:
Hi, I am using C# 2.0 (VS2005) to build my user control that contains a number of dynamically loaded ListViews. ListViewItems have their ForeColor properties set to either black or blue to distinguish between ListViewItems. As long as no other application window (i.e. word or calculator, or ....) goes over my running form, ForeColor properties or each ListViewItem stays black or blue as intended.
7
1770
by: Trickynick1001 | last post by:
Hi, a newbie here. I don't have a real firm grasp on the idea of Javascript, as I'm used to programming in Qbasic and C. I'm not used to OOP. Anyway, I really don't have any idea what the problem is with this code, it just simply won't work properly. Some of the functions aren't done, but the main one gives me a Not a Number message in the text box where the calculations are supposed to come up. I tried to use a parseInt on my stuff,...
3
5161
by: Greg | last post by:
This works properly: 1. Create a new Form and set it's size to 229, 474. 2. Drag a Panel to the form and set the following properties: Size = 216, 438 Location = 3,1 Anchor = Top, Bottom 3. Add a PictureBox control to the top of the panel and set the following
9
9682
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a master-child link to the first subform. subform2 - Master Field: subTrainingModule.Form!TrainingModuleTopicSK Child Field: TrainingModuleTopicSK
0
8310
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
8827
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...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7333
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6167
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
5632
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();...
1
2731
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
1957
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1620
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.