empty form appears to hang when loading [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.
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

Related

Scrape data from ActiveX Component [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.
With C#, is it possible to basically take in an activex object and get the data out of it? I have a call queue monitor thats an activex object, and I want to implement an alert system for my team, but I cant figure out how to get the data out of the ActiveX component.
If the component doesn't provide a specific way to do it, then probably not easily. If the data is in controls on the screen (like in a window somewhere) then you can possibly use win32 functionality (FindWindow, GetWindowText, so pInvoke) to locate the controls that have the data. You'd need to use Spy++ to find the controls in the window and determine their Class Name and Window Name to do the FindWindow.
Here's one example from SO:
Capturing data from a window in a closed-source third-party Win32 application

Creating an extra desktop 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 10 years ago.
I've seen some applications that create virtual desktops. I want to create one.
However, I do not know how you would do this, or even it it is possible.
How do I create a virtual desktop/monitor in C#?
You need to use CreateDesktop function in order to create full functional dekstop on windows os:
Creates a new desktop, associates it with the current window station
of the calling process, and assigns it to the calling thread. The
calling process must have an associated window station, either
assigned by the system at process creation time or set by the
SetProcessWindowStation function.
Would invite your attention also on interesting article from CodeProject:
Desktop Switching
In general multidektop environment already exists in Windows Os for many years, but never has been "visible" via any multi-dektop application implemented by MS itself.
For some reason MS never, as much as I'm aware of, implemented multidesktop app.
If I'm not mistaken, beginning even from WindowsNT familly OSes, you already have a second desktop. When you press Ctrl+Alt+Del the screen that appears, in reality, is on another, fully functional, windows desktop.

Setup File with Start up Folder [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.
I Have created a application, and i want to create a set up file, where the application should run automatically like when we move it to start up folder. but here i want to keep it when it will install the application.
and second thing, I want to implement also when my application will close, but that application should not quit, it will run like any anti virus software, skypee, etc. and we can maximize it from show hidden icons
You are looking for a Windows Service.
The service will run at all times even when no-one is logged in.
A WinForms application could be added to the system tray How to make a Windows Forms .NET application display as tray icon? and it could communicat with the service to find out its status or to configure it.

Finding a hidden Button [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 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.

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.

Categories