Change The Number In The Textbox1?
Jul 8, 2010I 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 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 am creating a currency calculator and need to multiply the number in textbox1 with the number in textbox 2 (exchange rate) i also have a £ or a $ depending on the currency selected.
View 9 RepliesHave a very nooby question here, textbox2 contains a number and if the number entered in textbox1 is higher than textbox2 i wish to display a message box but the following doesn't seem to be working properly?
Sometimes it lets the user enter a higher number, maybe I am doing this wrong?
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
[Code]...
is there a way of making a random number generator, which would clear out 2 random boxes out of 3 even though there are 4?
lets say there are 4 answers one in each textbox. if textbox1 is correct, can i make random number to be between 2 -4 and clear randomly either textbox 2 and 3 or textbox 2 and 4 or textbox 3 and 4 and same for other text-boxes if they are correct?
i thought about making two random numbers picked randomly then use alot of if statements, but did not realize i am getting into something ridiculously long. I think there must be easier way than that.
I have only really gotten into VB, so am an amateur.I have done quite a lot of search, and have read a lot of conflicting data which has yet to give me the result I'mafter.I have:Windows Form with many fieldsdatabase with 2 lots of data for reference.What I am after if for TextBox2 to give a result from the database when Textbox2 has user input.I have tried If TextBox1 = [Code] then TextBox2 = [Name] from db0 Names$
View 6 Replieswhen the page loads (I cant use WebBrowser1.Navigated because im using tabs)
i want it to change TextBox1.Text to the Selected Tabs URL
I tried
TextBox1.Text =
CType(TabControl1.SelectedTab.Controls.Item(0),
WebBrowser).Url.ToString()
But i keep getting an error message
I need my tabbed web browser to be able to change TextBox1.Text (The URL Bar) to the WebBrowsers URL on the selected tab
Here is my Code So-Far
'RCHROME
'Created By Brad Goodall
'Copyright 2010
[CODE]...
I have textbox in my asp.net 3.5 VB.net webformin my textbox1 the text is : 30-Dec-2010, 06:00:00 PMi want when the date in textbox is greater than textbox1 then the Label text would be "No REfund
View 3 RepliesI'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 RepliesI 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]...
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..
is there anyway to make listbox1.item1=textbox1.text? or the first row of richtextbox1=textbox1.text?
View 1 RepliesI 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 RepliesIn SSRS when a field returns a number eg 4072, I want to display text "Motor"
=First(Fields!DIMENSION.Value)=4072,"WEG Motor"
In SSRS when a field returns a number eg 4072, I want to display text "Motor"
=First(Fields!DIMENSION.Value)=4072,"WEG Motor"
I just want to know if the following behavior is by design. I start Visual Studio and open my VB project and rebuild it. The assembly version is set to 1.0.*. I get a version number of 1.0.2839.26817. Now as long as I keep visual studio open every time I rebuild, I get the same build and revision number. I have to close and reopen visual studio to get the revision number to change. Again I just want to know if this is by design since everything I have read says that the revision number is either supposed to be random or the number of seconds since midnight. Is there a way around this?
View 3 Repliesi have a negative number and i want to change it to its positive
eg -14 to 14
I have the following code. When I use:
For i = 3 To MaxColumnDataGridView
DataGridView.Columns(i).DefaultCellStyle.NullValue = 0
DataGridView.Columns(i).DefaultCellStyle.Format = "N5"
Next
The columns format can't be changed. I cannot change the number format whatever I do.
This is probably an easy question: I need to change my version number from 5.4 to 5.5. This is not the assembly version, but the version (I think) of my executable.
View 5 RepliesI saved an images hash number to a database so that when my application pulls in images, I can compare this hash number to the hash numbers of the images comming in. The purpose is that if one of the images comming in has the same hash number, I can flag it. It seems that the saved hash number for an image is not the same for the exactly the same image when it has come in. Is this because the hash number for an image can change depending on the pc where its being created?
View 2 RepliesI have written a code that when the click the calculation the button a inputbox pop up and you enter in the income and then you enter in the expense. [code]...
View 11 RepliesCurrently just started working with VS2008 I have a SQL script that is returning a number looking time in one of my columns (50625) which is 5:06:25 What I would like some help with is creating a function that would take this value and change it to a real time at some point I will need to do further calculation on these times so I need to be able to add or subtract these results.[code]...
View 3 RepliesI have an array declared:
[Code]...
This statement works fine in ASP, but when I switch to ASP.Net, it give errors 'ReDim' cannot change the number of dimensions of an array.
My code gets a list of words from a txt file and chooses the words randomly. However, the same word can appear more than once and i need to know how to stop this from happeningHere is the code:
Dim aryName As String() = Nothing
aryName = File.ReadAllLines(Application.StartupPath & "Randomfnames.txt")
Dim randomWords As New List(Of String)
[code].....
Public Class frmSelect
Private Sub btnEnd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEnd.Click
Me.Close()
End Sub
[CODE]..............
THATS my code and when i change my num to 20 it does not print 150?
I have this recently converted application from vb6 to vb.net 2008. One of the errors stated is:'Point' is not a member of 'System. Windows. Forms. PictureBox'.I have searched and not found an alternative to this.Also, it says ReDim cannot change the number of dimensions in an array.
View 8 RepliesI would like to be able to create a function where I can change the probability of a number being outputtedI am creating (Well have created) a slot machine game but the outputs are completely random and I would like to change the odds. Is this possible and if so could someone show me or direct me in what I should do to create this function.
View 6 RepliesIf there is a formula to change a latitude and longitude into a single number? I plan to use this for a database table in software that provides routing for deliveries. The table row would have that number as well as the postal address. The database table would be sorted in ascending numeric order so the software can figure out which address the truck would need to go to first, second etc.
For example I would use the following numbers for the latitude and longitude:
Lat = 40.71412890
Long = -73.96140740
Additional Information: I'm developing an Android app using Basic4Android. Basic4Android uses a VB or VB.Net syntax with SQLite as the database. Part of this app will have route planning. I want to use this number as the first column in an SQLite table and the other columns will be for the address. If I do a query within the app that sorts the rows in numerical ascending order, I will be able to figure out which postal address are closest to each other so it will take less time for me to go from house to house.
For example, if the numbers were:
194580, 199300, 178221
I can go to postal address 178221 then to 194580 and finally to 199300 and I won't need to take the long way around town to do my deliveries after they were sorted. As an alternative, I would be happy if there was an easy way to call a web service that returns maybe a json response that has the single number if I send a postal address to the web site. Basic4Android does have http services that can send requests to a web site.