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

Resize problem (in IDE)

My original program was targetted to Win98 when 800 x 600 was popular.

Now converted to VB2005 pro and minimum will be 1024 x 768.

I know about the autoresizing at run time but I want the form designer to be
at 1024 x768. Naturally, after conversion from VB6, it is at 800 x 600
(actually 800 x 554 or thereabouts).

Other than manually (and laboriously) moving all the controls, is there a
better way to do it?

GalenS
Feb 15 '06 #1
7 1591
"Galen Somerville" <ga***@community.nospam> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
My original program was targetted to Win98 when 800 x 600 was popular.

Now converted to VB2005 pro and minimum will be 1024 x 768.

I know about the autoresizing at run time but I want the form designer to
be at 1024 x768. Naturally, after conversion from VB6, it is at 800 x 600
(actually 800 x 554 or thereabouts).

Other than manually (and laboriously) moving all the controls, is there a
better way to do it?

GalenS


If no one else chimes in, about the only thing I can do is share a "wizard"
that I wrote to convert form and control sizes from Large Fonts (which used
to be our default - ick!) to Small Fonts... it does this by parsing the frm
files and multiplying all heights/widths * 1.25 (small fonts are 15 twips
per pixel while large fonts are 12 twips... 15/12 = 1.25). Thing is, it's
written with and used for VB6 forms only so, I imagine, you can run it, use
the '05 wizard to convert it to dotNet using a new name for the project...
when done, it'll be sitting there waiting for you to copy/paste all controls
from the "temp" project to your real project. The control names remain
unchanged so.....
--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
Feb 15 '06 #2

"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
"Galen Somerville" <ga***@community.nospam> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
My original program was targetted to Win98 when 800 x 600 was popular.

Now converted to VB2005 pro and minimum will be 1024 x 768.

I know about the autoresizing at run time but I want the form designer to
be at 1024 x768. Naturally, after conversion from VB6, it is at 800 x 600
(actually 800 x 554 or thereabouts).

Other than manually (and laboriously) moving all the controls, is there a
better way to do it?

GalenS


If no one else chimes in, about the only thing I can do is share a
"wizard" that I wrote to convert form and control sizes from Large Fonts
(which used to be our default - ick!) to Small Fonts... it does this by
parsing the frm files and multiplying all heights/widths * 1.25 (small
fonts are 15 twips per pixel while large fonts are 12 twips... 15/12 =
1.25). Thing is, it's written with and used for VB6 forms only so, I
imagine, you can run it, use the '05 wizard to convert it to dotNet using
a new name for the project... when done, it'll be sitting there waiting
for you to copy/paste all controls from the "temp" project to your real
project. The control names remain unchanged so.....
--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..

Naw, it's too late for that. already went through 100's of errors and
warnings during the conversion. And I can only test a little of the program
startup as it works with a USB proprietary device. The beta version of the
USB interface has problems which hopefully will be solved this week.

I was thinking of writing a VB6 program to go through the .vb files and
changing by 1.28 but then I would have to study the makeup of the .vb files.

And in VB6, if I make one mistake, it causes no end of problems. If you have
read my other posts you would know that an unhandled VB6 exception brings up
the VB2005 debugger and I end up back at the desktop.

GalenS
Feb 15 '06 #3
Hi GalenS,

Currently, I have no better idea to achieve this. The only thing I can do
is to go through all the .vb files and make the size larger.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Feb 16 '06 #4
"Galen Somerville" <ga***@community.nospam> wrote in message
news:OW*************@TK2MSFTNGP14.phx.gbl...
Naw, it's too late for that. already went through 100's of errors and
warnings during the conversion. And I can only test a little of the
program


But... but.... this would be the UI only. Just grab the old VB6 form, open
it in VB6, rip out all of the code, leaving the controls in place, run the
utility, convert this "UI Only" form to dotNet, open it and your current
project in separate instances of VS, copy all controls from the converted
form to the clipboard, select the new project, select all controls on the
form, hit the delete key, hit Ctrl-V to paste.... that should be it.
startup as it works with a USB proprietary device. The beta version of the
USB interface has problems which hopefully will be solved this week.

I was thinking of writing a VB6 program to go through the .vb files and
changing by 1.28 but then I would have to study the makeup of the .vb
files.
Well... if interested in my "quicky" wizard, here ya' go...
http://www.vbsight.com/zips/Resize_Form_File.zip
There's not much to it and it won't alter the original unless you want it
to. Note that there's no font scaling because I couldn't find a decent way
of finding exact font sizes (scaled TT fonts show jagged edges if not sized
to one of their "natural" sizes)
And in VB6, if I make one mistake, it causes no end of problems. If you
have read my other posts you would know that an unhandled VB6 exception
brings up the VB2005 debugger and I end up back at the desktop.

GalenS


An unhandled exception that goes from VB6 to dotNet?... of course, any
unhandled exceptions in VB6 will kill the app. It's always been that way.
fwiw, dotNet in general "causes no end of problems" here. The simplest of
samples fail to run. I gave up completely for now. Waiting until I have a
chance to wipe my drive and start from scratch (how's that for "user
experience" eh? <g>)... fwiw, I selected the option to notify MS of my usage
data, etc (can't recall the name of the option)... if they're checking my
logs, they'll see that every time I try anything at all, there's a crash and
burn involved so.... For now, I'll stick with my "Rock Solid and Blazing
Fast" VB6. Plus, the only thing better than VB6 help is VB5 help. The newer
MSDNs are nearly impossible to use (very slow/very
bloated/crash-hang-o-matic) and when/if you find what you're looking for,
the "help" is usually useless.

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
Feb 16 '06 #5
In line

"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in message
news:uP****************@TK2MSFTNGP12.phx.gbl...
"Galen Somerville" <ga***@community.nospam> wrote in message
news:OW*************@TK2MSFTNGP14.phx.gbl...
Naw, it's too late for that. already went through 100's of errors and
warnings during the conversion. And I can only test a little of the
program


But... but.... this would be the UI only. Just grab the old VB6 form, open
it in VB6, rip out all of the code, leaving the controls in place, run the
utility, convert this "UI Only" form to dotNet, open it and your current
project in separate instances of VS, copy all controls from the converted
form to the clipboard, select the new project, select all controls on the
form, hit the delete key, hit Ctrl-V to paste.... that should be it.


Almost finished with a VB6 program to parse the designer.vb files and look
for .Location, .Size and .Font lines.
Then looks for both "(" and ")" and makes the changes based on 1.28 (1.25
for fonts).
So quick and easy in VB6 !!!
startup as it works with a USB proprietary device. The beta version of
the USB interface has problems which hopefully will be solved this week.

I was thinking of writing a VB6 program to go through the .vb files and
changing by 1.28 but then I would have to study the makeup of the .vb
files.


Well... if interested in my "quicky" wizard, here ya' go...
http://www.vbsight.com/zips/Resize_Form_File.zip
There's not much to it and it won't alter the original unless you want it
to. Note that there's no font scaling because I couldn't find a decent way
of finding exact font sizes (scaled TT fonts show jagged edges if not
sized to one of their "natural" sizes)
And in VB6, if I make one mistake, it causes no end of problems. If you
have read my other posts you would know that an unhandled VB6 exception
brings up the VB2005 debugger and I end up back at the desktop.

GalenS


An unhandled exception that goes from VB6 to dotNet?... of course, any
unhandled exceptions in VB6 will kill the app. It's always been that way.
fwiw, dotNet in general "causes no end of problems" here. The simplest of
samples fail to run. I gave up completely for now. Waiting until I have a
chance to wipe my drive and start from scratch (how's that for "user
experience" eh? <g>)... fwiw, I selected the option to notify MS of my
usage data, etc (can't recall the name of the option)... if they're
checking my logs, they'll see that every time I try anything at all,
there's a crash and burn involved so.... For now, I'll stick with my "Rock
Solid and Blazing Fast" VB6. Plus, the only thing better than VB6 help is
VB5 help. The newer MSDNs are nearly impossible to use (very slow/very
bloated/crash-hang-o-matic) and when/if you find what you're looking for,
the "help" is usually useless.


Unhandled exception was bad wording. I'm in the VB6 IDE. I have "on error
goto" with an error handler to display the error info.
There's an error, POW, I'm in VB2005 error handler.

In my converted VB2005 program my guess is that it's going to crash and burn
repeatedly (after I get USB interface fixed). I would say 60% of the program
is processing Graphics.

Luckily this is on a completely different hard drive from my VB6 development
environment. I just copied one VB6 program to it for conversion experience.

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..

GalenS
Feb 16 '06 #6
"Galen Somerville" <ga***@community.nospam> wrote in message
news:OQ**************@TK2MSFTNGP12.phx.gbl...

Luckily this is on a completely different hard drive from my VB6
development environment. I just copied one VB6 program to it for
conversion experience.


In case you don't already have it.....

Free Book - Upgrading Microsoft Visual Basic 6.0 to Microsoft Visual Basic
..NET
http://msdn.microsoft.com/vbrun/stay...6/default.aspx

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
Feb 17 '06 #7

"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in message
news:OJ*************@TK2MSFTNGP15.phx.gbl...
"Galen Somerville" <ga***@community.nospam> wrote in message
news:OQ**************@TK2MSFTNGP12.phx.gbl...

Luckily this is on a completely different hard drive from my VB6
development environment. I just copied one VB6 program to it for
conversion experience.


In case you don't already have it.....

Free Book - Upgrading Microsoft Visual Basic 6.0 to Microsoft Visual Basic
.NET
http://msdn.microsoft.com/vbrun/stay...6/default.aspx

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..

Thanks. I must have hit their server at the right time. Came in solid and
almost filled my 3MB bandwidth.

Incidentally I finished and ran my Resize converter on the .Designer.vb
files. In VB2005 all of the forms were properly converted to 1024 x 768
size. No pain no strain.

I wonder if anyone else would need this capability. By just changing the two
factors, 1.28 & 1.25, you could convert up or down between any two screen
resolutions.

GalenS
Feb 18 '06 #8

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

Similar topics

10
by: Jack Addington | last post by:
I have a C# app that isn't terribly big but the entire IDE seems to be getting slower and slower. Windows take longer to open and close. The actually application and compile time is still...
0
by: Marty Cruise | last post by:
How come when I delete a row of a table I lose the ability to resize columns of that table? Does anyone else find the VS.NET IDE pretty flaky when it comes to ASP.Net GUI development?
1
by: Ricky W. Hunt | last post by:
I've done something to lose the "Description" area for the Properties window. There used to be a little section at the very bottom of the Properties Window that would give a description of whatever...
8
by: YYZ | last post by:
This is really stupid. How can you, in the forms designer, move a control 1 pixel in any direction? I know you can goto the location and change it by 1 whichever way you want, but sometimes I...
4
by: kevininstructor | last post by:
I have been given the task of giving a tour of the Visual Studio 2003 IDE to in house VB6 developers prior to them (possibly) going to professional training down the road. I feel comfortable...
31
by: darwinist | last post by:
*With manual. http://darwinist.googlepages.com/htmldesktop.html Please criticise or contribute.
1
by: | last post by:
I'm creating a user control where the size always needs to be divisible by three. In the resize event within the custom control I'm having no problem maintaining the height to be the same as the...
0
by: =?Utf-8?B?VmltYWw=?= | last post by:
Hi, We trying to build IDE like application in ASP.Net by using ASP.Net AJAX control toolkit. And the IDE should support resizing, drag and drop controls. When we place a control (like...
6
by: Tim | last post by:
I would like to create a Windows form that contains child windows that the user can move, resize, dock, and tab-dock as in the VS 2008 IDE. When a child window is dragged, a guide diamond appears....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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.