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

Resolution Friendly App.

Ali Rizwan
925 512MB
Hi all,
i m having a problem i have made my app in 1152 x 864 resolution. Now i want to make it resolution friendly the only problem i m having is with Start menu, and other menus. If user sets the screen resolution to 800x600 the start menu doesnot appears full. Some of contents hided...
Plz give some suggestions.

Thanx
>> ALI <<
Jun 8 '08 #1
4 1303
vdraceil
236 100+
Hi,look whether the link below is of some help..
http://bytes.com/forum/thread766616-resolution+VB.html
Jun 8 '08 #2
jamesd0142
469 256MB
Just forget trying to use the API to change the display mode. Instead:

1. Add a COM reference to 'DirectX 7 for Visual Basic Type library'

2. At the top of your code for your main form, before the class declaration, add 'Imports DxVbLib'

3. After the class declaration, add:

Dim dx as New DirectX7

Dim dd as DirectDraw7

4. Add the following code to your Form_Load event handler:

dd=dx.DirectDrawCreate("")

dd.setDisplayMode(800,600,16,0,CONST_DDSDMFLAGS.DD SDM_DEFAULT)

Note: Change '800' to the desired width of the display mode, '600' should be the height, and '16' should be the color depth.

Example



Imports DxVBLib

Public Class frmMain

Dim dx As New DirectX7

Dim dd As DirectDraw7

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Me.Show()

dd = dx.DirectDrawCreate("")

dim Height as Integer

dim Width as Integer

dim Depth as Integer

Height=600 ' Change this to the correct number

Width=800 ' Change this to the correct number

Depth=16 ' Change this to the correct number

dd.SetDisplayMode(Height, Width, Depth, 0, CONST_DDSDMFLAGS.DDSDM_DEFAULT)

End Sub

End Class



SOURCE: http://forums.msdn.microsoft.com/en-US/vbgeneral/thread/347be7c2-3851-4775-bad5-4b9b7cd06677/
Jun 9 '08 #3
Ali Rizwan
925 512MB
Just forget trying to use the API to change the display mode. Instead:

1. Add a COM reference to 'DirectX 7 for Visual Basic Type library'

2. At the top of your code for your main form, before the class declaration, add 'Imports DxVbLib'

3. After the class declaration, add:

Dim dx as New DirectX7

Dim dd as DirectDraw7

4. Add the following code to your Form_Load event handler:

dd=dx.DirectDrawCreate("")

dd.setDisplayMode(800,600,16,0,CONST_DDSDMFLAGS.DD SDM_DEFAULT)

Note: Change '800' to the desired width of the display mode, '600' should be the height, and '16' should be the color depth.

Example



Imports DxVBLib

Public Class frmMain

Dim dx As New DirectX7

Dim dd As DirectDraw7

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Me.Show()

dd = dx.DirectDrawCreate("")

dim Height as Integer

dim Width as Integer

dim Depth as Integer

Height=600 ' Change this to the correct number

Width=800 ' Change this to the correct number

Depth=16 ' Change this to the correct number

dd.SetDisplayMode(Height, Width, Depth, 0, CONST_DDSDMFLAGS.DDSDM_DEFAULT)

End Sub

End Class



SOURCE: http://forums.msdn.microsoft.com/en-US/vbgeneral/thread/347be7c2-3851-4775-bad5-4b9b7cd06677/
Thanx a lot...
I was using API to change the screen resolution..
Now i think i should change it by direcx.

Thanx
>> ALI <<
Jun 12 '08 #4
vdraceil
236 100+
Can anyone explain me-what is DirectX??
Jun 14 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard...
2
by: Michael Evans | last post by:
First, we rely on a stable update rate so that our physics and dynamics calculations and integrations are based on a known interval and therefore are true-to-life. Second, the graphics positions...
3
by: Michael Evans | last post by:
Has anyone come across a way to sleep (suspend execution of current process while releasing CPU resources in the meantime) for less than a millisecond in Windows? I know it has been done by third...
4
by: Matt Mercer | last post by:
Hi, I have a asp .net/VB web app that does the typical submitting and retrieving from a SQL database. I am lost as to how I should create a print friendly page for the data. Here is the...
7
by: tim | last post by:
can someone tell me which function returns the screen resolution in java script?
5
by: Maxi | last post by:
I have a 30X16 cells table in my html page. Table height and width are set to 100%. I have set size of every cell inside the table to 24 pixel. When I open the html page in maximize state in...
6
by: Sandy Pittendrigh | last post by:
I have a fishing related site with a billion photos, where 600 pixels as a maximum photo width looks OK at both low resolution and high resolution, but spectacular in neither. Browser stats sites...
1
by: Dave Rado | last post by:
Hi A while ago I discovered a way of creating css pseudo-frames, that offer users the important benefits of real frames (i.e. the navigation remains visible when you scroll down the page), but...
15
by: Prisoner at War | last post by:
Okay, I'd like to create a print-friendly website, so I've been reading up on how to create print-friendly pages (without duplicating my site, of course, by having separate versions of each...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.