Open Exe Of Program In A Form?
Jan 21, 2011I develop a small calculator in VB 2008 but i lost the code due to virus attack on my computer. But i make a exe when i complete is it any way i open this exe in my new project?
View 5 RepliesI develop a small calculator in VB 2008 but i lost the code due to virus attack on my computer. But i make a exe when i complete is it any way i open this exe in my new project?
View 5 RepliesHow can I get Visual Basic to open another form using code? I have attempted to google the solution several times and never found anything that works.
Also, do VB forms share variables? Is there any way for one form to send data to another form?
I have a vb.net form which has a button in it. The button will call A.exe (it's a vb.net exe) using the command Shell("A.exe ", AppWinStyle.NormalFocus).
How can I make sure that everytime I press on the button, A.exe will only open once, and does not open a new form each time?
I am developing an application with a number of windows forms. The first form I designed is the one that opens when I run the program. This was fine all during the development and testing.
Now I want to add a Login form but can't figure out how to get it to be the opening form when a user starts the program.
Does anyone know how to call an InfoPath form to open from VB? The form is located on a webserver so the path would be something similar to[url]...
View 1 Repliesi need to open a form (loginform1.vb) when the program starts. i do not want this form to be able to be closed, as it will be used as a login for the form. i have already tried loginform1.show() but this is able to be exited, and it is started in the background.
View 4 RepliesIs there a way to direct a form in VB.NET to open and maximize in the second monitor. That is if there are two monitors displayed, to have the form load in the second window maximized by default?
Say a program was made with two forms and a computer has two monitors attached.
I want FormA to show in MonitorA by default and FormB to show in MonitorB maximized by default
How do I Close a Form and then open a new one straight away? Im trying to make a Login for a Program, but I want the Login Box to open first, then disappear when the credentials are correct and a new Form to load.
View 3 RepliesI've got a VB.Net form application that dynamically loads user controls based on which navigation link the user clicks on. I'd like to make it easier to use at Design time by putting a link of some sort to open the User Control at design time. The link would go onto the form in the space where the User Control will be going. This just saves a little time from having to browse through the files to open the correct file.
View 2 RepliesHow I Can open the same form in my application one time only can not open the form tow time in same time
View 5 RepliesI'm try on Ultimate version and Express version. Reinstall many time from web install and offline install. What should I do ?
View 10 RepliesI am currently working on a menu driven console program that so far has 4 menu options of checking internet connection, decrypting/encrypting a message, calculator, and a logout, and i am wondering about a few current things.
1. How do i make it to where, when a program starts for the first time, it asks for a user to enter in his data, like signing up for a site for the first time?
2. How do i make it to where the program will save the data entered, and does not delete when the user closed the program.
3. How can i make it to where when a user signs in, his/her data is read correctly? Like an array search for a multidimensional array.For my "New user" sign data i created a function...
Function createNewUser() As String()
Dim name As String
Dim userName As String[code]...
get a button on form A to open form B and then close (not hide) form A when clicked?Background: I am coding a VSTO application for Excel in VB2008.
Private Sub FormAButton_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles FormAButton.Click
Dim FormB As New FormB
[code]....
Is it possible to only make a program open when another program opens it? so when someone tries to open it themselfs by clicking on it, it pops up a error message?if so then how would someone go about doing this in VB 2008?
View 9 RepliesI have mdi application, on main form which is mdi container and has a tree view. i open the child form on afterselect even of treeview. the issue i'm facing that i open the form but focus remain on tree view until i click on the the form. my question is how i can give focus to form rather it stays on treeview. i tried frm.focus also activatemdichild(frm) no sucess.
View 21 RepliesWhen I open my child form,
frm_Analogs.ShowDialog()
It opens up the new form, but now I can not interact with my main form. It will not accept focus or allow me to interact with it.
Do I need to change the form type?
I have a MDI Parent form created with a MenuList, I also have the MDI child form created.ow do I go about using the MenuList to open the MDI child form within the parent form?
View 1 RepliesPrivate Sub Button3_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
'Para abrir un formulario independiente /Open independent form
[Code].....
I have a date selector on mdi parent that updates a property when date is changed. When I open a child form, it grabs the property just fine. However if I change the date again after the child is open the date does not change on the child unless I close and reopen the form as expected. What would be the best way to automatically update all open child forms when the date is changed on the parent at anytime? running a timer to parse the date property is impractical.
View 2 RepliesI have form A that has a datagrid on it, I want to be able to double click a row in form A and open form B to that record.
I know how to do that in VBA in Access 2007, but I am having trouble comprehending the procedure for VB 2010.
Using the code below:
Private Sub ShowDropDown()
Using f As New DropDownForm
f.Visible = True
Do While f.Visible
Application.DoEvents()
[Code]...
This was a guess, after looking at the Form.ShowDialog method in reflector.My question is, is there a managed call I can make to acheive the same result, and what does a button click do that other clicks don't?
ETA: The problem does not occur if I open the form using a key.
disable the parent window form as soon as the user will open the child form....
for eg...consider daniweb...when we click on member login the background form gets grayed out....
Disabling the form is not the option cause it will just disable all the controls of the form....but I need a grayed out screen between the current child form and the parent form....
note - the parent form is not the MDI form...it is just a normal window form and when the child form is open and if the user clicks on the main form without closing the child form then the screen should show some movement...
I tried disabling the form...changing the background of the form to opaque....but could not get through it....
I have read a lot of the prior questions/answers on this topic but it only took me so far. I have a solution to which I added 2 additional programs. These 2 added programs in essence create a PDF2TIFF converter using GS. I wish to call that form and use it as a utility from my main program. After reading other answers in the forum, I added these two programs as references in the main program and imported everything available, into the main program. I have what seems to be a correct build order set up. I want to open the form in the utility project(s) from a link on my main form. I tried a few things but the only way I could write the code without errors was to instantiate the second program then call that with a button click.
[Code]....
I've been looking all over the internet, and I couldn't find any decent answers. Obviously, two things to know:1) I'm using VB.2) The Forms are all FULL SCREEN, with the code
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
Me.WindowState = FormWindowState.Maximized
Me.TopMost = True
[code]....
I believe I need the code for Load Event. I have tried many ideas. I have searched the threads here and also google of course. No luck as of yet. Better description: I have a file named hello.txt. The contents of this text file are "hello". I use my program as the default for .txt files. I dbl click hello.txt. My program loads and the contents are blank and it should have "hello" in it.
View 31 RepliesWhat I want is -
Dim filename = System.IO.Path.GetFileNameWithoutExtension(Application.ExecutablePath.ToString)
Dim openForm As Object
[Code]....
how can i do that? first form close and second open........i did that but first is only hiding not close
View 2 RepliesI have designed my app for multiple gridviews. When a user double clicks a row it opens up the data in a modal form and when they commit changes the row gets updated.While they have that modal window open they can not go back to the grid.But I have a alerts/messages window always running (like outlook tasks). As soon as I open the modal window I can not access that tasks window. (Default behaviour)How can I open the modal form and still let the user access/view the tasks window while they work on the modal window.(I tried creating it in a differant thread, but got a lot of cross thread errors so decided to abandon that approach.I thought that 2 modal form can run at the same time as long as they have differant parents. But aparently the main GUI thread pauses as soon as you open a modal window on it.
View 10 RepliesHow can I make the second form (same size as the first) open exactly where the first form was?So Form1 is hidden, and form2 is shown in exactly the location form1 was in.
View 2 RepliesI want to add a Menu bar to my Main form and by clicking OpenButton on that Menu bar i want to open a new form window while my Main form remains open as well.
View 7 Replies