Accept Only File Word And Pdf File And Other To Accept Only Images
Jun 2, 2011One to accept only file word and pdf file and the other to accept only images(.jg|.bmp|.png|.gif)
View 1 RepliesOne to accept only file word and pdf file and the other to accept only images(.jg|.bmp|.png|.gif)
View 1 RepliesI have an application that will execute a batch script. I want to make this hidden, yet if I do so, the user won't be able to overwrite the command the Batch file is issuing as it prompts in the CMD window "Y or N" to overwrite.
View 1 RepliesHow would I make my web browser accept only file paths? It's a little import manager for a program that I am making, allowing the user to import files, but I dont want but reports that say that they can access google or something through it.
View 8 RepliesI need to write a program using a For Next loop to accept a word as input and determine if its letters are in alphabetical order.
This is the code I came up with but am getting the error "Index and length must refer to a location within the string. Parameter name: length" at run time when I click the button.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code].....
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?
View 6 RepliesI would like to upload files using the ASP FileUpload control. However, if I try and increase the limit to about 10000 kB, it doesn't work and accepts files only upto 4 MB in size and I get an error saying that the connection to the server was reset. I referred: [URL]..but when I modified the web.config.comments file, nothing happened. Where am I going wrong?
Also, I wanted to know how this would work when I deploy it on the web server. I'm asking because in the code behind, I'm still giving a hard coded value for the path where the file is to be uploaded. How does this work?
I'm a Visual Basic beginner. I want to replicate an existing Mac application that I have with Visual Studio 2010. As you see below, this application (Mac version)'s form has a folder picture at the center. That's a drop box onto which the user can drag and drop a folder, and the application will get its path and write it to a database when the user clicks on Add. Now, according to Microsoft's web site, the PictureBox control has a property called AllowDrop, which is what I need, except that I don't see it as you see below. If PictureBox doesn't have AllowDrop, then what will be my next best alternative to accept a file/folder while displaying a picture?
View 3 RepliesI'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/?"
[Code].....
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.
View 1 Repliesi have a Function in my Component(DAL), the Function Accept an input from textbox and return a dataset.
Public Function Search_lis(ByVal lis_key As Integer) As Dssearchlis
dasearchlis.SelectCommand.Parameters.Add(lis_key)
dasearchlis.Fill(Dssearchlis)
[code]....
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
[Code]...
I have a textbox where I have already put the keypress code to accept characters and number
View 1 RepliesI 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?
View 1 RepliesWe 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
[Code]...
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,
[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?
View 2 RepliesThis 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..
View 3 RepliesGiven 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
View 1 RepliesThe following code explains the problem:
Private
Sub Button5_Click(ByVal
sender As System.Object,
[code].....
BirthDate Data Column
DataType System.DateTime
DefaultValue <DBNull>
NullValue (Throw exception)
The above properties are from a database field. All other options for "NullValue" are rejected.
A text box is bound to the field.My question is: what (empty, nothing or null) value can I put in the text box that the database will accept.
how to set the limit of a certain column to accept 10 the same inputs only. I have a table named Date and I want to limit its content for the same inputs to 10 only cause 10 person only can have the same date.
View 14 RepliesThe text boxes are not accepting numbers. The thing is i already converted the data inside the text box from string to integer.[code]...
View 6 RepliesPrivate Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
Dim allowedChars As String = "0123456789$,"
If allowedChars.IndexOf(e.KeyChar) = -1 Then
' Invalid Character
e.Handled = True
[code]....
this code accept only digits and its working like a charm but if i typed a wrong number its not allowing me to use the delete or the backspace on the keyboard?
I wish textbox to accept only alphabets like A-Z and a-z..How to validate this?
View 2 RepliesI have an application where a user is entering data into textfields using vb.net and then it is saving to excel. The textfields only accept numbers and do not allow the user to proceed unless all textfields have been filled out. If for some reason the user cannot enter in data (machine being broken etc...) is there a way that a messgagebox with a textfield can pop up allowing them to enter the reason that they couldn't enter a reading and then get saved to a textfile or sent as an email.
View 5 RepliesPublic Class Final2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code].....
there's a logic error in this code. it accepts negative value but output positive one. just wonder if Math.Abs functions here.
When I open a program that I've done previously, it does not recognize any new changes to it or any additional new code. I can even comment out parts or all of the program and it will still execute, showing the result that the original program was coded to do. How can I make the existing program accept changes?
View 3 Replies