Click here to Skip to main content
15,917,645 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Setting Name property in custom control Pin
Gregory Gadow17-Mar-10 9:01
Gregory Gadow17-Mar-10 9:01 
GeneralRe: Setting Name property in custom control Pin
Som Shekhar17-Mar-10 9:05
Som Shekhar17-Mar-10 9:05 
GeneralRe: Setting Name property in custom control Pin
Som Shekhar17-Mar-10 9:06
Som Shekhar17-Mar-10 9:06 
GeneralRe: Setting Name property in custom control Pin
Luc Pattyn17-Mar-10 9:09
sitebuilderLuc Pattyn17-Mar-10 9:09 
GeneralRe: Setting Name property in custom control Pin
Som Shekhar17-Mar-10 9:36
Som Shekhar17-Mar-10 9:36 
GeneralRe: Setting Name property in custom control Pin
Dave Kreskowiak17-Mar-10 9:07
mveDave Kreskowiak17-Mar-10 9:07 
AnswerRe: Setting Name property in custom control Pin
Luc Pattyn17-Mar-10 9:07
sitebuilderLuc Pattyn17-Mar-10 9:07 
AnswerRe: Setting Name property in custom control Pin
Gregory Gadow17-Mar-10 9:31
Gregory Gadow17-Mar-10 9:31 
Maybe if I described what I'm doing, my question will make more sense Poke tongue | ;-P

I am working on a custom tab control that implements custom tab pages. These are both derived from Control and are just as much a learning trial as an effort to make something useful. As far as possible, I would like to duplicate the effect of Microsoft's standard tab control. When I drop TabControl on a form, I get two tabs, TabPage1 and TabPage2. A second TabControl gives TabPage3 and TabPage4.

In the constructor of NewTabControl, I am trying to do this:
Dim P1 As New NewTabPage
Dim P2 As New NewTabPage
pTabPages = New NewTabPageCollection(P1, P2)
P1.Text = P1.Name
P2.Text = P2.Name

This is adding the two pages. What I want is for the tab captions to show the page names. However, the Name properties hold empty strings. I would like to populate those values.

On a possibly related note, I notice in the Form.Designer code that the MS TabControl generates the code for the MS TabPages explicitly along with the code for the TabControl, while the generated code for NewTabControl defines only NewTabControl1. Is my solution to generate designer code for the NewTabPage objects and, if so, how?
QuestionGetting System.Net.SocketPermission to actually work!!! Pin
_PolyGram_17-Mar-10 2:37
_PolyGram_17-Mar-10 2:37 
QuestionCreate an MSI in C++ Dot Net? Pin
andrewchris13-Mar-10 11:56
andrewchris13-Mar-10 11:56 
AnswerRe: Create an MSI in C++ Dot Net? Pin
SeMartens14-Mar-10 23:32
SeMartens14-Mar-10 23:32 
GeneralRe: Create an MSI in C++ Dot Net? Pin
andrewchris15-Mar-10 5:01
andrewchris15-Mar-10 5:01 
QuestionMessage Removed Pin
13-Mar-10 10:26
Curtis Underwood13-Mar-10 10:26 
AnswerRe: Datagridview not changing size when changed from landscape to porttrait? Pin
Not Active13-Mar-10 11:42
mentorNot Active13-Mar-10 11:42 
GeneralRe: Datagridview not changing size when changed from landscape to porttrait? Pin
Curtis Underwood13-Mar-10 11:45
Curtis Underwood13-Mar-10 11:45 
GeneralRe: Datagridview not changing size when changed from landscape to porttrait? Pin
Pete O'Hanlon13-Mar-10 12:27
mvePete O'Hanlon13-Mar-10 12:27 
GeneralRe: Datagridview not changing size when changed from landscape to porttrait? Pin
Curtis Underwood13-Mar-10 15:07
Curtis Underwood13-Mar-10 15:07 
GeneralRe: Datagridview not changing size when changed from landscape to porttrait? Pin
Not Active13-Mar-10 12:45
mentorNot Active13-Mar-10 12:45 
GeneralRe: Datagridview not changing size when changed from landscape to porttrait? Pin
Curtis Underwood13-Mar-10 14:50
Curtis Underwood13-Mar-10 14:50 
QuestionHow do I change application-scoped settings Pin
bobishkindaguy13-Mar-10 8:58
bobishkindaguy13-Mar-10 8:58 
AnswerRe: How do I change application-scoped settings Pin
Not Active13-Mar-10 9:22
mentorNot Active13-Mar-10 9:22 
GeneralRe: How do I change application-scoped settings Pin
bobishkindaguy13-Mar-10 12:35
bobishkindaguy13-Mar-10 12:35 
GeneralRe: How do I change application-scoped settings Pin
Not Active13-Mar-10 12:49
mentorNot Active13-Mar-10 12:49 
GeneralRe: How do I change application-scoped settings Pin
bobishkindaguy13-Mar-10 13:09
bobishkindaguy13-Mar-10 13:09 
GeneralRe: How do I change application-scoped settings Pin
Not Active13-Mar-10 13:20
mentorNot Active13-Mar-10 13:20 

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.