VS 2010 Hiding/Showing Forms In MDI?

Feb 16, 2012

I am using a MDI parent to house each of the forms in my application. I have a main form and 2 sub forms. The sub forms are opened using the code below. Also, when I am finished entering info into these forms, i am hiding them so that I can reopen them with the same info still entered.

The problem is that when i show the form again, it is blank. Why would this be the case? I am never closing or disposing the form, so shouldn't it just unhide easily?Showing the sub-form(savingsfrm1) and and hiding the main form(riskfrm1)Public savingsfrm1 As Savings

Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[Code]...

View 1 Replies


ADVERTISEMENT

Showing And Hiding Forms

May 4, 2010

When my login screen loads, if the user has not created an account the form will close and a form to create an account will appear. However when I code this both forms stay visible, instead of just the one. Where am I going wrong?[code...]

View 6 Replies

Showing And Hiding Forms In VB?

Mar 11, 2009

I've just upgraded from Visual Basic 6 to Visual Basic 2008 Express Edition.

1. Show anothor form (ie. Form2)

2. Close Form1.

At present when I use the me.form1 , but both Form1 and Form2 both closes.I would like to press a button or on a timer, to show Form2, while closing Form1.

View 4 Replies

Forms :: DataGridView Display - Hiding And Showing

Mar 31, 2009

I have a form e.g. Form1 , which displays a datagridview.
1) On form load, the datagridview doesn't have any data
2) The user clicks on a button called filter, this opens a form where the user can specify parameters to filter the data by
3) This form calls a setData() in Form1, which fills the dataset with the data

This works fine. If I click on a button called controlPanel it launches another form and hides this. E.g.
dim cp as new ControlPanel()
this.hide()
cp.show()

On the controlpanel I have a button that links to form1. If I click on it. E.g.
dim frm as new Form1()
this.hide()
frm.show()
It redisplays Form1 but without any data in the datagridview.

I think the problem is that since I am creating a new instance for Form1 it comes up with the blank Form1. Is there a way to redisplay Form1 so that it retains the data that was displayed last, without having to retrieve the data from the database.

View 1 Replies

VS 2010 : Showing Or Hiding Controls?

May 20, 2010

I have a form that searches a db. Some searches will always result in one row of data, others might return multiple rows. I want to have the data from a single row shown in text boxes and the multiple rows show in a datagridview is it possible to hide/show those depending on the amount of rows.

View 6 Replies

Showing And Hiding Forms From A Console Application Causes "Cross-thread Operation Not Valid."

May 7, 2010

Showing and Hiding Forms from a Console Application causes "Cross-thread operation not valid."

View 1 Replies

VS 2010 Hiding Forms?

Aug 1, 2011

It seems like such a simple thing to me, but it seems like the usual, me.hide() isn't working in this case. I have 2 forms that tie together, the login form, and then the main for being form1. The login form has an autologin feature, which works out fine, but with it enabled, the login form doesn't automatically hide like it should.

[Code]...

View 6 Replies

VS 2010 - Hiding / Closing Login Forms?

May 1, 2012

I've created a program with a login form. Once you log in, the login form should close and the next form should display... my problem is...
If I use Me.Close()... than both forms close and the application terminates.
If I use Me.Hide()... than the application never unloads from memory and run indefinitely.
So what do I do? Neither of these work how I need them to.

View 3 Replies

Hiding And Showing A Window

Oct 11, 2009

I was just googleing this, and i came across this

Dim p As New System.Diagnostics.Process
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
p.StartInfo.CreateNoWindow = True
p.StartInfo.UseShellExecute = True
p.StartInfo.FileName = "cmd.exe"
p.Start()

Does that mean that i could show it again? if so, is there a code that can do this?Also, if i wanted to get the window that the user is currently in, how would i be able to hide that?

View 16 Replies

Hiding And Showing TabPages In TabControl?

Jul 29, 2010

I am trying to show or hide tabpages as per user choice. If user selects gender male then form for male in a tabpage "male" should be displayed and if user selects female then similar next form should be displayed in next tab "female"I tried using

tabControl1.TabPages.Remove(...)
and
tabControl1.TabPages.Add(...)

It adds and removes the tabpages but doing so will loose my controls on tabpages too... i can't see them back. what's the problem here?

View 3 Replies

String Manipulation By Hiding And Showing

Dec 26, 2011

The idea is simple, if I have a string value "ABCD" then with a ButtonClick event it should randomly reveal a char while others are hidden. i.e, "B*" another click would "AB**" and so on. So far, my I have been stuck in a for loop.

[Code]...

View 2 Replies

VS 2008 Hiding And Showing Tabs?

Apr 25, 2010

I'm trying to search through all tabs to find a specific text. if the text is found, the tab will be hidden, or shown.

I tried this to hide:

btnHide
Dim txt As Object
Dim tabp As TabPage
For Each tabp In TabControl1.TabPages

[Code].....

View 8 Replies

Expanding Form (hiding/showing Controls)?

Jul 5, 2009

basically i have a form with loads of controls. So many infact it stretches the whole hieght of my screen.I only need half these showing since the rest are just a sort of 'log'I have seen ti done loads, that only the controls i want to show at start up are displayed then when some one hits a little button in the bottem it expands the rest leaving them showing to.

View 9 Replies

Hiding / Showing Rows In TopLevel DataGridView

Jan 8, 2010

I've embedded a form into another form by changing the Top Level property. My problem is that the new implementation does not allow me to edit the DataGridView at runtime. Here's the code I'm using from my main form:
Dim f As New form2()
f.TopLevel = False
Me.Controls.Add(f)
f.Show()
f.showRows()
f.showDbvHeader()
When I call the two methods on the onload event in form2 they run OK for the remainder of the event but as soon as it ends, the DGV reverts back to default.

View 2 Replies

Resources Related To Hiding And Showing A Windows Form

Feb 25, 2011

I have a form which has a picturebox and after clicking on a button another form will appear with a picture box containing the exact same picture. I use this line of code:Image1.Image = vImage.Image..The thing is after I do this i need to hide the form and show it again to be able to see the changes.[code]

View 1 Replies

VS 2008 Hiding The Current Form And Showing Another Which To Be On The Same Level?

Sep 13, 2010

It is times like these that I miss the old VB6 language I wish I could hide the current forn and show another form which - this is the important thing - to be on the same level that the previous form was . You see , I used to use this code :

Me.Hide Form2.Show However , sometimes in VB .NET this does not work the way I want it to . You see , the current form does get hidden and Form2 is shown indeed ; however , Form2 is shown somewhere in the background . If there are other programs opened at that time , then Form2 is shown behind all those programs , that's what I mean by saying I want it to be shown in the same level as the previous form was the only way out , I found , was to reverse the code :

Form2.Show Me.Hide In this way Form2 is successfully shown right where the previous form was shown (above the other programs) but in some cases this also is not pleasant because it might take some time for Form2 to load while at the same time the previous form is still visible on the screen and therefore for a slight time both forms are shown one over the other , which is surely not nice . That's why I still want to first hide the first form and later show Form2 .

View 17 Replies

Showing / Hiding A Form On Windows Server 2008 RD Web Access

Mar 21, 2011

I'm having an issue with my app where IE will get brought to the front of the screen when I am switching between forms. Basically I have a form with the man menu which consist of a few command buttons that will start up another form once a user clicks on the button. I do not want the users loading up multiple forms in my application, so once they load one form I end up hiding the main form. So my code looks as shown below when a button is clicked.

[Code]...

View 6 Replies

VS 2010 No Forms Are Showing Up?

Jun 30, 2011

Well I accidently double clicked both of my forms in a project and then they weren't pinned anymore so I exited them out hoping they'd be pinned aghain, but now when I open the project, no forms show up. Just blank blue wall... How can I get the forms back?

View 3 Replies

VS 2010 - Showing Forms On Multithreaded Application

Apr 17, 2011

I've finally gotten multi-threading working on my application, but now I'm having trouble showing forms when I need to. I currently have three threads in my program: one for updating a textbox, one for transferring files, and one for displaying forms. Here's a snippet of code from my program:

[code]...

I'm getting the error: Control 'frmXCopy' accessed from a thread other than the thread it was created on. I know what this means, but I can't find a way to make the ShowForm Sub run off of the main application thread.

View 9 Replies

Hiding/unloading Forms In .NET?

Feb 2, 2012

Im learning VB.NET and as a first task im creating a login form. ive been trying to link it to another form once a correct username and password are entered. however, despite that i still cant be able to hide it or unload it once the next form is loaded

Here is the Code

Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
If UsernameTextBox.Text = "chris" And PasswordTextBox.Text = "chrispass" Then
Me.Hide()

[code]....

The Form2 appears as coded above but the 'Me.Hide()' manages to hide the login form but then it appears again?

View 9 Replies

Rules/Guildlines For Closing Vs. Hiding Forms

Jul 16, 2009

I was wondering what Rules/Guildlines poeple for Closing vs. Hiding forms?

example:Should i only close a form when i am finished with it?

View 9 Replies

Way Of Hiding Forms And Classes From Main Project

Aug 31, 2009

the client has asked for all forms and classes to be hidden from the main project, so when he sells it, they will only be able to see part of the project and not all the classes and forms.My Solution: I have created another project called project2, and added all the forms and classes from main project, fixed all errors and compiled it.I deleted all the forms from the main project and added a reference so that it gets all the forms from the other project by referencing the dll file, but it does not seem to work and get a lot of errors.is there an easier way of hiding the forms and classes from the main project or do I need to do more then just add the reference.

View 2 Replies

VS 2010 Hiding A Folder?

Feb 25, 2012

Is it possible to hide a folder completely? By this I mean, not just set its property to hidden, but make it completely invisible so that the folder cannot be seen via Microsoft Windows Explorer?

View 2 Replies

VS 2010 Hiding A Form?

Feb 18, 2012

Dim Result As Integer
Result = MessageBox.Show("Question...", "Key", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question)

[code]....

View 1 Replies

VS 2010 Expanding/ Hiding Controls On Form

Jan 19, 2012

I'd like to design a Winform with expanding controls if that 's overly complicated. The idea is that I would have rows of information, each with an "Expand" button. On pressing the button, the rows underneath the selected row would move down and the controls that are associated with the selected row (some textboxes/ dropdowns etc) would appear. Vice versa when you click the "Hide" button.

View 2 Replies

VS 2010 Hiding Window Of External Process?

Jan 7, 2012

So i want to start an application with my vb.net app and it should start as a hidden process, meaning no window and nothing in the task bar, only in the task manager ofcourse.

This is what i do

Dim fov As New Process
If CheckBox2.Checked = True Then
RichTextBox1.Text = RichTextBox1.Text & vbCrLf & "* - Launching"
fov.StartInfo.FileName = ("test.exe")

[Code]...

This does not work.. I have also tried the "fov.StartInfo.CreateNoWindow = True" command which does not work either. I can live with a solution that would start the window minimized instead of totally hidden.

View 9 Replies

VS 2010 Hiding The Tab Page Headers Without Having To Create A New User Control?

Jan 15, 2012

Is there any way of hiding the tab page headers without having to create a new user control?

View 2 Replies

Forms Not Showing Up

Jan 2, 2010

I have built an application where there is a MDI parent form and other forms which i have not declared as Child forms but have set these forms not to show in Taskbar. While the application is running, if i have any of these forms open and i switch over to any other application other than this and when i come back to it, all these forms hide. I cannot reopen it or see it anymore.. Why is this happening?? how can i sustain these forms as it is even when i leave the application.LuxCoder

View 9 Replies

MDI And Showing Forms

Feb 23, 2012

I have added a MDI parent to my application and assigned all new forms to it (i.e. Form1.MDIparent = myMDI). When i hide and then show a form, it loses all of the data previously typed in the textboxes.

View 3 Replies

Main Form "hiding" Secondary Forms?

Mar 31, 2009

I have a windows forms application with several 'child' forms. (It's not MDI, and I don't want it to be).Normally everything runs fine, but on occasion windows gets into a state where all of the 'child' forms on the application are invisible when they should be on top of the main application. The oddest part is if I move another application's window over my application (i.e. explorer or notepad) the child form becomes visible within the boundaries of the other application. It's like windows is drawing my main form over top of the rest of the forms in my application without regard the z order, or topmost flag, or anything. If I cover the main form with a notepad window, etc. It draws my 'child' forms properly. Rebooting the computer and restarting the application temporarily solves the problem.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved