April 2014 Blog Posts
OK, so we're still working with VB6. Here's how to put an MDI child form in a DLL, which cannot be done right of the box.
Credit for this goes to: "https://groups.google.com/forum/#!topic/microsoft.public.vb.winapi/_AL4yJTiOwQ"
Step 1: Create an MDI Child forn in your main project file. The form is sparse, but does have some code:
----------------------------------------------------------------
Option Explicit
Public Declare Function SetParent& Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long)
Public Declare Function SetWindowLong& Lib "user32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long)
Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
Public Const WS_CHILD& = &H40000000
Public...
Oh, for crying out loud.
I have been trying to get the rich text editor to work.
It just won't.
Finally, I switched from using Chrome to IE8. I hate IE, but I thought I would try it anyway.
And Voila! It works. So now I have to figure out if I can get it to work with Chrome or just give up and try another blog software.
Well, I finally got this puppy to work. Took some effort, but we succeeded.
Notes:
(1) Subtext does not appear to be available on the MS Web Platform Installer. Not sure that is. Perhaps, Subtext has gone by the wayside?
(2) First thing was I had to hack the web.config file to remove the whole section: sectionGroup name="system.web.extensions". Don't know why?
(3) I used SQL Express (2012), but the quick way of creating the database from the .mdf file failed all over the place. So, I just created my own blank database and manually edited the web.config file as: connectionString="Server=AMAZONA-94B9DC6;Initial...