473,396 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to Open Second Form As Attached To First Form.

I am opening a Second From IN Different Thread and I am using this second form as Progress bar.

This second forms opens as another form but I want this not to appear on taskbar instead it should be on top of the original main form.

Expand|Select|Wrap|Line Numbers
  1. If ProgressTitle = Nothing Then
  2.             ProgressTitle = "Batch Process Is Running #1"
  3.         End If
  4.         PricingRunning.Text = ProgressTitle
  5.         PricingRunning.PB.Value = ProgressPB
  6.         PricingRunning.SB.Text = ProgressSB
  7.         While running = True
  8.             PricingRunning.PB.Value = ProgressPB
  9.             PricingRunning.SB.Text = ProgressSB
  10.  
  11.             PricingRunning.ShowDialog()
  12.             If PricingRunning.DialogResult = Windows.Forms.DialogResult.Cancel Then
  13.                 running = False
  14.             End If
  15.         End While
  16.         'Dim t As New System.Threading.Thread(New System.Threading.ThreadStart(AddressOf ProgressFormShow))
  17.         't.Start()
  18.         'ProcessRunning.ProgressBar1.Value = i
  19.         running = False
Apr 19 '10 #1

✓ answered by tlhintoq

This second forms opens as another form but I want this not to appear on taskbar instead it should be on top of the original main form.
Set progress form property .TopMost to true
Set progress form property .ShowInTaskBar to false

Set your property .BePatient to true
Set your property .Relax to true
Set your property .ReadThroughPropertiesAvailableToMe to true

5 2833
tlhintoq
3,525 Expert 2GB
TIP: When you first created your question you were asked to wrap your code with [code] tags.

It really does help a bunch. Look how much easier it is to read now that someone has done it for you. Its the button with a '#' on it. More on tags. They're cool. Check'em out.
Apr 19 '10 #2
tlhintoq
3,525 Expert 2GB
This second forms opens as another form but I want this not to appear on taskbar instead it should be on top of the original main form.
Set progress form property .TopMost to true
Set progress form property .ShowInTaskBar to false

Set your property .BePatient to true
Set your property .Relax to true
Set your property .ReadThroughPropertiesAvailableToMe to true
Apr 19 '10 #3
Sorry I was about to leave office at that time.

Any ways the option you have given me is not quite right. Setting TopMost=True is not quite good as it put the progress from on top of all even top of my other programs which I dont want. I want this form to be shown when the main form is activated and progress on top of main form.
Apr 20 '10 #4
Actually I want it to be same is ShowDialog Other ways I had read about like setting the OWN etc.

My Problem is I am doing this from another thread.
Apr 20 '10 #5
tlhintoq
3,525 Expert 2GB
I believe you can set the .Parent property of the child form. That will cause it to be on top of its parent, but not other applications.

But I have not tested that extensively.
Apr 20 '10 #6

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

Similar topics

2
by: DanC | last post by:
This is the situation. In the firts form a selection is done. After submit a second form is called. In that form there must be select from a list that is depending on the result of the first...
0
by: Scott Emick | last post by:
I have a main entry screen for a contact manager that has some buttons which can launch various other forms and these launch without any problems. I check if the form already exists and set focus...
2
by: c676228 | last post by:
Hi, This is my first time to post asp.net question on this forum. I have a question for "How to pass the first form value to the next form" I have enrollinfo.aspx form which look like as follow:...
1
by: Hemant Pathak | last post by:
Hi.................. i m using VB 2005 my problem is tell me how can i go first form to second form. when second form is activated then first form is close. i m trying this code........
4
by: kameshagasthilingam | last post by:
hi........ am a new join programmer as a fresher.... in vb.net we can get the values of first form to second form by creating a object for the first form and take the values using that object in...
1
by: chrisd49 | last post by:
Hi All I have a form which is based on a query to dis[play some basic details such as Site name, City, Post Code. I have a second form which gives a complete record set based on clicking the site...
3
by: rajashekar4dotnet | last post by:
how to open one form from the other form and close the first form if there are only two forms in windows application(VB.net) i had tried this method dim f as new form2 form2.show( )...
1
by: rk2008 | last post by:
Hi, I'm using following code to select a record on a form from dropdown list and I'm using MSSQL ODBC linked tables inside MS Access: Private Sub cboFind_AfterUpdate() Dim strCriteria As String...
1
by: menyki | last post by:
am still finding it difficult as a new java user. am designing a software that has multiple forms, controls such as combobox and so on and finding it difficult to do the following. i want some...
1
by: metalforever | last post by:
How do you redirect a form after submit(form sends email) ? This is pretty urgent for me. I have included the code in a pastebin. http://pastebin.org/249014 process_form sends the email. ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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
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
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,...

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.