473,385 Members | 1,325 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,385 software developers and data experts.

automatically size open explorer window? (xp)

has anyone done this from code?

i just want to automatically size all open and non-mimized windows to
the specified height/width (in twips?)

maybe include a utility that reports the height/width in twips or
whatever of the topmost open non-mimized window

Nov 30 '05 #1
5 2311
Mad,

Twips was a one time VB6 idea.

It is again pixels however at least I don't understand what you want to do
automaticly to what height?.

Cor
Nov 30 '05 #2
"Mad Scientist Jr" <us*************@yahoo.com> schrieb:
i just want to automatically size all open and non-mimized windows to
the specified height/width (in twips?)


P/invoke: 'EnumWindows' + 'MoveWindow'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 30 '05 #3
"Cor Ligthert [MVP]" <no************@planet.nl> schrieb:
Twips was a one time VB6 idea.


Well, twips were actually a good idea because they allowed a certain level
of device-intependence...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 30 '05 #4
Thanks for your replies.

Can you give a concrete example of below? I don't care if it uses
twips, pixels, whatever. Just some height/width unit.

I am looking for something to do something like this

1. minimize all windows except the one you want the size of

2. run "Get Size" utility, which has code like:
myHeight = fnGetHeightOfTopWindow
myWidth = fnGetWidthOfTopWindow
MsgBox "height=" & myheight & vbcrlf & "width=" & mywidth

3. minimize all windows except the ones you want resized

4. run "Set size" utility - it prompts for height/width, you type the
numbers, click OK, and it sets the height/width of all open windows to
that

Herfried K. Wagner [MVP] wrote:
"Mad Scientist Jr" <us*************@yahoo.com> schrieb:
i just want to automatically size all open and non-mimized windows to
the specified height/width (in twips?)


P/invoke: 'EnumWindows' + 'MoveWindow'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Nov 30 '05 #5
Herfried,
Twips was a one time VB6 idea.


Well, twips were actually a good idea because they allowed a certain level
of device-intependence...

What did I write this time wrong about VB6 in your opinion.

:-)))

Cor
Nov 30 '05 #6

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

Similar topics

1
by: Curzio Basso | last post by:
Hi all, I have a problem for which I wasn't able to find an answer anywhere else, maybe someone can give me a hint... I designed with XRCed a small GUI (the code is at the bottom of the...
0
by: Tom Dacon | last post by:
"Open .Net Command Window Here" context menu for Windows Explorer: The reg file described below adds a new menu item to Windows Explorer's context menu when you right-click over a folder (or the...
10
by: aagee | last post by:
Hi all Can someone clue me in on this? I just noticed that following doesn't work as it used to: window.open(... "fullscreen=yes" ...) Used to get a window that occupied the whole screen;...
7
by: Mark | last post by:
Hello; Here is what I wish to do: Click on a PDF link and have it open as a full screen window - not as a predetermined size. Sounds simple? I want to run the command from within the...
3
by: Stephen V | last post by:
Can anyone help me out with this problem. I would like to redirect/ go to another php page when my SQL insertion is done and also send a variable at the same time. the idea is, to come on my...
0
by: Paul Brady | last post by:
I volunteer at a youth ministry agency and help them with their student database. They have two computers, both running Windows XP. Both have Office 2002 installed without Access, except that...
1
Ali Rizwan
by: Ali Rizwan | last post by:
Hi all, I was thinking my desktop application a bit easy but when i try to list the open window i got a trouble. I can list my own apps windows but cant list other windows. For Example:: If i run...
4
by: terrybell105 | last post by:
Is there a way I can open Windows Explorer at a specific folder, size the window, and position it in relation to the (already opened) Access window? I have a client who wants this capability. It...
1
by: SilverGS | last post by:
I want to automatically open a Command Window from the Startup folder in Windows XP. right now after XP starts, I click on Start run, cmd and then when the command window is open I type in a bunch...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.