Click here to Skip to main content
16,007,163 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: vb.net Pin
nishkarsh_k8-Sep-07 9:50
nishkarsh_k8-Sep-07 9:50 
AnswerRe: Office.Word Question Pin
Dave Kreskowiak8-Sep-07 2:47
mveDave Kreskowiak8-Sep-07 2:47 
GeneralRe: Office.Word Question Pin
Trupti Mehta8-Sep-07 6:51
Trupti Mehta8-Sep-07 6:51 
GeneralRe: Office.Word Question Pin
Paul Conrad9-Sep-07 6:38
professionalPaul Conrad9-Sep-07 6:38 
QuestionSubclass control Pin
jensenx7-Sep-07 21:55
jensenx7-Sep-07 21:55 
AnswerRe: Subclass control Pin
Dave Kreskowiak8-Sep-07 2:45
mveDave Kreskowiak8-Sep-07 2:45 
GeneralRe: Subclass control Pin
jensenx8-Sep-07 4:49
jensenx8-Sep-07 4:49 
GeneralRe: Subclass control Pin
Colin Angus Mackay8-Sep-07 5:54
Colin Angus Mackay8-Sep-07 5:54 
jensenx wrote:
Public Class myPanel

Public Sub New(ByVal pWindowHandle As IntPtr)
MyBase.AssignHandle(pWindowHandle)
End Sub

End Class


You have no base class in the above. What do you expect the base class to be?


jensenx wrote:
Can i inherit in such a way? Or is there a better way of doing this?


The code you show does not use inheritance, it uses composition.

By not,

Public Class MyPanel InheritsFrom Panel
    ' Do what you need to in the panel
End Class


In your form class you create a control of MyPanel rather than Panel.


Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ...

My website

GeneralRe: Subclass control Pin
Dave Kreskowiak8-Sep-07 6:12
mveDave Kreskowiak8-Sep-07 6:12 
QuestionSystem is not accessible on network is VPN is installed on machine Pin
Rizwan Bashir7-Sep-07 21:40
Rizwan Bashir7-Sep-07 21:40 
AnswerRe: System is not accessible on network is VPN is installed on machine Pin
Dave Kreskowiak8-Sep-07 2:43
mveDave Kreskowiak8-Sep-07 2:43 
GeneralRe: System is not accessible on network is VPN is installed on machine Pin
Rizwan Bashir9-Sep-07 23:18
Rizwan Bashir9-Sep-07 23:18 
Questionhow to submit information to a web page with vb.net Pin
eyes20077-Sep-07 20:19
eyes20077-Sep-07 20:19 
AnswerRe: how to submit information to a web page with vb.net Pin
DigiOz Multimedia8-Sep-07 13:57
DigiOz Multimedia8-Sep-07 13:57 
QuestionAccessing Custom Controls Dynamically Added Pin
vseven7-Sep-07 10:58
vseven7-Sep-07 10:58 
AnswerRe: Accessing Custom Controls Dynamically Added [modified] Pin
Hadi Hassan7-Sep-07 22:59
Hadi Hassan7-Sep-07 22:59 
GeneralRe: Accessing Custom Controls Dynamically Added [modified] Pin
vseven10-Sep-07 3:02
vseven10-Sep-07 3:02 
GeneralRe: Accessing Custom Controls Dynamically Added Pin
vseven11-Sep-07 2:09
vseven11-Sep-07 2:09 
QuestionHow can I build a String by reading through a Data Grid? Pin
CCG37-Sep-07 9:50
CCG37-Sep-07 9:50 
AnswerRe: How can I build a String by reading through a Data Grid? Pin
Dave Kreskowiak7-Sep-07 9:57
mveDave Kreskowiak7-Sep-07 9:57 
GeneralRe: How can I build a String by reading through a Data Grid? Pin
CCG37-Sep-07 10:04
CCG37-Sep-07 10:04 
AnswerRe: How can I build a String by reading through a Data Grid? Pin
Trupti Mehta9-Sep-07 23:01
Trupti Mehta9-Sep-07 23:01 
QuestionTrimming a String Pin
Ravi Mahavrathayajula7-Sep-07 9:35
Ravi Mahavrathayajula7-Sep-07 9:35 
AnswerRe: Trimming a String Pin
Dave Kreskowiak7-Sep-07 9:36
mveDave Kreskowiak7-Sep-07 9:36 
AnswerRe: Trimming a String Pin
Kschuler7-Sep-07 9:39
Kschuler7-Sep-07 9:39 

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.