Click here to Skip to main content
15,888,733 members
Home / Discussions / C#
   

C#

 
QuestionFilter DataTable Pin
skyline9229-Jun-09 12:26
skyline9229-Jun-09 12:26 
AnswerRe: Filter DataTable Pin
Henry Minute29-Jun-09 13:35
Henry Minute29-Jun-09 13:35 
GeneralRe: Filter DataTable [modified] Pin
skyline9230-Jun-09 6:38
skyline9230-Jun-09 6:38 
GeneralRe: Filter DataTable Pin
Henry Minute30-Jun-09 9:59
Henry Minute30-Jun-09 9:59 
GeneralThere is no editor available FOR WAP FORM Make sure the application for the file type (.xaml) Pin
rodbiser29-Jun-09 11:36
rodbiser29-Jun-09 11:36 
GeneralRe: There is no editor available FOR WAP FORM Make sure the application for the file type (.xaml) Pin
donglotus23-Jun-11 6:54
donglotus23-Jun-11 6:54 
QuestionCancelEventArgs - multiple subscribers Pin
DaveyM6929-Jun-09 11:08
professionalDaveyM6929-Jun-09 11:08 
AnswerRe: CancelEventArgs - multiple subscribers [modified] Pin
DaveyM6929-Jun-09 22:20
professionalDaveyM6929-Jun-09 22:20 
QuestionInvalidOperationException - object is currently in use elsewhere - red cross Pin
para para29-Jun-09 10:20
para para29-Jun-09 10:20 
AnswerRe: InvalidOperationException - object is currently in use elsewhere - red cross Pin
Christian Graus29-Jun-09 10:44
protectorChristian Graus29-Jun-09 10:44 
GeneralRe: InvalidOperationException - object is currently in use elsewhere - red cross Pin
para para29-Jun-09 10:48
para para29-Jun-09 10:48 
GeneralRe: InvalidOperationException - object is currently in use elsewhere - red cross Pin
Christian Graus29-Jun-09 11:37
protectorChristian Graus29-Jun-09 11:37 
GeneralRe: InvalidOperationException - object is currently in use elsewhere - red cross Pin
para para29-Jun-09 19:14
para para29-Jun-09 19:14 
Questionweb automation using axwebbrowser Pin
T_Teef29-Jun-09 9:59
T_Teef29-Jun-09 9:59 
QuestionI'm needing to have a textbox to be on top of all other controls on the form. Pin
Lecutus129-Jun-09 8:10
Lecutus129-Jun-09 8:10 
AnswerRe: I'm needing to have a textbox to be on top of all other controls on the form. Pin
OriginalGriff29-Jun-09 8:22
mveOriginalGriff29-Jun-09 8:22 
QuestionCalling GetPrinterData (windows api) from c# Pin
belzer29-Jun-09 6:52
belzer29-Jun-09 6:52 
AnswerRe: Calling GetPrinterData (windows api) from c# Pin
Svetlin Panayotov29-Jun-09 8:56
Svetlin Panayotov29-Jun-09 8:56 
GeneralRe: Calling GetPrinterData (windows api) from c# Pin
belzer29-Jun-09 10:51
belzer29-Jun-09 10:51 
GeneralRe: Calling GetPrinterData (windows api) from c# Pin
Manfred Wilner25-Jul-16 7:18
Manfred Wilner25-Jul-16 7:18 
AnswerRe: Calling GetPrinterData (windows api) from c# Pin
Henry Minute29-Jun-09 14:11
Henry Minute29-Jun-09 14:11 
GeneralRe: Calling GetPrinterData (windows api) from c# Pin
belzer30-Jun-09 2:56
belzer30-Jun-09 2:56 
QuestionWindows Service Application: Will not execute separate class Pin
bellorke29-Jun-09 6:37
bellorke29-Jun-09 6:37 
AnswerRe: Windows Service Application: Will not execute separate class Pin
Gajula Srikanth29-Jun-09 10:27
Gajula Srikanth29-Jun-09 10:27 
QuestionSerial Port DataReceived method in a Windows Service Pin
saeidfarahi29-Jun-09 6:20
saeidfarahi29-Jun-09 6:20 
I have a solution working with serial port ( COM1 ) . I added a serial port module from toolbox to a form and it worked properly , but then I was asked to use this in a windows service . I added a serial port to my service and then installed the service correctly ( I am sure ) and in the event log I could see the message I wrote in OnStart() method , but I don't know why the program doesn't go to the Data_Received event of the serial port ! Can any one help me! Her's the code:
protected override void OnStart(string[] args)
{
LogEvent("TestService started !", EventLogEntryType.Warning);
}

protected override void OnStop()
{
LogEvent("TestService stopped !", EventLogEntryType.Warning);
}
-------MY PROBLEM is that this block of code doesn't run------------------
private void sp_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
{
LogEvent("DataReceived !", EventLogEntryType.Warning);
}
--------------------------------------------------------------------------
static void LogEvent(String Message, EventLogEntryType type)
{
String source = "TestService";
String log = "Application";
if (!EventLog.SourceExists(source))
{
EventLog.CreateEventSource(source, log);
}
EventLog eLog = new EventLog();
eLog.Source = source;
eLog.WriteEntry(Message, type);
}Confused | :confused:

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.