vb6 - Changes to a dialog wont appear when i run it in Visual Basic using VB Editor 6.0 -
I have this huge VB project that I got from any one. I want to add a check box to this in a dialog, so I opened the main 2.frm and added the check box using the IDE. But now when I run the application, the size of the dialog is changed to its original size so a new check box is displayed which is below. I know that it means that somewhere in the code the size of the dialog box can change, but I've scanned the code and found nothing. Where dialog is being made it is being done:
Main2.vsCodeOptions.Left = 10 Main2.vsCodeOptions.Top = 0
Main2.Move main.Left + (Main with - main 2 bird) \ 2, main. Top + (Main Highlight - Main 2. High) \ 2, 3900, 5010 Main 2. Vsi.port.vijay = false main 2.VSAlload.Visible = False Main2.VsrepPrt.Visible = false Main2.VSAbout.Visible = False Main2.vsCodeOptions.Visible = True main2.Left = main.Left + (main .Width - Main2.Width) \ 2 Main2.Top = main.Top + (Main Highlight - Main2.Hight) \ 2 'Use this code to keep the form above in the form module: Set Windowopos Main 2. HWD, HWTOPMOST, Main 2. Left, Main 2. Top, 0, 0, SWP_NOMOVE + SWP_NOSIZE
Another thing I am new to VB and VB editor is that I want to move all the controls in a dialogue collectively I have to choose one method one by one, but I want to select all and then move them to make room for new dialogue -
thanks
The first line of your code snippet - does it not set the size of the main 2 Does it? Up to 3900 x 5010? And then a few lines later you take the form again (for the same reason) for some good reason.
I'm throwing away everything - are they? Have you typed it or pasted it?
Comments
Post a Comment