VS 2008 - Windows Dialog Forms Hidden But Not Closed

Jan 24, 2010

I am using a Windows Dialog form in my VB 2008 project. I bring up the dialog form no problem with the following
Dim resultNewInc As DialogResult
resultNewInc = frmDialog.ShowDialog()
If resultNewInc = DialogResult.OK Then
...some code here ...
End If

And in the Dialog Form, the OK button has code
Me.DialogResult = System.Windows.Forms.DialogResult.OK
Me.Close()

But there is one problem. If I call up the dialog form again, the form controls have the text values that were typed in during the previous instantiation and a class which is part of the form was not disposed. So it looks like the form is being "hidden" and not closed. I tried to use the code form.dispose but it didn't work.

View 4 Replies


ADVERTISEMENT

Popup Closed - Main Form Hidden Behind Other Windows

Oct 26, 2011

Using vb.net. I've got a main form that displays when application is opened. A popup form can then be opened. If there are other windows opened on the desktop, for example windows explorer, then when the popup form is closed, the main form gets hidden behind windows explorer. You have to move windows explorer out of the way to get to the main form. Is there a way to keep this from happening?

View 2 Replies

Conversion Completed Dialog Box Cannot Be Closed When Converting From VB 2005 To VB 2008?

Dec 28, 2010

I've been asked by management to convert all of my applications from VB 2005 to VB 2008 (in preparation for taking them to VB 2010). I have a VS 2005 application that uses an ADO Data adapter which was defined using the GUI. I normally define my connections in code, but have been asked to get away from that in favor of ADO (and similar) data adapters.When I run the conversion wizard in VS 2008, it appears to convert this program, with some warnings and I get the 'Conversion Completed' dialog box. However, the VS 2008, will not let me close the dialog box, even after waiting for 3 hours. The only way to get out is to reboot the system.

View 6 Replies

VS 2008 Check If All Forms Of An Application Has Been Closed/disposed?

Jan 20, 2010

How do you check if all instances of forms (or simply all forms of an application) has already been closed?

View 10 Replies

VS 2010 Show Dialog From A Hidden Form?

Oct 6, 2011

I'm trying to create a program that will look at a website and check it for updates, similar to an RSS feed. It then will show a dialog (Form2) that will inform the user that there is an update.Form1 is used as the configuration form and is able to be shown via a notify icon in the system tray, which is on Form1.Originally I would have Form1 hidden via Me.Hide() and then run a timer which would check for the updates and call Form2.ShowDialog() when there's an update, I found out however, that if Form1 is hidden, the dialog will not show.

Next I tried not Hiding the form, but instead setting its ShowinTaskbar property to False. At this point the program functions correctly, however when I minimize Form1 it sits in a shrunken window near the task bar... Is there any way to completely hide Form1 (when minimized), and allow Form2 to be shown as a dialog?

View 11 Replies

When Dialog Form Opens Does All Code And Timers Stop Until It Is Closed

Mar 2, 2012

When a dialog form opens, does all code and timers stop until it is closed?

View 19 Replies

Custom DialogResults - Create New Dialog Results For Dialog Forms?

Nov 11, 2009

Can I create new dialog results for my dialog forms? And then use them with Form.ShowDialog method?

View 13 Replies

Forms :: Modeless Dialog Active When Modal Dialog Displayed?

Nov 16, 2010

Is there a way to launch a Modeless Dialog that stays active even when a Modal Dialog is launched? Can I put the Modeless Dialog in a seperate Thread or something like that?

View 3 Replies

Passing Information Between Forms/dialogs (Form -> Dialog -> Dialog)?

Dec 22, 2009

I often use the process of displaying a dialog from a form, with the dialog user input then used to update the main form without any problem. In a new scenerio I launch the main application screen, I then show a login dialog ontop of the main app screen and can launch another dialog from the login if a new user is required. The plan is to update the login dialog (updating a combobox to reflect the addition of a new user) from the new user dialog.

See code below :-

'Update login forms user list as new user added successfully
frmRoomBookingLogin.cboLogin.DataSource = Nothing
frmRoomBookingLogin.txtPassword.Text = "Updating password from dialog"
MessageBox.Show("The password text is " & frmRoomBookingLogin.txtPassword.Text)

[code]....

The messagebox implies the dialog has been updated yet the text does not change. Is it possible to update the dialog when using a setup such as Form -> dialog -> dialog? I'm intrigued as why the dialog does not reflect changes. I have never refreshed/repainted the dialog as never required to in my other examples when updating a form from a dialog and never encountered a problem when using a two tier form setup.

View 2 Replies

VS 2008 Save Dialog Popping Under Other Windows?

Apr 30, 2012

I have a simple program that runs in the background and when the user presses a certain key will take a printscreen and pop up a save file dialog to save an image. But sometimes the save dialog is not appearing because it loads buried under other pre-existing windows, which have to be minimized in order to find it. Is there any way to force this dialog to be on top?

View 11 Replies

VS 2008 Have A Windows 7 Common Dialog Open To A Library By Default

Jan 20, 2010

I'm sure most people on here have opened an OpenFileDialog or SaveFileDialog and set the SelectedPath property to point to some directory...

Has anyone done this on a Windows 7 machine and been able to point the thing to a Library? If so, what do you set it to?

View 2 Replies

Forms :: Opening A Dialog From Another Dialog

May 29, 2009

I have a dialog which opens another dialog. The problem is that the second dialog opens behind the first. Is there a way to stop this from happening? I tried bringtofront with no success.

View 2 Replies

App Form Is Hidden Behind Other Forms?

Jan 25, 2012

I have a new application, and for some unknown reason, it's hidden behind other opened applications. It is shown when launched on desktop only if desktop is empty. How do I force my application to be in front of desktop ?

View 1 Replies

VB 2005 - ALT-TAB Forms Not Hidden

Aug 3, 2006

In v2003 setting the form property 'ShowInTaskbar' to FALSE would hide the form from the task bar but also hide the form if I did a 'ALT-TAB'. This is not the case in v2005. WHY and how can I hide the form for 'ALT-TAB'. The form has to be border-less.

View 7 Replies

IDE :: Toolstrip Dialog Objects Do Not Appear In Component Tray In Microsoft Visual Studio 2008 Professional On A Windows 7 System

Oct 5, 2011

I am running Microsoft Visual Studio 2008 Professional on a Windows 7 system.While working on a visual basic exercise in chapter 4 of the Microsoft Visual Basic 2008 Step by Step book on the MyMenu program I added a Toolstrip to my form and then I was trying to perform the add OpenFileDialog and ColorDialog controls to the component tray as described at the bottom of page 111 under Using Dialog Box Controls. I could never get the controls to appear in the component tray as instructed in the book.

I added a toolstrip to the form. According to my instructions I should be able to click on the Open file icon on the toolstrip to select it and then click anywhere else on the form. When I do that, the OpenFileDialog should appear on the component tray where I can then select it to enter code. This however does not happen.The only way I was able to get them to appear in the component tray was by opening the Menu program supplied on the DVD under chapter 4, selecting both of the above controls on the component tray, right clicking and then press copy. I then closed the Menu program and opened the MyMenu program that I created and then I was able to paste the two object controls to the component tray.

I went back to the original Menu program to see if I was able to place any other controls on the component tray by following the instructions in the book but was not able to. I also tried the same thing with MyMenu and it also still would not work.I have been unable to find anything that might explain why the component tray does not work as explained. Perhaps there is some setting somewhere that needs changed, but all searches have been unsuccessful.

PS. I have entered this on one of the other MicroSoft forums and although it has gotten multiple views I have not yet received any feedback.I also get the following error: Cannot add component of type 'ToolStripButton' to container of type 'form'.

View 1 Replies

Forms :: Contents Of TxtPassword Hidden?

Apr 4, 2010

how do I make the contents of txtPassword.Text when they type their password in. I need it to be hidden, like dots, when you log into your computer.

View 1 Replies

Forms :: Hide Hidden Devices

Dec 9, 2009

Been a long time since my last thread but here we go.I'm using VS.NET 2010 Prof Beta at the moment and I'm trying to list all Nic Cards and their settings into a text box. I succeeded with a script from the web (which had an error in the first place) and some adjustments to it.

It lists all hidden devices too (as to be shown in Device manager: Show hidden devices) I worked my way around it and let it jump to next if it doesn't have a IP address, but I find this a bit clumsy and want to really skip them if they are hidden and not just the way I did this now.

Plus it still does show the same NiC (different name, same MAC#) in the list because it has an IP, but in Device manager this one is hidden.[code...]

View 8 Replies

MDI Child Forms Are Not Destroyed After They Are Closed?

Dec 19, 2007

Do I have to manually call Dispose() when a MDI Child Form is closed? The MDI parent must call for Dispose() or inside the MDI child the call is made?

View 5 Replies

Forms :: Data Binding To Hidden Controls

Apr 21, 2009

I have a windows form that I bind to a datatable via a binding source. The binding is done in code at run time. Eg;Me.txtCode.DataBindings.Add(New System.Windows.Forms.Binding("Text", bsForm, "ToolCode", True)) (bsForm is the binding source)This works well except if the form control is hidden (I have a couple controls on the form that hold Record ID and Version numbers that the user doesn't need to see). Databinding doesn't seem to work reliably for hidden controls.

View 10 Replies

Forms :: Get Hidden Value / Tax From Combobox Based On Selection

Feb 17, 2010

I have a combobox populated from the DB with:

-ID
-State
-Tax

State is the only value that is shown.I'm trying to get the hidden value, Tax, from the combobox based on the selection but can't figure it out.

View 5 Replies

Forms :: WebBrowser Still 'active' When Form Is Closed

May 18, 2010

On a dynamic form a WebBrowser control connects to a Media Player on one of our servers.After the form is closed the audio is still running even though the FormClosed event is handled.[code]

View 4 Replies

Using A Hidden Windows Media Player Control?

Aug 28, 2010

How can I do this with either the My.Computer.Audio method or using a hidden windows media player control.

View 1 Replies

Connecting Two Forms - Operation Not Allowed When Object Closed

Jul 7, 2010

I'm very beginner in vb. I need to connect two forms with ms access. First form is connect with second using(form2.show). My need is when I execute the coding. I got a error on first form " An error occurred creating the form. See Exception.InnerException for details. The error is: Operation is not allowed when the object is closed.

View 2 Replies

Forms :: Detecting Open MDI Childs When MDI Parent Is Closed

Dec 16, 2010

I'm new to VB 2010 but have be using VB6 for many years.I'm currently stuck trying to store the state of open MDI childs at the moment the MDI parent is closed. Clicking the parent upper right close button appears to close all open MDI childs before running the parent 'Closing' or 'Disposed' events.I am therefore unable to detect which MDI childs are open and cannot restore them next time the application is run.Is there any other event for the MDI parent I can detect the start of the closing process before the children are closed?

View 2 Replies

Stop The Fade In Out Of The Forms When They Are Opened / Closed In Vista / 7?

Sep 24, 2010

I have an app that opens and closes several other forms. How can I stop the fade in out of the forms when they are opened/closed in used in Vista/7? It just gets annoying.

View 3 Replies

'Compile Error In Hidden Module' - Excel 2003, Windows XP SP2?

Jun 19, 2009

I have a program in VBA that uses Flexigrids. A little while ago, the program stopped working giving the error 'Compile Error In Hidden Module'. We were advised to remove Windows update KB960715 which we did and it worked fine. However, it has just stopped working again for the same reason and that update is no longer installed.

View 1 Replies

Cyber Cafe App - Start With Windows (Hidden In System Tray)

Feb 28, 2010

I want to create an application for cyber cafe which I thought should be as follows :-

1. My app starts with windows and is hidden in the system tray.
2. When IE starts my app gives a popup that your time has started at "Whatever the time at the moment would be".
3. When user closes its time is calculated in a Msgbox.

The problem is how to check if the users opens another IE window while working and add the bill to the same user. To reset the timer when i.e., is closed by first user and second user starts operating. How to start the app with windows and that too in system tray.

View 1 Replies

Windows - Drag And Drop - Modal Form Blocks Everything Until It Is Closed

Jun 10, 2011

I am implementing Drag & Drop in windows application. I have Main Form (Has a toolbar with Search, Open, Print etc) - MdiContainer On Search - Open a child - Search form. Drag and Drop a file to a Grid on this search form. In DragDrop event of the Grid - Call a Modal form. I am having trouble here.

[Code]...

View 1 Replies

Quick Find And Quick Replace Dialog Windows For 2008 IDE?

Dec 7, 2010

I am developing a VB application using the Visual Studio 2008 IDE. I was making changes to my code using the Quick Replace function when the dialog window stopped displaying. Selection of Quick Find or Quick Replace from the Edit menu, as well as use of shortcut keys (CTL+F and CTL+H) all have the same affect: the IDE loses focus but no dialog windows display. Is this a known issue with an available fix?

View 1 Replies

Asp.net : Make Hidden Additional Attachment Hidden And Visible?

Mar 13, 2012

I want to make 5 attachment options in that 4 out of the 5 are hidden.but when he clicks "more attachment" link it will show the other 4.Im using ASP.NET with VB?

View 2 Replies







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