Click here to Skip to main content
15,905,781 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to include DLL in VB.NET setup project? Pin
kostasdiktia213-Mar-06 1:37
kostasdiktia213-Mar-06 1:37 
Questionprinting in continuous form with dot matrix Pin
klakero12-Mar-06 15:52
klakero12-Mar-06 15:52 
AnswerRe: printing in continuous form with dot matrix Pin
Dave Kreskowiak12-Mar-06 16:01
mveDave Kreskowiak12-Mar-06 16:01 
GeneralRe: printing in continuous form with dot matrix Pin
Colin Angus Mackay12-Mar-06 20:10
Colin Angus Mackay12-Mar-06 20:10 
GeneralRe: printing in continuous form with dot matrix Pin
Dave Kreskowiak13-Mar-06 5:47
mveDave Kreskowiak13-Mar-06 5:47 
GeneralRe: printing in continuous form with dot matrix Pin
klakero14-Mar-06 14:27
klakero14-Mar-06 14:27 
QuestionProblem with List Items Collection Pin
KaKa'12-Mar-06 15:34
KaKa'12-Mar-06 15:34 
AnswerRe: Problem with List Items Collection Pin
Dave Kreskowiak13-Mar-06 9:11
mveDave Kreskowiak13-Mar-06 9:11 
I could be wrong here, but if all you're doing is re-exposing the ListView's Items collection, I think you're missing a couple of things. First, you have to tell it which editor to use to edit a ListViewItemsCollection. You can "borrow" Microsoft's for this (I'm assuming .NET Framework 2.0). You also have to remember to call your InitializeComponent method to create any constituent controls of your UserControl BEFORE you can create your own ListViewItemsCollection or use the one in the ListView that you're using.
Imports System.ComponentModel
Imports System.Drawing
Imports System.Drawing.Design
Imports System.Windows.Forms
Imports System.Windows.Forms.Design
 
Public Class MyUserControl
    <DesignerSerializationVisibility(DesignerSerializationVisibility.Content), _
        Editor("System.Windows.Forms.Design.ListViewItemCollectionEditor, System.Design,Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", _
            GetType(UITypeEditor))> _
    Public ReadOnly Property Items() As ListView.ListViewItemCollection
        Get
            ' I'm assuming that you have a ListView control on your UserControl surface called "m_ListView"!!!
            Return m_ListView.Items
        End Get
    End Property
 
    ' This is VERY important!  Without this next line, the ListView will not initialize 
    ' itself and create it's internal ListViewItemsCollection!!
    Public Sub New()
        InitializeComponent()
    End Sub
End Class

Want to know where I got the Editor line from?? Checkout Lutz Roeder's .NET Reflector[^] and dig into the ListView class' code.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

QuestionHow to improve efficiency when I frequent query data from a dictionary table? Pin
CooperWu12-Mar-06 15:31
CooperWu12-Mar-06 15:31 
AnswerRe: How to improve efficiency when I frequent query data from a dictionary table? Pin
Steve Pullan12-Mar-06 15:55
Steve Pullan12-Mar-06 15:55 
GeneralRe: How to improve efficiency when I frequent query data from a dictionary table? Pin
CooperWu12-Mar-06 16:03
CooperWu12-Mar-06 16:03 
GeneralRe: How to improve efficiency when I frequent query data from a dictionary table? Pin
Steve Pullan12-Mar-06 18:39
Steve Pullan12-Mar-06 18:39 
GeneralRe: How to improve efficiency when I frequent query data from a dictionary table? Pin
CooperWu12-Mar-06 19:03
CooperWu12-Mar-06 19:03 
QuestionWindow over-redrawing itself Pin
Nick_Kisialiou12-Mar-06 10:11
Nick_Kisialiou12-Mar-06 10:11 
AnswerRe: Window over-redrawing itself Pin
Dave Kreskowiak12-Mar-06 15:57
mveDave Kreskowiak12-Mar-06 15:57 
GeneralRe: Window over-redrawing itself Pin
Nick_Kisialiou12-Mar-06 16:17
Nick_Kisialiou12-Mar-06 16:17 
GeneralRe: Window over-redrawing itself Pin
Dave Kreskowiak12-Mar-06 16:36
mveDave Kreskowiak12-Mar-06 16:36 
QuestionFind and Replace code Pin
zabsmarty12-Mar-06 2:58
zabsmarty12-Mar-06 2:58 
AnswerRe: Find and Replace code Pin
Dave Kreskowiak12-Mar-06 4:31
mveDave Kreskowiak12-Mar-06 4:31 
QuestionProcess Enumeration in vb6 Pin
MohammadAmiry12-Mar-06 2:19
MohammadAmiry12-Mar-06 2:19 
AnswerRe: Process Enumeration in vb6 Pin
Dave Kreskowiak12-Mar-06 4:21
mveDave Kreskowiak12-Mar-06 4:21 
QuestionFixed path for File Open/Save Dialog.... Pin
ibexcentral12-Mar-06 0:37
ibexcentral12-Mar-06 0:37 
AnswerRe: Fixed path for File Open/Save Dialog.... Pin
Dave Kreskowiak12-Mar-06 4:12
mveDave Kreskowiak12-Mar-06 4:12 
GeneralRe: Fixed path for File Open/Save Dialog.... Pin
ibexcentral12-Mar-06 10:07
ibexcentral12-Mar-06 10:07 
GeneralRe: Fixed path for File Open/Save Dialog.... Pin
Chatura Dilan12-Mar-06 15:28
Chatura Dilan12-Mar-06 15:28 

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.