Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem setting Form.height above 1000px on displays with 1024x768 (.Net framework 1.1)

0 views
Skip to first unread message

Mikkel Faarup

unread,
Aug 21, 2003, 3:29:20 AM8/21/03
to
Hi All

I am are experiencing difficulties setting Windows.Form heights above
around 1000px on screens with the resolution set to 1024x768.
The form is simply cut off and a scrollbar is set.
The form is inside a mainform and consists of a tabpage-control -
these tabbed pages should be shown in full length/height and not set
scrollable - the mainform should scroll down to view the tabbed pages!

There is no problem in bigger resolutions, but on the target laptop it
is not satisfactory.
Here you get an outer scrollbar + an inner scrollbar for the tabbed
page :o(

Any help greatly appreciated.

Best regards

Mikkel Faarup
Consultant
Cap Gemini Denmark

Vijaye Raji

unread,
Aug 21, 2003, 6:46:10 AM8/21/03
to
If you want to disable the automatic scroll-bars, set AutoScroll to false.
But why would you want to have such a big window... Big windows are not
very portable.

- VJ


"Mikkel Faarup" <mikkel...@capgemini.dk> wrote in message
news:75f3945c.03082...@posting.google.com...

Mikkel Faarup

unread,
Aug 21, 2003, 7:43:19 AM8/21/03
to
Sorry for the bad explanation... and thanx for answering.

I want a small outer-window with the ability to browse/scroll a larger
form inside.
This inner document form is limited to around 1000px and therefor
requires its own scrollbar - resulting in 2 scrollbars...

The inner form is a tabbed page control.

Any ideas?

Br
Mikkel

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Mikkel Faarup

unread,
Aug 21, 2003, 8:40:52 AM8/21/03
to

Vijaye Raji

unread,
Aug 21, 2003, 2:45:04 PM8/21/03
to
I assume this is during Design Time.

Although not recommended, I'd suggest you open up the Code view and look
under "InitializeComponent ()" method. Look for the tab page control (say,
tabControl1) and set its size manually - "this.tabControl1.Size = new Size
(400, 1000);"

This way, you work around designer's limitation.

If it's during run time, you can set the size in the constructor of the form
(after InitializeComponent ()) call.


"Mikkel Faarup" <mikkel...@capgemini.dk> wrote in message
news:75f3945c.03082...@posting.google.com...

0 new messages