Click here to Skip to main content
15,913,322 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionMonitoring printer - help ! Pin
xx77abs18-Jan-09 7:50
xx77abs18-Jan-09 7:50 
AnswerRe: Monitoring printer - help ! Pin
Wendelius18-Jan-09 8:21
mentorWendelius18-Jan-09 8:21 
GeneralRe: Monitoring printer - help ! Pin
xx77abs19-Jan-09 5:56
xx77abs19-Jan-09 5:56 
AnswerRe: Monitoring printer - help ! Pin
Eddy Vluggen18-Jan-09 23:53
professionalEddy Vluggen18-Jan-09 23:53 
GeneralRe: Monitoring printer - help ! Pin
xx77abs19-Jan-09 5:59
xx77abs19-Jan-09 5:59 
GeneralRe: Monitoring printer - help ! Pin
Eddy Vluggen19-Jan-09 8:21
professionalEddy Vluggen19-Jan-09 8:21 
QuestionPassing arguments to timer event Pin
sohaib_a18-Jan-09 0:25
sohaib_a18-Jan-09 0:25 
AnswerRe: Passing arguments to timer event Pin
Wendelius18-Jan-09 0:39
mentorWendelius18-Jan-09 0:39 
Sohaib_A wrote:
Is there a way to pass arguments for (in my case a string) to the timer event handler


You can't change the signature of the Elapsed event. Also where would that string come from?

Timer.Elapsed is raised by timer when the interval has elapsed. So you cannot change the code how Elapsed is raised by the timer.

You can store strings for example in class variables and use them, but without knowing anything more of your scenario, it's hard to say if that would be a feasible solution.

Sohaib_A wrote:
Also is the elapsed event similar to the tick event?


Yes, Elapsed is for System.Timers.Timer class and Tick is for System.Windows.Forms.Timer class.

The need to optimize rises from a bad design.My articles[^]

GeneralRe: Passing arguments to timer event Pin
sohaib_a18-Jan-09 0:52
sohaib_a18-Jan-09 0:52 
GeneralRe: Passing arguments to timer event Pin
Wendelius18-Jan-09 1:10
mentorWendelius18-Jan-09 1:10 
GeneralRe: Passing arguments to timer event Pin
sohaib_a18-Jan-09 1:58
sohaib_a18-Jan-09 1:58 
GeneralRe: Passing arguments to timer event Pin
Wendelius18-Jan-09 2:04
mentorWendelius18-Jan-09 2:04 
QuestionDeleting multiple lines from a .txt file. Pin
RPiskami17-Jan-09 18:55
RPiskami17-Jan-09 18:55 
AnswerRe: Deleting multiple lines from a .txt file. Pin
Wendelius17-Jan-09 22:32
mentorWendelius17-Jan-09 22:32 
AnswerRe: Deleting multiple lines from a .txt file. Pin
Fernando Soto18-Jan-09 5:40
Fernando Soto18-Jan-09 5:40 
AnswerRe: Deleting multiple lines from a .txt file. [modified] Pin
RPiskami18-Jan-09 10:44
RPiskami18-Jan-09 10:44 
QuestionHow to Add Carriage return line feed to string (globalization) Pin
Georg Kohler17-Jan-09 16:41
Georg Kohler17-Jan-09 16:41 
AnswerRe: How to Add Carriage return line feed to string (globalization) Pin
Wendelius17-Jan-09 22:21
mentorWendelius17-Jan-09 22:21 
GeneralRe: How to Add Carriage return line feed to string (globalization) Pin
Georg Kohler18-Jan-09 19:07
Georg Kohler18-Jan-09 19:07 
GeneralRe: How to Add Carriage return line feed to string (globalization) Pin
Wendelius19-Jan-09 2:02
mentorWendelius19-Jan-09 2:02 
GeneralRe: How to Add Carriage return line feed to string (globalization) Pin
Luc Pattyn18-Jan-09 11:06
sitebuilderLuc Pattyn18-Jan-09 11:06 
GeneralRe: How to Add Carriage return line feed to string (globalization) Pin
Georg Kohler18-Jan-09 13:46
Georg Kohler18-Jan-09 13:46 
GeneralRe: How to Add Carriage return line feed to string (globalization) Pin
Luc Pattyn18-Jan-09 14:00
sitebuilderLuc Pattyn18-Jan-09 14:00 
QuestionProblem populating DataSet Pin
carrigart17-Jan-09 15:55
carrigart17-Jan-09 15:55 
AnswerRe: Problem populating DataSet Pin
N a v a n e e t h17-Jan-09 16:33
N a v a n e e t h17-Jan-09 16:33 

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.