How To Make A New Form To Open A File
Apr 21, 2009For creating a new form I use: Dim form2 As New Form Form2.Show()How to make the new form2 to open a text file in its textbox?
View 6 RepliesFor creating a new form I use: Dim form2 As New Form Form2.Show()How to make the new form2 to open a text file in its textbox?
View 6 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 my login screen to open over my editor! Example MS word how they have the tips screen over top and you press the close button if you don't want it there.
View 3 RepliesI have it so a form opens first. But I want
LoginForm1.vb to open first.
How can I do this?
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 very much a beginner to VB.net and I'm still flicking through tutorials, learning basic stuff however I need to make a program fast and need help with it. I need to know how to make the form open a game save,whether that be for PC, Xbox or anything else.
View 3 RepliesI need to make my program open a file, write a length of 142 bytes over an existing 142 bytes and save. Please help. I have gotten no where with it so far...
View 3 RepliesHow 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 Replieshow do i make this open a file with the name of .mxp and any text file how do i add that in. and how do i open the file mxp to Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click
[Code]...
[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 have my code until now,like a set-up file.First when i click on my button it sends me to the form with the setup steps,when in setups it is copying a identical file into the startup menu.I want my button to check if i have that file into the startup folder,if i dont have it to send me to the setup if i have it to send me to the form with the program.I must mention that there are 2 forms,the setup form and the form with the program.Until now i tried this,but it dosent work so well...
Public Class Form1
Dim OS() As String
Dim UserName() As String[code]....
Checks,if i dont have the copy-cat of this file it sends me to the setup where it is copying the file.And if i have the copy-cat in the startup folder then send me to the other form:).
Question 1: How to make 'Button1' open a external program of there choice using the File Browser.
Question 2: How to send 'TextBox1.Text' to an external process
Question 3: How to save data in a .dll file made from Visual Basic
If anyone has source codes that I code edit for Visual Basic 10/08,And If you could sort of walk me through what I would need to edit to make it work for my programs
im trying to make an application which on start ask the user to browse for a .lnk file Once the lnk file has been browsed,the application is shown and there are two buttons
1.Launch
2.Exit
When The Launch Button Is Clicked,The .lnk File which the user browsed to at application startup should open. On exit,well it just exits the application! and the openfiledialog should pop up only for the first time the user ever opens the application.the file path should be stored in a .txt or .ini or registry file so that next time he doesnt have to browse for it again..how would i go about doing this!Here is my code so far! Public Class Form1
[Code]....
The 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 RepliesI want to open a text file to a richtextbox inside a form named frmMain. I have a form named frmStartpage and it contains a button named open. When I click the button open, an open dialog must show and select a text file then open it on the frmMain..
View 4 Repliesi want to open a pdf file from a form. i am using VB6. can anyone help me. i could open the file using acrodrd32.exe and file. but i want make package and send to my customers also.
View 6 RepliesI'm looking to open .PDF files in VB.net Winform. Is there a way i can do that. The files will be from aNetwork Directory.
View 4 RepliesI have made an app and I want to add it to " open with menu" sub menu which appears when user make right click on any file ie I made photo viewer app and I want to add it to "open with menu" so user when make right click on any photo and go to "open with menu" sub menu will find my app name to chose it to open the photo with it
View 7 RepliesI wonder if you can open a file .exe inside the Form. And this .exe file does not exit the Form. E.g. create a process that clicking on the button will open the Windows calculator, but the calculator will is stuck in the Form.
View 5 RepliesHow do i open, for example .exe file, when i click the button, but not in new window, in my VB form? I have no idea how to do that .
View 12 RepliesI'm trying to make a login form thats opened by a button. I know how to make the button open a new form but I want the form to have a admin login,guest login and a new user button that only a logged in admin can open, it should also have a 'only admins can create new users' type messagebox. If your still understanding me I also want it to stay in the file, like you press the login button and it brings you up to the page. I don't know if it could have account control like user from limited to admin.
View 14 RepliesI m developing an application, where I would like the user to open an existing excel file inside the Application itself (Form)
View 1 RepliesI made a buttom that saves info from RichTextBox to selected location now My problem is I want this file to be loaded when program loads so basicly folder will look like this
myprogram.exe CustomNamesFolder > Inside that folder there will be a file called names.txt how can I doit so that name.txt file loads in my ComboBox? so when user downloads the exe they can just go in to folder edit the .txt file and add names they want and when they start program it will load this list in to the ComboBox of my program
How can I achive this ? I looked at 6 pages of Loading Files in program but non told me what I wanted to know above ;s
attch a file in .net application,which can open from the form on clicked..
View 4 RepliesI want to get the contents of my excel file and put some of it to textboxes..
View 4 RepliesWhat I want out of this program is to have a saved file open up in another form and displayed in 4 text boxes so they are able to be modified. my code is as followed:
[Code]....
As part of a new program, I need 2 forms and an openfiledialog. On Form1, a button event opens Form2. Form2 has an openfiledialog triggered by a button shown below.
'Form1's button to open Form2
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
[Code].....
How I Can open the same form in my application one time only can not open the form tow time in same time
View 5 Replieshow can i make my webbrowser open up a new link in my same webbrowser or in another form? basically what im saying is i dont want it opening links in internet explorer.
View 3 RepliesWhen I open VB projects in Visual Studio 2005 and attempt to view a form view designer I have started getting "File Download - Security Warning" Message prompting a .tmp file in the location of my project. If I close all open designers and rebuild the project I am then able to open the designers OK.I saw a suggestion to 'restore file associations' in Visual Studio and tried this but with no success.
View 1 Replies