|
-
Mar 8th, 2010, 11:31 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] Custom control enhancement
http://www.codeproject.com/KB/cpp/mclb.aspx
I have the above control I am using, whose base class is the ListBox.
Unlike the ListBox, it doesn't highlight a new item when it is inserted.
I already had to add the ability to InsertAt() a new item since the person who made it originally hadn't implemented that part.
But, I am having trouble figuring out how to make that part work.
The above link is directly to the original Control.
Here is the code for the Insert method I added:
Code:
Public Sub Insert(ByVal index As Integer, ByVal value As MCListBoxItem)
Try
List.Insert(index, value)
_c += 1
RaiseEvent Changed()
Catch ex As Exception
MsgBox("Insert")
End Try
End Sub
Anyone out there that can help me with this would be greatly appreciated.
I am currently changing the selectedindex in my program but would much rather it be handled in the control.
Visual Studio 2010 Professional | .NET Framework 4.0 | Windows 7
SERYSOFT.COM :: SysPad - Folder Management Program - Please comment HERE if you find this program useful, have ideas, or know of any bugs.
[Very useful for IT/DP departments where many folders are consistently accessed. Also contains a scratchpad window for quick access to notes.]
[.NET and MySQL Quick Guide]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|