Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Disabling MDI Child Form Resizability


Hello,
I've searched through the forum looking for a solution to this, but I couldn't come up w/ anything that worked in my situation. I'm looking to create an MDI Child Form that loads Maximized, but has no MaxButton or MinButton.

When setting the form properties as such:
MaxButton = False
MinButton = False
WindowState = Maximized

It refuses to actually show the Child Form....I just want a maximized closable child form

Thanks,
WeezelDS




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
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?

MDI-Child Form Hides Behind Main MDI Form When Another MDI Child Form Is Opened
MDI-Child Form Hides behind Main MDI Form when another MDI Child form is opened via code within the first MDIChild form.

All forms are non modal.

Anyone know why this happens?

Even if I click the MDI Parent form on the main blank body. the child for that is open hides behind the Parent MDI Form.

Disabling Close Button Of Child Wondow Of A MDI Application
I have a MDI application. I wanted that one of the child window should not have a close button, so that I can do something while pressing a command button along with closing the child window.
How to do it?
regards,
Boby

Urgent Help - TreeView Enabling/Disabling Child Nodes
I'm trying to load a treeview that has upto 4 levels. The requirement is, while loading the treeview, i need to enable the Level 3 and level 4 and disable the rest.
I know that we have Treeview.enabled = false but is it possible to use this at various levels.

Root
Parent1
    AA
    BB
        BB1
            BB12

In the above, i need to enable bb1 and bb12 and disable the rest. Also, is it possible to show the treeview as expanded with the selection that was already made.
be it that im loading the treeview in a View mode where the user has already made a selection of BB12. Can the treeview be expanded while loading the second time based on the mode?

Pls provide inputs.
  

(RESOLVED)make Mdi Child Regular Form And Then Back To Mdi Child?
I have a MDI parent form that loads several children based on which button on a toolbar the user selects. I also want to provide a menu for the user to view each form individually outside the parent form as a regular form. Is it possible to do? Why? Well in a previous version of my software, users had to select each form individually to update information. I am enhancing the software so that they can update any of the forms in the same place by using mdi parents and children. However, some users are used to the old way and still want that as an option. But when I call the new forms, they load inside the parent form. Help anyone???



Edited by - ziggy2416 on 5/12/2005 7:44:34 AM

Child MDI Form Close - Other Child Forms Repaint/bleed
I have an application that has multiple Child MDI forms.

when one of the child forms are unloaded (by user or by code), another child form becomes 'active' and it repaint's itself.

During the time it takes to repaint, it looks like it resizes it selft, and the outlines of controls (mhtree, etc) appear like ghost windows on the form.

I've tried using LockWindowUpdate, but it doesn't seem to do anything.

Does anyone know what can be done to stop the form from 'ghost painting' itself?

Thanks,

Earl

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

How To Re-load MDI Child From Non-MDI Child Form
Hi Freinds,

I want to call a MDI-CHILD window on Button Click event. This Button is in Non- MDI WINDOW.
I have attached a file for further clarification.

From the attachemnt, 1 is MDI CHILD and 2 is not. Click event is in From 2. (All Highlighted and named in the form). From form 1, I call form 2.
And now through Form 2 I need to bring form 1 in front.

Unable to get the tip - solution to this problem ... and i am learing VB ....

Thanks in advance
Kiran.

Disabling The X Icon In A User Form To Prevent Closing A Form From There
Hi,

How do I disable the X icon on the right top of a form, so that the user cannot close the form in this way ?

Disabling All Form's Control Or The Form Upon Opening The Form.
Hi There

Here is my Objective (What I want to accomploish).
Upon opening a Form Called “Search”, the Curser gets focused on a ComboBox called “comboTrans”, And the user must select a value form the ComboBox before they are allowed to move to any other Control. (That is all)
Off Course since the form is an Unbound, They should be able to close the Form any time they wish, Even thou, they have not selected any value from the ComboBox “comboTrans” yet.

I tried many different events of The control and the form itself.
The closest that I came to reach the above objective was in Lostfocus Event of the control itself, But It causes problem when the user decides to close the Form before entering any values ‘for any reason”, the Control’s msgBox Keeps Popping Up.

Therefore I decided a different technique;
And that is Upon Opening the Form, Basically disable or Lock all the controls in the above Form or the Form itself, Except the ComboBox. Then setting the focus on the Active ComboBox, and Even if the User moves to other control, with the help of a MsgBox Forcing the user to move back and select a value from the Active ComboBox
And in the AfterUpdate event of the ComboBox make all other controls Enabled or active again.
A note the form has No record Source and the Control itself is unbound and has No Control Source.

Best Regards
Sanan




Edited by - sanan on 1/6/2005 7:25:56 AM

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.

How To Close MDI Form Include All Child Form If Within 5minute No Any Action?
How to Close MDI Form include all Child form if within 5minute no any action?

How To Check That Form Is Loded Or Not? And Also How To Stop Flikering Of Child Form?
Hii Friedns,

How to know that desire form is loded or not during run time?

and in my project i am using MDI form. During run time i am changing size of child form. But it does not look very good when it opens child form. How to give snappy look to that? It also takes to much time to load form.

Thanksin advance.

Hdave.

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

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

Child Form What About Child App.?
Basically what i want is for when Command1 Is pressed it launches Notepad.exe (c:program files
otepad
otepad.exe) As Basically a MDIChild. The Reason I want this is because Im making a Program to help my teachers at school with there grades and i need it to load an application for each student within the main application. Its a bit more complex than that but That is basically what i need.
~-~(HDX)~-~

Disabling All Buttons In A Form
I have the following code:


Code:
Public Function enableControls(flag As Boolean)
Dim ctl As Control
For Each ctl In Me.Controls
If Not ctl Is XXXXXXX Then
ctl.Enabled = flag
End If
Next

End Function
and i am trying to disable everything except say a Multipage or a button.

But what do i put in the XXXXX?

Thanks

Disabling Enter Key On Form
Good day

Anybody knows how to disable the Enter key on a form ?

I tried everthing I could (setting the KeyAscii to 0 on KeyPress, capturing the code on KeyDown)

Many thanks

Disabling Menu On A Form
I want to disable the menu items on a form.

something like


Code:
Dim mnu as Menu

'If my coding is true then

mnu.Enabled = False

p.s this [vb] doesnt work dont know why??

Disabling F10 When Form Unloads
Hi,
I have this application when f10 is clicked it opens its own menus probably thru hotkey. Ive managed to position this app on top of my interface when a button is pushed. But when the button is released this application is then hidden and you could open other windows and stuff on the interface. But when f10 is clicked, it opens up that application menus. So I want to disable the f10 key when Ive hidden the application therefore it wont show when I look at other menus on my interface and if the user does not accidentally press f10. Ive found some threads on disabling ctrl-alt-del using registry. Should I be doing the same for function keys?
Or is there another way?

Thanks

Disabling Title Bar Of The Form
i have created one form in VB with miximised property state. it should be miximised all the time.

now about the problem, when user double click on restore button or double click on the title bar of the form, the form get restore to its original position. i even try to put code in resize even of the form to again mizimise it. but its not look professional.

i have removed restore menu item from the control menu. but i didnt able to disable double click event on the title bar of the form.

one way i suppose, that one can diable double click event of the form by api programming or sub classing.

can any one help me in this regard??
thanx in advance.
firoz

Disabling Resizing In MDI Form
I want to make an MDI form so that it cannot be resized either by clicking/dragging on the window borders or by double-clicking the menu bar. I don't see any simple way to do this since MDI forms do not have the BorderStyle property. Any suggestions?

Mike

Disabling All But One Button On A Form
Basically you loop through all the buttons and disable them, and then at the end enable your cancel button.

VB Code:
Dim ctl As Control For Each ctl In Controls    If TypeOf ctl Is CommandButton then        ctl.Enabled = False    End ifNext ctl cancelButton.Enabled = True

Disabling Textbox In The Form
if we disable any text box in the form it display grey text in it. is it possible to display text dark black even it is enable = false???

how it is possible to do this???

thanx in advance

firoz

Disabling Max Button In An MDI Form
Hi,

I'm trying to disable the maxbutton in an MDIForm.

The following code removes the max menuitem and causes the maxbutton not to maximize the form when clicked. But it still looks as if it is enabled. When I do the same for the close (x) button it does look disabled.
How do I disable the maxbutton so that it also looks disabled.


Code:
Option Explicit

Public Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As Long
Public Declare Function GetMenuItemCount Lib "user32" (ByVal hMenu As Long) As Long
Public Declare Function RemoveMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long
Public Declare Function DrawMenuBar Lib "user32" (ByVal hwnd As Long) As Long

Public Const MF_BYPOSITION = &H400&
Public Const MF_REMOVE = &H1000&
Public Const MF_ENABLED = &H0&
Public Const MF_INSERT = &H0&



Public Sub DisableMaximize(frm As MDIForm, blnEnable As Boolean)
Dim hMenu As Long
Dim nCount As Long

If Not blnEnable Then
hMenu = GetSystemMenu(frm.hwnd, 0)
nCount = GetMenuItemCount(hMenu)

'Use cCount -1 to disable the closebutton
Call RemoveMenu(hMenu, nCount - 3, MF_REMOVE Or MF_BYPOSITION)

DrawMenuBar frm.hwnd
Else
hMenu = GetSystemMenu(frm.hwnd, True)
DrawMenuBar frm.hwnd
End If

End Sub

'In the midform
Private Sub MDIForm_Load()

Call DisableMaximize(Me, False)

End Sub

Disabling Form While Updating
ok, this is what i want to do..

i have created a form, where you can search edit and update the list..

the question is.

say there are 4 computer using this software from the same directory..
for example if the first comp is the only one which can update or edit..
and the rest is just to view the application.

k, if the first comp is updating the application..all the other computers cannot can not b using the application

k the first senario
if the one of the comp is running the program while updating...a message box should appear " the programm is being update and will be closing" and you presss ok and the programm closes

second senario
if one of the comp tries to open the application while its being updated...a message box should appear saying "the prograom is being updated. please try again later."

i have tried my best to explain what i want...if any question please dont hesitate to ask


Your help is appreciated..
Thank you
-Jay

Disabling Form Icon
Hi everyone! I have this simple question (at least it looks simple): how can I disable the form's icon, i.e. create an iconless form? Any ideas?

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

Maximized Form Resizes When Another MDI Child Form Is Loaded
If I have loaded a maximized child form and then if I load another normal form, then the maximized form does not stay maximized any more. Any Ideas?

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

Enabling/disabling Many Items On A Form
I'm very new to VB, in this case within Access, and I'm a little mystified about how to complete one task. I'd like the majority of the fields and buttons on a form to go "read only" (disabled) when the selected record (part of an order) is "filled". Basically I would like to wire the fields to a method on the form that returns a bool saying whether or not that field should be enabled.

I can't see to see how to do this. The system currently allows me to set the enabled property only as Yes or No. What I want is to set it to my "shouldBeEnabled" function. Is there a way to do this?

There is a fairly similar function I would like to build to allow each field to display a colored border, red for things that need to be filled out and are currently empty, yellow for things they don't need to fill out but should, etc. For this task I would want to have a sub for each field that returns a color, but again it seems that that color can only be set to a fixed value.

Thanks!

Maury

Disabling The Print Form Button
Ok, here is the question. I have a calculate button, a clear button, a print button and a exit button. I have text boxes and other things. But the Print Form button will be available only after the calculation has been made--it will be disabled until the Calculation button is pressed the first time. When the clear button is pressed,the Print Form button will become disabled. The properties I have set now are: Print button enable property is False, default property of the calculate button is True, cancel property of the Clear button is True. My teacher gave us these hints to set the properties. Teacher also wrote: In the code for the calculate button, set the enable property to true for the print button, and in the code for the clear button, set the enable property to false for the print button. Can somebody please help me? I have tried to do this for 4 days now and I am stumped. Thank you very much. You can e-mail me at toykoon@aol.com if you like. Thanks......Scott

Enabling / Disabling A Timer Via Another Form
Sorry im in a bit of a hurry so i don't have time to find this out myself, but if i have a timer on a form (lets say form1) then how can i make a radio button on another form turn it on or off? (form2)

is there a way i can modify
timer1.enabled

or a property that allows it to be changed from any form?

Disabling All Objects On A Form [UNSOLVED]
Hi folks

My program states that when a user gets 0 money in their bank they cannot bet anymore. Now on the Final 16 form there are a lot of buttons and its tier-some to keep writing

If lblMoney.Caption = 0 Then cmdTRBet1.Enabled = False
If lblMoney.Caption = 0 Then cmdTRBet2.Enabled = False
If lblMoney.Caption = 0 Then cmdTRBet3.Enabled = False

etc etc

Is there a way I can just type one line to disable all my objects except the Quit button so they can close the form.

Disabling Maximize Button On A MDI Form
How can I disable the Maximize button on my MDI form? Can't find the property. I know the button is there for a reason but I don't wanna write code to resize all the child forms.

Sand Hawk

Disabling A Form And Still Process Code
anyone know how to do this?

I have another form that's always on top w/ a progress bar. I want it to disable the main form, yet still have the main form be able to process code.

Copyright © 2005-08 www.BigResource.com, All rights reserved