Click here to Skip to main content
15,914,416 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionRe: how to call the click event or cellclick even of datagrid from a button Pin
Christian Graus30-Jul-07 11:05
protectorChristian Graus30-Jul-07 11:05 
QuestionMy clients requirement is Pin
indian14326-Jul-07 2:34
indian14326-Jul-07 2:34 
AnswerRe: My clients requirement is Pin
Pete O'Hanlon26-Jul-07 4:31
mvePete O'Hanlon26-Jul-07 4:31 
GeneralRe: My clients requirement is Pin
indian14326-Jul-07 5:15
indian14326-Jul-07 5:15 
GeneralRe: My clients requirement is Pin
originSH26-Jul-07 5:51
originSH26-Jul-07 5:51 
GeneralRe: My clients requirement is Pin
Dave Kreskowiak26-Jul-07 11:07
mveDave Kreskowiak26-Jul-07 11:07 
GeneralRe: My clients requirement is Pin
Leslie Sanford27-Jul-07 6:46
Leslie Sanford27-Jul-07 6:46 
GeneralRe: My clients requirement is Pin
Paul Conrad23-Dec-07 15:06
professionalPaul Conrad23-Dec-07 15:06 
GeneralRe: My clients requirement is Pin
Vasudevan Deepak Kumar26-Jul-07 23:05
Vasudevan Deepak Kumar26-Jul-07 23:05 
GeneralRe: My clients requirement is Pin
indian14327-Jul-07 0:13
indian14327-Jul-07 0:13 
GeneralRe: My clients requirement is Pin
Colin Angus Mackay28-Jul-07 7:30
Colin Angus Mackay28-Jul-07 7:30 
GeneralRe: My clients requirement is Pin
Christian Graus26-Jul-07 23:20
protectorChristian Graus26-Jul-07 23:20 
GeneralRe: My clients requirement is Pin
Leslie Sanford27-Jul-07 6:42
Leslie Sanford27-Jul-07 6:42 
GeneralRe: My clients requirement is Pin
Colin Angus Mackay28-Jul-07 7:29
Colin Angus Mackay28-Jul-07 7:29 
GeneralRe: My clients requirement is Pin
indian14326-Jul-07 5:45
indian14326-Jul-07 5:45 
GeneralRe: My clients requirement is Pin
Pete O'Hanlon26-Jul-07 8:57
mvePete O'Hanlon26-Jul-07 8:57 
GeneralRe: My clients requirement is Pin
Paul Conrad26-Jul-07 9:53
professionalPaul Conrad26-Jul-07 9:53 
GeneralRe: My clients requirement is Pin
indian14326-Jul-07 20:27
indian14326-Jul-07 20:27 
GeneralRe: My clients requirement is Pin
Colin Angus Mackay28-Jul-07 7:32
Colin Angus Mackay28-Jul-07 7:32 
GeneralRe: My clients requirement is Pin
Paul Conrad26-Jul-07 9:55
professionalPaul Conrad26-Jul-07 9:55 
GeneralRe: My clients requirement is Pin
indian14326-Jul-07 20:20
indian14326-Jul-07 20:20 
AnswerRe: My clients requirement is Pin
Christian Graus26-Jul-07 23:14
protectorChristian Graus26-Jul-07 23:14 
GeneralRe: My clients requirement is Pin
indian14327-Jul-07 0:19
indian14327-Jul-07 0:19 
GeneralRe: My clients requirement is Pin
Christian Graus27-Jul-07 0:49
protectorChristian Graus27-Jul-07 0:49 
QuestionUsing Forms with Managed DirectX Pin
Leslie Sanford25-Jul-07 19:48
Leslie Sanford25-Jul-07 19:48 
I've recently posted an article here about my C# SynthToolkit[^]. This toolkit is for creating "softsynths" in C# (or any .NET language).

I'm pleased with the toolkit except for one thing: The output occassionally glitches. I will be playing a synthesizer created with the toolkit and everything will be fine. But then it suddenly begins to glitch. The sound is almost like static.

The problem isn't with the synth engine. I've recorded the output to a wave file when this has happened, and the glitching doesn't show up. I believe the problem is somehow in the interaction between Managed DirectX and Windows Forms. The glitching begins somtetimes when the focus changes from one Form to another. The environment in which the synth is run is an MDI application. If I click on, say, a button on one Form when another previously had the focus, the focus changes to the new Form (goes without saying). A small percentage of the time, this causes the sound to begin glitching. It's strange because if I move a window around or click on another window, it sometimes stops and playback continues normally.

My conclusion is that changing focus somehow interferes with the performance of either the SecondaryBuffer I'm feeding wave data to or the waveform output Device responsible for playing the waveform data. When I use a Device object, I have to call its SetCooperation method, passing it a Form. I simply pass the Form in which the Device was created. So somehow in the background I'm assuming there's some kind of interaction between the Device and Form.

Any thoughts or ideas on a possible solution will be welcome.

The only thing I can think of now is hooking into the focus event of each Form in my application and doing something in response like stopping and restarting playback in hopes of clearing whatever problem is occuring.

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.