Case Block - Get The Program To Drop Into The Different Cases
Nov 24, 2011
I am having trouble figuring out what I need to do in order to get the program to drop into the different cases. I am suppose to be doing a case block for this assignment. I believe everything else is good but it always outputs the first case and doesn't progress down depending on the inputs. I tried to number them case 1, case 2, etc.. Here is the code
[Code]...
View 2 Replies
ADVERTISEMENT
Jul 15, 2010
Is there a way to make a VB case statement evaluate all the cases? Similar to a java switch statement (without the break).
View 5 Replies
Aug 23, 2011
I'm using the following code to read values, from a parallel port. Can I check for multiple cases by using 'and'? [Code]
View 10 Replies
Nov 24, 2011
'This program is to ask for input from a customer as to the type of lift ticket desired, whether it will be for a half 'day or full day and the total number of days desired. It will then calculate the total ticket price plus a slope 'charge of $10.00, a 10% sales tax will be added to the total of both the price and charge.'The checkboxes were designed to order one type of ticket at a time, when one box is clicked the 'other checkbox dissappears. Clicking the box again resets them both to visible.[code]
View 16 Replies
Sep 2, 2011
I am making a program that NEEDS to be password protected, so i made a textbox with a code so that when the user enters the right password it lets you in. But if the user/person enters a wrong password 2X it will kick you out. So is there a way to keep the
View 3 Replies
Sep 24, 2010
I have a very simple VB 2005 program which runs on our W2K and XP systems, but when I try to run it on W7, the UAC throws up an admin login block. I have tried signing the assembly, to no avail. The entire program is below:
frmSimpleTest.vb:
Public Class frmSimpleTest
Private cabsdirectory As String = "C:HOTRMHMR"
[Code].....
View 7 Replies
Jun 14, 2011
How to block a program from running twice. Show a message box when the program is executed twice
View 1 Replies
Mar 14, 2011
I'm Trying to make a Program that Blocks / unblocks websites.[code]...
View 4 Replies
Feb 6, 2011
i am making a program that you should be able to block websites with. and i want the program to block the websites that is inside a text file or something, so the user can change the website that should be blocked.
View 9 Replies
Feb 11, 2010
I'm using datagridview to populate all the data from datbase.if i press the ENTER key then it is moving to the next row.i want to block this.when i press the ENTER key it should not move to the next row but instead it should display the cell value.
View 1 Replies
Apr 18, 2009
I'm writting a dll in Fortran. I've included some common blocks in the fortran code. And I don't khow how to import it to Visual Basic.
View 2 Replies
Nov 9, 2011
I'm making a program which should close and block different programs, but also i want i to be a able to close and block different websites. So if i have my browser opened and i'm on www.facebook.com then i want to block the acces for this site.
View 2 Replies
Dec 6, 2011
I have a function coded for on_click operation and it is not cycling all the way through. I have moved various "If" block controls as well as the code itself around several times and I can not figure out how to get it to go all the way through.
As of now, it will check to see if the Company Name is in the database, then check to see if the field is blank, then check to make sure the zip code box is numeric. That's as far as the code goes. I can not get it to cycle through and actually add the row to the database. If I move various lines of codes around, I can get it to add the row, but it will allow the errors such as incorrect zip format as well as blank values also. I need the code to perform the checks, then if all entry is valid, it adds the row.
I am only working on one form as of now, but this exact problem will be applied to several other forms within my overall project. However, if I can not get this one form to work, I will not be able to get the others to work either.
[Code]...
View 1 Replies
May 12, 2012
I have embedded the flash player(Shockwave Flash Object) into my application Form. and then I want to block right click from user.
View 1 Replies
Apr 7, 2011
I wanna make a small program, which have a some list of bad word to block url search in my system
View 3 Replies
Apr 11, 2011
im using visual basic 2008 and a made a fully functional webbrowser useing the control. i have a huge list of ad servers and every different one is separated by an enter. i need a way for the program to read the file and block ads from loading.
View 1 Replies
Jun 15, 2012
I am trying to open multiple files using a third-party program, by calling it from VB.NET. By default, the program I am using, through command line, only opens one file at a time - and if I call it again, it opens a new instance. (when started in GUI, I can drop many files on it).
Now I open it with
Shell("program file")
If the program is running, I want to add "file" on top of the running instance instead of starting a new instance.
Something like:
If Not procExists then
Shell("program file")
else
[Code].....
Unfortunately, just like Shell("program filename"), it opened lots of instances of "program", instead o loading all the files in the same instance.
View 1 Replies
Mar 15, 2010
I am taking an intro to VB 2008 course and i am having difficulties with a particular project.The project is to calculate to Federal Tax based on income, I am trying to use Select Case but when i run the program it won't output to the text box. i did the problem using If/Else blocks and it worked perfect. Do I have to put the txtTax.text output statement somewhere else?
Private Sub btnCompute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCompute.Click
'Project 3 using Select Case
'Program is to find Federal Income tax[code].....
View 2 Replies
Oct 16, 2010
'i have written the following code:
Private
Sub Combo_Mth_KeyPress(ByVal
sender As
Object,
[code]....
'even thogh it seems to clear the text and select default text yet user written 'keyword appears in the text area of combobox?
View 3 Replies
Jun 12, 2011
I have used VB6 years ago. Few days ago I just got started again with VB 2010. So I'm newbie again, Almost forgot everything. I want to create a program for parental control that block specific websites.
What I exactly want to do is The code should check the titles of the open windows and see if it is blocked one. If it is, it will close the browser with a message showing it's blocked. For example If I put "yahoo" to check and someone opens yahoo.com it should be terminated.What I have done so far is, I made DOS batch file that will terminate all the browsers that are open and set that ready to run when the title matches blocked site name/address.But I am stuck at how I can check the titles of the window that are open.
[Code]...
View 3 Replies
Oct 28, 2009
i have a program using a select case to convert letters to special charaters. My question is how can I get the code to read upper and lower case letters without having to put the upper case letters in my select case statement. Example: Part of my code is
[Code]...
View 6 Replies
Dec 15, 2011
i want to the textbox that when I start to type in names it should be like this Camille Aisha Cordova, How do I do this?
View 16 Replies
Oct 27, 2010
Im using a Random Pool number generator and was wondering how i can make it use upper-case and lower-case letters as well as numbers here is a pic
[Code]...
View 3 Replies
Aug 3, 2010
I have been programming for alot of time. Generally i program in some languages like PHP, ASP.net, Java, JavaScript and others. In all languages i have to use alot of if else statments . Like if value= 10 then ... if i review my code then i find alot of if conditions. So i would like to minimise them but how not sure. one point was using classes somewhat minimised but still they are more... like task, cat, sec and type:
[Code]...
View 9 Replies
Mar 7, 2011
Private Sub cmdCalculate_Click()
Dim Run As Double
Dim Rise As Double
[Code]....
View 2 Replies
May 18, 2009
I am trying to calculate from a case, and it does not seem to work, and I also need to validate when no input is entered and the person presses the calculate button. my code is a follows
Public Class Question2
Dim intSal, intCount As Single
Dim intPiece, intRates, intPay As Long
[code].....
View 2 Replies
Jan 18, 2012
I want my TextBox to make the text i enter as Sentence Case(ProperCase).. but i dont want to write any code in an event like Lost Focus or KeyPress
Just by default when ever a user enter or types in a textbox the first letter of every word should automatically converted into UpperCase
View 1 Replies
Mar 21, 2006
When my form loads it adds some handles (using AddHandler) to a sub (showStatus). What this sub does is checks which control activated the sub (using sender.Equals) and displays text in the status label (status) accordingly.For this I use an If...Then statement for each possibility. There are many possibilities and my code get cluttered. Is there a way to do the same thing with a Select...Case statement. I tried: Select Case sender Case tbOne : status.Text = "blahblahblahblahblahblah" End Selectwhere: tbOne is a textbox, status is a StatusLabelIt gives me an error though, saying "Operator '=' is not defined for types 'Object' and 'System.Windows.Forms.TextBox'."Any ideas on how I can get this to work with a select case statement?
View 13 Replies
Oct 20, 2009
here is my code..
[Code]....
If the result is 86 and it's mod by 43 the answer is 2 Case 2 is not firing. it just goes to the end of the procedure.
View 4 Replies
Jun 20, 2011
I was so happy when I discovered IsLittleEndian field in BitConverter. I thought of course it should be there and I should be able to specify whatever endian I like. Well, my happiness didn't last long. Spent some time till found out that there is no way to set the field.The field is readonly, and it is only set to true in static constructor:
[Code]...
My question is: how come there is very useful piece of code that is already implemented and sitting there in the FCL, but there is no way to use it (unless you start messing with reflection of course)? Is it just because some developers didn't meet the deadline and left the job half-done? Even if so, why the code is not available, but the field is?I hope there is a good reason for this.
I want to make myself clear. I don't need a solution on how to handle big-endian values. I do have a solution. The solution is actually shown in my question.
View 6 Replies