My problem is that I want to be able to simulate a click in a minimized window at specific coordinates. In other words, click in a hidden window without focus, not simulate a click to minimize said window. (I think my question is similar to this question, but I am not fluent in the syntax). I am using 2017 visual studio and would prefer VB answers as to how to approach this/ what methods I should do. Thank you for the help, and please let me know if I asked this question incorrectly.
EDIT: to clarify, I would also accept c# answers
Related
This question already has answers here:
WPF Always On Top
(7 answers)
How to make a window always stay on top in .Net?
(14 answers)
Closed 5 years ago.
When the task manager is open, there is an option for "Always On Top" in the menu bar. I would like this to be the default behavior for my application. I am using C# in Visual Studio to write the program. It is basically an investment calculator that offers important numbers for the user.
The user will need these numbers and it is unlikely for them to be able to memorize them. Time is of the essence when using my application so stopping to write them all down is not feasible either. How was this implemented? Thanks in advance.
Response to proposed duplicate
I do not think this is a duplicate question. Other questions on SO have used third party software to handle this task. I also was under the impression that what others were seeking related to keeping one of many of their forms as top most. I am specifically asking to be higher than all applications running on the machine.
Furthermore, the question was designed to seek help on implementation of code to facilitate this. In the article offered by Mohammed, there is code for working with Windows API and I was unable to get it working. I had read this article prior to asking the question. Most people reported TopMost property to not help them, and many responses reported using Windows API.
if its winform application Form.TopMost will work
Depending on what you are using (WPF or Forms), these may help you :
WPF : WPF Always On Top
Forms : How to make a window always stay on top in .Net?
The idea is to set True to the property YourForm.TopMost or YourWindow.TopMost. You may still have troubles with full screen applications that can be on top of yours.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I have a win forms application. The form contains a third party chart from dotnetcharting. The form also has a few other controls which allows the user to select the type of chart they wish to see.
The issue I have is when the user clicks the button to plot the chart nothing appears to happen (it is though), so the chart is blank. However when I go to another application, a word document, or web page or whatever and then go back to my win forms application the chart now appears. Why is this?
Is this to do with win forms or the chart? Is there some refresh I need to do?
I think it has to do with the refreshing, please try to put the line:
Application.DoEvents();
after the data is being updated. It should then change the form.
Difficult to say without more information.
Sounds like you have to invalidate the control which sounds odd for a third party control.
Possibly there is a function on the control to tell it to redraw or that you are finished with calculating. Did you check the documentation on usage?
Some controls can be paused from updating the UI to let them handle lots of data and restarted after you finished with the data.
Post some more info on usage and code
This question already has an answer here:
How do you unpin and move the form in the Visual Studio designer?
(1 answer)
Closed 8 years ago.
I apologize for what may be a rudimentary question but I have looked through the net and can not find the answer to this question.
While designing the form in C#, I want to physically move the actual form to a different place on my Design Screen. I am not referring to it's location when I debug and run, but rather its positioning while I am designing it. I can't seem to drag it anywhere, and it seems to be locked in its position.
Thank you in advance
I think the answer is that you can't move the form in design mode, it's bound to the upper left corner. However you can undock and resize the window containing the form and move that to wherever you like, like shown in this screenshot:
.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I created a simple WinForms application with a Button on it on a certain location (just dragged and dropped it from the toolbox, so it landed somewhere in the middle of the form) and when pressed the F5, it worked okay.
But, then I closed the form and got back to the studio. I just dragged and dropped the Button somewhere else and now when I run it with F5, in the running program the Button remained at the same location like before.
I cleaned the solution, rebuild it manually and run again. The same happened.
I dragged and dropped the button again somewhere else and the situation was the same as for the first time.
After 2 or 3 complies finally it worked...
Have anyone of you met this problem before? What's the solution? Thank you.
It sounds like you checked the "don't compile automatically when build is out of date" checkbox.
Check Options -> Projects and Solutions -> Build and Run. My guess is it says "Never build" and "Launch old version".
EDIT:
Well, since we can't replicate this issue, it's really hard to help. The last thing that comes to my mind is - export all your VS settings, reset them to C# defaults. If that helps, you can compare the exported settings with the defaults and look for weird stuff.
If it doesn't, try disabling / removing all the plugins you have (or perhaps it would be enough to run VS in safe mode).
If that doesn't help either, try disabling your anti-virus. This is really starting to dig for worms in sand, but it might be possible the AV is blocking file operations.
If even that doesn't help, it's time for the reinstall-VS-and-.NET rutine.
i know this question is already being asked before in objective c,but i need to create in mono/xamarin ios.
i found one question in this link Next/Previous Keyboard Toolbar iOS7.
Does anyone can suggest me any example to do this? Thank you so much for your help!