Click here to Skip to main content
15,889,877 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to make xml comments in vb.net Pin
codeproject_buna12-Nov-07 1:01
codeproject_buna12-Nov-07 1:01 
AnswerRe: how to make xml comments in vb.net Pin
Steven J Jowett12-Nov-07 1:08
Steven J Jowett12-Nov-07 1:08 
AnswerRe: how to make xml comments in vb.net Pin
Cameron Marsden12-Nov-07 1:11
Cameron Marsden12-Nov-07 1:11 
AnswerRe: how to make xml comments in vb.net Pin
AliAmjad12-Nov-07 1:21
AliAmjad12-Nov-07 1:21 
AnswerRe: how to make xml comments in vb.net Pin
John_Adams14-Nov-07 10:15
John_Adams14-Nov-07 10:15 
QuestionHow to link? Pin
sweet corn12-Nov-07 0:21
sweet corn12-Nov-07 0:21 
AnswerRe: How to link? Pin
DigiOz Multimedia12-Nov-07 6:09
DigiOz Multimedia12-Nov-07 6:09 
QuestionCreating a Button Bar custom control Pin
Steven J Jowett11-Nov-07 23:56
Steven J Jowett11-Nov-07 23:56 
I am in the process of writing a Button Bar control. The control inherits from the Windows.Forms.Panel but I only want to allow a Button to be added to control collection.

To achieve this I have written a ButtonCollection Class that inherits from Windows.Forms.Control.ControlCollection and shadowed the necessary method and properties to accept and return Buttons.

To the Button Bar class I have added a read only Property called Buttons that returns the ButtonCollection.

The problem I am currently having, is that when I now add a Button in design mode, using the Button property, I get the error message "'Child' is not a child of this parent"

This error is caused when the Paint event of the control fires :-

Private Sub ButtonBar_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint<br />
        Me.Controls.Clear()<br />
        For Each oButton As Infragistics.Win.Misc.UltraButton In Buttons.List<br />
            Me.Controls.Add(oButton)<br />
        Next<br />
    End Sub


Any help here, greatly appreciated.

Thanks

Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'

AnswerRe: Creating a Button Bar custom control Pin
Paul Conrad28-Nov-07 15:12
professionalPaul Conrad28-Nov-07 15:12 
Questionadd and modify string in app.config [modified] Pin
BasharatAli11-Nov-07 21:59
BasharatAli11-Nov-07 21:59 
AnswerRe: add and modify string in app.config Pin
AliAmjad12-Nov-07 8:40
AliAmjad12-Nov-07 8:40 
Questioncreating a custom button with .png files Pin
blucbird11-Nov-07 20:48
blucbird11-Nov-07 20:48 
AnswerRe: creating a custom button with .png files Pin
Christian Graus11-Nov-07 21:31
protectorChristian Graus11-Nov-07 21:31 
QuestionArray.Reverse Pin
SoniPreet11-Nov-07 17:29
SoniPreet11-Nov-07 17:29 
AnswerRe: Array.Reverse Pin
Luc Pattyn11-Nov-07 17:40
sitebuilderLuc Pattyn11-Nov-07 17:40 
AnswerRe: Array.Reverse Pin
Christian Graus11-Nov-07 17:44
protectorChristian Graus11-Nov-07 17:44 
AnswerRe: Array.Reverse Pin
Nilesh Hapse11-Nov-07 18:15
Nilesh Hapse11-Nov-07 18:15 
GeneralRe: Array.Reverse Pin
SoniPreet11-Nov-07 18:18
SoniPreet11-Nov-07 18:18 
GeneralRe: Array.Reverse Pin
Christian Graus11-Nov-07 18:48
protectorChristian Graus11-Nov-07 18:48 
AnswerRe: Array.Reverse Pin
The ANZAC11-Nov-07 19:34
The ANZAC11-Nov-07 19:34 
GeneralRe: Array.Reverse Pin
MohammadAmiry11-Nov-07 20:00
MohammadAmiry11-Nov-07 20:00 
GeneralRe: Array.Reverse Pin
Luc Pattyn12-Nov-07 4:35
sitebuilderLuc Pattyn12-Nov-07 4:35 
QuestionGhost Writing Pin
The tigg11-Nov-07 15:51
The tigg11-Nov-07 15:51 
AnswerRe: Ghost Writing Pin
Christian Graus11-Nov-07 15:53
protectorChristian Graus11-Nov-07 15:53 
GeneralRe: Ghost Writing Pin
The tigg11-Nov-07 16:17
The tigg11-Nov-07 16:17 

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.