Make A Program That Lets You Type "A" In A Text Box?
Apr 6, 2011I'm trying to make a program that lets you type "A" in a text box then it plays an audio file.
My code is: If MaskedTextBox1.Text = ("A") Then
I'm trying to make a program that lets you type "A" in a text box then it plays an audio file.
My code is: If MaskedTextBox1.Text = ("A") Then
Ok i need to create a program that lets the user open a text document and lets him do the following. This is with Visual Basics 2008.
Count Characters
Count Lines
Count Words
Count All
I don't know how to get my program to count just individual words and i have no idea how to get it to do all 3.
[Code]...
I got a textbox with lets say 3 rows of text
1.Hello
2.My name is
3.Simon
And i got a listview that is on detailed...When i press a button: for each row listview item add.So the listview items will be 3 items, 1 item per row in the textbox thats on multiline.
Is it possible to declare a variable using the text of, lets say a string, as the name?If u dont get it im looking for something like;Dim Var + string1 As PictureBox..In the code "Var" is the start of the name and "string1" is the end of it so if string1 was "Hello", the picturebox would have been named VarHello.
View 2 RepliesAnyway, I'm a teacher and am writing a program that simply shows kids a word on a flashcard. There are 2 buttons, 1 to read the word and 1 to go to a new work. There are going to be 300 words. Really I'm just testing it right here. What I want to know is should I be inputting all the words right into the code like I did with "hi" and "not 1" (Don't ask. those are just the 2 random words I picked to test this out with). OR is there a better way (maybe somehow to type all the words on a text file and have the program randomly pull one of them (I don't know how to do this).
Here is the code so far:
Public Class Form1
Dim word
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[CODE]...
I have made a media player in vb and I need to make it the default player for *.mp3, *.avi etc.
View 1 Replieshow to make a program type in characters. My main goal is to have the program run in the background, which I also don't know how to do.
View 4 RepliesI am trying to make a game which basiclly lets you shoot ducks. i have a picture as a background (set as form image) i then have picturebox's with ducks flying flying around you shoot them the disapear etc.
My problem is the image. i have a picture of a duck and a blue square round it. and i would liketo make it transparant because birds dont fly with blue squares.
Below is an image to illistrate my problem
I have tried adding transparent background, transparant key etc
I can't belive I can't figure this out but Im trying to make a macro type program. I just need to computer to press a key. Here is my outline:
Step 1: Open Crafting Menu
Key: T
Step 2: Select Farming
Position:
Step 3: Select Crop Field
Position: User Defined
Step 4: Use Optional Yes or No
If Yes Position:
Step 5: Make Number
Position:
[code]....
I'm planning to make a program that Allows the user to type in the Download Link of another program, and then Run it. I do not want the file to be saved on the user computer.
View 1 RepliesIm trying to make a program that makes a user type in a password, then open a folder where the user can put files. but once they close out of the file browser. the program needs to save the files and remove the directory. for example think of a file cabinet being the program, and the drawer being the temp folder. when the user closes the drawer, it goes back into the cabinet, or in this case the program.
View 7 RepliesI want to know how can I make a program what will work in any type of resolution & monitor. For example if I make an application fullscreen it will work. But problem is that text boxes or another things will not work properly. For example if I make a program & make it fullscreen for 1440 * 900 resolution it will work fine when it will get 1440 * 900 resolution. But when it will get different resolution like 1280 * 1024 or something like that it will make my application fullscreen but buttons or another things will not be present there in same place. So what should I do to get rid of this problem? All I want to make a program what will adjust itself everywhere(though you change resolution or monitor like 17 inch or 29 inch whatever it will work & buttons & another thinks will be there in same place).
View 1 RepliesI need to make it type in textbox1's text and I'm thinking
SendKeys(Textbox1.Text)
But it aint working.
And I also need a code to activate a process (game)
Dazastah
I want to make a program that sends text in the text box to a form on a website and print the page as .xps
View 2 Repliesim trying to make a program in which if the textbox text and the listbox text are the same order, which they are in the picture, a bluie fonted text saying well done appears. However only the red text appears which is only meant to come when the order of the text in both listbox and textbox isnt the same.
Here is the code that i used for this:
listarrays = name of listbox
textbox1 = name of textbox
l is the name of the label for correct answer(blue font)label3 is name of label with red font which should only appear for wrong answer
Dim text As String = Me.TextBox1.Text
For Each item As Object In listarrays.Items
If item.ToString = Me.TextBox1.Text Then
[code].....
use another textbox instead of the listbox but thats just making itmuch harder for me as I already made the full code working with the listbox. My lecturer told me i need to convert both in string so both textbox and listbox are compatible and i did so (see code above) but the correct label doesn't show?
I'm trying to work out how i can make my multithreaded app stop at a certain point and wait for the user to type something into a text box and click ok. It must then carry on and when a different thread gets to that point it stops again and waits for the user to input some text again.
View 1 RepliesI am currenlty trying to make program that autumatically fills the fields in another program, after the appropriate details are selected.
My problem is that I want the data to be copied to clipboard, and then copied in to specific field in an other program. Is this possible? Or is there an other (probabaly easier) way?
i want to make a program that can extract only text from html code.
so far i have done this:
dim br as new browser
br.Navigate(url.Text)
While Not br.ReadyState = WebBrowserReadyState.Complete
[Code].....
this code generate whole html source code including text and everything. iwant only text shown in webpage.
I want make VB program that has two text boxes and one button. Text boxes are for Proxy server IP and port. And button is just confirming it. So, user just types in Proxy server IP and port and presses button, and now, when he go to internet, he is anonymous. Now, I need code that sets proxy on after button click.
View 1 RepliesI am trying and failing to make a text encryption and decryption program. How can I encrypt and decrypt text or text files?
View 6 RepliesI am trying to make a program to find some text on a website and fill a text box in the program with that website text.
The website is Generate a Random Name - Fake Name Generator
I would like to take the info generated on that site and fill in text boxes in visual basic.
WebBrowser1.Navigate("http://www.fakenamegenerator.com/")
System.Threading.Thread.Sleep(2000)
Dim theElementCollection As HtmlElementCollection
[Code].....
I'm going to make a program that translates text from Swedish to English..
I got 2 textfiles "svenskaengelskaA.txt" and "engelskasvenskaA.txt"
Inside the program I got 2 textboxes and 1 button, If I write like "�pple" in TextBox1 I want it to write out "Apple" in TextBox2 when I press the button "Translate"..
But for the translate button to work it needs to read the 2 files..
How i can make a program to verify if files of a text file exists ?
Example:
I have directories.txt who contains:
Line 1: C:PasswordsAccounts.txt
Line 2: D:GamesFifa 11fifa.exe
So i can to verify if these two files exist?
But not: my.computer.filesystem.fileExists("for each one")
I have this program:
Module Module1
Sub Main()
IO.File.Create("C: ext.txt")
[Code]....
How to make my program not to use the newly created file 'text.txt'? Notepad fails to open it, it says (The process cannot access the file because it is being used by another process).
I am going to make an urdu application in vb.net. In this application I want to make textbox, combobox, List and other controls having the capability to handle urdu language.
View 4 Replies<ItemsControl DockPanel.Dock="Top" ItemsSource="{Binding Path={x:Static vmc:clsPersonViewModel.ChildrenPath}, Mode=OneWay}">
<ItemsControl.ItemTemplate>
[Code].....
In the code above, if there are no children (the ChildrenPath property returns NULL), nothing is rendered in the view. In the code below, when ChildrenDataSetPath is NULL the XamDataGrid still gets rendered. How do I achieve the same for a single object (as opposed to a collection) as the datacontext?
<DataTemplate DataType="{x:Type vmb:clsPersonViewModel}">
<igDP:XamDataGrid DataSource="{Binding Path={x:Static vmb:clsPersonViewModel.ChildrenDataSetPath}}">
[Code].....
I am working on bit more advanced calculator, but I cant figure out how I can make my program to calculate textbox1.text and show the answer in textbox2
For example: (textbox1) 5*62+4
(textbox2)314
I'm not sure this question belong in this topic, but I don't know where else it should be?
Im trying to make a program which would check for users from text file on a certain website I can populate the list box, and loop through it's items here is the code i came up with so far and it doesnt work properly, it pops out first item in the listbox, and last item only, even though that they shouldnt be popped out
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
If Not ListBox1.Items.Count < 2 Then
[code].....
(this is supposed to check every user, and if user doesnt exist, website will return page not found, else user exists and his name is added to listbox2)
Im learning Visual Basic 2010 on my programming class and we reached the part of file handling. Here i tried to make a simple program that can create a text file with the content of what i type on the textbox, basically i create the file if it doesn't exist, and if it already exists i append the content to it. Once the file is saved i can read it using the "Open" button. Unfortunataly, whenever i try to create the file, the compiler gives me an error saying that it cannot modify a closed file, although i've followed up the execution instruction by instruction and i can't find the error.
Imports System.IO
Public Class Form1
Dim body As String
[code]....
I want to capture all text in "TYPE>ITEM-## here's some text </TYPE>" which I can do with "<TYPE>ITEM(.*?)</TYPE>"What if I do NOT want to capture cases where ## is equal to 14?
View 1 Replies