Forms :: Limiting Sends Within Form?
Dec 14, 2011
i got a program that has clients send self typed messages via gmail and i want to be able to limit everyones use of this so they dont try to spam me, i want to make it so they can only send 1 from their computer every 12 hours how would i do this?
also i would like to make sure that one of the boxes they fill in has indeed been filled in with at least 20 characters before they can click the send button, hoping this would prevent ppl from sending blank messages
View 3 Replies
ADVERTISEMENT
Jan 28, 2012
Assuming that I have a Windows Forms textbox and want to reduce the maximum amount of characters that can be allowed in via user entry, how would I do that?
View 2 Replies
Dec 29, 2009
So I am trying to make a program where the user is limited in moving the mouse to a form. I still want the user to see whats going on behind the form but not be able to click on anything but my form.
I tried using this
Cursor.Clip = Me.RectangleToScreen(Me.ClientRectangle)
The problem is that if the user clicks in certain spots on the titlebar...the mouse is unlocked. The machines this is going on has a ball type of mouse so if you scroll fast and click fast enough...it can also unlock.
View 3 Replies
Oct 18, 2011
I've created an application that sends an email to a user on completion of a form. This works fine for me with my credentials but for other users they are getting a "The remote certificate is invalid according to the validation procedure" error.We use outlook and exchange and the email doesn't need to go outside only internal - so is smtp the right choice and is SSL needed?
[Code]...
View 3 Replies
May 15, 2012
I ave a contact form (VS 2010 / VB / .net4), and when the client fills out the form, I get an email -- which I like, but ....
For instance, here's an e-mail I got:
[code]...
But I'm expecting a lot of more emails than I had originally anticipated. Does anybody have any suggestions on what I can do? Is it possible to upload the responses into an Excel file, or something?
View 1 Replies
Aug 30, 2010
I want to make a program that sends text in the text box to a form on a website and print the page as .xps
View 2 Replies
Feb 12, 2010
I write in-house software for a company. I always want to leverage OOP techniques as best as I can. In this thinking, I want to create a Data Access Layer (DAL) isolated in its own .DLL. What can I do to limit the access of the DAL DLL to only my business logic layer DLL? The last thing I need is someone in the company with a little programming knowledge plus access to the system (via Active Directory) to install .NET Express, reference my .DLL, and start firing off data access code outside of the real system. Are there any .NET mechanisms I can employ to limit a DLL to be used only by a pre-selected host application/DLL?
View 2 Replies
Jan 30, 2011
My application allows the user to enter text into a RTB including all the various text font, size, etc changes. The user then prints that data onto a label. I got from my previous posts, I can print that on my label Each sheet has four labels, 3x5 inches. I print landscape and adjust margins to select the right label.But I want to limit the amount of text the usr can enter to the amount that will fit on the label. In essence, what I would like the user to see is a virtual label on the screen that they can type data into and get exactly the same formatting on the label when they print it.
I found several (mostly old) articles about linking the RTB to the printer, but nothing on how to set and limit the size of the RTB to the exact size of the label.
View 13 Replies
Apr 19, 2009
I have made a game (real time strategy) and it is running rather fast on my 3 GHz quad 8800 GTX, namely, it runs around 200 FPS usually when there are like 80 units and tanks in a forest fighting.
I would like to limit the FPS. So far my limitation code is pretty buggy... it does limit, but wrongly:
Private Sub LoopGame()
Do While GameIsNotPaused
FPS += 1
[Code]....
Also, after I solve this weird issue, should I set the value to monitor's refresh value which is usually 60 Hz on LCDs? Or should I set it to 30 or what ?
View 4 Replies
Feb 20, 2012
I've made a lot of progress on my project. Only question I have now is how do I limit a textbox to only allow users to input numbers and one decimal point? The point of the decimal point is to make it currency. So if the answer of my calculation is 56.56566 I only want it to be $56.57.
View 5 Replies
Nov 21, 2010
sample of codes that i use to insert the data in my table, it works just fine but the problem is that i cant limit my user for example from entering null values, or integers into string or strings into integer,,,,, I also ask for assistance on how to handle any errors in my system from crashing.
Dim conn As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.StartupPath & "MOMSTEST.mdb;")
Dim Comm As New OleDb.OleDbCommand
[code]....
View 9 Replies
Oct 10, 2011
I've got rows in my table that contain text anywhere between 31 character and 281 characters long.Rather than display all this text in my table on my webpage, I'd like to limit this text to a few characters long so as to identify it to the user.What I've done is select left(ColumnName, 30) but this way is fairly ugly on the page as it cuts off the text in the middle of words.
View 2 Replies
Jun 11, 2009
I have an number of text boxes and comboboxes on different forms. I have textchanged events which trigger a msgbox if the user enters invalid data(i.e. the number they enter is to big or to small). Is their a simple way to make the program not call the textchanged event when the form is loaded and the boxes get their initial value? Second is their a way to make the textchanged only be triggered when the user enters data not when the program clears the boxes?
View 3 Replies
May 29, 2009
Is it possible to have a UD Class that can limit how big it can grow as an array?
for example:dim var(10) as class this would throw an exception cause the class will only grow up to 5 elements.dim var(4) as class valid cause it is under the 5 element rule dim var(4, 10) as class invalid cause the 2nd dimension is above the 5 element rule. (would throw exception)
View 10 Replies
Mar 30, 2012
I want to limit the number of students (60) that will be enrolled in one section and prompt a message that it surpass the limit. I inserted it in my combobox1
Here's my code :
strsql = "select * from Schedulings where Sections = '" & ComboBox1.Text & "'"
Dim acscmd As New OleDb.OleDbCommand
acscmd.CommandText = strsql
acscmd.Connection = asconn
acsdr = acscmd.ExecuteReader()
It doesn't work. How should I do it?
View 8 Replies
May 19, 2011
Does anyone know how to add a limit to the number of items in a list box? For example, you can't add more than 10 items in ListBox1.
View 2 Replies
Apr 30, 2011
This program allows a user to select a workshop and a destination, only one selection should be made. When I test I find I can add multiple of the same.
Private Sub ListBox1_Validated(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.Validated
If ListBox1.SelectedIndex = -1 Then
Beep()
MessageBox.Show("Select a workshop please.")
End If
[Code] .....
View 2 Replies
Dec 15, 2009
I have a class called Item which contains all the information about all parts, finished goods, in process parts (parts made on site), purchased parts, and raw materials.
I have a Bill of Materials table which has the following columns (reflected in the BOM class)
ParentItem
ChildItem
ChildItemQty
Parent Items can only be Items which have subcomponents.
Child Items can be parts that are made on site, purchased parts that are bought ready made from other companies, or raw materials used to make a part that is made on site.
Parent Items and child Items both inherit the Items class.
I will limit the Parent item class to only items that are in the parent column of the BOM table. I believe I can limit that by doing a quick look up on a view which only shows the parent items.
I will limit the Child Item Class to only items that are in the child column of the BOM table. Same method to limit it by doing a quick look up on a view that shows only the child items.
That way, an instance of the BOM class will have all the detail information about any of it's components available whenever I need them.
View 4 Replies
Sep 6, 2009
I had a DataGridView in which i want to fetch the data from the access database,so i did this
Dim connString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Etech.mdb"
Dim myConnection As OleDbConnection = New OleDbConnection
myConnection.ConnectionString = connString
[Code]...
In the above snapshot,after fetching the data from the access database to the DataGridView,i want to remove the PplicyHolderName,PremiumAmount and a few other columns since these are the columns which do not contain any data....
View 6 Replies
Apr 25, 2012
I have a textbox called textbox1. I wanted to limit it to only two characters, so I added the code TextBox1.MaxLength() = 2, however this textbox is for user input and only want to allow numeral values 0-99. And if the user entered a non-numerical value an exception would occur so I need help on to handle that.
View 2 Replies
Nov 29, 2011
Currently I have calculated that one of my functions executes 62 times per second (on average). How can I limit this to say exactly 50 times a second (every time)?
View 3 Replies
May 12, 2012
I have a textbox called textbox1. I wanted to limit it to only two characters, so I added the code TextBox1.MaxLength() = 2, however this textbox is for user input and only want to allow numeral values 0-99. And if the user entered a non-numerical value an exception would occur
View 3 Replies
Oct 15, 2011
how can i limit a user to enter 10 digit no like telephone no in textbox without using regular expressions?
View 12 Replies
Oct 9, 2011
how can i limit a user to enter just 10 digit number (minimum 8 but not more than that 10 in any case) in a textbox(like telephone no)?
View 4 Replies
Jan 26, 2012
I am trying to restrict the the number of decimal places to two in a textbox.
I've already made it so only numbers and decimals can be added, now this is the only thing that isnt done
Private Sub MoneyTxtxbx(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles _
MoneyTxtbx.KeyPress
[Code]....
View 2 Replies
Sep 18, 2009
My combobox dropdownlist contains 60 to 65 items. So i want to show 5 items in the dropdownlist of my combobox and add a vertical scroll bar in it so that the user can scroll it and see the items. How to add a vertical scroll bar in the combobox dropdown list? I want to add this vertical scroll bar only when the dropdown list contains more than 5 items.
View 5 Replies
Jun 2, 2012
I am creating an application in Visual Basic '08 with four available checkboxes. Is it possible to limit the number of checkboxes you may select down to 2, and how may I go about doing this?
View 12 Replies
Mar 17, 2009
How do i limit the amount of characters in a masked textbox? I can do it in a normal textbox but not in a masked textbox because there is no option to limit the size.
View 6 Replies
Dec 15, 2009
Vb.net program that sends email?Can we do that?
View 1 Replies
Aug 15, 2011
I need to make app that sends mail... so i want in subject to make text like "Report - dd/mm/yyyy - hour:minutes"
View 4 Replies