加载不同形式后加载表单形状。 [英] Load shape of form after a different form is loaded.

查看:95
本文介绍了加载不同形式后加载表单形状。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨伙计克里斯,

我只想问一下表格形状,例如我有form2和form1,我想要加载form2的形状在form1上(这是我的加载屏幕)所以form2在加载时加载形状不会花费时间。

I just want to ask AGAIN about form shapes, for example I have the form2 and form1, I want the shape of form2 to be loaded on form1 (which is my loading screen) so it won't take time for form2 to load the shape when it loads.

这是我的代码:for form1

Here's my code: for form1


Public Class form1
  Public Sub sload()
    Application.DoEvents()
    Try
      ShapeForm(viewsrpt, My.Resources.Shape)
    Catch ex As Exception
      MsgBox("Unable to fetch resource data for this form EA12.", MsgBoxStyle.Exclamation)
    End Try
    viewsrpt.SetDesktopLocation(Screen.PrimaryScreen.Bounds.Width / 2 - Me.Width / 2, 100)
    mparent.Visible = False
  End Sub
  Private Sub form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    sload()
  End Sub
End Class

推荐答案

主持人,请你转到
Windows Forms General


这篇关于加载不同形式后加载表单形状。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆