screen resolutins

i developed a vb.net windows application in
(1024*768 resolution).But i want to run this application in
(800*600 resolution). How can i do it?

Comments

  • seancampbellseancampbell Pennsylvania, USA
    : i developed a vb.net windows application in
    : (1024*768 resolution).But i want to run this application in
    : (800*600 resolution). How can i do it?
    :

    Is your Vb.Net application a form? In that case you would simply reorganize the objects to fit into a 800x600 size... you can use Anchor and Dock properties of your Windows.Forms controls to make the sizes change based on the size of the form.

    I hope this helps, maybe with some more description I could help more.
    Sean Campbell
  • : : i developed a vb.net windows application in
    : : (1024*768 resolution).But i want to run this application in
    : : (800*600 resolution). How can i do it?
    : :
    :
    : Is your Vb.Net application a form? In that case you would simply
    : reorganize the objects to fit into a 800x600 size... you can use
    : Anchor and Dock properties of your Windows.Forms controls to make
    : the sizes change based on the size of the form.
    :
    : I hope this helps, maybe with some more description I could help
    : more.
    : Sean Campbell

    I posted the answer to my problem a few days ago, this worked for me.
    I allows you set the screen to any size, (depending on your graphics card), the only problem is that you get a 'refresh flicker' at the beginning of your app.

    I might have the answer. I used the DirectX 7.0 driver that
    comes with VB.NET 2005

    First: Add the Reference to DirectX - and then:
    [code]
    Imports DxVBLib
    [/code]

    Then;
    [code]
    Dim dx As New DirectX7
    Dim dd As DirectDraw7
    [/code]

    and
    [code]
    '' Set the screen size bigger, if it is to small
    dd = dx.DirectDrawCreate("")
    If Screen.PrimaryScreen.WorkingArea.Width < 1000 Then
    dd.SetDisplayMode(1152, 864, 16, 0, CONST_DDSDMFLAGS.DDSDM_DEFAULT)'' This last bit can be 0
    End If
    Me.WindowState = FormWindowState.Normal
    Me.WindowState = FormWindowState.Maximized
    Me.Refresh()
    [/code]

    I had to use the 2 Windowstates, to maximize the screen after the start.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories