Is there anyway I could load a form in a frame? Or is there an easier way to do this? Should I just hide the forms and just have them visible at the exact same site?
aka this is what I want to do: I have many forms and outputs etc. So there would be one screen and the user clicks a button and a form loads in an area on the screen, then clicks another and loads outputs or graphs. Does that make since?
Would it be faster (running time wise) to just have everything hidden, or load up when needed, or something else.
I have the code for putting forms in picturebox. It's in attachment.
You said you want to put it in frame - i don't know if it's possible. However I believe it's a way to do it if control has .hwnd and .hdc properties. Maybe!
I suggest you use picturebox instead of frame. It doesn't have a frame around it, but it can be done with api (search for DrawEdge function).
The code is not mine. I found it on the net. It is a wizzard class (for creating custom wizards). Check it out.
Zvonko Bostjancic
Ilirska Bistrica, Slovenia [email protected]
Using VS6 Professional with SP3
Programming mostly in VB and I've started to learn VC++ & MFC
sorry to bother you, but do I need to set any references? I get an error when I try to run it. I can prob figure it out, its well documented so thanks!
Zvonko Bostjancic
Ilirska Bistrica, Slovenia [email protected]
Using VS6 Professional with SP3
Programming mostly in VB and I've started to learn VC++ & MFC
The error was about the user-defined type not defined.
highlighting the code below under the iwizardpage code.
Public Sub BeforePageShow(Wizard As frmWizDodajMain, ByVal CurrentStep As Integer)
'// This method is called each time the wizard is about to show
'// the page.
End Sub
I should just be able to open wizard.vbp
There is also a wizard.vbw and cwizard.f2x that windows didn't pick up as anything. Maybe I need to download or configue something else. Sorry about this, thanks for all the help
I tried using the SetParent API function to add a 2nd form to the frame in the main form once. It worked ok but the form lost it's border. Looked funky.
The sample below requires a statusbar with 4 panels....a commandbutton, textbox and a progressbar. (nice demo of a progressbar in the statusbar if nothing else)
VB Code:
Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
I believe it's my mistake 'cause I was tampreing with the code...
Try to rename main form to "frmWizDodajMain" or change all "frmWizDodajMain" in code to name of the main form.
I think that'll help.
Zvonko Bostjancic
Ilirska Bistrica, Slovenia [email protected]
Using VS6 Professional with SP3
Programming mostly in VB and I've started to learn VC++ & MFC
Oh, yes, would you do a favour for me? I recently posted a thread (that is annoying me) - I don't know how to make a tree out of text list of files. Here's the address: http://www.vbforums.com/showthread.p...threadid=97701
Zvonko Bostjancic
Ilirska Bistrica, Slovenia [email protected]
Using VS6 Professional with SP3
Programming mostly in VB and I've started to learn VC++ & MFC
zvonko-
I'll check out your question but I know nothing on VB. The progam is this: There are five forms the user fills out; Then more forms with adjustable values. Takes all the answers puts them into the excel sheet then the output is just a matter of calling info from the excell sheet.
I have never programed in VB but have in other languages but nothing like this. So I'm slowly but surely going to get this thing done. Thanks again