473,671 Members | 2,442 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(unti l 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 2427
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 BackgroundWorke r, 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
1502
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 closed, anytime a user moves the panel, the area that contained the last dialog opened flashes the background color through the picture. It doesnt make any sense to me that even if I do a Form1.Invalidate()
1
1444
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 set background in C# project, but in MFC project I din't find any way. And the second minor question: Does MFC prject in VS.NET support the same MFC libraries just like VS 6.0 or I should provide with my program newer version of MFC?
6
5003
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 the same for the page's background color? Should be simple I think? Jerry J
1
975
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 want the image to stretch.. Thanks,
3
960
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
17590
by: Cc | last post by:
hi, how do I make form background colour transparent when I set border style to none?
2
3280
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 cannot seem to find a stretch property like a picturebox has. -Ivan *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
5
12481
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 for any help. Bernie Yaeger
9
1268
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 sort of me.backgoundcolor attribute however... Can someone help me dynamically chage the background color of the main
0
1282
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 auto scroll to my form and tile to my background image. This is the intial look : http://img.photobucket.com/albums/v179/dr3amxstar/Before.jpg When i scroll up and down the form it becomes like this : ...
0
8926
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8824
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8673
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6236
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4416
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2818
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2060
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1815
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.