Click here to Skip to main content
15,914,452 members
Home / Discussions / C#
   

C#

 
Questionconnect db to crystal report Pin
amilapradeep4-Jan-07 17:12
amilapradeep4-Jan-07 17:12 
AnswerRe: connect db to crystal report Pin
Tyler454-Jan-07 21:34
Tyler454-Jan-07 21:34 
GeneralRe: connect db to crystal report Pin
amilapradeep5-Jan-07 2:07
amilapradeep5-Jan-07 2:07 
AnswerRe: connect db to crystal report Pin
Tyler455-Jan-07 12:22
Tyler455-Jan-07 12:22 
GeneralRe: connect db to crystal report Pin
amilapradeep6-Jan-07 18:58
amilapradeep6-Jan-07 18:58 
QuestionDo you know of a MS COM object that raises events? Pin
JoeRip4-Jan-07 16:39
JoeRip4-Jan-07 16:39 
AnswerRe: Do you know of a MS COM object that raises events? Pin
Phillip M. Hoff4-Jan-07 18:15
Phillip M. Hoff4-Jan-07 18:15 
GeneralRe: Do you know of a MS COM object that raises events? Pin
JoeRip4-Jan-07 18:34
JoeRip4-Jan-07 18:34 
Apparently I didn't make it clear enough that I didn't want to put that much work into this. Laugh | :laugh:

I'm really looking for a ham sandwich here - a pre-made ham sandwich: an object which launches an application with a UI, that will send me messages. I really don't want to write any more code than I currently am:

itunes = new iTunesLib.iTunesApp();<br />
itunes.OnSoundVolumeChangedEvent += new _IiTunesEvents_OnSoundVolumeChangedEventEventHandler(itunes_OnSoundVolumeChangedEvent);<br />


So, if it's not about that easy, or you don't have the 4-5 lines of coded already written, I'm just too damn lazy to go beyond that.

The bug:

In the app, when I get the message I add it's text to a table, which is bound to a DataGridView. If my app is in the foreground, everything is hunky dory - the event hits, the DataGridViewadds a row, the event text is displayed.

When my app is not foreground (ie, the app raising the events is foreground), two bugs occur:

1. when my app is hosted by VS, no RowsAdded event fires for the DataGridView, and it is not redrawn. So, it looks like nothing appears. Calling dgv.Refresh() will cause the new rows to be shown, yet RowsAdded was never fired, ever.

2. in RELEASE (not hosted by VS), it's worse. Although each row shows up after the event, as soon as there are enough rows for the vertical scrollbar to try to appear, the app "hangs". The cursor is busy, the UI is unresponsive. Clicking the close box on the title bar causes windows to report the app as not responding. Interestingly enough, though, there's no CPU being eaten - no looping.

I've written a really simple sample app to demo this, but it requires itunes. I'd prefer to use a COM object installed on any given XP machine.
GeneralRe: Do you know of a MS COM object that raises events? Pin
JoeRip4-Jan-07 18:41
JoeRip4-Jan-07 18:41 
GeneralRe: Do you know of a MS COM object that raises events? Pin
Phillip M. Hoff4-Jan-07 19:08
Phillip M. Hoff4-Jan-07 19:08 
GeneralRe: Do you know of a MS COM object that raises events? Pin
Phillip M. Hoff4-Jan-07 19:50
Phillip M. Hoff4-Jan-07 19:50 
GeneralRe: Do you know of a MS COM object that raises events? Pin
JoeRip4-Jan-07 20:04
JoeRip4-Jan-07 20:04 
GeneralRe: Do you know of a MS COM object that raises events? Pin
Phillip M. Hoff4-Jan-07 20:22
Phillip M. Hoff4-Jan-07 20:22 
GeneralRe: Do you know of a MS COM object that raises events? Pin
JoeRip4-Jan-07 20:31
JoeRip4-Jan-07 20:31 
GeneralRe: Do you know of a MS COM object that raises events? Pin
JoeRip4-Jan-07 20:45
JoeRip4-Jan-07 20:45 
GeneralRe: Do you know of a MS COM object that raises events? Pin
Phillip M. Hoff4-Jan-07 21:05
Phillip M. Hoff4-Jan-07 21:05 
GeneralRe: Do you know of a MS COM object that raises events? Pin
JoeRip4-Jan-07 21:12
JoeRip4-Jan-07 21:12 
GeneralRe: Do you know of a MS COM object that raises events? Pin
Phillip M. Hoff4-Jan-07 21:25
Phillip M. Hoff4-Jan-07 21:25 
GeneralRe: Do you know of a MS COM object that raises events? Pin
JoeRip4-Jan-07 21:34
JoeRip4-Jan-07 21:34 
GeneralRe: Do you know of a MS COM object that raises events? Pin
Phillip M. Hoff4-Jan-07 21:45
Phillip M. Hoff4-Jan-07 21:45 
GeneralRe: Do you know of a MS COM object that raises events? Pin
JoeRip4-Jan-07 21:47
JoeRip4-Jan-07 21:47 
GeneralRe: Do you know of a MS COM object that raises events? Pin
Luc Pattyn5-Jan-07 4:22
sitebuilderLuc Pattyn5-Jan-07 4:22 
GeneralRe: Do you know of a MS COM object that raises events? Pin
JoeRip4-Jan-07 20:15
JoeRip4-Jan-07 20:15 
GeneralRe: Do you know of a MS COM object that raises events? Pin
JoeRip4-Jan-07 20:20
JoeRip4-Jan-07 20:20 
QuestionVirus Pin
Tyler454-Jan-07 15:45
Tyler454-Jan-07 15:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.