Putting Random Text/numbers/symbols Between Text?
Dec 3, 2009is their a way to do this to text? EX : 1p2a;ss4w/o4r=dg It spells out password
View 2 Repliesis their a way to do this to text? EX : 1p2a;ss4w/o4r=dg It spells out password
View 2 RepliesWhat would I put when I want it to generate random numbers and text, and has a - at the end. I know it's pretty simple but I can't think of how I would do it.
So 5 random numbers/and or text and a - at the end. So like this
Im new here and may i have answer to my question since i been looking for sutoliton a long time ago,
I had a database looks like that user:pass (<IP>) user:pass (220.135.70.173:3128)that i need is to remove the text between ( and ) and the symbols too.
Basically what I'm trying to do is to get the program to select a text string that has 2 random numbers in it from a RichTextBox. The string it would find would be similar to this:"items_win.php?item_id=24&item_number=590576"But the bolded section changes every time the page is refreshed, so how can i find the string with the numbers every time no matter what they are?
View 5 RepliesSo as the name states; I am a newer coder.
This is the code i have:
Public Sub RandomNumbers()
Dim s(4) As String
Dim RandomNumber As Byte
I don't know if you can tell what I am trying to do here, so I will try to explain. I what to create for random numbers and place them into for different text boxes. I also would like to do this with combo boxes and their selected indexes. So if the combo box has 10 items in it; the new selected index would be the random number generated above.
I have a text box and I want to add some symbols or small charecters such as Question Mark to or on the text.
View 6 RepliesOk so I have a program that is setup to create a textdocument formatted like this: @FName@ !LName! $Age$ &Location&..on each line. But I need in the program to load the text into designated columns for the listview by placing the text in the columns using the symbols as start and finish points for the information to be loaded line by line. I'm just not entriely sure how to do that.[code]
View 2 RepliesMight be a simple question but i was just wondering how you can validate a text box to check if it has any symbols in it? I've stopped my program from accepting integers but i don't know how to stop symbols like $, ^ & etc. All i want is letters.
View 4 RepliesI am using SendKeys to send out some text using;
Dim pText As String
pText = txtPost.Text
SendKeys.Send(pText)
Whenever I use symbols like ')' it will fail as it cannot parse it. How do you get around this?
I need to perform some validation for a computing project, How would I restrict the user from entering symbols into text boxes?
View 3 RepliesI have a label that reads a random line from a text file and that string becomes the text for the label.
Now the problem; the label will only work if it is clicked because the event handler is click.What I need is this to work automatically at startup. In other words, it should change the label's text to the random string of the text file on startup of the application.
Here is my code.[code..]
I need to search through richtextbox1.text for emails out of a random jumple of text and source code and put the emails in richtextbox2.text.
View 1 RepliesHow do you pick a random piece of text from a text file in this manner....
[Code]...
I need to pick a random answer, not including the question. let it be the simplest solution. I am only a beginner.
How can i make a textbox so like when a button is pressed how can i make the textbox select a random text and put it in its text box.
View 7 Repliesi have been trying to have a textbox that the user can only enter letters? i can use: If IsNumeric(textbox1.Text) Then textbox1.Clear() for making it not numbers, but how can i stop symbols also? i am using vbexpress2010 and know how to use it and different types of code
View 5 RepliesBasically i have a 500 line javascript file i made that runs in grease monkey (a add on for firefox ) I'm using vb.net to "compile" this script depending on certain check boxes.
So for example. (this is part of my script)
#RegionCapsEnforcer
var array=document.evaluate("//*[contains(@class, 'postbody')]", document, null, 6, null);
[Code]....
and so on. So if chkCapsEnforcer was not checked it would skip that part and go to chkRevealUrl and if that was checked would get that bit. Then once it has gone through all the checkboxes it would write the enabled bits to a text file.
I have 3 webforms controls: 3 checkboxes and 1 textbox.
When I check checkbox1 and checkbox2, then in the textbox it should appear as 1,2.
How can this be done using ASP.NET webforms controls?
I have I text tab delimited file. in every line of that file at the same position in every row of the file I will have a bit that I would want to compare against 23 values (I will call them criteria). So if on every row the string I need matches one of tjhese values then that row will be written in File1.Txt if that value doesn`t match any of the criteria the whole row will be sent to File2.txt.
So far managed to get the original file written in the same format in a newly created file.
how to get the functionality I described working but am stuck with correct syntax.
Here is what I have so far:
Dim fs As New FileStream("C:Original.txt", FileMode.Open, FileAccess.Read)
RichTextBox1.Text = ""
Dim d As New StreamReader(fs)
[Code]....
Now I will need to declare every single row in RichTextBox1 as String then will have to get the bit I need will have to declare that as well(I will need from every row the string taht is between characters 96 and 104), also where do I keep the 23 criteraia values.
Reading A Line Of Text And Putting Into A TextBox?
View 1 RepliesPrivate 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].....
Is there a way of putting a block of text (ie a paragraph) without using the label tool?
View 2 RepliesI am making a program, where the user enters 6 numbers in 6 different text boxes, and it displays the larger of those 6 numbers. But I also want to make it where if the user enters a string value (like S for instance) in the text boxes, it gives an message and says "please enter the numbers again" and the user gets to enter the 6 numbers again. But when I do try to do that, it gives an error message saying conversion from "w/e the user entered" to Double is not valid. If the user just enters the numbers, it works fine. However, I am trying to make it if the user does enter non numeric value, it gives a message window and the user can reenter the numbers again.
Here is my code Example
CODE:
This is where I am trying to use IsNumeric to show a message if a user does not enter a string so the user can renter the numbers again, but when the user does enter a string value (say in textbox 1) it gives me an error message saying conversion from "S" to 'double' is not valid.
CODE:
Then right here this is where I have my series of ifs statements, this part works fine, it displays the largest numbers of the 6 textboxes every time. Error free.
CODE:
And do this with variable number 2, 3, 4, 5.
I know there are easier ways to do these with arrays and stuff. But I am not there yet. I am still learning about ifs and stuff.
I'm trying to do a project which involves reading the text from a number of textboxes and putting it into a string.I'm just wondering if there's an easier way to it other than:
CreateString += TextBox1.Text + TextBox2.Text + TextBox3.Text... (etc)
I have thought about creating a For Next loop which would go something like:
For i As Integer = 0 To intNoTextBoxes
CreateString += TextBox(i).Text
Next
But this really doesn't work. I also found something saying that something similar to this would work:
For i As Integer = 0 To intNoTextBoxes
CreateString += Me.Controls.Item("TextBox" & i.ToString).Text
Next
But that didn't work either.
Using vb.net/asp.net 2005
I am trying to create a string message for an email that I am sending out from my asp.net page like so:
For Each dr In dtDataTable.Rows
strMessage = strMessage & vbCrLf & vbCrLf & Environment.NewLine & dr.Item("UserName") & Environment.NewLine
Next
so I am looping through a datatable and getting each name from each row, that is working well but when I get the email it appears in my inbox with all the names mashed together, you see I am trying both vbcrlf and newline but looks like neither is working
OK, SO i have this program that outputs all the servers on a specific game. It outputs it to a text file. HOWEVER, There is a lot of annoying spaces. This is kind of hard to explain, so ill try to explain it. This is what The text file looks like.
173.81.220.139 2302
70.26.235.69 2302
24.26.119.209 2302
[code].....
The class Random is out right defective. It always produces the same random numbers in the same sequence. Things I have tried so far is every kind of seed you can think of as well as Randomize. The result is that I always get the same random numbers in exactly the same sequence.
View 4 RepliesSo how would I use .next (random numbers) to randomly select something from a list of numbers but it can't repeat the number?I could do:
dim num as integer
dim r as new random
num = r.next(1,5)
if num = 1 then
elseif num = 2 then
etc.
That wouldn't work because it would repeat.If I donwload someone's game can I disect it in VS? :0 I tried going to open project, then I went to the folder and clicked open. It brought me inside of the folder so I tried to open the game but there is no form1 there. It says the games name then .exe in the explorer-like thing in the top right?Also, how would I have a value or something in a label and access it from a button.
Example:This is in a label.
Dim number as Integer
number = 0
Then in the button do
Label.number = 0
How would I do something like that? I want to use that a lot as I did in a different language.
The program must generate 6 unique random numbers but when I click display numbers sometimes it gives me 6 unique numbers and sometimes I get duplicate numbers. I will add the code I have so far.
Public Class frmMain
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
[CODE]...
I don't take programming lessons at school or anything, and I'm starting to (try to) teach myself about random things.Currently I'm making an app that has 3 functions:
-Random Integer (1 to 100)
-Random Answer (Yes or No, similar to a coin flip)
-Random Dice Roll (1 to 6)
How would I go about doing this?At the moment all I know about random numbers etc. is that I will need to do something along the lines of Dim dice As New Random or something like that, but, like I mentioned, I have no idea.I am well aware of the DIC rules that you won't write the code for me/do my "homework(?)" for me, and that's not what I'm asking.
I just can't think of an easy way to do this. It seems easy, but I'm not just sure how to do this. I want the software to grab a random word inside the bracket "{}". The "|" is the delimiter. Here are some examples...
Input #1: {Hey|Hay|Hello} How {are|r} {you|u} doing?
Output Example #1: Hey How r you doing?
If I execute the code again, this would output...
[code]....