Click here to Skip to main content
15,919,778 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: dsn creation and deletion program in vb.net 2005 Pin
Sathesh Sakthivel28-Jun-07 19:52
Sathesh Sakthivel28-Jun-07 19:52 
GeneralRe: dsn creation and deletion program in vb.net 2005 Pin
Sonia Gupta28-Jun-07 23:09
Sonia Gupta28-Jun-07 23:09 
AnswerRe: dsn creation and deletion program in vb.net 2005 Pin
Dave Kreskowiak29-Jun-07 3:49
mveDave Kreskowiak29-Jun-07 3:49 
Questioncreate reports using reporting service Pin
deepalititi28-Jun-07 19:10
deepalititi28-Jun-07 19:10 
QuestionSelecting a button control from a component Pin
anujose28-Jun-07 18:42
anujose28-Jun-07 18:42 
AnswerRe: Selecting a button control from a component Pin
Psycho-*Coder*-Extreme28-Jun-07 19:40
Psycho-*Coder*-Extreme28-Jun-07 19:40 
GeneralRe: Selecting a button control from a component Pin
anujose28-Jun-07 20:01
anujose28-Jun-07 20:01 
GeneralRe: Selecting a button control from a component Pin
Dave Kreskowiak29-Jun-07 3:43
mveDave Kreskowiak29-Jun-07 3:43 
By default, you can't. The button and textbox, since you made a custom user control with them, are treated as a single control. You have no design-time control over the individual elements of the UserControl. Unless you include that functionality in the code of your UserControl.

The quick way to do it would be to add a ButtonSize property to your UserControl to expose the size of the constituent button. You will won't be able to select the button in the designer, but you'll be able to change it's size:
Public Class MyUserControl
.
.
.
Public Property ButtonSize() As Size
    Get
        Return ucButton.Size
    End Get
    Set(ByVal value As Size)
        ucButton.Size = value
    End Set
End Property
.
.
.



A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


AnswerRe: Selecting a button control from a component Pin
Navneet Hegde28-Jun-07 20:16
Navneet Hegde28-Jun-07 20:16 
QuestionWrong .Net version runtime Assembly Manager launched in VBAScript Pin
cateyes9928-Jun-07 18:23
cateyes9928-Jun-07 18:23 
QuestionPlz, anyone can help me? Thanks Pin
cateyes9929-Jun-07 13:51
cateyes9929-Jun-07 13:51 
AnswerRe: Plz, anyone can help me? Thanks Pin
Dave Kreskowiak30-Jun-07 2:37
mveDave Kreskowiak30-Jun-07 2:37 
GeneralRe: Plz, anyone can help me? Thanks Pin
cateyes991-Jul-07 23:32
cateyes991-Jul-07 23:32 
QuestionScreenSaver Pin
Xandip28-Jun-07 17:35
Xandip28-Jun-07 17:35 
AnswerRe: ScreenSaver Pin
Dave Kreskowiak29-Jun-07 3:29
mveDave Kreskowiak29-Jun-07 3:29 
QuestionQuestion about DataGridView and a text file [modified] Pin
Psycho-*Coder*-Extreme28-Jun-07 14:34
Psycho-*Coder*-Extreme28-Jun-07 14:34 
AnswerRe: Question about DataGridView and a text file Pin
Johan Hakkesteegt28-Jun-07 20:12
Johan Hakkesteegt28-Jun-07 20:12 
GeneralRe: Question about DataGridView and a text file Pin
Psycho-*Coder*-Extreme29-Jun-07 1:41
Psycho-*Coder*-Extreme29-Jun-07 1:41 
GeneralRe: Question about DataGridView and a text file Pin
Johan Hakkesteegt29-Jun-07 1:59
Johan Hakkesteegt29-Jun-07 1:59 
GeneralRe: Question about DataGridView and a text file Pin
Psycho-*Coder*-Extreme29-Jun-07 2:06
Psycho-*Coder*-Extreme29-Jun-07 2:06 
QuestionSaving changes made to a datagridview Pin
steve_rm28-Jun-07 12:53
steve_rm28-Jun-07 12:53 
AnswerRe: Saving changes made to a datagridview Pin
Dave Kreskowiak29-Jun-07 3:27
mveDave Kreskowiak29-Jun-07 3:27 
Questioncommunicating via RF Pin
Cory Kimble28-Jun-07 11:21
Cory Kimble28-Jun-07 11:21 
AnswerRe: communicating via RF Pin
Psycho-*Coder*-Extreme28-Jun-07 19:37
Psycho-*Coder*-Extreme28-Jun-07 19:37 
QuestionPopulating ComboBox Pin
HurricaneDan28-Jun-07 9:54
HurricaneDan28-Jun-07 9:54 

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.