Make Variable Exesable To A Dialog?
Oct 15, 2011I need this code below to be able to make use of an Var called EditingIndecator, this Var is on Form1.[code]...
View 7 RepliesI need this code below to be able to make use of an Var called EditingIndecator, this Var is on Form1.[code]...
View 7 RepliesUsing Visual Basic 2008 Express. I need to pass a variable to another form. Or else make the variable visible to both forms.
View 4 RepliesFirstly, how can i make an open button, so i can open saved html pages.Secondly, how can i save html pages in my browser.
View 4 RepliesTrying to make a save file dialog for this program. I have it working without syntax errors but its telling me "empty path name is not legal" and gives me a "Argumentexception was unhandled".[code]
View 13 Replieshow to make BindingNavigatorAddNewItem to ask primary key in a dialog while new row is created after button is clicked?
View 1 Repliesi need to know how too make a dialog stay attached to the side off another window.
View 6 RepliesI have a VBA form in Microstation I am using to try and help automate a task. The only problem I am having is I am reading a textbox (Filebox.Text) and setting it as the variable (FN). It works, because I used Msg.Box (FN) to test it. However, in two of the lines of code, I am trying to use (FN) to pass the typed in filename to the command to run in Microstation. Unfortunently, it gets passed on as (FN).dgn instead of the actual filenale typed into the textbox. Is there a way I can make the variable actually seen as a variable? Code on Pastebin: url....Also, not sure if this is the right section, 100% new to VBA, coming from a world Bashed together.
View 3 RepliesI want to change certain words in line as bold and remaining words as normal case. And I want to display this kind of text in dialog box. I want to achieve it in vb 2008.
View 3 Replies[Code]...
'Show the Open dialog and if the user clicks the Open button, 'load the file If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.Ok Then
[Code]...
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 Replieshow do i return the file path to a variable when using open file dialog to browse and open a file?
View 14 RepliesThe specific features I want to produce is it doesn't place on the form, it places in the little box at the bottom and when CustomUserControl.Show() is called it shows as a dialog boxI'm sorry if I misspelled something or my grammar is wrong, I've never done well in those subjects.
View 1 RepliesA program I'm developing launches dialog boxes to get information from the user. Right now, the user can still click on and manipulate the main form while the dialog box is open. How can I make the main form inaccessible until the user closes the dialog box?
View 2 RepliesI 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?
Can I create new dialog results for my dialog forms? And then use them with Form.ShowDialog method?
View 13 RepliesIs 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 RepliesI 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.
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.
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 RepliesI have a variable and i need to seperate it into 2 variables so in code form its like this[code]...
View 1 RepliesI posted this before and got a few answers that haven't worked for me so far. Therefore I'm going to post part of my code so you can see what I'm talking about. The highlighted part is what I pulled from another post and it's not working for me right now. I'm using visual studio 2008 and the program was written in Basic. I pulled most of this program from the net and started tweaking it to my needs, If you're familiar with arabic you will understand the letters, if not, just use A and B for the variables.
[Code]...
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.
I know that
Public Incognito As Boolean
is a variable called "Incognito" that is class-wide that is a boolean.My question is that is there a form-wide variable form that can like communicate with different forms. So if a variable in form1 is "True" than, how can you make a variable in form2 turns to "True" too?
I want to make a Variable textfield, so i can use it in a while loop. I know that in FLASH it's like[code]...
View 10 RepliesPrivate Sub NoteTabToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NoteTabToolStripMenuItem.Click
Dim NewTab As New TabPage
[code].....
Having trouble accessing a dim variable inside a btOk or Load event. when I dim a variable that will be used a lot, do I need to make it a class and then referer to it?
View 7 RepliesHow do I name a variable depending on what is in the textbox?
Like would it look like:
Dim (textbox.text) as string
etc.
The reason I want to do this is because the user is gonna click a button to create a task. When the button is pushed, a label is created by the code I already have, the problem is, I want them to be able to click the button more then once and new labels will appear below the one that just was there. By being able to name a variable by what is in the textbox, I will be able to do so many things.
I have an issue with an app i am writing, i need to make a variable accessible to any module or class within the project but that cant be accessed outside of the app as it is accessing info the end user shouldn't have access to.
Ok, well a practice i have gotten into in the last few years is to declare a module on the same page as the main form and declare variables either friend or public (global variables). with my app public is not good so i tried Protected Friend but i cant use this within a module.
I tried placing it at the top of the main form but one of my classes can't access it, what would be the right way to do as expected. besides the main form i have 2 classes call them class1 and class2:- main interacts with both classes class1 accesses class2 class2 doesn't access class1
How do I make Variable eccessable to other forms in my app?
View 3 RepliesWhat I would like to do is be able to take a Dictionary of key value pairs and make the key the name of a variable and the value the value. From searching the net seems to be very vague on whether this is possible.
[Code]....