473,513 Members | 2,456 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

form in the background

4 New Member
how to run a form in the background.i need to run a form where it appears until the application exit.
on top of that form(Main), another form(Main1) runs.
how can i implement this using C#?
[Main runs in the background(until the application exits) and the Main1 runs on top of Main]
can't i do it with out making the form property isMdiContainer to true?

please help me!!!
Oct 3 '11 #1
3 2420
GaryTexmo
1,501 Recognized Expert Top Contributor
I'm not sure about an MDI application, but I do believe a form has a MinimizeToTray property (or something very similar). You can use that to make your form run in the background. You can also simply set the visible property to false so it's invisible.

If you have functionality that runs and is never intended to be seen, why are you using a form? You might want to consider using a BackgroundWorker, or a Thread to handle this so you don't have it on a form. Or is this form something that will appear from time to time, but would otherwise remain hidden?
Oct 3 '11 #2
kayo
4 New Member
yes bpaper should appear time to time.
Main should run in the background until the application exit.
time to time Main1 and bpaper should become visible N invisible to users.

how can i construct a code for this purpose?please help me!
Oct 4 '11 #3
GaryTexmo
1,501 Recognized Expert Top Contributor
I don't know what event you're going to have to trigger the showing and hiding of your forms but whatever you are using, you can use the Show/Hide methods on a form to control visibility.

Give the coding a try first, then if you get stuck post back here and I'll try to help you out.
Oct 4 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1495
by: smoke | last post by:
I have a picture on the form background and a panel which can be moved by the user by dragging it. Various dialogs are also opened and closed by the user. Why is it that after a dialog is...
1
1434
by: German | last post by:
Hi. I'm using VC++ 7.0 do develope my MFC dialog based application. Is there some way how to set background for my form? Just like property. Drawing in runtime is unwanted. There's no problem to...
6
4991
by: Jerry J | last post by:
Is there a way to change the background color of a web form on the server before it is posted? In the pageLoad event I can do it to server controls by adding an attribute, however, how do I do...
1
969
by: niv | last post by:
Hello, I set my form's background to an image but the images seems to be repeating..how do I stop this? Also, I want the image to stay exactly as is.. if the webform changes in size.. i dont...
3
955
by: Carlos | last post by:
Hi all, just wanted to know if an image can be used as the background for a form, and what is the technique to do it. Thanks, Carlos
6
17585
by: Cc | last post by:
hi, how do I make form background colour transparent when I set border style to none?
2
3274
by: Ivan Weiss | last post by:
How can I stretch a background image to fit the size of my form (fitting underneath a toolbar and menu control I have on the top) and make it automatically resize whenever the form is resized. I...
5
12464
by: Bernie Yaeger | last post by:
It's trivial to have an image as the background in an mdi child form. What I can't seem to get done is place an image as the background of an mdi parent form. Is there a way to do this? Thanks...
9
1258
by: HankC | last post by:
I have a vb.net app that serves our four campuses. A student logs in to start the app. Based on their login domain, I wish display the campus color and image on the form. I cannot find any...
0
1264
by: dr3amxstar | last post by:
Hi I added a background to my form and on my form there is a picture box. my program basically draws shape on the picture box so the picture in the picture box can be very big. Therefore i added...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7537
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7099
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5685
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5086
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.