form-load

UltraWinGrid Auto Refresh

半城伤御伤魂 提交于 2019-12-24 00:13:49
问题 In my vb.net project, I have 3 forms. home_mdi , Viewfrm and AddDatafrm . Viewfrm has an UltraWinGrid on it, which is displaying some data. When I click the add data button, AddDatafrm opens. When data is saved, the form then closes. At this point, I want the UltraWinGrid on Viewfrm to update/refresh and display the data that I added. At the moment, it doesn't display it until I close Viewfrm and then open it again. The images show this. (Data is not there at the start, it then gets added and

cannot draw ellipse on form load in c#

若如初见. 提交于 2019-12-20 04:03:42
问题 I am trying to draw some ellipse in a picturebox that contains a PNG on a formload in c#. When I execute the code down below, I see my ellipses for half of a second, then I don't see them no more. When I click on my picturebox, I am able to draw an ellipse however, when I minimize the form, they don't appear no more. I've read that you shouldn't put your drawing code in the formload but rather in the OnPaint method, which is what I did. I don't know what to try anymore. thank you. (Be aware

Explain critical bug in Visual Studio 2010 and up, WinForms and WPF

痴心易碎 提交于 2019-12-08 23:58:57
问题 Try putting the following code inside Load event handler for WinForms or Loaded for WPF. Dim doc As New XmlDocument Dim nsmgr As New XmlNamespaceManager(Nothing) 'this line throws an exception Problem is that exception is not thrown, and stack corruption happens. It may have different side effects, depending on the IDE - see below. Affected IDEs are: 2008, 2010 and 2012 (those I could test). 2010 resets stack state, and returns from sub/handler, like nothing happened (but without proceeding

Explain critical bug in Visual Studio 2010 and up, WinForms and WPF

烂漫一生 提交于 2019-11-30 14:04:35
Try putting the following code inside Load event handler for WinForms or Loaded for WPF. Dim doc As New XmlDocument Dim nsmgr As New XmlNamespaceManager(Nothing) 'this line throws an exception Problem is that exception is not thrown, and stack corruption happens. It may have different side effects, depending on the IDE - see below. Affected IDEs are: 2008, 2010 and 2012 (those I could test). 2010 resets stack state, and returns from sub/handler, like nothing happened (but without proceeding with other statements there). 2012 may warn a user about a failed application and an attempt to run in

C# WinForm - loading screen

↘锁芯ラ 提交于 2019-11-28 18:02:36
I would like to ask how to make a loading screen (just a picture or something) that appears while the program is being loaded, and disappears when the program has finished loading. in fancier versions, I have seen the process bar (%) displayed. how can you have that, and how do you calculate the % to show on it? I know there is a Form_Load() event, but I do not see a Form_Loaded() event, or the % as a property / attribute anywhere. JSJ all you need to create one form as splash screen and show it before you main start showing the landing page and close this splash once the landing page loaded.

C# WinForm - loading screen

≯℡__Kan透↙ 提交于 2019-11-27 10:23:40
问题 I would like to ask how to make a loading screen (just a picture or something) that appears while the program is being loaded, and disappears when the program has finished loading. in fancier versions, I have seen the process bar (%) displayed. how can you have that, and how do you calculate the % to show on it? I know there is a Form_Load() event, but I do not see a Form_Loaded() event, or the % as a property / attribute anywhere. 回答1: all you need to create one form as splash screen and