Make Sure Textbox1 Contains A @?
Apr 21, 2010If TextBox1.Text.Contains = ("@") Then I need to make sure textbox1 contains a @. And its supposed to be a code like that.
View 14 RepliesIf TextBox1.Text.Contains = ("@") Then I need to make sure textbox1 contains a @. And its supposed to be a code like that.
View 14 Repliesis there anyway to make listbox1.item1=textbox1.text? or the first row of richtextbox1=textbox1.text?
View 1 RepliesIn button1 Keyup I want to be able to make textbox1 skip a line.How would i do this. I tryed
Private Sub button1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles button1.KeyUp
If e.KeyCode = Keys.Enter Then
textbox1.text = vbnewline
End If
End Sub
I would also want to know how to make it when I push the button2 it will undo the letter I just did
Private Sub button2_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles button2.KeyUp
If e.KeyCode = Keys.Back Then
textbox1.undo 'this will just undo the whole text I just did
End If
End Sub
I Turn From vb6 To Dot Net so i have 1 question Where is Data Arival in Sockets ??
it get what And How i Can Make Socket Post GetData in textbox1 ? :O
And From Where i Can Mange My App In Where The App Will apper in Screen ?
I'm making a program that I need to put a button in that when you click it it sends the writing in form1's textbox1 one to the email you type in dialog1's textbox1.
Basically I have a textbox and button on Form1 that when you press it opens dialogbox1. In dialogbox1 there is a textbox and a send button. I need to make it so when you press send it sends an email to the email adress you type in the textbox and the body of the email is whats in textbox1 of form1.
[Code]...
Let's say that you have a texbox labeled TexBox2 and you don't want it to be seen when the program runs because TextBox1 pulls information from TextBox2 and it shows up inside of TextBox1. How would you go about doing this?
View 1 RepliesThis should be pretty easy, I've been experimenting, just can't seem to figure it out. I'm trying to make a MsgBox popup with the text that is in Textbox1 and Textbox2. I want the MsgBox to display both values...
View 3 RepliesI am working on a school project to make a temperature converter that when fahrenheit is entered into textbox1 and then tabbed, the conversion to celsius, rankine, and kelvin is displayed in textbox 2,3, and 4.My instructor showed me how to input the code for this, but it isn't working correctly. I know I need more code to get this right but I am a newbie to programming and my instructor doesn't insruct very well. Can someone please tell me what I need to do to finish this coding? This is what I have so far:
Public Class Form1
[Code]...
the code bellow try to make the same effect that textbox1.readonly = True in an combobox...the code to do this are in a form class and because i never had work with class i don't knoe the way to call this class..
Option Strict Off
Public Class ComboBoxReadOnly
Inherits System.Windows.Forms.ComboBox
[Code].....
How to make an SAVE button that saves the text from Textbox1,2,3 and add an comment on the file.Example:
1 button named "Save", when click to save the text from textbox1,2,3 in file named "Anti.txt" (in the same directory where is the .exe file)
2. to display an message when save is complate, if it is not to display error that cannot be saved
I got simply code for save,but i dont know how to modify it to be like this: [code] Where it is Textbox1: to be like a title in the .txt file and after it to add the text from the textbox1.
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?
I have two webpage in my website namely Default.aspx and Default2.aspx
I have asp.net textbox1 and button1 inside Form tag in Default.aspx page
and i have textbox1 inside form tag in Default2.aspx page
i want when i wanna transfer the textbox1 text of default.aspx page into default2.aspx textbox1 text hidden parameters ... which will not show query string in address bar and transfer value from one page to another..
I have a Textbox1 and I'm making a function that adds " at the beginning and " at the end of the textbox when u click a button called Button2.
[code]...
the code on the page: <div id="currentactivity"> Last seen 47 minutes ago playing db: raging blast <div>
what im trying to achieve is to make textbox1.text = the current activity so that would be (Last seen 47 minutes ago playing db: raging blast)
ex1)webbrowser1.getelementbyid("currentactivity") = textbox1.text
ex2)webbrowser1.getelementbyid("currentactivity").text = textbox1.text
something like that
I have got the following code for if in textbox1 the would be appear as 10:10:00 AM and in textbox2 the time will appear as in 4 hours time slots automatically as 06:10:01 AM ..if the textbox2 time will be 06:10:01 AM then MSg box will appear that "You can not registered to this site because the 4 hours time slot will be over " [code]Remember in textbox1 the time would be any .....and textbox2 will auto generate time according to textbox1 to maintain 4 hours time slots between textbox1 and textbox2
View 1 RepliesI want to add a condition when textbox1.text changes , the added text to textbox1.text is showed in another textbox.
View 6 RepliesI try to make a text to go from "textbox1" to "textbox2". and if it a text in "Texbox2" say "World" and in "textbox1" say "hello", can i do like it wil be "Helloworld" or "worldHello" in "textbox2"
View 2 Replies[Code]...
I get an error on "colorNumber" in the line/ colorNumber = Convert.ToInt32(TextBox1.Text) It says expression is a value and can't be target of statement. What does that mean? Then how can I change the target?
I have a script that once it completes it starts over again.
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick[code]...
What i need is to add a count to textbox1. Like everytime it comes to timer2 it adds +1 to whatever number is in textbox1.
So basically if the script runs 10 times there will be "10" in the textbox1, 50 times there will be a "50" in textbox1 and so on.
i used a code to decode a ASCII code:
textbox1.text=chr(textbox2.text)
when i type 97 in textbox2, textbox1 show correct answer that is 'a'.But when i type 9797, is there any possible ways to get 'aa' in textbox1?
How Get from TextBox1 the text after Name=
+ It's Variable
To the TextBox2
I've for example this code in the TextBox1:
CreateObject(1266, 1065.21, 2546.01, 20.1, 45.0, 90.0, 360.0);
I want to get only this part of that code above: 1065.21, 2546.01, 20.1 and write this in a RichTextBox1
How to do that?
How do I add Textbox1.Text to a textfile?
View 4 RepliesI Use visual Basic 8.0 and Mysql 5.0
[Code]...
I change the number in the textbox1 but the random appaer the same digits
Public Class Form1
Dim seed As Integer
Dim MyRnd As New Random(seed)
[Code]....
i've tried to make it so Button5 Deletes what TextBox1 says I know its
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
If File.Exists("FILE.TXT") Then
File.Delete("FILE.TXT")
[code]....
But I want it to find and delete what TextBox1 Says.
How to display INT value in textbox1 in this format 45,75,147.45 I do not want to use MaskedTextbox
View 2 RepliesI am having a problem trying to find out how to filter a datagridview1 with a textbox1 by using the code I have below. Public Class Form1
[Code]...
The following code works fine. However, it only inserts on TextBox1, one filename. I would like to be in aposition to add more than one filename. Can anyone please tell me how I can achieve that.. code below; Private Sub BtnFolder_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnFolder.Click
[Code]...
I am basically trying to create a basic math calculator, the basic inputs are in TextBox format. I have made the basic calculator ok but would like to have a MsgBox pop up if TextBox1 is > TextBox2 these are both TextBoxes which have data entered in them. Hope this explanation makes a little sense. Below is my attempt at this!
Private Sub MsgBox_Load()
If (Val(TextBoxDPID.Text) > Val(TextBoxDPOD.Text)) = MsgBox("DPID can not be Higher then DPOD",
[CODE]..................