Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have been trying to resolve this from a while, but couldn't find anything useful.

Issue-1
In Windows forms application the size of a dialog boxes keeps increasing every time we try to open it.
i tried the following ways to resolve it.
-Autosize/AutoSizeMode
-Refresh,
-Static values for location and Size,
-fixed values for maximum and minimum size,

Issue-2
I am able to fix the above issue-1 using SetBounds(x,y,Width,height) but now i am facing new issue where all the fields(Radiobuttons,textbox & Button) inside dialog box keeps on increment(also tried all the above resolution for issue-2)

**Code:**
VB
Sub Frm_click()
**Frm.ShowDialog()**       //windows defined method
End Sub

Sub Frm_load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load)

*******
*****
****
End Sub


Thanks in Advance..

What I have tried:

Googled several items..
Autosize/AutoSizeMode
Refresh,


SetBounds(x,y,Width,height)
Posted
Updated 12-Nov-18 1:17am
v2
Comments
CHill60 12-Nov-18 7:18am    
Where is the code? Because what you have posted here is not VB code.
Aydin Homay 12-Nov-18 7:31am    
There is no such by-default behavior for VB as far as I know. I think there are some codes on your windows forms that causing such effect and you need to copy paste the code in here then we may find what is the problem.
Member 11889760 14-Nov-18 1:57am    
In Code i didn't find anything suspicious that should affect my windows design.


Sub Frm_click()
**Frm.ShowDialog()** //windows defined method
End Sub

Sub Frm_load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load)
****
****
' i was able to find changes in values in eventSender everytime i debug my application.

*******
*****
****
End Sub

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900