Finding a hidden Button [closed] - c#

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I played in the past on partypoker and worte my own window arranger. it arranged the windows based on a visible button, but today i switched to a different room.
the problem is that i cant find the button with spy++. spy++ doesnt recognize that there is a button. some buttons are findable with spy++, but not the one i need
any ideas how i can find this hidden button ?

If the button is not an actual button (i.e., if it's drawn through code rather than using the standard Win32 button control) you're not going to be able to find it with Spy++. It won't be an actual window, so it won't have a window handle. Thus, you're also not going to be able to click it through the normal mechanisms, like sending it a BM_CLICK message.
It's possible that they're doing this as a security feature, but it's also quite likely that this is part of the growing trend away from using the native UI controls, one that I very strongly disagree with and whose motivations I seriously question.
Your only hope is probably UI automation, which is very tricky to get right. Make sure to test the program in a virtual machine so the world doesn't end when you inevitably click the wrong thing accidentally.

Related

How can i disable moving between Tab Control tabs by mouse in c# [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I want to move between tab on tab control using Navigation Buttons , and i don't want the user try to move between tabs using mouse , How can i do that ??
This doesn't really make a lot of sense.
Short of disabling the mouse cursor entirely, I don't know how you would possibly achieve this. Even if there were a way of "ignoring" mouse clicks on the tab control tabs, that would be incredibly bad UI. As far as the user would be concerned, your application would be pathetically broken—"I try to do the same thing I do in all other apps, but this one just sits here like it's dead. Stupid buggy program."
So that's a non-starter. If the goal here is to force the user to navigate through the tabs in a particular order (like a wizard), then I recommend just hiding the tabs altogether. Then the user won't be tempted to click on them or switch between them in an arbitrary order. You will have to control tab switching through code, by setting the SelectedTab or SelectedIndex property. This will also give you a place to run any additional code that you want when switching tabs.
You'll find instructions on how to hide the tabs on the TabControl in Hans's answer here.

How to make a form simulate a desktop [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Right, this "might" be a tough one, as I do not even know where to start with this.
Ok, I am working on a program, which can load visual studio solutions and display them within a form when debugging.
Actually, the program does a whole lot more, but what it does, is strictly classified, so I can not go into that.
Anyway, whatever it does, does not matter in this case.
Here is the plot:
You create a project in visual studio, but when you debug it, it does so on your desktop.
What I need it to do, is debug it within a form, effectively acting as a desktop with a different resolution.
So if the specific program for example, uses Screen.PrimaryScreen.Bounds.Width - 30, as a this.left property, it needs to think that the boundaries of the form it is displayed in, is in fact the Screen.PrimaryScreen.Bounds.
I am having difficulties, trying to find out how to handle this.
Should I perhaps catch this type of code and then covert it, to work within the form?
Is there perhaps another way, to make windows simulate a different PrimaryScreen size, based on the size of the form?
EDIT: Perhaps a little more simplified.
I want the from to act as if it was my windows desktop, so any solution i load into the program, get's debugged and viewed in that form.
Handy for if you need to check how your application will look on a phone or simply in another resolution.
Point is that the program itself is going to be an IDE, but rather an online one, in which a group of people can work together on the same application/file, at the same time.
People tend to use virtual machines for these kinds of 'challenges'. It's surprising how efficient this method is! :-)

empty form appears to hang when loading [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
any help with this would be gratefully received.
I have a Windows Forms project in C#. This, when a button is pressed opens a new Outlook email via interop. When the email has been sent and added to the sent items folder, the Windows Forms project then opens a single form which contains a single panel currently.
My problem is that everything seems to run fine, I use Marshalling to sever the links with the interop instance of Outlook all other methods seem to run as normal in the Windows Forms project, but the form that is opened (called zoom) just shows the Spinning Wheel waiting symbol.
When I break on the code to see what it's doing, it appears to be doing nothing. This is driving me nuts. Can anyone suggest why the form (Zoom) that is launched after the interop facility has done its stuff and apparently been disposed appears to hang.
It does appear to me somehow to be connected to the Interop instance but I can't see how.
As I remember interop objects should be disposed.
Try this

tooltip catcher c# [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I want to create an application which can copy the tool tip (the tool tips which are shown on the current desktop/window) if I press hot keys. So how can I track whether the current desktop having a tool tip.
First, its not possible to use the Managed.Net API to access windows in other applications so you will have to do somthing a bit different.
I guess you could use the Win32 API to enumerate windows and find those of the class Tooltip_Class32. Then you'd have to read the text on them.
You can enum windows as described on SO here and on PInvoke.net here.
If you limit to just the Tooltip_Class32 then you will only get the tool tip windows.
I'm not sure how windows contructs a tool tip. I'm guessing you can read the text from the tool tip or from some child control window by using the SendMessage API with the WM_GETTEXT message like here.
That should get you started, I've never actually done it myself but it seems feasible.

Problem in moving images in C# [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
I asked a question about moving images with timer in c# . Some people said to me to use WPF. But I never worked with WPF before. I looked msdn but don't understand it.
Please help me, I really need this soon.
I would suggest you to have a look at Expression Blend video tutorial. Learning and implementing wpf without out tools like Expression Blend is quite challenging. http://expression.microsoft.com/en-us/cc197141.aspx
In short, in WinForms (I assume you use WinWorms when you don't use WPF) to animate some elements on the screen, so the following:
Override the forms OnPaint method, and inside there, draw the image(s) on the desired positions.
Make a backgroundworker tat support sending progress.
In the backgroundworker calculate the new positions, then call ReportProgress.
In the report progress event method, redraw the images on their new positions.
Remember to set the forms DoubleBuffered property to true so that the redrawing is done smoothly.
Good luck! :)

Categories