Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
Questionbyte[] file to PDF and then send in an email as atachment Pin
mvadibb16-Aug-07 12:12
mvadibb16-Aug-07 12:12 
AnswerRe: byte[] file to PDF and then send in an email as atachment Pin
Guffa16-Aug-07 14:48
Guffa16-Aug-07 14:48 
AnswerRe: byte[] file to PDF and then send in an email as atachment Pin
User 167325216-Aug-07 14:49
User 167325216-Aug-07 14:49 
GeneralRe: byte[] file to PDF and then send in an email as atachment Pin
mvadibb17-Aug-07 5:37
mvadibb17-Aug-07 5:37 
Questionc# - handling events for forms Pin
jon-8016-Aug-07 11:16
professionaljon-8016-Aug-07 11:16 
AnswerRe: c# - handling events for forms Pin
Luc Pattyn16-Aug-07 11:18
sitebuilderLuc Pattyn16-Aug-07 11:18 
GeneralRe: c# - handling events for forms Pin
jon-8016-Aug-07 11:34
professionaljon-8016-Aug-07 11:34 
GeneralRe: c# - handling events for forms Pin
Luc Pattyn16-Aug-07 11:50
sitebuilderLuc Pattyn16-Aug-07 11:50 
OK, I see; as Christian already replied, you add a delegate to the Focus event:

this.Focus+=new EventHandler(Form1_GotFocus);

the nice thing about Visual Studio C# is as soon as you enter the +=
it suggests the remainder of the line; tab twice to accept and automatically
get the handler's skeleton.

Alternatively you can do the same thru Visual Designer (if so, the this.Focus+=
line will appear file in Form1.Designer.cs)

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


AnswerRe: c# - handling events for forms Pin
Christian Graus16-Aug-07 11:41
protectorChristian Graus16-Aug-07 11:41 
Questioncreating a webcam driver Pin
moroman16-Aug-07 10:59
moroman16-Aug-07 10:59 
AnswerRe: creating a webcam driver Pin
Luc Pattyn16-Aug-07 11:22
sitebuilderLuc Pattyn16-Aug-07 11:22 
GeneralRe: creating a webcam driver Pin
moroman18-Aug-07 3:42
moroman18-Aug-07 3:42 
QuestionCommunications cable connection between two computers Pin
KeithWT16-Aug-07 9:40
KeithWT16-Aug-07 9:40 
AnswerRe: Communications cable connection between two computers Pin
led mike16-Aug-07 9:57
led mike16-Aug-07 9:57 
GeneralRe: Communications cable connection between two computers Pin
KeithWT16-Aug-07 10:18
KeithWT16-Aug-07 10:18 
GeneralRe: Communications cable connection between two computers Pin
pbraun17-Aug-07 6:04
pbraun17-Aug-07 6:04 
QuestionOpen file error does not produce exception Pin
CTaylor8916-Aug-07 9:12
CTaylor8916-Aug-07 9:12 
AnswerRe: Open file error does not produce exception Pin
Justin Perez16-Aug-07 9:39
Justin Perez16-Aug-07 9:39 
GeneralRe: Open file error does not produce exception Pin
CTaylor8916-Aug-07 10:10
CTaylor8916-Aug-07 10:10 
GeneralRe: Open file error does not produce exception [modified] Pin
Justin Perez16-Aug-07 10:15
Justin Perez16-Aug-07 10:15 
GeneralRe: Open file error does not produce exception Pin
CTaylor8916-Aug-07 10:36
CTaylor8916-Aug-07 10:36 
GeneralRe: Open file error does not produce exception Pin
Justin Perez23-Aug-07 2:10
Justin Perez23-Aug-07 2:10 
GeneralRe: Open file error does not produce exception Pin
CTaylor8927-Aug-07 6:14
CTaylor8927-Aug-07 6:14 
Question[C#] - Obtaining no: of files & file sizes Pin
aravinda77716-Aug-07 8:40
aravinda77716-Aug-07 8:40 
AnswerRe: [C#] - Obtaining no: of files & file sizes Pin
Luc Pattyn16-Aug-07 8:45
sitebuilderLuc Pattyn16-Aug-07 8: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.