Click here to Skip to main content
15,867,921 members
Home / Discussions / C#
   

C#

 
GeneralRe: Query regarding IEnumerable Pin
PIEBALDconsult8-Jul-08 4:29
mvePIEBALDconsult8-Jul-08 4:29 
AnswerRe: Query regarding IEnumerable Pin
PIEBALDconsult7-Jul-08 18:54
mvePIEBALDconsult7-Jul-08 18:54 
AnswerRe: Query regarding IEnumerable [modified] - Stupid question Pin
N a v a n e e t h7-Jul-08 21:34
N a v a n e e t h7-Jul-08 21:34 
QuestionIntegrate desktop application with browser??? Pin
Technobizz7-Jul-08 17:50
Technobizz7-Jul-08 17:50 
AnswerRe: Integrate desktop application with browser??? Pin
Kjetil Svendsen7-Jul-08 20:36
Kjetil Svendsen7-Jul-08 20:36 
QuestionWindows Service Question Pin
Richard Blythe7-Jul-08 17:06
Richard Blythe7-Jul-08 17:06 
AnswerRe: Windows Service Question Pin
PIEBALDconsult7-Jul-08 17:41
mvePIEBALDconsult7-Jul-08 17:41 
QuestionWhy won't the clipboard work in this itunes event handler? Pin
Nitrus7-Jul-08 17:01
Nitrus7-Jul-08 17:01 
I placed a msgbox in there for sh*t's and giggles, and it worked fine. Then I moved the SetText snippet to FormLoad, and it worked fine. However, it refuses to work in my event handler, and that's when I need to use it. Is this a bug?

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using iTunesLib;

namespace WIKDSPK
{
public partial class Form1 : Form
{
private iTunesAppClass m_iTunes = new iTunesAppClass();
public Form1()
{
InitializeComponent();
try
{
m_iTunes.Resume();
m_iTunes.OnPlayerPlayEvent += new _IiTunesEvents_OnPlayerPlayEventEventHandler(m_iTunes_OnPlayerPlayEvent);
}
catch (COMException)
{
Application.Exit();
}
}
private void m_iTunes_OnPlayerPlayEvent(object iTrack)
{
string iTArtist = ((IITTrack)iTrack).Artist;
string iTName = ((IITTrack)iTrack).Name;
string iTAlbum = ((IITTrack)iTrack).Album;
string m_iClipStr = "Now Playing [ Artist: " + iTArtist + " Name: " + iTName + " Album: " + iTAlbum + " ] www.xxxxxxxx.org";
Clipboard.SetText("Test");
}
}
}

PS> The event handlers are working 100%
GeneralRe: Why won't the clipboard work in this itunes event handler? Pin
TheFM2347-Jul-08 17:34
TheFM2347-Jul-08 17:34 
GeneralRe: Why won't the clipboard work in this itunes event handler? Pin
Nitrus7-Jul-08 17:58
Nitrus7-Jul-08 17:58 
GeneralRe: Why won't the clipboard work in this itunes event handler? Pin
TheFM2348-Jul-08 2:19
TheFM2348-Jul-08 2:19 
GeneralRe: Why won't the clipboard work in this itunes event handler? Pin
Nitrus8-Jul-08 3:09
Nitrus8-Jul-08 3:09 
QuestionAccessing clipboard data in a multi threaded app Pin
Member 34047907-Jul-08 16:17
Member 34047907-Jul-08 16:17 
AnswerRe: Accessing clipboard data in a multi threaded app Pin
Member 34047909-Jul-08 14:18
Member 34047909-Jul-08 14:18 
Questionhmc 1052L Pin
fasehah7-Jul-08 15:16
fasehah7-Jul-08 15:16 
AnswerRe: hmc 1052L Pin
leckey7-Jul-08 16:10
leckey7-Jul-08 16:10 
JokeRe: hmc 1052L Pin
PIEBALDconsult7-Jul-08 17:42
mvePIEBALDconsult7-Jul-08 17:42 
AnswerRe: hmc 1052L Pin
Pete O'Hanlon7-Jul-08 21:42
subeditorPete O'Hanlon7-Jul-08 21:42 
Questionnewsletter mentioning a corba open source by novel...? Pin
Leblanc Meneses7-Jul-08 12:20
Leblanc Meneses7-Jul-08 12:20 
Questionprevious post is got too long, isn't it? (my previous question again) Pin
Sajjad Izadi7-Jul-08 9:21
Sajjad Izadi7-Jul-08 9:21 
AnswerRe: previous post is got too long, isn't it? (my previous question again) Pin
SomeGuyThatIsMe7-Jul-08 9:48
SomeGuyThatIsMe7-Jul-08 9:48 
GeneralRe: previous post is got too long, isn't it? (my previous question again) Pin
Christian Graus7-Jul-08 9:50
protectorChristian Graus7-Jul-08 9:50 
GeneralRe: previous post is got too long, isn't it? (my previous question again) Pin
SomeGuyThatIsMe7-Jul-08 10:04
SomeGuyThatIsMe7-Jul-08 10:04 
GeneralRe: previous post is got too long, isn't it? (my previous question again) Pin
Christian Graus7-Jul-08 10:11
protectorChristian Graus7-Jul-08 10:11 
GeneralRe: previous post is got too long, isn't it? (my previous question again) Pin
Colin Angus Mackay7-Jul-08 10:21
Colin Angus Mackay7-Jul-08 10:21 

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.