How to fit C# application in every resolution [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
i want to know how to fit c# application in every Resolution my c# application open in my computer is perfect but when i install this application on my client machine so it's show half application.
What I have tried:
this.WindowState = FormWindowState.Maximized;
this.Location = new Point(0, 0);
this.Size = Screen.PrimaryScreen.WorkingArea.Size;

This won't work for all, you need to desing your application responsive. You need to use panels, groupboxes and objects like these and you need to anchor these objects inside your form, then you need to get user screen resolution and set it for your application.
Summary: this code may works but not not perfect for all resolution. You absoluty need anchoring objects. Desktop application sometimes have good pain with this matter.

Related

Advanced Terminal on Windows Forms

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 hours ago.
Improve this question
I want to do the terminal (just command line / powershell / ssh), where user can work as usual, but also I want a handler which can control and impact on everything that is happening in terminal (input and output) and perform some actions with interface.
What is a better approach to implement it with Windows Forms?
I tried to use https://github.com/dwmkerr/consolecontrol, but can't find how to make normal terminal (where arrows, tab and color work)?
Many thanks.

Display an another application's window in a WPF application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to display another application's window that is running concurrently in my WPF application. Like a live display, I need to be able to see real-time changes to the window (in this case, Chrome's) even if it is hidden behind other windows while my WPF application is running. It's kind of like the image below:
I understand I have to get the window's handle first, but how would I be able to display an external window like this? Is there a way I can use the Win32 API for this function?
Try looking into the Frame element (documentation here).
<Frame Source="https://www.google.com"/>

How to show a WPF Window in front of a UWP app in fullscreen mode? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm looking for a way to make a WPF window stay on top of a fullscreen UWP app. I found numerous mentions of Window.Topmost, but it only works with a windowed app.
For a little bit of context, the idea is to create a virtual keyboard that I could launch from the app (with a brokered runtime component). I do know that there are some keyboard implementations, but they don't do the trick since they basically edit the textboxes themselves (and I need it to be able to also interact with WebViews).
Thanks :)

New button on top corner of any Windows App C# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Somebody know how to add a button on top right corner of any windows app loaded?, and manage a controller to interacting with them.
Really what I want is a method to set the property "Always on top" of any form.
I appreciate any help to do this posible... :)
(my programing language is c#)
It is possible to do so but prepare yourself to get dirty. Really dirty.
See this CodeProject article: Add Your Control On Top Another Application. Basically that guy is drawing a kind of custom control into another app's title bar.
In addition to this, this article about global system hooks might get handy for you as well.

How to programmatically create list of buttons that fill client browser based on its resolution in asp.net [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am new to ASP.net web application development. I try to create a page that contains a number of buttons (based on the data from database), all the buttons have the same size, and fill the client browser (no scroll bars on either side).
The questions that I have are:
How can I get client browser's resolution? (By jQuery)
Is the size of each button will be Resolution / Number of Buttons?
Thanks
I recommend learning a templating framework like Bootstrap. It allows you to quickly develop grid-based web pages that you can easily throw a customized template on.

Categories