# Moving window automatically to a monitor with a specified screen resolution

N

#### nabpp

##### Guest
nabpp Asks: Moving window automatically to a monitor with a specified screen resolution
I have an application that when it loads a certain window it need to automatically move to the screen that has 1920x515 resolution. I found a way to make it work but I'd be looking for a more efficient way of doing this as clearly this is the worst approach. How can I improve this?

Code:
private void ComboBox2_Initialized(object sender, EventArgs e)
{
foreach (var screen in Screen.AllScreens)
{
// For each screen, add the screen properties to a list box.

//double top = 0;
//double left = 0;

if (ComboBox2.Items.Contains("1920"))
{

if (ComboBox2.Items.Contains("515"))
{

Properties.Settings.Default.Top = screen.Bounds.Top;
Properties.Settings.Default.Left = screen.Bounds.Left;

Properties.Settings.Default.Save();
//System.Windows.MessageBox.Show(Properties.Settings.Default.Left.ToString());

}
}

}
}`

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

#### What is the exact row-reduced echelon from R of A?

SherringFord69 Asks: What is the exact row-reduced echelon from R of A?
Suppose A is a 4 by 5 matrix and s = (4,5,2,1,0) is the only special solution for Ax = 0. What is the exact row-reduced echelon from R of A? Can Ax = b be solved for all b?

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

#### Maximum matching for bipartite graph with category restriction.

picker Asks: Maximum matching for bipartite graph with category restriction.
The general maximum matching on bipartite graphs is extracted as follows: We have a bipartite graph G, which contains two sets of vertices without any connections within the two sets and several connections between the two sets. We want to find the maximum matching (number of connections) where there are no two selected edges connected to the same vertex.

Consider the following restriction. If the vertices on the left-hand side ${X}$ have one or several specific label, e.g., $x_1 = 1, x_2 = 2, x_3 = 2, x_4 = {1 and 3} ...$

If we want to achieve that, finally, the match has uniform label distribution. How can we design the algorithm to calculate the maximum matching number?

For example, we have two kinds of labels, 1 and 2. The final matching should have $\frac{k}{2}$ matchings with $label = 1$ and $\frac{k}{2}$ matchings with $label = 2$ if the final matching number is $k$.

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

#### Is the converse of Vertically opposite angles true?

Apoorva Shukla Asks: Is the converse of Vertically opposite angles true?
When two straight lines intersect the vertically opposite angles are equal.

But, can we say that, if the vertically opposite angles of two lines are equal then the lines are straight?

The angles marked equal in orange, come after comparing the two congruent triangles, in the attached image.

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

#### Intersection of conic sets

bosky2001 Asks: Intersection of conic sets
Question Prompt

How do I find the Intersection of C and C'?

and In addition to this, if I am given a set for C (C definition) , How do i construct the C' of it?

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

#### How will you solve this integral? [closed]

Dhruv Mohta Asks: How will you solve this integral? [closed]
the question

we have to solve using only rectangular coordinates, nothing else

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

#### Could a Legendre transform be equivalent to evaluation in a retarded time?

JM3 Asks: Could a Legendre transform be equivalent to evaluation in a retarded time?
We have the following function:

U = U(r(t), p(t)) = (α/r)·sqrt(1 - p^2/c^2)

being α and c positive constants, t a real variable 0 or positive, and p = dr/dt.

I would like to show that if we define

t'= t – r(t)/c

it is true that

U' = U - p·(∂U/∂p)

where the prime ' stands for evaluated at t'

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.

#### What is the sign of Ax where A is negative definite matrix and x > 0?

Tomoki Matsumoto Asks: What is the sign of Ax where A is negative definite matrix and x > 0?
Let A be a negative definite matrix and x is a vector whose elements are positive all, that is x > 0. Then, is the sign of all elements of the vector Ax negative?

Best regards,

SolveForum.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your thoughts here to help others.