Click here to Skip to main content
12,067,652 members (49,119 online)

.NET Framework

 
Question[VB.NET 2008] How to get control on objects created at runtime Pin
steve_94966135-Dec-12 5:54
membersteve_94966135-Dec-12 5:54 
AnswerRe: [VB.NET 2008] How to get control on objects created at runtime Pin
Eddy Vluggen5-Dec-12 6:40
memberEddy Vluggen5-Dec-12 6:40 
GeneralRe: [VB.NET 2008] How to get control on objects created at runtime Pin
steve_94966135-Dec-12 21:59
membersteve_94966135-Dec-12 21:59 
GeneralRe: [VB.NET 2008] How to get control on objects created at runtime Pin
Eddy Vluggen6-Dec-12 3:27
memberEddy Vluggen6-Dec-12 3:27 
GeneralRe: [VB.NET 2008] How to get control on objects created at runtime Pin
steve_94966136-Dec-12 4:26
membersteve_94966136-Dec-12 4:26 
GeneralRe: [VB.NET 2008] How to get control on objects created at runtime Pin
Eddy Vluggen6-Dec-12 6:02
memberEddy Vluggen6-Dec-12 6:02 
GeneralRe: [VB.NET 2008] How to get control on objects created at runtime Pin
steve_94966136-Dec-12 22:25
membersteve_94966136-Dec-12 22:25 
GeneralRe: [VB.NET 2008] How to get control on objects created at runtime Pin
Eddy Vluggen7-Dec-12 2:16
memberEddy Vluggen7-Dec-12 2:16 
steve_9496613 wrote:
...and that was the problem: I put a NumericUpDown control in a UserControl and I give it an unique name (NUD1). When, at runtime, I create 10 instances of the UserControl, what are the unique names of the 10 NumericUpDown controls originated from NUD1?

Good assesment; the others wouldn't have a name.

steve_9496613 wrote:
also this property has a unique name... until the UserControl is one, but when I create 10 instances of the UserControl?

You'd have 10 controls without a name (the usercontrol), but with a known property that points to the correct control.

steve_9496613 wrote:
Well... it works... although I have some difficulty in evaluate the elegance of this code...

What do you think about this solution?

It'll do; seen the technique before, usually when ex-VB programmers want an "array" of controls. It adds a single pointer to the list for each control, so it's not very resource-intensive.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]
They hate us for our freedom![^]

QuestionTesting Practices Pin
Andrew Stoute5-Dec-12 5:44
memberAndrew Stoute5-Dec-12 5:44 
AnswerRe: Testing Practices Pin
Eddy Vluggen5-Dec-12 6:36
memberEddy Vluggen5-Dec-12 6:36 
GeneralRe: Testing Practices Pin
Andrew Stoute5-Dec-12 6:45
memberAndrew Stoute5-Dec-12 6:45 
GeneralRe: Testing Practices Pin
Eddy Vluggen5-Dec-12 6:53
memberEddy Vluggen5-Dec-12 6:53 
GeneralRe: Testing Practices Pin
Dave Kreskowiak5-Dec-12 7:29
mvpDave Kreskowiak5-Dec-12 7:29 
GeneralRe: Testing Practices Pin
Dave Kreskowiak5-Dec-12 7:26
mvpDave Kreskowiak5-Dec-12 7:26 
GeneralRe: Testing Practices Pin
Eddy Vluggen5-Dec-12 7:34
memberEddy Vluggen5-Dec-12 7:34 
GeneralRe: Testing Practices Pin
Dave Kreskowiak5-Dec-12 10:55
mvpDave Kreskowiak5-Dec-12 10:55 
GeneralRe: Testing Practices Pin
Eddy Vluggen6-Dec-12 1:08
memberEddy Vluggen6-Dec-12 1:08 
QuestionHow to make a list view and gallerie view on a product page list on some e-commerce Pin
El daniel4-Dec-12 1:19
memberEl daniel4-Dec-12 1:19 
AnswerRe: How to make a list view and gallerie view on a product page list on some e-commerce Pin
Eddy Vluggen4-Dec-12 1:37
memberEddy Vluggen4-Dec-12 1:37 
Questionframework 2.0 and win98 Pin
caradri3-Dec-12 23:37
membercaradri3-Dec-12 23:37 
AnswerRe: framework 2.0 and win98 Pin
Richard MacCutchan4-Dec-12 0:01
mvpRichard MacCutchan4-Dec-12 0:01 
AnswerRe: framework 2.0 and win98 Pin
Eddy Vluggen4-Dec-12 0:04
memberEddy Vluggen4-Dec-12 0:04 
AnswerRe: framework 2.0 and win98 Pin
Pete O'Hanlon4-Dec-12 0:07
protectorPete O'Hanlon4-Dec-12 0:07 
GeneralRe: framework 2.0 and win98 Pin
Eddy Vluggen4-Dec-12 0:31
memberEddy Vluggen4-Dec-12 0:31 
GeneralRe: framework 2.0 and win98 Pin
Pete O'Hanlon4-Dec-12 0:38
protectorPete O'Hanlon4-Dec-12 0:38 

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.


Advertise | Privacy | Mobile
Web04 | 2.8.160208.1 | Last Updated 6 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid