Make A Form Read Only Until A Certain Button Is Clicked?
Nov 17, 2011
I also need to know how to make the same button create a folder to save a txt file in. I havnt yet figured out how to save changes made into my program, that way next time i open it, i can continue where i left off.
View 4 Replies
ADVERTISEMENT
Sep 9, 2011
How would i make a form grow down vertically like say 200px when i click a button ?
View 5 Replies
May 14, 2010
How to make a link button visible after another button has been clicked in asp.net(vb) in button_click()
it says error as "Object reference not set to an instance of an object."
i've done this in my code
Protected Sub InsertButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim receipt As LinkButton = FormView1.FindControl("LinkButton1")
' receipt.Enabled = "true"
[Code].....
View 2 Replies
Sep 5, 2009
I have already done the creation of button and the dragging of button at runtime already.But now i need to know how do i save the last dragged button on the form and also detect the name of the last clicked button.so lets say i now drag a button to coordinates 25,254. so when i exit the form and the next time i launch it, the button will still be at 25,254. and this one will go on for the number of button i created like 100. so when i launch the form the 100 button will be at the exact position where i last saved them.the second part is lets say i created button1 and button2 on the form in runtime. so when i clicked the first button, it should display button1. and if i clicked on button 2, it should say button2. same goes for like 100buttons.
[code]...
View 1 Replies
Nov 14, 2009
How do I make a textbox appear inside rich text box by clicking on a button. I want the new textbox to appear where the cursor is
View 12 Replies
May 17, 2009
I've few Button on my form and when i press these button, Music has to play, and collect the word in label1 like what ever button i pressed those button's name has to catch on that label and make a string and there is one more button that button has to play that whole string music which one is in label1.I've done 1st part but i don't know how to make string and play it when button click.
[code...]
View 2 Replies
Mar 24, 2009
The idea is to make something that would count clicks but I dont know how to make it so the label increases by 1 when the button is pressed
View 15 Replies
Mar 18, 2011
I want to make a progressbar that runs when a button is clicked. However there is also a checkbox that affects the whole thing.If the checkbox is checked, the button works and starts the progress bar.If the checkbox isnt checked, an error message comes up when the button is pressed.
View 1 Replies
Jun 12, 2009
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]....
View 1 Replies
Apr 29, 2011
How to make a program wait until a button is clicked by the user. I want to stop my sequence of codes (statements) until a button is clicked by the user.
View 1 Replies
Mar 10, 2011
I was looking for some better way of coding to populate all text boxes and make them visible once a button is clicked. I have a letter like format on a page with labels displaying address, name etc and it was recommended that on this page some of the information should be able to be edited. The idea I had was to keep the labels displaying the information but then when the edit details button is clicked the labels disappear, text boxes will appear and be populated with the same text as the label to allow the user to edit the details.
I seem to repeating lines of code but changing one thing each time on page load
Dim Sname As String = Request.QueryString("Name")
lblStuName.Text = Sname
tbStuName.Text = Sname
tbStuName.visible=false
[Code] .....
On edit button
tbStuName.visible=true
tbAddress.visible = true
etc..
On the save button
sqlStatement = "UPDATE StuTable SET Name = '" & lblStuName.Text & "', Address = '" & lblAddress.Text
My code seems very repetitive in many parts, I was looking for a better coding style to do this.
View 3 Replies
Dec 15, 2011
I'm trying to make a program to send a command through a textbox when a button is clicked, THEN grab the output and put it into another texbox. If you could help i would be great full. This is what I have so far....
Public Class Form3
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Shell("C:DFUs-irecovery.exe")
[code]....
View 1 Replies
Feb 8, 2010
How do you fix this code so it works?
Code:
Public Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
[code].....
View 6 Replies
Jan 28, 2010
My Problem is that I have a form that when a button is clicked loads a new form - code below. I want to fill a list view with data from a database in columns but that isn't the problem: Whenever I run the program and try to open the new form, the program runs up to the Rec = Connection.execute line before going back to the first form where I opened it up.
Public Class Form2
Public Const ConnectionString As String = "Data Source=PeopleBase.sdf"
Dim connection As New ADODB.Connection
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code] .....
I should also explain that the database is a local one and there are no errors or warnings that show up, it just runs like the while loop part isn't there.
View 4 Replies
Jun 1, 2011
okay on my main form i created an instance of another form
Dim secondform As New frmSecond and i called it with this
secondform.ShowDialog() okay now when the secondform pops up there is a "OK" button and "Cancel" button. how can i tell which button was clicked? If "OK" was clicked i want to perform a task, otherwise nothing happens..
View 3 Replies
Jul 13, 2011
I have created a form in VB and have coded a Clear Form button into it. The issue I am having now is coding the 'Submit Form' button to have it email the completed form to 2 employees in the bank that I work at. The form will be uploaded to our server for other bank officers to complete and then submit.
View 11 Replies
Dec 13, 2010
I'm making an equation program and I want to have a main menu where the user can select an equation and then when one of the buttons is clicked, it closes the "selection" form and opens the appropriate form. For now I just have it set to show the proper form (for example, Form3.Show) but when I try to do something like Me.Close() after it, everything closes instead of keeping Form3 open.
View 2 Replies
Jun 12, 2011
I am trying to update my form once the delete button is clicked. There are several fields like Name, Date, Date of Birth and so on. Once I delete a record I want the form to automatically load with new / updated data. This form fetches data from MS Access using OLEDB I have spent a long long time trying this but did not get any solution.
View 3 Replies
Feb 22, 2012
programmer and anything related with IT. i'm trying to create a program for my internet cafe wherein i would need 2 forms, 1 which will contain the transactions and 1 to log in/out customers. I was able to make this using excel but am currenty having a hard time now creating the program with VB2010, because syntax/formulas seemed different from that of excel2010... i have so many questions that i would like to ask, but i'l start with loading a form(for logging in/out) by clicking the Log-in button.
what i used before when i created a userform in excel is this:
Private sub LogBut_Click()
logForm.show
[code]......
View 12 Replies
Jul 12, 2010
I how can I make my form not get focus when it, or a control on it, is clicked?
Basically i want to be able to click a button on the form, and the buttonclick event occurs, but the current window retains focus. How can I do that?
View 20 Replies
Nov 4, 2011
So just to get better at VB, I'm trying to make this application that takes pictures from your clipboard and uploads them. I'm adding a label, that will tell you if there's anything in your clipboard or not, but the problem with that is that I don't know how to make it check the clipboard all the time.I'm still a beginner, so I only know how to make the app do something when a Form has loaded up, or clicked etc., but how do I make it so it checks the clipboard when it has changed? If I can't do it, how do I make it so it checks the clipboard like maybe every second. Do I need to use threads (I'm not sure, because I don't quite fully understand threads).
View 2 Replies
Aug 16, 2010
I am creating a visual basic program, which acts as a very simple GUI for another program. I have built the whole Visual Basic project, but I am unable to do one part, the most important part you could say. I have a button (button1) on a form, when the button is clicked, I want it to run a program, named 'mover.exe' which is located in the SAME FOLDER that my visual basic program will run from. The directory of this folder will change. So, there are two problems I have:
1 - To make the program run the .exe program when button1 is clicked (it also must be run with administrative privileges).
2 - To make the program always look for 'mover.exe' in the folder in which it is started from.
View 4 Replies
Oct 4, 2011
A Maximized windows form contains a button (Button1) that when clicked upon executes following code:
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Bfrm As New frmB
With Bfrm
.Top = 100
[code].....
View 2 Replies
Feb 25, 2012
form1 have four buttons, i want to set a label text in form2 according to which of the button on form1 is clicked.below is what i tried so far.on form1 each of the button click event i made it focus
Private Sub Answerbtn3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Answerbtn3.Click
Me.Focus()
Form2.Show()
and on form 2 load event i have
Private Sub FinalAnswer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Main1.Answerbtn1.Focus Then
Label2.Text = "You choosed option '
[code]....
the above code displays only the first condition ("You choosed option 'A'"") on the label when any of the button is clicked?
View 4 Replies
May 27, 2010
I am currently working on a program in VB that is 480,600 and am using a panel with a picturebox inside of it so that I can use scroll bars to view a chart in the picturebox since my form will be so small. Since viewing a large chart is pretty irritating using scroll bars to some, what properties can I enable or disable to get the panel and picturbox to expand also when the Form Maximize button is clicked rather than staying the same size up in the top corner?
View 2 Replies
Jul 29, 2011
I'm trying to create a save button on my infopath form that when clicked, it automatically saves the infopath form to a directory. I'm running into some issues, I thought it would be simple but is quickly becoming confusing. [code] I've tried searching all over but couldn't find an answer that pertained to xml documents such as an infopath form.
View 4 Replies
Aug 12, 2009
Is there any way to skip a the validating event of the active control when the close button of the form is clicked. It is very annoying when user wants to close the form, but due to the validate event of the active control, it asks for the valid input. The user is forced to give valid input to close the form. I have searched a lot for this on net but no any proper solution could be found.
View 5 Replies
Mar 15, 2009
I have a windows applications. Form 2 is child form of Form1 . Basically when button on form2 (child form) is clicked, it raise an events, which writes something in testbox on form1 (parent form). This is my code
parent form form1
Public Class Form1
Public mycount As Integer
[CODE]..............
This is the first time I am tring to use events.. I am not sure what's going wrong.. the textfill event is never called from form1.
View 12 Replies
Oct 30, 2010
Using 2 forms how would I click one button, from another form? ie In VB 4,5,6, I would used to do it as:-
Form 1:
private sub Command1_Click()
msgbox "Say Hello"
End Sub[code].....
If I clicked the button in form2, it would automaticlly, click the button in form1. Do I, do it the same way in VB Express or has it changed?
View 5 Replies
Mar 29, 2009
How can I make it so when a button is clicked it will make the program start on start-up but only if the checkbox is checked?
View 9 Replies