如何隐藏表单但处理不停止其工作 [英] How to hide form but processing not stop its works

查看:120
本文介绍了如何隐藏表单但处理不停止其工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个应用程序,它只是有一个计时器,它继续工作,它实际报警给定的时间只想运行时,Windows启动我做了它我只是在Windows启动时在注册表中添加





i尝试开始申请

me.hide()



但它不是工作形式相同它是必须隐藏和工作但它不需要帮助我只是运行它,因为日期将相应地匹配系统日期否则它总是隐藏和工作旁边没有人知道什么是反手击球



谢谢



我尝试了什么: <


i am making a app which just has a timer which is continues working and its actually alarm with given time just want to run always when windows start i did it i just add it in registry at windows startup


i try to at form start
me.hide()

but it is not working form same as it is it is must hide and working back hand but it is not need help i just wat to run it as date will matched accordingly system date otherwise it is always hide and works beside no one know what is running backhand

thanks

What I have tried:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim regStarUP As RegistryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN", True)
        regStarUP.GetValue(IO.Path.GetFileNameWithoutExtension(Label1.Text))
        VALUE = regStarUP.GetValue(IO.Path.GetFileNameWithoutExtension(Label1.Text))
        If VALUE = Nothing Then
            
            regStarUP.SetValue(IO.Path.GetFileNameWithoutExtension(Label1.Text), Label1.Text)
            regStarUP.Close()
            MsgBox("WRITE COMPLETE :")
        Else

            MsgBox("already file there ")

        End If
       


    End Sub

推荐答案

您的问题不明确,但请尝试以下内容:

您需要将代码放在两个线程中并使其中一个成为后台线程和另一个线程启动线程前景。
Your question is not clear but try below:
you need to put your code in two thread and make one of them background thread and another thread startup thread foreground.


您可以使用通知控件。在后台运行。



访问以下视频教程:



C#教程62:如何使用C#的NotifyIcon控件 - YouTube [ ^ ]
you can use notification control. which runs in a background.

Visit below video tutorial:

C# Tutorial 62:How to Use the NotifyIcon Control with C# - YouTube[^]


这篇关于如何隐藏表单但处理不停止其工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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