VS 2010 Back With Another Question This Time About Textboxes
Jun 23, 2011
Well I want to create a simulation program for a friend that will generate IP addresses (not real ones of course). I can generate codes with the correct amount of digits but I can't seem to find a way to create the correct formatting of the number.For instance I can create the number 26253169234 but I want it to come out as 26.253.169.234Is there any ways to set parameters to format it that way and if so is there a way to make sure it will never start with/repeat the same number sequence?
View 5 Replies
ADVERTISEMENT
Feb 1, 2012
So I still working on a program that shows this. This is the code that I use two show the SA and PLATINUM text because on the file they are not the only characters on the line, like this:
set username=sa set password=platinum code to search only those two words.
[Code]...
View 15 Replies
Sep 8, 2010
Could someone with more experience than myself please take a look at my code and maybe tell me why I can't reset my textboxes back to "zero".[code]
Nothing works.My Textboxes still retain there last values even though the impulses are no longer present.I think it has something to do with the updatetext event but I have no Idea how to get around it.
View 7 Replies
Dec 22, 2011
So I managed to sync up the filesavedialog to save the contents of my textboxes to a file in a location, but how do i use the fileopendialog to read the contents from that saved file back into my textboxes?
Private Sub SaveFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles SaveFileDialog1.FileOk
Dim FileToSaveAs As String = SaveFileDialog1.FileName
[Code]....
that's my save dialog. i want to bring up the saved text from textbox1 back into the textbox on my application using the fileopendialog.
View 15 Replies
Jan 16, 2012
I have an ArgumentException was unhandled message: Cannot add or insert the item '1' in more than one place. You must first remove it from its current location or close it. Parameter name item. Note: Have 2 listboxes 4 textboxes double click listbox2 and it fills in the four texboxes (now it needs to put it back into listbox2 in the same place it came from but crashes. I marked the area and underlined where the error message was coming up. So double click a selection in listview2 (fills 4 textboxes) then double click textbox2 (should return text data back to listview2 in same spot) but crashes. See code below.
[Code]...
View 2 Replies
May 2, 2011
I am not sure if I should put in a Text Box or not but this is how I thought it might have to go. Textbox1 shows the start time of a procedure and textbox2 shows the endtime of the same procedure. I would like it if the textboxes were in a 12 hour clock showing an am/pm tag on the textbox's. Then in Textbox3 it would show the differance between Textbox1 and Textbox2 in Hours and Minutes.
View 9 Replies
Aug 6, 2011
DateTime: what do you use when you need to record Datetimes back in the time before 0001 A.D. (C.E.)
View 11 Replies
May 2, 2012
in order to select text in a textbox you need to focus into it.The problem is, after focusing and selecting the second textbox, it deselects the text in the first textbox.
View 1 Replies
Jun 2, 2010
I have a form with many different textboxes on it. The form is used to Edit the data already in a databound table. At design time I set my Databindings.text to the appropriate columns.
During form load I check the values in the bound column for null values. If the column value is null, I set the textbox.text property to a descriptive prompt like "enter telephone #" or enter city. I also use databinding.remove to remove the databinding so that the desriptive prompts don't wind up in the database.
Here is the code I use to remove the databinding.
For Each Panels In Me.Controls
PBox = TryCast(Panels, Panel)
[CODE]...
.Tag2Defaultphase is a custom property I have defined which holds the default descriptive prompt. If the user enter a value into the textbox I then wish to add the bind back so that when I updateall with the tableadapter the value will be transferred back to the appropriate bound column.
Here is my code for that:
Sub perOptionalTBoxValidation(ByRef TBControl As custTextBoxControl, ByRef strDefaultTextPhrase As String, ByRef intMaxChars As Int32, ByRef bsBindingSource As BindingSource, ByRef strColumnName As String)
[CODE]...
View 4 Replies
Sep 28, 2011
The three labels "Floor" "Typ." "HeadsI can insert once fine but multiple times only the third instance is written to the form.I have 2 textboxes to test that the Label.Name is changed but I can't make the Label.text stand for each label. I am certain this will occur too with the textboxes.I also need to keep track of these boxes for further use with the program.
Public Class Form1
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
[code]....
View 1 Replies
Apr 27, 2011
I have an ASP project which references a WCF service. Does exactly half of what I need.
A button on the page calls a function from the WCF, which returns a list of objects (variable names). When returned, the vb code dynamically adds textboxes to a panel on the page.[code]...
View 2 Replies
Jun 29, 2010
[code] If i place a textbox using the above code how could i program the textboxes that apper in run time
View 2 Replies
May 12, 2009
I have a windows form on which there is a textbox and a command button. When user inputs an integer in the textbox and clicks on the button, the userform grows and adds that many number of comboboxes and textboxes in a panel.
how to add variable number of comboboxes and textboxes at run time.
The maximum value of that integer would be 10.
View 2 Replies
Dec 25, 2010
I have code that when text fills a main rich textbox beyond the size of its dimensions - the vertical scroll appears and simultaneously vertical scrolls the main rtb and a second subordinate textbox.
If I have a couple lines of text and I scroll down a line(row) of text using the cursor I wish the subordinate rtb respond in the same manner i.e. scrolling down the same line(row) and obviously the lines of text underneath.
View 4 Replies
Nov 21, 2011
I Have a problem whit my code.I want to receive 4 character variables (0-255) all the time and put them in the corresponding textboxes:
Public Class Form1
'Dim WithEvents Comm1 As New IO.Ports.SerialPort
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Comm1.Encoding = System.Text.Encoding.GetEncoding("Windows-1252")
[code]....
I Want to send date when I want , but I want to receive data all the time (i want that textboxes 3,4,5,6 to update whenever data is comming an form is load).
View 15 Replies
Apr 11, 2010
When i run the program everything works fine. I want the textboxes to keep the data in them till the next time i run it. Right now when i shut it down (with data in the textboxes) then start it up i have lost all the data.
Heres my code
Private Sub TextBox2_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox2.KeyPress
'Numeric values only
If Not Char.IsNumber(e.KeyChar) And Not e.KeyChar = Chr(Keys.Delete) And Not e.KeyChar = Chr
[code]...
View 3 Replies
Nov 6, 2010
I have a routine that has an if else statement at the else part it calls another routine. Within that routine it has a msgbox script. At the part that is actually is suppose to show the msgbox it goes back to the previous subroutine at the else statement and runs again but this time it displays. I have never seen this before.
THe code is posted below.
1 Else
2 Me.lblTurnsLeft.Text = Me.lblTurnsLeft.Text - 1
3 If Me.lbltimer.Text = "0" Then
[CODE]...
View 1 Replies
Mar 27, 2011
I'm writing a report scheduler that is somewhat of a clone to the backupexec scheduler and the layout can be seen in post #10 here: [URL]..It works great and saves/edits/deletes records just fine, but now i need to compare those records one at a time in a windows service that i'm writing in order to trigger automated report creation and emailing - i already have the report and i already have the code for the emailing, i'm just looking for the most efficient way to loop through the table (that i've pulled in to a dataset) and compare its records with the current date and time - if true, the event fires.
[Code]...
1stSun, 2ndSun etc are bit fields, time is a datetime, and the remainder are varchar. My service checks the database every thirty seconds.The english version of what i'm trying to do is "Connect to the database, grab the entire table (it will always only have 5-6 entries max, so i felt 30 second sweeps was okay), and If today is the 1st Sunday of the month, and it is currently 11:00:00 a.m. (could be any day or time, this is just an example) - loop through the dataset to identify if any records match the time field or greater - if they do, fire the report
View 2 Replies
Apr 15, 2012
I need this for 2 different changes.ON one form i got a week calendar, the other a month calendar.Was hoping to add 2 buttons previous & next.To scroll back in time x days, or x days forward.And similar for the months, but instead of days months.Can anybody give me a exaple or a method how to get this to work?Figured it could be done with a loop, but not sure anymore.
View 2 Replies
Jun 21, 2010
I have six textboxes, and upon button press it randomly generates six numbers, one in eact text box e.g. [43] [85] [93] [1] [0] [17]..i create another six textboxes and at the same time allocate these numbers in ascending/descending numbers.I am not looking for any codes whatsoever, as i love the challenge of VB.Net.
View 2 Replies
Feb 7, 2011
I would like to ask, it its possible to apply opacity to the back color of groupbox?In my form i have an image background, and groupbox that has label. if I'm going to make the back color of Groupbox to Transparent, the label inside the Groupbox is not readable
View 6 Replies
Apr 13, 2011
What's the simplest way to pass a variable back and forth between 2 forms?Let's say I have form1 and form2. Form2 has textbox2 and button2. When button2 is pressed I need the text in textbox2 to display in textbox1 on form1.
View 4 Replies
Dec 17, 2010
I have Hotspot Shield and I want it to open the process, then back to focus to my application, and wait about 15 seconds and then kill the process. How do I do that
View 1 Replies
Mar 9, 2010
which statment is right and why
vb
Private Sub BackgroundWorker1_DoWork(sender As System.Object, e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
[code].....
View 10 Replies
Mar 11, 2012
I've got a collection of a type of form and multiple of these can be displayed on the screen independently at the same time and now I'm wanting to add the ability to cascade these forms, but these forms can all be re-sized so it'll be very rare when they are of the same or similar size. I would like to be able to cascade them based on their present size, so the largest for is in the back and the smallest is in front.
I also realize that a form could be wider than than another form but that other form is taller than the current one, in which case I would like the taller form to be considered the larger one (an arbitrary decision, I know). Here's the code I currently have that cascades them in the order they are in the collection, I just need to know how to re-order them based on their size.
[Code]...
View 5 Replies
Jun 13, 2010
I accidently excluded my app.config file so when ever i try to run the app, it fails. How can i get the app.config file back with having to reenter everything
View 2 Replies
Aug 25, 2010
I am using an image button and on click of it i want to go to visited page.Now i am using - Response.Redirect(Request.UrlReferrer.ToString()),It is going to previous page, but when i am in a page of some user details where the link is looks like - users.aspx?userid=25 and i visit some other page and click back(image button) i want to see the same userdetail page. How to track that.
View 2 Replies
Jul 23, 2009
I have a search page with a couple of pulldowns. Dependig on the values of them I show a grid matching the searched criteria, basically a table with links the user can navigate to. My problem comes when the user wants to navigate back. At the moment I have a "Back" button which simply redirects the user to the initial search page. I think it would be a good improvement to have the values of the pulldowns filled in with the values the user selected, this way when he presses the "Back" button he would not have to restart the whole search process again.
View 5 Replies
Oct 16, 2011
I'm new to VB and i want to make a program that calculates with the text in the textbox.So in the first 3 columns you put the names yourself and the last column displays the names from highest to lowest points and the rows in the 3 first columns have points from 100 to 10 (highest to lowest). How let i calculate vb with these column and rows so i get the name with the best result in the "totaal" column?
View 2 Replies
Aug 23, 2010
How do I achieve in VBNet? I have it in VB6 (sendmessage api) and can't figure out how to port it.
View 3 Replies