|
-
Jul 1st, 2013, 04:52 AM
#1
New Member
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by Krool
You can also include the CTX file into your project. (It contains a custom toolbox bitmap for displaying a ListView symbol in the components tab)
You have to make some renamings. For instance "Dim Test As ListItem" would then be "Dim Test As LvwListItem" or "Private Sub ListView1_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader)" would then be "Private Sub ListView1_ColumnClick(ByVal ColumnHeader As LvwColumnHeader)"
The constants are also different. In your case you need to rename lvwColumnLeft, lvwColumnCenter and lvwColumnRight to LvwColumnHeaderAlignmentLeft, LvwColumnHeaderAlignmentRight and LvwColumnHeaderAlignmentCenter.
This always happens when the IDE crashed and is supposed to be.
Thanks krool, I've made these changes and got everything compiling.
(It wouldn't let me drag the ctx into the project though - not important)
One final question, in debug mode I seem to hit this assert every time I run, and I have to close down VB and re-open the project to re-run in debug. Is that correct, and what would cause the IDE to crash?
This is just me running my app in debug, and closing it down at the end. The only thing I can think is that I try to compact the attached database and this fails depending on what version of Access is in use, but I've got this trapped behind "on error goto"....
On Error GoTo CompactDBFailure
DBEngine.CompactDatabase sDBCopyName, gDataBaseLocation
On Error GoTo 0
Is there a problem is just commenting out the debug.assert line ?
-
Jul 1st, 2013, 12:28 PM
#2
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by dartguru
(It wouldn't let me drag the ctx into the project though - not important)
Don't import it. Just copy it to the same folder as the ctl file than it should work.
 Originally Posted by dartguru
One final question, in debug mode I seem to hit this assert every time I run, and I have to close down VB and re-open the project to re-run in debug. Is that correct, and what would cause the IDE to crash?
Is this also happening in the demo project?
 Originally Posted by dartguru
Is there a problem is just commenting out the debug.assert line ?
If you comment it out then the IDE is immediatly crashed. Without leting have you a chance to still save the project. (it will fire the debug.assert again when saving, but it is saved)
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
|