Make A Cmd App Like With Just A Txtbox?
Oct 27, 2009im trying to make a cmd app like with just a txtbox.
how would i make my app wright what the user entered and print the output from cmd on txtbox with out cmd showing up
im trying to make a cmd app like with just a txtbox.
how would i make my app wright what the user entered and print the output from cmd on txtbox with out cmd showing up
How to make validation Only Allow letters and Numbers to Input, without any special character in Textbox
View 4 RepliesWorking on a personal project to help with my sons spelling.Textbox 1 will hold the correctly spelled word. Textbox 2 will be typed BUT I want the background of textbox2 to change green if he is on track but turn red when he messes up on a letter. Basically I need the two boxes to be validated each time he presses a key. I can do the box to box when complete but the trick I am having is how to I have them check as he is typing?
View 2 RepliesI want to write a program that ask 2 times for my first name one time my second name and then display first name and second name in a txtbox.
View 3 RepliesThis the end of my code
If lblErrMsg.Text = "" Then
Response.Redirect("UserPage.aspx")
End If
I want to pass the value of txtUser(I create It in the current page...) to the UserPage.aspx.
I thought that this would be an easy way of checking if the txtBox only contains numbers. I was wrong.
if txtAnswer.Text = Not CInt("123456789") Then
I want the user only be able to put NUMBERS in the box. NO Spaces Commas Periods Breaks ... etc.
PS, i can't use NumericUpDown as the user needs to enter in the answer to an equation.
Imports System.IO
Imports System.Windows.Forms
Public Class Form1
[Code].....
I have textbox showing the path which read from txt file
Inside Txtfile look like this
[code]...
And the textbox will show the path C:Hello
Whatever i changed in txtfile the textbox will show the path from txtfile
But now i want to edit from textbox , and the textfile also change.
Have created a few stand alone projects but nothing major... Using a trial of VB Studio 2010 (.net 4)
a) I have two networked pc's ("PC1" and "PC2") with a solution on each which has a "textbox" and a "send" button. Just want to type "hello" in textbox on PC1 then hit send and it appears in PC2 textbox so that I can base if statements etc. on it.
something like:
//PC2.App2.textbox2.text = textbox1.text
on a button would be perfect but i'm guessing that's far too simple.
b) Video Triggering over network - pretty well sames as above, just want to hit button1 on PC1 and it plays "1.wmv" in "axwindowsmediaplayer1" on "PC2".
c) How can I play a .mov/vob/avi/mpg/flv in an "axwindowmediaplayer1" ? if not possible how do I go about playing videos of all types in my programs?
how to connect sql server to forms, and also retrieving files from database to txtbox.
View 1 RepliesDim SelectCmd As String[code]...
From the above code which i have a lv can show all data from my db, but i am having a trouble that how can I show the first row and the 3th subitem data ("Orders") from the lv to the txtbox.
i am trying to make a search criteria based on last name.i have dragged and dropped customer dataset as details view on my form and booking as gridview(customer id is foreign key in bookings table so now when i scroll through customer i could see the relaive booking history in grid view.). now i have many customer so i have to scroll down to look for a particular customer.i want to create a textbox where i can enter customer's last name and it should change the data of details view from current customer to the customer which is searched and also should change the related data in gridview aswell which is customer booking data.really need help plz..provide code if u can..here is wat i have done but no luck.
Dim ds As DataSet
'** means:
'check for correct name of the table in dataset, you can still use index like [0] if this is 1st or only table in dataset
[code]....
I have a form containing a chart which plots based on values in textboxes on the form. I have textbox keydown events set up so that when the user enters a value into a textbox and presses enter or tab, the chart re-plots and focus is passed to the next textbox in tabindex order. Below is the
PrivateSub Param1ValueBox_KeyDown(ByVal sender AsObject, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Param1ValueBox.KeyDown
If e.KeyCode = Windows.Forms.Keys.Enter Or e.KeyCode = Windows.Forms.Keys.Tab Then
[code]....
The code does exactly what I want it to do. However, when the user presses enter Excel makes a warning noise (berrt!) as if they have done something wrong. How do I make Excel chill out with the noises? ... is there a text box property i need to change? I have tried all that seem sensible. (I am creating an application for Excel 2010 using VSTO 2010 and VB.NET 4.0)
I'm nearly finished making a blackjack game for my first year assignment in college using Visual Basic. The game is running ok, I'm happy with that but I am having one small issue! In the frmMain I have a counter set up so it counts and displays the number of games won and lost. From the drop down menu in the frmMain I have a Statistics option which opens another Form which I want to display the stats from the frmMain....How do I view the result on a different form?!?
I've tried the following code in the 2nd form...
Private Sub txtSessPlay_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSessPlay.TextChanged
frmMain.txtPlayer2.Text.ToString()
End Sub
I've also tried the following code in frmMain...
dealerCount = stats.txtSessDeal.Text.ToString()
dealerCount is the variable set to count the statistics and stats is the name of the second form...
assist in the proper way to populate a value in a txtbox based on a combobox selection? I basically have a table (tblStudent) that has two fields (Range, Amt). The range records are 1-5,6-10,11-20,21-50, >50. Amt are 0 by default.
four more Tables
(tblPA,tblNY,tblNJ,tbMD) with 2 fields (pctgStud,amount) where prctgStud are
ranges (0, 1-10,11-25,26-50,51-100). Amount are 0 by default.
My form has a 5 simple comboBoxes that allows one of the ranges to be selected for each of them. I also have 5 txtBox relating to the corresponding (Amt) fields. How do I populate the textboxes with the related AMT based on the range selected from the comboBox. On a side note, I want to ultimately increment all the textbox values by one in the tables when submit is clicked.
Private Sub btnGo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGo.Click
Dim name As String = txt1.Text
Dim backwards As String
'backwards = name.Reverse
[code].....
im trying to make program for laptops so you can pick the type of laptop you want how much ram, size of hard drive ect.but im not sure how to take the data from a radio button to store it in a txtbox?
View 6 RepliesI have a bunch of text boxes that get created on form load depending on a value in a combo box. The text boxes get named in the fasion txtBx1, txtBx2, ect. Then I want to assign values to those text boxes with a button click. However when I try to write the txtBx1.text = "Blah" code under button click, I get 'txtBx1' is not declared. [code]...
View 3 RepliesIn old VB6, I could set all txtBox controls when members of the same index eg.txtBox(0),txtBox(1) etc., to all do certain things in a couple of lines of code, eg.
Private Sub txtBox_GotFocus(Index As Integer)
txtBox(Index).SelStart = 0
txtBox(Index).SelLength = Len(txtBox(Index))
[code]....
in my first form i have a datagrid havng access 2003 as db. on my second form i have textboxes.
now what i need to do is when i clicked a specific row of my datagrid the second form will pop out and display the data on its textboxes, there it can be edited.
so far i have this code. i got this from my search on net[code...]
this code display the employee id of the clicked datagrid row on my textbox on the same form. now i need to place my textbox to another form.
It's being some years since i actually wrote a program in VB, last time was VB 6.So it's being a long time, and things have changed a bit.And i am still very rusty, so i need to get back into it.I got a few problems which i cant remember very well.1st question.I got several text boxes, in these text boxes there will be prices of products.The very last text box is inactive, and is supposed to show the total of all of the above.I have to declare the text boxes to contain numeric values only, so there will be no mistake when doing the calculations.But i cant remember what it was, and what the best option is to add up all the values from the text boxes.
View 2 RepliesIs there an way to supress the validating event of textbox when the forms close button(X) is pressed. In the textbox validating event , if the condition fails then i am displaying an messagebox. Now suppose if the textbox has the focus and user directly presses the forms X button , then the messagebox is displayed
View 7 Repliesi got the following things:
-A button (called "btnplayvoice")
-A textbox(multi-line enabled, called "txtinput")
-Some *.wav audio files in my "resources" (2 of them called "A.wav" and "B.wav", of course there are still some more sound files in my resources xD)Note: the button and the txtbox are in the same form.
i want to make a program with this feature:When I type "B A"(note between "B" and "A" has a space)into txtinput, then i click the btnplayvoice, it will look up and check the resources and see if the wav file exists there, if yes, it will play the related(same as inputed) sound files one by one in correct order. That mean in this case I should hear "B.wav -> A.wav" in this order.
i create usercontrols in vb.net txtbox,button,namelist edit grid and userform. all contrils working properly. but user form not working. how to use this userform.
View 1 RepliesI have a textbox on a form that is set to allow dragdrop operations from txt files.Basically you drag a .txt file onto the txtbox, the content of the text file is displayed in the textbox.All is working fine, however after the textfile is displayed in the textbox, the text box text is for some reason is highlighted.I don't want the text to be highlighted (or selected) after it's being displayed on the textbox.Second issue, after I close the file that I dragged, for some reason even if I didn't make any changes to the file, it is acting as if the file has changed.In another words, if I open a text file using my MenuItem Open item, and if I do not change the file, If I close the file it's fine it closes.However, if I close a file that I draged into the text box and then close the file without changing anything in it, the stringcompare function is telling me that the file has changed... I can't understand why.
View 6 Repliesway to clear textboxes in VB.Net and what is the difference between the two methods? I have also seen people be critical of folk using clear objects on their forms and i can see why but in this case, i am only learning.
txtbox1.Clear()
or
txtbox1.Text = ""
I cannot find a way to make a program that I write make a shortcut in the start menu for all users.My final goal is to make an MSI and deploy it in group policy to all users on a computers OU. Is this possible?
View 5 Repliescan we make code which can make copying a file in a particular drive invalid/access denied?
View 3 RepliesA few years ago I have been busy creating this application but it didn't succeed, now Im coming back to it and similar problems occur. Basically I use SetPixel on a given window to draw a line, work fine, but the line goes away as the window redraws itself.The problem: I have been putting timers and threads on it to make sure the line is being drawn. Is there any way to make a loop to make a certain thing happen about 10-30 times without taking in too much memory/CPU?
View 7 RepliesPublic Class form1
Private Sub btnAnswer_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAnswer.Click[code]........
how can i make vb realize that the side that is opposite of the given angle, has to be less than the other sides. Also im not sure what Acamar meant by If txtAngleA.Text <> "" AndAlso txtAngleB.Text <> "" AndAlso txtSideA.Text <> "" Then 'two angles and a side Because im not sure what <> does.