|
Please read your Thread completly.
Here are the postings of Eddy and Dave which answers the question and delivers a (work-around) solution
|
|
|
|
|
Any WinForm tutorial using the TabControl would do. Alternatively, you could scroll the contents as explained here[^].
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
What Screen-Size do you have (in your System) ?
|
|
|
|
|
|
OK ... that is what I supposed.
Your Screen-Resolution defines your maximum Form-Size.
modified 23-Jun-15 13:46pm.
|
|
|
|
|
The maximum visible size
We do have scrollbars, but I still prefer tabs.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
No no ... the Size-Property itself is limited.
Please try it by yourself ... but I have no Idea or Solution for this behavior ...
|
|
|
|
|
It's limited by the size of the primary screen on your dev machine. I know - it's stupid.
This[^] is the only workaround I know of. It aint pretty but it's cheaper than buys a super large monitor for your dev machine.
|
|
|
|
|
Thanks for your Link.
It's good to know ... but that is very very poor (a Panel is a Container like the directly integrated Container inside the Form - but if that works ... )
I think, the question is answered know ...
|
|
|
|
|
I'm just looking at the property in ILSpy, I do not see the limitation. Yet, according to the documentation[^], you are right and I stand corrected
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
@Eddy:
Thank you for this Link.
I searched for something like this, which could confirm what I've allready supposed.
@Dave:
I agree with you - that is stupid ...
modified 24-Jun-15 14:20pm.
|
|
|
|
|
Hi Eddy,
what do you wanna me to do, please suggest
|
|
|
|
|
I'd recommend to look into tabpages (find an example) and into scrolling, and compare the two solutions in a new, empty project. That way you can decide which solution would fit/look/work best in your project.
It is not something someone here can decide; it would depend on what you or your customer wants.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Just how any controls are you sticking on the form?? You do realize that having and excessive number of controls on the form will cause performance problems when you try to create an instance of the form and show it?
|
|
|
|
|
Hi
If you want to increase the height of your form , I think you need to change the configuration or the resolution of your monitor on your desktop or laptops. because I think the height of the form is based on computer resolution.
hope help my suggestion
Thanks and God Bless
Face
|
|
|
|
|
Hello Everybody,
I'm Using VB and I have a problem in my project I set my home page ismdicontainer and set that code to open new form in it
Dim ggo As New AddNewItem
ggo.MdiParent = Me
ggo.Show()
but the problem is when I'm open the child form I'm feeling it load slowly or load Jerk may be and Note that I putted approximately 20 Textbox and 20 label , but that problem not show and I feeling everything is fine when I'm not open form in my home page and also when I'm Delete at lest 17 textbox and 17 label. I hope to understand my problem I searched for that problem many time but I can't find anything about that issue.
I hope to find any help and thank you.
|
|
|
|
|
If you're trying to say that creating and opening your form is slow, there really isn't enough information to tell you what's wrong.
First, from what little your code says, you should not be using MDI for this form. It's a transient form that should be blocking, waiting for input before using another part of your application, a dialog. This is because, the way you apparently coded this, is your user can always go back to the control that triggered this AddNewItem for and hit that button or whatever control and launch another form, and another, and another, without ever dismissing the previous AddNewItem form.
I get the feeling that you're using MDI for something it wasn't designed for.
Just putting 20 controls on a form shouldn't make it take a long time for it to show up. There's more to this than your describing. Is the new form doing something in its constructor? Is there a ton of fields that have to be initialized? What else is this form doing?
|
|
|
|
|
|
OK, that doesn't show anything useful.
I can tell you it's NOT a slow loading problem. If it was, you wouldn't be able to move the forms around at all.
There is no telling what the problem is without seeing the code for the form being created.
(Don't even think of uploading it somewhere. Nobody is going to download it.)
|
|
|
|
|
Yes, after seeing the video I see that Windows is not a video-game. It does flicker sometimes when it is painting controls.
You can "stop" Windows from drawing the screen altogether[^], which keeps the last image until something moves over it, leaving a white trail. Setting your form to be double-buffered[^] might help also.
And yes, it will still flicker a lil' bit. If you want "instant" controls, you'd have to talk to the WinAPI directly. Creating a textbox in a window with a button is fast, but rather complex to manage.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hello !
On my form I have a button that has a specific function and a specific caption.
But when the user press the shift button , I want to change the caption of this button.
I handle the Form.Keydown , and using this I can do this.
But the problem is that if the user has edited a textbox , or has focused another control , the Form.keydown is not fired.Of course I can handle the control.keydown , but I have so many controls in the form that this way seems not very comfortable.
So is there any way in general to detect that the shift key is pressed ?
Thank you !
|
|
|
|
|
On your form, set the KeyPreview property to True.
|
|
|
|
|
and after ?
What event should I use ?
Thank you !
|
|
|
|
|
The Form.Keyxxx events.
I thought you said you already had that stuff working at that level?
If you're just trying to detect the Shift key all it's own there is no event that will fire just on that key. It's a Key MODIFIER, not a real key.
|
|
|
|
|
Thank you !
Using your suggestion , the only way I've found is this :
Private Sub MyForm_KeyDown(sender As Object, e As KeyEventArgs) Handles MyBase.KeyDown, MyBase.KeyUp
If My.Computer.Keyboard.ShiftKeyDown Then
........
Else
..........
End if
End Sub
This is working, but is this correct ?
And if I want a general way ( to detect a general key ) , what is the way ?
I have a problem that I've detected now :
All the other cases are working except this :
If I press the shift key , the button caption is changed.
Keeping the shift key down , I press this button , and a MessageBox is showing.
Now I release the shift key.
But the button's caption is not changed back to default.
What can I do ?
Thank you !
modified 21-Jun-15 20:42pm.
|
|
|
|