Jump to content
Son zamanlarda artan kullanıcı hesap hırsızlıkları sebebiyle tüm kullanıcılara şifre sıfırlama maili gönderilmiştir. Lütfen güveli şifreler seçiniz. Mevcut e-mail adresinize erişemiyorsanız, en aşağıdaki destek linkinden bize ulaşınız. ×

C# Uygulamasında Çözünürlüğe Göre Boyutlandırma


cerenpc
 Share

Recommended Posts

kod aracılığı ile tam ekran yapmak istiyorsanız 

            Location = new Point(0, 0);            
            Size = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);

ya da

           WindowState = FormWindowState.Maximized;
Link to comment
Share on other sites

  1. Rectangle resolution = Screen.PrimaryScreen.Bounds;
  2.             this.Width = resolution.Width;
  3.             this.Height = resolution.Height;

Kodu ile Ana ekranı küçültüp büyütebiliyoruz. Ekranın içinde bulunan Componentler var 5-6 (lookupedit buton vb.) tane o componentlerinde ekrana sığıp büyümesini otomatik olarak nasıl ayarlayabilirim.

Link to comment
Share on other sites

 

  1. Rectangle resolution = Screen.PrimaryScreen.Bounds;
  2.             this.Width = resolution.Width;
  3.             this.Height = resolution.Height;

Kodu ile Ana ekranı küçültüp büyütebiliyoruz. Ekranın içinde bulunan Componentler var 5-6 (lookupedit buton vb.) tane o componentlerinde ekrana sığıp büyümesini otomatik olarak nasıl ayarlayabilirim.

 

 

c# wpf le bunu gridlerle cok rahat yaparsın wpf gird mantıgını ögrenmen lazım ama :) biliyorsan problem yok

Link to comment
Share on other sites

bence Anchor ile de yapılabilir

 

screenshot_172.png

 

Kontrolün hangi yönlere doğru boyutlandırılmasını istiyorsanız o bölümleri seçiyorsunuz, bu kadar.

 

kullanımı anlamanız açısından küçük bir uygulama hazırladım:

https://yadi.sk/d/PPIZDorQkw4cN
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...