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
ADVERTISEMENT
Nov 11, 2009
Can I create new dialog results for my dialog forms? And then use them with Form.ShowDialog method?
View 13 Replies
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
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
Jun 2, 2010
At one point I have a dialog form open, but in order to process it, the user might want to access information on other (open) forms. This would necessitate the ability to move/resize/scroll the other forms, but obviously everything is frozen during the dialog. I don't suppose it's possible to achieve this "semi-modal" state, where other forms can be browsed, but no other actions taken?
View 5 Replies
Jun 4, 2009
I have a simple desktop application that uses a .NET setup project (.msi file) to perform the installation. On the first installation, everything proceeds in a timely fashion with good feedback for the user.The problem occurs when the user is installing the latest version of the application over an old version on their machine.There is an unacceptably long delay of about 60 to 180 seconds from the time the installer's 'Welcome' dialog [It's not the Welcome dialog, I've removed that from the Start section of the setup project and replaced it with a CheckBox dialog to ask if the user wants a shortcut on the desktop] disappears until the 'Progress' dialog appears. The user sees minute(s) of blank screen and thinks the install has stopped or failed.
In the setup project properties, I've got the 'DetectNewerInstalledVersion' and 'RemovePreviousVersions' properties set to true. So, I believe that while nothing appears to be happening, the installer is actually removing the old version. The 'Progress' dialog does not appear until the new version begins installation.I've been trying to either:
a) Get the 'Progress' dialog to display immediately after the 'Install Icon' dialog disappears
b) Show another dialog while the Uninstall is running to let the user know that the setup is still running and everything is OK.
I have been unsuccessful with both methods. I'm using VS 2008 SP1?
View 1 Replies
Nov 6, 2008
I have my own class of graphic objects, and now I'd like to allow a user to right-click on one of those within the application and see a properties window. Is there a pre-built dialog or control for displaying properties at runtime? I'd like to have something just like the IDE properties window button for my application.
View 4 Replies
Jan 27, 2010
I have an assignment due this week in which I have to make a app that has 5 buttons and a picture box. When each button is clicked it has to show the corresponding picture in the picture box, the fifth button closes the app.
I have the whole form set up the way it should be, but I have no idea how to write the code to make the buttons display the images and close the app.I have the images in a folder within the project folders.
I have yet to be able to find one, the one I found should how to do it using a file opener dialog and a folder browser dialog but that is not what I think my prof wants us to do, as that is more for a picture viewer app that lets the user choose the file of the image they want ot view.
All i want is for the buttons to be linked to specific photos that are part of the application itself and have them open.
View 3 Replies
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 12 Replies
Jul 28, 2009
Once I click a link, I want to popup a dialog/window to display all the information of products. The parent page should be disable while the popup is opened. then, I would like to be able to pass information from the popup to the parent page..
View 2 Replies
Jun 30, 2009
I have a Dialog that is basically a confirmation dialog on some SQL statements. After the dialog I have an if statement: If frmRelease.ShowDialog() <> Windows.Forms.DialogResult.Cancel then.My buttons are set as DialogResult = OK and DialogResult = Cancel respectively on the dialog form.
For some reason, sometimes my button set to DialogResult = OK is returning me a DialogResult.Cancel, and causing me to skip a block of cleanup code.
View 7 Replies
Jun 3, 2009
I'm using a DLL in vb.net 2005, and this dll show a messagebox with OK option. I would like to close this Messagebox by code.
I was investigating to use SetWindowsHookEx, but I can not detect it. Is it possible to don't show any dialog, or detect the dialog using the dll name?
View 4 Replies
Oct 30, 2010
Where do you setup your dialog forms from? Do you set properties and populate items from the form that calls the dialog form or do you do it in the dialog form's Load event?Lets say for example I have a main form and a dialog form that lets the user add/remove some strings from a listbox that the main form then uses (and therefore the current items in the listbox should be remembered next time the dialog is shown). Would you populate the listbox with the existing strings from the main form and then show the dialog window, or would you pass the strings in to a property of the dialog window and then let that window put them into the listbox when it loads?I realise its not the best example because you could avoid having to do either if you just didnt dispose the dialog window, but there are numerous situations in my programs where I need to setup items on a dialog window (and dispose it when it has closed) and I currently tend to do it all from the form that is showing the dialog window. This often means I end up with a ton of code in my 'main' form if it calls several dialog windows though so it just got me wondering if other people tend to let the dialog windows do all the work themselves.
View 5 Replies
Jul 21, 2009
Is there a way to specify what forms are Locked when opening a Modal Dialog? I want to have a specific form available even if a Modal dialog is opened. The form in question is a child form (Accessible from the Windows application bar), that is created from the main application form. The Modal Dialog should only lock the main application form, and not the secondary window. Is it possible to make a secondary form independent from the main application form?
View 1 Replies
Jan 10, 2011
A Dialog that is added to a Windows Forms project comes with two buttons (OK and Cancel) and Click event subroutines for each. The subroutines close the Dialog with different DialogResult enumerations. Here's the code in the one for Cancel: Me.DialogResult = System.Windows.Forms.DialogResult.Cancel Me.Close() But either statement (changing DialogResult to an enumeration other than Null or Close), by itself, will close the Dialog as well. (Try commenting out one and then the other to prove it to yourself.) Here's the question: Why both? Why not just one or the other?
View 1 Replies
Jul 18, 2011
I want to clear the history in an open file dialog, so that previous opened files won't be shown if a user clicks on the drop down arrow behind "File name". I have created an open file dialog and named it "ofd_openen".
Then I 've tried:
ofd_Openen.SafeFileNames = False
and also
ofd_Openen.FileNames.Clear()
but that doesn't work.
View 3 Replies
Jun 13, 2007
My Startup form open very slow. How can I show a wait screen while Initialize Component. Then close this wait screen and show my Form.
You can see my attached image.
View 7 Replies
Sep 2, 2009
I designed a application on vb.net 2005. Some of the forms in this application has databindings controls. Now when such forms loads it takes some time. I want a splash screen containg "Please wait" message to appear till the form loads and the wait splash screen would be shown for every several forms in the application not only before the start up form.
View 1 Replies
Oct 23, 2010
I was woundring how to make a custom 'download' dialog for my web browser in vb 2010. Because when i click 'download file' in my tabcontrol it's always loads up the IE download file dialog. I have seen the IE Clone can do it, but i didn't uderstad how to do it.
View 2 Replies
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
Aug 5, 2010
I am having trouble with some code I am writing to handle an Excel spreadsheet. The idea is that the dialog box is displayed which invites the user to select an Excel spreadsheet. Once they have done that, it is opened and a separate function checks to see whether Sheet1 exists returning Nothing if it is not found. The intention being the try/catch block picks it up and gracefully does nothing. The problem is that when the function returns nothing, the dialog box is still displayed and the sub doesn't seem to exit. [Code]
View 4 Replies
Mar 25, 2009
My Front end is VB.net 2008.I have a form. In this form, I have a menu control, this menu control has four buttons.On clicking the first three buttons, open the window with Show() event. and the fourth button open the screen with ShowDialog().Now, One by one I am clicking the button , so finally i have now four windows of this application.(Three with Show() and one with ShowDialog())Right?
Now I am minimizing all the windows with the help of Window + D Button.After this, If I use the keyboard(Alt+ Tab) keys. This is opening the showDialog window on top because , Show dialog's TopMost = True.Now I come back to my problem. That's why I cannot use the show/Showdialog overloaded menthod to pass the Me/form-id .Again, I use the keyboard(Alt+ Tab) keys, to minimized all windows. In the taskbar and Startmenu properties ,I have selected the Group Similar Taskbar buttons.This resulted in the heap of my application windows, one on the other.Now i click on one of my application window , and If I click the window other then the Show Dialog opened Window, this is not bringing the show dialog window to topMost.
Note:- There is no parent child window requirement. That's why I can't use the Show/Show Dialog overloaded method to pass the Me/Form-id
View 10 Replies
Aug 4, 2009
How can i create a form dialog. I mean when that form show, then i click to other form, form dialog still show and behave like a dialog.( when lost focus , dialog alway focus).
View 2 Replies
Apr 2, 2010
Whenever you have a messagebox, it grabs attention from your main window and doesn't let you click back into your form until you hit okay.I want to make a form that does kind of the same thing. I have this for that shows download progress and I don't want the user to be able to click back into the main form until the download form is finished.
View 4 Replies
Feb 1, 2009
Public Class frmStudentScores
Private Sub btnAddStudent_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAddStudent.Click
[code]....
The Form that I'm trying to get to Display as a Dialog box is AddNewStudent1 but I keep getting an error that says AddNewStudent1 is not defined.
View 3 Replies
Apr 22, 2009
[code]...
The Form that I'm trying to get to Display as a Dialog box is AddNewStudent1 but I keep getting an error that says AddNewStudent1 is not defined.
View 12 Replies
Aug 7, 2009
I'm having an interesting issue that I can't reproduce on a different project, but can consistently on this one. I have no clue what might be causing it, but am hoping that someone may have seen it before.
I have a main form, from which I run a series of checks. On this form, I have a listview control. Because of some issues with the refreshing of this listview control, I had to create my own messagebox. It's just a form that displays some text ( it also happens to look nicer than MsgBox; in my opinion, anyways ). It's been working great for months, until recently.
My problem is that on my main form's load event, I run this check, which returns an error within a try/catch block. I then call my custom messagebox with a message. It in turns calls it's ShowDialog() function.
In any other situation ( after the main form has been loaded ), I have no problems. The messagebox goes on the screen and behaves appropriately ( ie: waits for my input and acts as a modal dialog ( stops execution of my main form's thread ) ). However, on this onload event, my messagebox comes up and goes away almost immediately afterwards.
I've traced it all the way to the showdialog() call. For no explicable reason, it appears to skip right over this call, without me doing anything on the form.
Here's what the inner trace looks like ( when I put a breakpoint on the onclosing event for this messagebox form ):
CODE:
View 10 Replies
Feb 3, 2010
I want to be able to check if there is currently a dialog or modal form shown for my form so that I can close it.
Is there a way to do this?
View 1 Replies
Oct 14, 2009
when I compile the dialog do not have the picture on it...here is the classfile data Tier
Public Class ChemistryDataTier
Private aDataSet As chemistryDataSet
Private aTableAdapter As chemistryDataSetTableAdapters.ChemistryTableTableAdapter
Public Function getChemistryData() As chemistryDataSet
[code]....
View 1 Replies
Jan 21, 2011
I am using VB.Net 2010. I have two dialog forms open at once. the form that does not have focus I am trying to close and reopen to show the value changes. Below is what I have.
[code]...
the form associated with f never closes, however does open with the new values. I have tried Application.DoEvents and that hasn't worked.
View 11 Replies