Excel Vba Runtime Error 401
Contents |
non-modal form when modal form is displayed." If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register
Runtime Error 401 Windows 7
link above to proceed. To start viewing messages, select the forum that you want to can't show non-modal form when modal form is displayed vb6 visit from the selection below. Results 1 to 6 of 6 Thread: "Runtime Error '401': Can't show non-modal form when modal form
Runtime Error 401 Vb6
is displayed." Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode May 21st, 2009,06:50 PM #1 DavidNels View Profile View Forum Posts Thread Starter Hyperactive what is a modal form Member Join Date Jul 2008 Posts 268 "Runtime Error '401': Can't show non-modal form when modal form is displayed." What causes this? I've looked into it, but not found very much information. It occurs when my app starts up and displays a splashscreen while loading another form. Thanks Reply With Quote May 21st, 2009,07:08 PM #2 LaVolpe View Profile View Forum Posts VB-aholic & Lovin' It Join Date Oct 2007 Location Beside Waldo Posts 15,368 vbmodeless Re: "Runtime Error '401': Can't show non-modal form when modal form is displayed." The cause is pretty much what the error says. Once a modal form is shown, only way to show another form is 1. Close/Hide all modal forms and then show the non-modal form 2. Open every form thereafter as vbModal So the splash screen is being shown modal? If so, it must show the the other form as modal also or simply don't show the splash as modal. You will get this error also if the other form is trying to show itself while a modal form is displayed.... Example: 1. frmSplash.Show vbModal 2. frmSplash then loads other form: Load frmOther
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time
Modal Vs Modeless
Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > Preventing VB runtime error 401 Want to Advertise Here? Solved Preventing VB runtime error 401 Posted on http://www.vbforums.com/showthread.php?570226-quot-Runtime-Error-401-Can-t-show-non-modal-form-when-modal-form-is-displayed-quot 2011-01-21 Visual Basic Classic 1 Verified Solution 12 Comments 1,753 Views Last Modified: 2012-06-27 Is it possible that repeatedly minimizing and normalizing a modal window can cause a "runtime error 401 - cannot show non-modal form when modal form is displayed" ? There is no non-modal form displayed. Code to display and minimize window is: Form.windowstate = vbMinimized https://www.experts-exchange.com/questions/26762317/Preventing-VB-runtime-error-401.html and Form.windowstate=vbNormal 0 Question by:drleewood Facebook Twitter LinkedIn Google LVL 16 Best Solution byHooKooDooKu The syntax is fairly simple... Declare a variable as you would any other variable, except the variable type is the name for the form: Dim m_Terminal as Terminal Create an instance of the Form Go to Solution 12 Comments LVL 16 Overall: Level 16 Visual Basic Classic 12 Message Expert Comment by:HooKooDooKu2011-01-21 It sounds like you might be unintensionally be creating multiple instances of your Modal Form. Can you post the basic code that is loading and showing your form? 0 Message Author Comment by:drleewood2011-01-21 The form Terminal is initially loaded in Sub Timer2. It is then accessed, normalized and minimized again in Sub Timer1. Both timers are on the the main form which is modal. Private Sub Timer2_Timer() Timer2.Enabled = False SkynetBridge.Show 1 '-- Show the screen pause 2 Terminal.Show Dim Start! Start! = Timer Do pause 1 Terminal.TERM1.setTermFocus Terminal.T
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire https://www.experts-exchange.com/questions/20155960/run-time-error-401-cant-show-non-modal-form-while-a-modal-form-is-display.html for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > run time error 401 -- cant show non-modal form while a modal form is display Want to Advertise Here? Solved run time error 401 -- cant show non-modal form while runtime error a modal form is display Posted on 2001-07-24 Visual Basic Classic 1 Verified Solution 5 Comments 1,203 Views Last Modified: 2012-06-27 i got a run time error 401 -- cant show non-modal form while a modal form is display the error fired when a msgbox loaded with deafult parameters and another form is activate and includes a timer control this error occurs only runtime error 401 in 1 computer while another 5 computers works fine. the environment is: win-95 vb-6 SP3 0 Question by:adl Facebook Twitter LinkedIn Google LVL 4 Best Solution byvindevogel You've got your form as a modal form (form.show vbModal) In that form, you want to display another messagebox ... That's not allowed by Windows. You must either show your form not modal and then Go to Solution 5 Comments LVL 27 Overall: Level 27 Visual Basic Classic 23 Message Expert Comment by:Ark2001-07-24 Can you provide code? Cheers 0 LVL 4 Overall: Level 4 Visual Basic Classic 3 Message Accepted Solution by:vindevogel2001-07-24 You've got your form as a modal form (form.show vbModal) In that form, you want to display another messagebox ... That's not allowed by Windows. You must either show your form not modal and then popup the messagebox. But, I guess that you put it modal to ensure that the user clicks one of the buttons on the form .... You'll have to check that off with a global variable (that is changed when the user clicks one of the buttons) and you can put your form "alw