Click here to Skip to main content
15,908,776 members
Home / Discussions / C#
   

C#

 
AnswerRe: Adding Pages on HandleCreated event Pin
Pete O'Hanlon16-Apr-07 2:07
mvePete O'Hanlon16-Apr-07 2:07 
QuestionRe: Adding Pages on HandleCreated event [modified] Pin
cha06116-Apr-07 2:20
cha06116-Apr-07 2:20 
AnswerRe: Adding Pages on HandleCreated event Pin
Pete O'Hanlon16-Apr-07 2:35
mvePete O'Hanlon16-Apr-07 2:35 
QuestionRe: Adding Pages on HandleCreated event Pin
cha06116-Apr-07 2:50
cha06116-Apr-07 2:50 
AnswerRe: Adding Pages on HandleCreated event Pin
Pete O'Hanlon16-Apr-07 2:52
mvePete O'Hanlon16-Apr-07 2:52 
GeneralRe: Adding Pages on HandleCreated event Pin
cha06116-Apr-07 2:56
cha06116-Apr-07 2:56 
GeneralRe: Adding Pages on HandleCreated event Pin
Pete O'Hanlon16-Apr-07 5:06
mvePete O'Hanlon16-Apr-07 5:06 
AnswerRe: Adding Pages on HandleCreated event Pin
Luc Pattyn16-Apr-07 3:46
sitebuilderLuc Pattyn16-Apr-07 3:46 
Hi,

the HandleCreated event occurs when the handle gets created; this may be at any
time, i.e. before, at or well after the object has been created (depending on
which class it is and when a handle needs to be present).

So you never now when the event will occur, making it the worst event to use
for anything that is not directly related to the Control's Handle property.

I would add tab pages to a tab control when I create the tab control (e.g.
in a form's constructor or its load event). In the worst case I would consider
a GotFocus event (and add a bool to make it execute only once).

Smile | :)




Luc Pattyn

[My Articles]

GeneralRe: Adding Pages on HandleCreated event Pin
cha06116-Apr-07 4:22
cha06116-Apr-07 4:22 
GeneralRe: Adding Pages on HandleCreated event Pin
Luc Pattyn16-Apr-07 7:14
sitebuilderLuc Pattyn16-Apr-07 7:14 
Questionenum Count and value creating Pin
Saikek16-Apr-07 0:21
Saikek16-Apr-07 0:21 
AnswerRe: enum Count and value creating Pin
Sathesh Sakthivel16-Apr-07 0:44
Sathesh Sakthivel16-Apr-07 0:44 
Questionhelp needed on ClickOnce Deployment Pin
pashitech15-Apr-07 22:46
pashitech15-Apr-07 22:46 
AnswerRe: help needed on ClickOnce Deployment Pin
Judah Gabriel Himango16-Apr-07 10:08
sponsorJudah Gabriel Himango16-Apr-07 10:08 
Question/// means what Pin
Shuaib wasif khan15-Apr-07 22:42
Shuaib wasif khan15-Apr-07 22:42 
AnswerRe: /// means what Pin
Christian Graus15-Apr-07 22:43
protectorChristian Graus15-Apr-07 22:43 
QuestionHelp needed on RegEx.Split() / pattern for dealing with an escaping char. as separator [modified] Pin
girm15-Apr-07 22:24
girm15-Apr-07 22:24 
AnswerRe: Help needed on RegEx.Split() / pattern for dealing with an escaping char. as separator Pin
Judah Gabriel Himango16-Apr-07 10:13
sponsorJudah Gabriel Himango16-Apr-07 10:13 
GeneralRe: Help needed on RegEx.Split() / pattern for dealing with an escaping char. as separator Pin
girm17-Apr-07 0:40
girm17-Apr-07 0:40 
GeneralRe: Help needed on RegEx.Split() / pattern for dealing with an escaping char. as separator Pin
Judah Gabriel Himango17-Apr-07 4:58
sponsorJudah Gabriel Himango17-Apr-07 4:58 
GeneralRe: Help needed on RegEx.Split() / pattern for dealing with an escaping char. as separator Pin
girm17-Apr-07 5:05
girm17-Apr-07 5:05 
Questionallowdrop Pin
sreerajknair15-Apr-07 22:05
sreerajknair15-Apr-07 22:05 
AnswerRe: allowdrop Pin
Christian Graus15-Apr-07 22:44
protectorChristian Graus15-Apr-07 22:44 
QuestionVS 2005 Remoting Pin
L Viljoen15-Apr-07 22:00
professionalL Viljoen15-Apr-07 22:00 
AnswerRe: VS 2005 Remoting Pin
Judah Gabriel Himango16-Apr-07 10:08
sponsorJudah Gabriel Himango16-Apr-07 10:08 

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.