How To Show Child Form In MDI Form When Picture Box Is Placed In Mdi?
Hi All,
I have placed a picturebox controll on a MDI form. Now I'm trying to show a MDI child form, but the child form is going back of the picture box. How to get rid of this problem.
Waiting for your replies.
Thank you.
Sridhar CS
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Show MDI Child Form
Hello,
I have a EXE Application stared with MDI form. It use an ActiveX DLL. I want to do:
-Add a MDI child form in to ActiveX DLL
-From the EXE Application, call to show that form from the menu click of MDI Form
But I receice the error message that 'MDI child form can not be load because no MDI form loaded'.
Can i do that?
Thanks,
H.Q.Cuong
How To Show Menu's Of Both MDI And Child Form
Hello everybody
I have one MDI form and one child form. Both form have menu
objects .
But since i want the menu should be pop up menu for child
form i made it visible false. so when user right clicks the child
form then the menu for child will get display.
But the problem is that at same time it not shows the menu
the MDI for. I have to show both the menu's at a time .
What should i do ?
Nitin
HOWTO: Show Child Form Again..
Hi!
I'm having a problem regarding my child form..
I've opened it through a menu and when I minimized the MDI Form, suddenly, it disappears.. Why does it happen? I want to show it again. But how?
Please help.. thanks..
How To Show A Form In Dll As MDI Child In Project
I am calling some forms from a class (dll) file . In main project (Exe) I am showing all the forms as MDI Child. I want to show the form from Dll as a mdi child of exe.
How to do it. Please help.
Avoid A MDI Form To Show The Min.max && Controlbox Of A Child One When It Gets Maximized
Hi everyone,
i continue with my project (an just-put-me-in-your-form-n-i-will-skin-it activeX)
so, i research a little in here and found how to modify at runtime the borderstyle of a form, remove the min, max & close button, and also remove the controlbox... that was using APIs (FYI: the form properties values remain with their original values, even when the form is actually modified)...
ok, everything works fine, it also works with MDIForms... BUT...
when i maximize one of the MDIChild-true forms inside the MDIForm, its min,max,close buttons & controlbox are displayed at top of the MDIForm (at top because it has no title bar or border)...
can i avoid this behavior without having to specify at design time a false-value for minbutton, maxbutton & controlbox properties for the MDIChild-true form ????
Thanx in advance...
Have an excellent day
frojask
(Help the others, it won't take you a lot of time)
Best Way To Show My Picture On Form?
Hey
i havean estate agents program, when they scroll through the records which have all the details eg Detached etc etc, i want them to click the button and the image will be displayed which is on disk
it will be named appropiately, so for the Detahced house in northampton, the pic will be called detnorth105.
all images are on 1 disk, so do i need to code, open A:/detnorth105.jpg?
how would anyone else go about this>?
cheers marty.
How Show Picture In Pictur Box Form Database
hi master
sir i use this code
text1=rs("id")
text2=rs("name")
picturebox=rs("ephoto")
but picturebox=rs("ephoto") this code give me error
please give me idea how i show my image in picture box
thanks
aamir
How Show Picture In Pictur Box Form Database
hi master
sir i am use VB 6 with sql light i have picture blob field in database Menuwaly i add picture in field
please give idea how i show in form i have picture box in form
please give code
thank's
aamir
Make A Main Form Using MDI Form And Child Form
Hi there,
How can I create a child form that attached to the MDI form so that the MDI form and the child form looks like a single main MDI form in runtime ? I've tried to made it by disabling the min & max button of the child form and then load the child form in the MDI Form Load method, but with that way the child form can't be seen at the runtime.
Pls help me
MDI Form With Child Forms - External Form/window To Interact With Child Forms?
Hi,
I am creating an application which has an MDI Form containing 2 child forms.
I need to somehow create either a floating toolbar or some sort of external form (ie. not a child form) which is able to interact with the child forms.
Is this possible? If so, any feedback on how to create it would be much appreciated
Thanks,
Chris
Show A Form On Top Of Another Form, But Keep Focus On The Lower Form?
I've attached a picture of a scheduling section for my applicaiton. The Tooltip window is a seperate form with transparency and no border. I would like the form to show on top of the scheduling form as in the screenshot, but I want the focus to remain on the lower form.
I have seen code somewhere that does this but I can't seem to find it anywhere?
Returning A Value Found In A Child Form To A Specific Text Box In The Parent Form?
I have two forms. A parent and a child. The parent has many labels which are selectable. Once one of the many lables is selected, a child form pops up to gather info. Once the info is gathered, i want to be able to put that info into the label in the parent form which called the child! How can this be done? The problem i cant get past is when the child returns, i have no way to know which label called the child in the first place to put the info in.
Thanks in advance
Call The Save Method Of An MDI Child Form From The MDI Form Toolbar Menu Caused Error
Hi all,
This step-by-step article 818367 describes how to call the Save method in a multiple document interface (MDI) child form when you click the Toolbar button on the MDI Form.
However, execute statement <Me.ActiveForm.cmdSave_Click> ended up with error saying "Object does'nt support this property or method". Please advise and appreciated.
1. Start Visual Basic 6.0.
2. On the File menu, click New Project. In the New Project dialog box, click
Standard EXE, and then click OK.
3. In Solution Explorer, right-click Form1, and then click Remove Form1.
4. On the Project menu, click Add MDI Form.
5. In the Add MDI Form dialog box, click MDI Form, and then click Open.
6. Set the Name property of the MDI Form to frmMDI, and then set the
WindowState property to Maximized.
7. On the Project menu, click Add Form. In the Add Form dialog box, click
Form, and then click Open. By default, the Form1 form is created
8. Set the MDIChild property of the Form1 form to True, and then set the
Borderstyle property of the Form1 form to Fixed Dialog.
9. Add a command button and a text box to the Form. Set the Name property
of Command Button to cmdSave, and then set the Caption property to
Save.
10.To view the code editor, double-click the Save command button. Change
the Click event scope of the cmdSave event handler from Private to Public.
11. Repeat step 5 through step 8 two times. This adds MDI child form Form2
and MDI child form Form3.
12. Add the following code to the Click event of the Save command button of
the MDI child form Form1:MsgBox " Save event of MDI Child Form: Child1"
13. Add the following code to the Click event of the Save command button of
the MDI child form Form2:MsgBox " Save event of MDI Child Form: Child2"
14. Add the following code to the Click event of the Save command button of
the MDI child form Form3:MsgBox " Save event of MDI Child Form: Child3"
15. On the Project menu, click Components. Click Microsoft Windows Common
Controls 6.0, and then click OK.
16. Double-click the Toolbar control in the toolbox. Right-click Toolbar, and
then click Properties.
17. Click the Buttons tab in the Toolbar Properties dialog box, and then click
Insert Button to add a Toolbar button. Set the Caption property of the
Toolbar button to Save, and then set the Key property to Save.
18. Click OK.
19. To view the code editor, double-click the Toolbar to open in Code view.
20. Add the following code to the Click event of the Toolbar:
On Error GoTo NoActiveForm
Select Case Button.Key
Case "save"
Me.ActiveForm.cmdSave_Click
End Select
Exit Sub
NoActiveForm:
MsgBox Err.Description
21. Add the following code to the Load event of the MDI Form frmMDI to
show all the MDI child forms when the application starts.
Form1.Show
Form2.Show
Form3.Show
22. On the Project menu, click Project Properties. In the Startup Object
combo box on the General tab, click frmMDI as the startup object.
How To Make A Child Form Open Up In Same X And Y Axis Inside MDI Form
I have a child form inside my MDI. every time i close this child form and open it again it opens up on different parts of mdi form. I want it always to open up on the TOP LEFTMOST corner of the MDI form. Could someone please tell me how to do that. Also how to make the second child form always open up in the middle of the screen. thanks.
Disable Resizing Of MDI Child Form && Creating Form Icon
I have two things that I want to do: -
1) How do i disable the resizing of a MDI Child/Parent form when my application is run. For example when the program is being run I want the size of the forms to remain the same size all the time, in order to do this the user should not be able to resize the forms.
2) What is the best way to create my own customized icon to put on a form? and how do i change the colour of the Forms caption bar (the bar where the icon resides on the form).
Any help will be much appreciated
Ebrahim
How To Make A Child Form Open Up In Same X And Y Axis Inside MDI Form
I have a child form inside my MDI. every time i close this child form and open it again it opens up on different parts of mdi form. I want it always to open up on the TOP LEFTMOST corner of the MDI form. Could someone please tell me how to do that. Also how to make the second child form always open up in the middle of the screen. thanks.
How To Change Properties Of The Parent Form From A Modal Child Form, Plz?
I want to open a child form windows (frmPortSetting) and from there changing some ActiveX components properties (comTx) which are on my parent form (frmMain).
I wrote code in frmPortSetting sub procedure but it seems that I can't change comTx properties directly there. (e.g. comTx.settings(9600,n,8,1)) Any advise please?
How To Change Properties Of The Parent Form From A Modal Child Form, Plz?
I want to open a child form windows (frmPortSetting) and from there changing some ActiveX components properties (comTx) which are on my parent form (frmMain).
I wrote code in frmPortSetting sub procedure but it seems that I can't change comTx properties directly there. (e.g. comTx.settings(9600,n,8,1)) Any advise please?
Accessing A Unique MDI Child Form When There Are Multiple Instances Of The Same Form ???
In the application multiple MDI child forms are created as needed. An example is as follows:
Code:Private Sub LoadNewDoc()
Static lDocumentCount As Long
Dim frmD As frmDocument
lDocumentCount = lDocumentCount + 1
Set frmD = New frmDocument
frmD.Caption = "Document " & lDocumentCount
frmD.Show
End Sub
Say that frmDocument contains some subs that I want to call from a different location and multiple instances of this frmDocument are currently in existance. I would like to execute a sub from one of these already existing forms.
I don't know how these forms are uniquely identified to address one of them. I know that the hwnd is unique when they are created but I don't know how to use that for what I want to do. I am imagining an API thing using the hwnd value? I don't want to search all the forms' captions to find the one I want - too slow for what is required - just want to directly access a particular instance of the forms subroutines
Can anyone help?
regards
Child Form Opens Up At Random In MDIparent Form
My VB6 application follows the MDI format. I have several child forms under the parent MDIform. Whenever i click search button in the my main child form, other child form also opens up. I dont know how to stop unwanted child form to open up at random. Could someone please help. thanks.
Open A Child Form At The Same Record As Its Parent Form
I am trying to open a child form from a parent form, say the parent form is on record number 20. 20 is the ID number for the record. I want the child form to then also move to record number 20.
These forms are of the same table data, I just want some of the data displayed on the child form top avoid congestion.
I've looked at DoCmd.GotoRecord and DAO options. I think an ADO option is too complicated for just form data.
Thanks in advance for any help you can provide.
Child Form Opens Up At Random In MDIparent Form
My VB6 application follows the MDI format. I have several child forms under the parent MDIform. Whenever i click search button in the my main child form, other child form also opens up. I dont know how to stop unwanted child form to open up at random. Could someone please help. thanks.
***RESOLVED***MDI Child Form Placement In Parent Form
I am using the MDI Parent/Child forms in my project.
I have one of my child forms open. On this child form is a command button which opens a second child form. I would like it if when the second child form is opened, it opens directly below the first child form. It would also be great if it would open below the first child form regardless of where the user has moved this form on their screen.
thank you
How To Maximize A Normal Form Similar To A Child Form In An MDI
Hi,
I have an MDI form and a child form in a Project exe
I refer to a dll which has a normal form
Through a menu option in the MDI, I have called the normal form (DLL)
While maximizing, the mdi form’s menu bar and tool bar are getting hidden
This needs to work exactly like a child form when you maximize
Could you help please?
Displaying A Child Form Without Parent Form In Backround??
I want to create a form that behaves just like Outlook mail notification. I have an application that I want to display a notify form that something has happened. I want this notify form to display centered and topmost. Once the notify form is front and center I want the ability to act on it or select another application to have notify form disappear or minimized showing it on the taskbar. Then when I select the notify form from the taskbar, it will show but NOT have my parent application show.
I can set the form on the top and have it centered. I just need help with the rest.
Thanks,
ERS
Making Notepad Application As Child Form For MDI Form
Hi
I am going trough very strange problem,however I am able to make the notepad as child form for my mdi form , but when I minimize the notepad it does not appears as our normal child form in my mdi container rather its appears as invisible.
The strange thing comes now, if the same code I used in normal form then the notepad acts the same way as normal mdichild form when it is minimized.
The code for the above is as….
Paste the below code in an MdI form having two menu’s one for calc and other for notepad
Option Explicit
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As Long, ByVal lpWindowName As Long) As Long
Private Declare Function GetParent Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long
Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal wCmd As Long) As Long
Private Declare Function Putfocus Lib "user32" Alias "SetFocus" (ByVal hwnd As Long) As Long
Private Const GW_HWNDNEXT = 2
Dim mWnd As Long
Dim Pid As Long
Private Function InstanceToWnd(ByVal target_pid As Long) As Long
Dim test_hwnd As Long, test_pid As Long, test_thread_id As Long
test_hwnd = FindWindow(ByVal 0&, ByVal 0&)
Do While test_hwnd <> 0
'Check if the window isn't a child
If GetParent(test_hwnd) = 0 Then
'Get the window's thread
test_thread_id = GetWindowThreadProcessId(test_hwnd, test_pid)
If test_pid = target_pid Then
InstanceToWnd = test_hwnd
Exit Do
End If
End If
'retrieve the next window
test_hwnd = GetWindow(test_hwnd, GW_HWNDNEXT)
Loop
End Function
Private Sub mnuCalc_Click()
Pid = Shell("c:windowscalc.exe", vbNormalFocus)
If Pid = 0 Then MsgBox "Error starting the app"
mWnd = InstanceToWnd(Pid)
SetParent mWnd, Me.hwnd
Putfocus mWnd
End Sub
Private Sub mnuNotePad_Click()
Pid = Shell("c:windowsNotepad.exe", vbNormalFocus)
If Pid = 0 Then MsgBox "Error starting the app"
mWnd = InstanceToWnd(Pid)
SetParent mWnd, Me.hwnd
Putfocus mWnd
End Sub
Enjoy Programming !!!
VB6 MDI Form 'bleeds' When Child Form Loaded Or Unloaded
Has anyone come across this?
I've scanned microsoft KB and here and a few other places, but no one seems to have come across this... either that, or I'm not searching for the right words...
When my program displays or unloads child forms in a MDI form, the controls are painted one at a time, and the borders of the controls look like they 'bleed' through, until everything is painted.
I've been using the LockWindowUpdate function to control some of this, but in certain cases, it doesn't seem to have an affect.
Does anyone know if there is a solution for this problem? The original program was converted from VB3 if this has anything to do with it..
Thanks,
Earl
Positioning A Child Form Always In The Right Side Of The Mdi Form
I have a MDI form and a MDI child that I want to make it something like a panel in the right side of the window. So I entered code in the mdi form_resize event:
Code:
Private Sub MDIForm_Resize()
If Me.WindowState <> vbMinimized And TaskPane_Running = True Then
' resize also the right panel
frmPanel.Move Me.ScaleWidth - frmPanel.Width, 0, frmPanel.Width, Me.ScaleHeight
' frmpanel is bordless so i use lines that surrounds it
' i want the bottom line to be shown also
frmPanel.lnlBottom.Y1 = frmPanel.ScaleHeight
frmPanel.lnlBottom.Y2 = frmPanel.ScaleHeight
End If
End Sub
P.S. I have a menu, a toolbar and a status bar in the MDI Form also.
Parent Form Calling Child Form
How does a main form call a sub-form to show onscreen and begin doing what it's supposed to be doing? Do I just use
frmSecond.Show ? Or do I have to Call the form?
Accesing The MDI Parent Form From A Child Form
Hello, It's the firs time I work with MDI and I don't know how to acces controls or properties for the MDI parent form form within the code of a child form.
2 examples.
I have a MDI parent form called frmMain, on this form I have a Status Bar control called StatBar, form the code of a child form I want to modify the text on one panel of the status bar like this:
Code:
frmMain.StatBar.Panels(3).Text=Str(XX)
but this don't work,
also I want to read the property for the Parent form like:
Code:
if me.width > frmMain.Width then
me.Width=frmMain.Width - 100
end if
and this doesn't work either,
How can i do this?
MDI Parent Form, Using Menus From Child Form
I have managed to do this before, but can't remember what properties I need to set so that when I select a child form the MDI forms menu has the child forms menu on the right of it's own menu... Does that make sense?
At the moment, when I select a child form, the MDI forms menu is replaced with the child forms...
It's going to be one of those days!
Making A Child Form Not Move Within A MDI Form
How can you make a form not move within another form. I have created an Outlook type toolbar and I wish for it not to move within my MDI form. How is this done?
Thanks in advance,
Jeff
Disabling Buttons On MDI Form From A Child Form
I would like to disable the toolbar buttons on the MDI form from a child form
I write:
frmMDI.tbtoolbar.buttons(2).enabled = false
from the MDI child but I get an error
"Only one MDI form allowed"
Does anyone know how to do this?
Disabling Buttons On MDI Form From A Child Form
I would like to disable the toolbar buttons on the MDI form from a child form
I write:
frmMDI.tbtoolbar.buttons(2).enabled = false
from the MDI child but I get an error
"Only one MDI form allowed"
Does anyone know how to do this?
Docking A Child Form To Parent Form?
I want my active child form to dock immediately under my parent forms toolbar, not centered in screen. No matter what settings I choose, the child form does not seem to do this, and so part of the child form is not visible(below screen). does anyone know how to do this?
|