Click here to Skip to main content
15,562,222 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Freind Keyword?? Pin
M-Hall21-Feb-07 11:02
M-Hall21-Feb-07 11:02 
GeneralRe: Freind Keyword?? Pin
Rahithi21-Feb-07 11:07
Rahithi21-Feb-07 11:07 
GeneralRe: Freind Keyword?? Pin
Dave Kreskowiak21-Feb-07 14:47
mveDave Kreskowiak21-Feb-07 14:47 
QuestionVB ComboBoxes Pin
soule21-Feb-07 7:25
soule21-Feb-07 7:25 
AnswerRe: VB ComboBoxes Pin
M-Hall21-Feb-07 10:38
M-Hall21-Feb-07 10:38 
GeneralRe: VB ComboBoxes Pin
soule21-Feb-07 11:09
soule21-Feb-07 11:09 
GeneralRe: VB ComboBoxes Pin
M-Hall21-Feb-07 11:12
M-Hall21-Feb-07 11:12 
QuestionDynamic Controls requires Dynamic event handling? [modified] Pin
Björn T.J.M. Spruit21-Feb-07 6:33
Björn T.J.M. Spruit21-Feb-07 6:33 
Hey everyone,

I've got a webpage that has a selfmade webusercontrol.
That webusercontrol dynamically creates (at this moment only) a label control, a calendar control and a textbox control, depending on how many items I give the control through a Session.
So far so good, for every item in Session a set of these controls is created and added to the page.
They display nicely.

*I hear the collective going "BUT?"*
Ah yes, there's a "but".

What I want to do, is fill the textbox of a set with the selected date of the calendar object of THAT set.

But there are (in this example) two calendar objects.

NOTE: (I have to add the calendar objects dynamically as I don't know how many date type parameters will be required in the near future)

How can I get the selectionchanged event from one of the calendar, so that the control "knows" it's from that calendar and fill the correct textbox that belongs to that calendar ?

Don't forget, all the controls are being generated at runtime in a webusercontrol, which means that somehow I have to create dynamic eventhandlers that "knows" which calendar object had the selectionchanged event and "knows" which which textbox object to set the text of.

Code in VB.NET please, not ASP.NET.
Everything is being done in the code behind, which is VB.NET.
Some help would be greatly appreciated.
AnswerRe: Dynamic Controls requires Dynamic event handling? Pin
M-Hall21-Feb-07 7:48
M-Hall21-Feb-07 7:48 
GeneralRe: Dynamic Controls requires Dynamic event handling? Pin
Björn T.J.M. Spruit21-Feb-07 8:27
Björn T.J.M. Spruit21-Feb-07 8:27 
GeneralRe: Dynamic Controls requires Dynamic event handling? Pin
TwoFaced21-Feb-07 8:48
TwoFaced21-Feb-07 8:48 
GeneralRe: Dynamic Controls requires Dynamic event handling? Pin
Björn T.J.M. Spruit21-Feb-07 10:17
Björn T.J.M. Spruit21-Feb-07 10:17 
GeneralRe: Dynamic Controls requires Dynamic event handling? Pin
TwoFaced21-Feb-07 10:47
TwoFaced21-Feb-07 10:47 
GeneralRe: Dynamic Controls requires Dynamic event handling? Pin
Björn T.J.M. Spruit21-Feb-07 11:15
Björn T.J.M. Spruit21-Feb-07 11:15 
QuestionImpersonation Pin
Savas Cilve21-Feb-07 6:16
Savas Cilve21-Feb-07 6:16 
AnswerRe: Impersonation Pin
Marcus J. Smith21-Feb-07 6:46
professionalMarcus J. Smith21-Feb-07 6:46 
GeneralRe: Impersonation Pin
Savas Cilve21-Feb-07 6:52
Savas Cilve21-Feb-07 6:52 
GeneralRe: Impersonation Pin
Marcus J. Smith21-Feb-07 8:04
professionalMarcus J. Smith21-Feb-07 8:04 
QuestionOutlook Exchange Server 2003 and VB.net Pin
PixelPixie21-Feb-07 5:51
PixelPixie21-Feb-07 5:51 
QuestionExecuting a .NET exe from VBA Pin
Dante X21-Feb-07 5:50
Dante X21-Feb-07 5:50 
AnswerRe: Executing a .NET exe from VBA Pin
kubben21-Feb-07 6:33
kubben21-Feb-07 6:33 
GeneralRe: Executing a .NET exe from VBA Pin
Dante X21-Feb-07 6:48
Dante X21-Feb-07 6:48 
GeneralRe: Executing a .NET exe from VBA Pin
kubben21-Feb-07 7:02
kubben21-Feb-07 7:02 
GeneralRe: Executing a .NET exe from VBA Pin
Dante X21-Feb-07 7:31
Dante X21-Feb-07 7:31 
GeneralRe: Executing a .NET exe from VBA Pin
kubben21-Feb-07 7:34
kubben21-Feb-07 7:34 

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.