473,406 Members | 2,633 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,406 software developers and data experts.

Dialog Form CutOff

I have a form that I show as a Dialog but before I show it, I reset the
form's location. I have the StartPostion set to Manual. If I have
ControlBox set to True, all works ok but if I set the form's Controlbox to
False in the Design Properties window then run my app, the bottom part of the
form doesn't show.

Why is this happening? I can reset the form's controlbox property to False
in runtime code just before I show the form and all works well but if I set
it false in the Design Mode, it doesn't show the bottom 20 or 30 so pixel
lines.

--
Dennis in Houston
Nov 21 '05 #1
6 1760
Dennis,

I thought that I made some code to try what you told and had not that
behaviour.

Can you make now a simple sample to show where/how it is happening and let
us try that.

In the way you are asking this now to us, gives only for us to endless
work.

Just my thought,

Cor
Nov 21 '05 #2
Cor, I ask this question again because even though I did find out how to
resolve the problem no one gave me a reason why. Here's how to reproduce it:

Create a new Windows Form Project (Form1)
Size the Form at least 400 x 400
Add a Button (Button1) to Form1
Add a new form to the project (Form2)
Set Form2 Properties in the Design Property Window to:
BorderStyle = FixedDialog
ControlBox = False
StartPosition = Manual
Add a Button (Button1) to Form2 so it's bottom is at the bottom of the Form2

In the Button1 on Form1, add the following code in the button click event:

Dim f as new Form2
f.Left = 100
f.Right = 200
f.ShowDialog

Run the program and click on Button1 on Form1
You will see most of the Button1 on Form2 is cut off and not showing!

However, if you set the ControlBox Property to True in the Design Properties
Window, then add code in Button1 of Form1;

Dim f as new Form2
f.ControlBox = False
f.Left = 100
f.Right = 200
f.ShowDialog
Run the program again and you will see that all of Form2 is showing ok.

"Cor Ligthert" wrote:
Dennis,

I thought that I made some code to try what you told and had not that
behaviour.

Can you make now a simple sample to show where/how it is happening and let
us try that.

In the way you are asking this now to us, gives only for us to endless
work.

Just my thought,

Cor

Nov 21 '05 #3
Dennis,

You told right = 200 that does not work for me.

However I saw a half button, it seems that it with the designer keeps no
track that the form is slightly smaller, however what is the problem with
that, just set it 3mm higher?

Cor
Nov 21 '05 #4
Sorry, I meant TOP, not Right. Anyway, you can set the button a bit higher
but also leave the ControlBox to True in the Designer Properties WIndow then
set Controlbox to False in the runtime code. This works to show all of the
form.

"Cor Ligthert" wrote:
Dennis,

You told right = 200 that does not work for me.

However I saw a half button, it seems that it with the designer keeps no
track that the form is slightly smaller, however what is the problem with
that, just set it 3mm higher?

Cor

Nov 21 '05 #5
Dennis,

I think that you can call this a small bug. However very small.

Cor
Nov 21 '05 #6
It may be a small bug but it cost me two precious Saturday Afternoons trying
to sort it out which is the only time I get to work on VB.Net!

"Cor Ligthert" wrote:
Dennis,

I think that you can call this a small bug. However very small.

Cor

Nov 21 '05 #7

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

Similar topics

1
by: Dalan | last post by:
I designed a dialog box with a combo to select individual vendors from a form and its related data for print ouput. Though the dialog box seems to work okay, I apparently do not have the filtering...
4
by: ronenk | last post by:
I have this code to load an authentication form once my app is loaded. I want the authentication form to be closed if a user is authenticated successfully and to give the option to close app on his...
14
by: Simon Abolnar | last post by:
I would like to know how to open child form from dialog form. Thanks for help! Simon
2
by: Kiran | last post by:
Hello all, I am using a tree to display stuff, and it is constantly updated, but what I have noticed is in the lowest level, there is clearly noticable cutoff of the text I place there. The cutoff...
1
by: dan.c.roth | last post by:
oForm.Close() vs this.Close() in a modal dialog. oFrom.Close() calls Form.Dispose() but this.Close() ,say in the click event of the Form, does not. I can think of the reason for this but is...
11
by: Zytan | last post by:
I have created a new form from the main form. When I close the main form with the 'x' close button, its Form.FormClosed event is run, but not the dialog's. Is this normal? It is ok /...
1
by: mikeh3275 | last post by:
I'm new to developing in jQuery, so I'm probably doing this wrong. I'm loading a form into a modal dialog box and I'm trying to assign a click event to the button in the form, but I can't seem to...
11
by: VK | last post by:
In the continuation of the discussion at "Making Site Opaque -- This Strategy Feasible?" and my comment at http://groups.google.com/group/comp.lang.javascript/msg/b515a4408680e8e2 I have...
9
by: Gord | last post by:
In VB6, a custom dialog can be easily created by adding a new form, adding whatever controls you like, sizing it as you like, adding code and then just loading/unloading it whenever you like....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.