This displays as many numbers as i want but will also display a single letter.
Private Sub txtEnterGrades_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtEnterGrades.KeyPress Dim intKeyValue As Integer
I'm fairly new to VB.net (self taught) and was just wondering if someone out there could help me out with some code. I'm not trying to do anything to invovled, just have a textbox that takes numeric value from 1 to 10. I don't want it to take a string or any number above 10. If some types a word or character an error message will appear, telling them to enter a valid number. This is what I have, obviously it's not great as I am having problems.
How do you accept dragged text to a notifyicon control? I am aware that the notifyicon control supplied with .net does not have an AllowDrop property nor does it have dragenter or dragdrop events. I'm looking for a way to somehow do this without reinventing the control.
how to make the values in a text box accepts only letters in the text box for data that are for letters only and numbers for data requiring numbers only
I need to create a control for input a currecncies to a field. I'm planning to use a Textbox.
This is the format of the text box for currencies:
"XXXXXXXX.XX"
the dot "." must be fixed in the textbox and it should be loaded with the textbox. Furthermroe i have plans to code eachtime a user enters a number it should print the numbers from Right ot left.
eg: When user enters Number 1234.34
When the user enter these number they should display them as:
when user enters 1
0000.01
when the user enters 2:
0000.12
when the user enter 3:0001.23
When the user enters 4:
0012.34
When the user enters 3:0123.43
When the user enters 4:(after entering all digits in the number)1234.34
Could any one give a couple of ideas how to creat these kind of boxes?
I was thinking about creating a custom control (a Textbox) but still i need to have a the above format in the textbox!
I have a program to read line by line from text file. [code]There is run time error while TextLine data has ' or "May I know how to read the data with ' or " character?
I have a form that I am loading text (strings) from a database into a label.text (so the text from the database shows up into the label) I have done this code in a class that keeps all my database stuff seperate.
Public Function getQuestions() As List(Of String) Dim question As New List(Of String) objConnection.Open() objReader = objcommand.ExecuteReader
[CODE]...
Within the form that the label is in I have done this code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Label1.Text(db.getQuestions().ToArray) End Sub
I am basically making a quiz, so that when the form loads, question 1 is on there is 4 possible answers. You then press next button and it goes to the next question.
I have an SQL database, and 50 text files, and Visual Basic 2010 Premimum,I need to find a specific line of text in the text files and then take the next 37 lines of text and save them in my database. I need advice as to point me in the right direction
I work with vb.net I have a sqlServer database and i need to migrate to a DBF database.I know that a dbf file sctructure is a hexadecimal text file.I want to generate this file without a provider...building this file with this hexadecimal structure.
I'm trying to make a small database out of text boxes and text files, something where sql would be overkill, not to mention beyond my experience. I want to be able to write the contents of the text boxes to a file.txt (the easy part) then being able to retrieve them back out into individual text boxes. How would I pull this one off?
I've tried everything here, but the Amazon Load Balancer API just will not accept my signature.
Whatever I try, I get a "403 SignatureDoesNotMatch" response. I'm probably missing something obvious, but having spent hours trying to figure out what that is, I'm at the end of my tether.
Here's my code:
Public Sub DeregisterInstanceFromLoadBalance(ByVal strServerID As String) Dim strURL As String strURL = "http://elasticloadbalancing.amazonaws.com/?"
I have a VBA script that connects to a site.On that site, it puts in criteria to filter on a database. It then submits it.A pop up window appears asking to Open / Save / Cancel. I don't know how to interact with that window.It is possible to Save, and specify the download location without having to use Sendkeys?Note: There is no file to directly download. You have to run the report and it kicks back the file.I know this is VBA, but I think VB.NET has probably has the same result.
I'm searching for a way to validate (or bypass validation for) self-signed SSL certificates using VB .Net. I found code to do this in C# and tried converting it into VB code, but I'm not having any luck.
Here is the C# code. Here is what I tried:
Imports System Imports System.Net Imports System.Security.Cryptography.X509Certificates
I am developing a s/w. I am trying to update data in table. While I save the data, it will update into table. I have a gridview which binds table data through dataset. While I update the changes it is not reflecting in the grid view.
What I will do inorder to update the changes into gridview.
I would like my website to accept credit cards online. I will manually process the payment. How can I make sure my website is secure to accept payments? Does VISA have specific requirements? Also, how can I check that the credit card information is valid?
We have a web service that provides auto insurance quotes and a company that provides an insurance agency management system would like to use the web service for thier client but they want to pass the web service raw xml instead of using the wsdl to create a port, the object the service expects and calling the web method. The web service has performed flawlessly by creating an object like so
i have a game with a moving sprite and it goes foward left back and right. i cant quite figure out how to get the object to accept two different keys at once and move in that direction in the code. ill attach my code,
I want to know how to accept data from user? I want to accept about 10 datas from user. Before this I use Input box, but it is not a best way for user to key in 10 times data that required. What should I do and what the appropriate way to accept 10 data from user in 1 screen?
This is the program that i made for class to be a calculator for shopping
Public Class frmHarrysGroceryCalculator Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click 'exit button ep
[code]....
I want to be able to use the @ i.e 3@10, meaning 3 items at 10 dollars, in the input box.
I found this code for making my textbox only accept numbers.
Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress Dim allowedChars As String = "0123456789"
[Code]....
But... the user can't delete the numbers using the backspace button. How do I do then?
Given a texbox, how can I completely ignore non-digit characters? So if I press "A" or "Z", those characters would never appear in the textbox. I'd like to run a bit of code if the user tries to input digits and if he tries to input non-digits too..
Given a texbox, how can I completely ignore non-digit characters? So if I press "A" or "Z", those characters would never appear in the textbox. I'd like to run a bit of code if the user tries to input digits and if he tries to input non-digits too