Help Đăng ký Nhớ tôi vào? I bet it will be in the code that is being called as consequence of Dispose method. Value Close Cannot Be Called While Doing Createhandle Vb Net About Us Connect with DevExpress BlogsUpcomingEventsTrainingWebinars Learn More about DevExpress About Us News User Comments Case Studies Our Awards Reviews & Publications MVP Program Contact Us Support Center FAQ Training Events View All Notifications Email : * Password : * Remember me Forgot password?

Please refer to the DevExpress.com Website Terms of Use for more information. weblink And does anyone know how I can solve the above problem? Show dont block the application and the code keeps running. The grid is not the problem, it is the forms.

My Account ManageYour Profile Change your addressemail and password Assign Licenses Manage licensesfor your dev team Renew anExisting SubscriptionPurchaseHistory New order statusand previous purchases DownloadYour Products Need help or require more While closing the form I have the following code: frmMain.objfrm.Close_this(); The Close_this calls the Close() or Dispose() method. Join them; it only takes a minute: Sign up Form Dispose() or Close() up vote 1 down vote favorite I'm having 2 forms. navigate here How do unlimited vacation days work?

Browse other questions tagged winforms or ask your own question. Advanced Search VBForums Visual Basic Visual Basic .NET [RESOLVED] [2005] Value Close() cannot be called while doing CreateHandle() If this is your first visit, be sure to check out the FAQ Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New?

share|improve this answer answered Jan 19 '10 at 16:00 user218447 51334 Ya that's the problem I have a timer that's ticking and a delegate event is called every 100

We are glad to help you at any time. All contents are copyright of their authors. If you don't want the form open then why show it in the first place? Mong các bác giúp đỡ! Đã được chỉnh sửa lần cuối bởi angeltrongminh : 01-11-2011 lúc 11:31 PM.

Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible. Show all comments Alisher (DevExpress Support) 04.14.2015 Hi Ali,The mentioned exception may happen when youmanipulate UI elementsfrom a separatethread. Update: Here is the only code in my CustomForm class (besides changes mode in the windows forms designer (added 2 Labels, a button and changed some colors) Public Class CustomForm Inherits his comment is here Thanks, Mike Faq Reply With Quote April 14th, 2011,08:09 PM #4 No Profile Picture Doug G View Profile View Forum Posts  Grumpier old Moderator Devshed Supreme Being (6500+ posts)

But when I call that function I get the above exception. Closing one instance of the form while another instance is loading is causing the exception. not thinking straight today it looks like Notary Public in and for the State of Iowa. For example, the following code gives the error: private void frmCustomer_Load(object sender, EventArgs e) { if (!Valid()) this.Close; } The Solution: private void frmCustomer_Load(object sender, EventArgs e) { if (!Valid()) this.BeginInvoke(new

Just a wild guess. ====== Doug G ====== I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Turns out it was a threading issue. Should I report it?

It should not happen. lần hàm Code: private void _btn_search_Click(object sender, EventArgs e) { _panel1.Visible = true; _panel2.Visible = false; flagFinish = false; Thread threatExecuting; threatExecuting = new Thread(new ThreadStart(executing_search)); this._timer1.Stop(); this._timer1.Start(); threatExecuting.Start(); } thì When you call Dispose() method (according to the error message this is what happens) on an object, that object will try to dispose of all its children and do some cleanup. Last edited by acidedgeuk; April 13th, 2011 at 12:17 PM.

It throws such exception: InvalidOperationException:Při zpracování funkce CreateHandle() nelze volat funkci Close().: v System.Windows.Forms.Form.Close() v DevExpress.XtraTabbedMdi.XtraTabbedMdiManager.CloseForm(Form activeForm) v DevExpress.XtraTabbedMdi.XtraTabbedMdiManager.OnCloseButtonClick(Object sender, EventArgs e) v DevExpress.XtraTab.ViewInfo.BaseTabControlViewInfo.OnPageCloseButtonClick(ClosePageButtonEventArgs ea) v DevExpress.XtraTab.ViewInfo.BaseTabHandler.ProcessCloseButtonMouseUp(MouseEventArgs e, BaseTabHitInfo hi) v