If the control is displaying something, then it should be created on the mainthread. Can you post some code? And what does "fall with exception or hang" mean? If the framework throws an Exception, it'll contain a message explaining what went wrong. It helps in diagnosing problems if you explained what type of exception you get, and what the message is.
Is it a UI component? If so, you will have to leave it in the 'main' thread, and you should do your extended processing in a background thread (and, if you need to communicate with the component, you should use BeginInvoke or Invoke as you mention).
If not, you can put it in another thread, but you might have to write a wrapper to allow you to communicate with it across threads since Invoke is only provided on Control.
I am using a WinForm for filling out templates, in which the user can Click Send to open a New Message in Outlook (it uses the default account) and places the template in as HTMLBody.
I have seen all the different ways to read the files manually to insert signatures, but that doesn't fit my situation. My users will have multiple Outlook Exchange accounts configured, but only 1 will be used with the templates. The question is, how can I read the account type I want (if anything, based on name or server address) in order to get the signature set up for it?
I guess worse case scenario I could make everyone use the same name for the Signature which would make reading it in manually easier. However, there should be a way to read the account and needed signature for the specific account via VSTO or Interop without scanning files in a directory and play hit or miss.
I need in a console application to have user input an integer in military time that be converted some how to 13:00 or 13:30 instead of1330 the pure number.
So that I can then take 1330and have the user input an endtimelike1430and increase it by25percentto come out with1445or 2:45. So your increases the total timefrom1 hour to1 hour and15 minutes.
The input will always be HHMM in military time
and like others, I am having problems using Events When I tried using the Hover event, nothing would happen when I Hovered over the Custom Textbox.
I know usually it would be better to ask the creator of it, but he's not responding to any questions sadly. This custom control is very important to me & would love it if someone could kindly help me
I think you should pick up a book on object oriented programming and go through it.
A case study will be good for a start but will not be enough to cover more detailed topics like operator overloading etc.