Create The Code When They Will Be Clicked?
Oct 3, 2010
during runtime in my application, i added items in my menu bar from a database (.mdb).. but now, i cant figure out how to create the code when they will be clicked. im sorry for the bother, and thnx to those who may fix my problem..
[Code]...
View 4 Replies
ADVERTISEMENT
Aug 24, 2010
I want to run a piece of code on the timer tick event until the user clicks 'button 1'?
View 3 Replies
Apr 29, 2009
I wanted to create a function that checks to see what button has been clicked on the windows form. For example If I had 10 generic buttons that open up different audio files. I would I create one Sub that can verify which button has been selected. I was either going to use a case statement or an if else. I did not want to create one sub for each button since it would be a lot of duplication in code.
View 2 Replies
May 30, 2009
I have this code to create an event when a link is clicked in my browser:
Dim link As HtmlElement
Dim links As HtmlElementCollection = Me.document.Links
For Each link In links
[Code]......
How do I get the target of the link (The url which the browser will navigate to when the link is clicked)
View 2 Replies
Jan 29, 2009
I'm trying to create a new folder after a button is clicked, though it's not working.
vb
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
IO.Directory.CreateDirectory(FolderBrowserDialog1.SelectedPath)
End Sub
View 3 Replies
Mar 24, 2012
How do access a code to do something for only the last clicked text box and turn it into an If...ElseIf...End If statement?
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
Sep 22, 2011
I have a very simple ASP.NET project. It consists of two pages.The first page (FirstPage.htm) has the following markup:
[Code]...
So page one has a hyperlink that loads page two in a popup. Page 2 has a button that should do nothing. However, when I click on the button a new window pops up and loads Page 2 again.
If I navigate directly to page 2, nothing happens.I'm thinking I must have some odd configuration either in VS or in IIS that's causing it; but I have no idea what.
View 2 Replies
Oct 24, 2009
I'm using visual basics 2008, and I want to code a button, so that when clicked it will toggle the sound on/off on a web browser, while the volume of the system stays unaffected. I browsed the web and I found this code:
Public Class Form1
Private Const APPCOMMAND_VOLUME_MUTE As Integer = &H80000
Private Const WM_APPCOMMAND As Integer = &H319
[code]....
but this DOES mute the whole system which isn't what I want.
View 3 Replies
Dec 27, 2009
You have a form with 5 Textboxes and 1 button.
Write the code missing in Form1.Load so when the button is clicked, Textbox5 takes the value Done
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, _
[CODE]...
View 16 Replies
Sep 2, 2011
I have a backup script i made in VB. part of the code im having trouble with:
HTML
code:
Now this code is executed when a button is clicked, if the folder does exists, it displays a message and continues the backup. however if it does not it displays displays "does not exist box" then i want the application to close.
I played around with the application.exit commands but it seems like the code just skips over it, and continues to try and backup the data, then errors out. how do i make the application close, if the dir does not exist?
View 9 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
Jan 17, 2012
Private Sub BindingNavigatorAddNewItem_Click
Code?
End Sub
Can it be done?
View 1 Replies
Jun 12, 2011
how do I create a label that when clicked by the user, it will open a website using the default browser. I have seen the control LinkLabel but I do not know how it works or how to use it.
View 3 Replies
May 26, 2011
I have a window having 2 dropdowmlists(schemename-SN and propertyno-PN) , one chkbox ,one "VIEW" button.SN has options "all" with value=0 and many other options with respctive values.Now,i want the code should behaves as follows:
1.0n window onload, SN must b visible bt PN nt.
2.if i select SN other thn All...the PN shud b visible and if i select "All" ,PN hides.
3.when check box is checked- PN hides,and if it is unchecked- PN visible..
Important:-This whole ddl n chk box are in updatable panel,button is nt in that.I want a browser compatible code so javascript can't b used directly(cz they give problem in mozzila and chrome).Right now, i have done this JavaScript and its is working fine.
function window.onload()
{
DisableProperty();
}
[code]....
but this code is not browser compatible.here onload,onkeyup and onclick functions are used , but they dont work in other browsers except internet explorer.
View 1 Replies
Sep 17, 2009
I am working with a Vb.net 2005 application. On the application I have a Create table button which when clicked creates a table in Sql server with the code shown below;
Code: Private Sub BtnCrtTable_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnCrtTable.Click
[Code]...
This is really a pre-defined table and the data is already specified to be inserted to the table. However, my primarily task is to read a flat file which has the data and consider the first line as the column to be column names.
Therefore, initially I created an open dialogue to browse for the text file and store the path such as E:Datafile est.txt, in a TextBox1 visible at run time. Now the task is to change the above "create table" to read the txt file (column names are on the first line) and then create the table in the database.
View 5 Replies
Mar 25, 2012
I am writing some psuedo code for my programme and have a two queries:
1) how do i say that "when the "Create Reward" button is clicked, this piece of code is executed?
2) How do i make reference to file use, i.e The file 'RewardDetails.dat' is then opened etc..
View 2 Replies
Feb 11, 2010
I have created reports that print on my printer via Visual Studio 2008/VB 2008 Basic code. I want to be able to send these reports to other people via emai. I don't care how its done, but it seems that if I could get the report into Word 2007 the problem would be solved. What are your suggestions to accomplish my objective.Terry 01
View 1 Replies
Apr 14, 2011
Normally, i don't get this error while open form design. But I am ALWAYS get this error, when i worked on my project apx. 30 minutes.
When i get this error, i close my project, and reopen. then this error gone... "view designer" work normally and open my form. I have got 4GM ram,and when i get this error,my used ram is 2.5 gb. I am using VB.net 2008.[code...]
View 13 Replies
Jun 22, 2010
how to write a code in vb2005 to create an sql database
View 2 Replies
Feb 23, 2012
I'm using vb.net, and I can't figure out how to code a picturebox that I create in the code.
View 2 Replies
Dec 29, 2010
If I have a large number of classes, each similar to the other in certain aspects (they all share a common base class, but each does things differently), and I need to create Windows forms for each to allow easy changing of their values through a GUI? Create one matching form for each object in VS' forms designer, Or Use code to create the forms dynamically at runtime.
#2 makes the most sense to me, because a lot of these objects will share very common features of the form, notably "Ok" and "Cancel" buttons. But one object might need to draw a textbox on the form while another might need to draw a combobox. Not to mention, if I want to put icons on the "Ok" and "Cancel" buttons, I'd have to do this for each copy of the form in designer, and that sounds like it could get out of hand quickly.But is drawing forms through code sane? VS' forms designer is pretty sophisticated and designed to make life easier. Am I wise to consider ignoring its functionality and diving into the trench warfare of forms design through code? Or are there examples of automating form creation based on an existing object's properties?
View 1 Replies
May 6, 2012
im designing an xbox 360 indie game and have a question. Is it possible for Visual Basic to create a gui from the code? Because i noticed that all my gui development at this point has been programming a windows form object.
View 3 Replies
Mar 30, 2006
I am looking for some code which will convert some geographical information entered into text boxes on a standard form, (probably linked to a database for both storage and retrieval of the data),which will then at the push of a button generate a text file in KML/KMZ format for use on google earth.[code]...
View 2 Replies
Aug 26, 2011
I want to split this up into 3 side by side tables but have been unsuccessful in any of my attempts. Currently it prints one large table. The reader.Read is performing a really simple query that pulls a few names from a table.
Dim htmlString As String = "<table>"
While reader.Read()
htmlString = htmlString + "<tr><td>" + reader(1) + " " + reader(4) + "</td></tr>"
End While
[code].....
View 6 Replies
Mar 13, 2012
I know you can do this:
Imports System.IO Then File.Create("C:app.exe")
But how would I make it so that it saves the application as a certain file, as if it were saving a game.
View 8 Replies
Jun 21, 2010
I have an assign ment that says: create an application to let the user enter his or her name (first and last name), then displays the Initial in Upper Case. FOr example: you enter "John Wow", then the Label will display "JW". I know that I'm supposed to use the Substring method. But to use the Substring, I have to have the exact location of the Leter that is going to be displayed in the Label.The problem is: the name that the user enters always vary. So in strnewstring.Substring(... , ...) ---> the number in the parenthesis would vary, too. Thus, I cannot put a number in there.So how can i create a code for this particular assignment.
View 4 Replies
Feb 19, 2012
Would this be the way to create a new form through code?
Dim f As New Form()
f.Size = New Size(300, 300)
f.BackColor = Color.White
[code].....
View 4 Replies
Dec 27, 2010
I remember that C# editor has a powerful option that when we are developing in code and type a new method (operation) name for a class, we can create its body by clicking on ALT+Shift+F10 and immediately, it will be created for it's own class.
what about in VB.NET 2008 editor?
View 1 Replies
Mar 22, 2010
I want to know if I can create a WebBrowser through code in Vb.NET, instead of dragging a webbrowser into the form.
View 2 Replies