If Statements - Message Box Doesn't Appear
Dec 4, 2011
This is for a blackjack game. Every time the dealer has 3 cards in his hand (first 3 labels) message boxes are supposed to appear corresponding to the value of these labels. When i click my button and 3 labels have a value in them, even thought they are equal to less than 17 and less than 21 a message box doesn't appear. [Code]
View 14 Replies
ADVERTISEMENT
Oct 13, 2010
I use Visual Studio 2003, VB.net, NetFramework 1.4 and Windows XP I have been using the following Code Snippet for a number of years in both Web Services and Windows Applications. However suddenly around the 29th September 2010 it has stopped sending E-Mails from both Web Services and Windows Applications. The same problem has happened not only to my own Network but on two other Networks, one using XP as its Server and the other using Server 2003. All 3 of these are using different ISPs.
[Code]...
View 1 Replies
Jun 4, 2011
I have a piece of code in my application that is giving me a funny result. I am reading a text file and based on it's first word on the line I have a bunch of IF statements that then assign the value to a variable.
The problem is that not all the if statements are being met, well they are but that's what's weird.
[Code]...
View 2 Replies
Nov 10, 2011
I'm working on this application, and I was doing the error checking on it, and I can't get the message box to show.
[Code]...
View 4 Replies
Sep 10, 2011
I'm currently using this
Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Integer) As Short
Public Function GetKeyState(ByVal Key1 As Integer, Optional ByVal Key2 As Integer = -1, Optional ByVal Key3 As Integer = -1) As Boolean[code].......
But even when I do press control, the message box doesn't pop up.
View 8 Replies
Jul 4, 2009
I want a message box to show when a username doesn't exist. I figured this would work but an error shows saying 'FileNotFoundException was Unhandled', for the fist line.
Dim UserFile As New System.IO.StreamReader(sPath & "" & UsernameBox.Text & ".txt")
Username = UserFile.ReadLine
Password = UserFile.ReadLine
[Code].....
View 4 Replies
Apr 25, 2010
How can I check for my combo box to have a selected item? I want to display a message box if the user doesn't select anything from my combo box.
View 3 Replies
May 18, 2012
I have this function I put together with help online and it works just fine until the program runs over night. I don't think it is night time that is the problem, just the long run time. I take bitmaps and place text on them then convert them to icons so that the image can be used on the system tray.
[Code]...
View 3 Replies
May 10, 2010
im trying to generate an error message to the user to let them know a file doesnt exist.So far ive got the user to enter the file name into a textbox, they click search and if successful will load a new form with a PDF file reader built in( AxAcroPDF1 )everytime i enter the right file name i get the file loaded, if enter the wrong name the File page still loads with no pdf and no message saying file doesnt exist.
Private
Sub PictureBox1_Click(ByVal
sender As System.Object,
ByVal e
[code]....
View 8 Replies
Oct 11, 2009
Can someone give me a site to a tutorial that will help me write a program that will generate a pattern using do while, if else statements,and do until statements. I have been using google but I can't find anything. I need to generate patterns a certain size 6 by 6 or similar such as something like a checkerboard but where the ^ symbols is there a suppose to be a blank space..
View 3 Replies
Sep 30, 2010
I am really confused! My program doesn't work if I don't have Visual Studio here in my PC. To test it I have uninstalled Visual Studio. But my program doesn't work though Flash Player is present there (I have used Flash animation in the first form).
To be more sure about it I have installed Flash. But it's not working! That means the Flash animation file (.swf) is not making a problem! It needs support from Visual Studio to start. Doesn't it mean that some files are not attached with a setup file as a result it needs Visual Studio to run? Let me tell you how I create a setup file of my program.
CODE:
When I click on the icon of my program it shows the error message
CODE:
Reporting details: This error report includes information regarding the condition of WindowsApplication1. When the problem occurred the operating system version and computer hardware is use; your Digital Product ID, which could be used to identify your license; and the Internet Protocol(IP) anddress of your computer.
View 1 Replies
Mar 14, 2012
I am trying to figure out how to do this:
if (phrase = hello) then
"say hello"
if (phrase = how are you?) then
[CODE]...
So basically, I want it to work like a timeline. If I say hello, then it will respond and move onto the next if statement. Get it?
Here is the code I have now:
If phrase.Result.Text = "hello" Then
synth.Speak("Hello to you too")
If phrase.Result.Text.Contains("How are you") Then
[CODE]...
View 21 Replies
Jun 12, 2011
I am trying to change the background color of a tooltip
I am using tooltip.backgroundcolor = color.colr
No errors but thecolor doesn't change
View 5 Replies
Jan 6, 2010
create a message box that stores my user name, message, and post datetime into the database as messages are sent. Soon came to realise, what if the user changed his name? So I decided to use the user id (icn) to identify the message poster instead. However, my chunk of codes keep giving me the same error. Says that there are no rows in the dataset.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim name As String
Dim icn As String
Dim message As String
[code]....
View 7 Replies
Feb 22, 2009
how to create an error message by message box to tell the user to enter a number only if they key in a character value?
I MEAN AFTER THEY PRESS THE CALCULATE BUTTON
Private Sub btnCalcFat_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalcFat.Click
Dim intFat As Integer
intFat = Integer.Parse(txtFat.Text)
lblResultDisplay.Text = txtFat.Text * 9
End Sub
My text box is call txtFat
View 3 Replies
Dec 13, 2010
just curious if there was a way to make the text in a message box scroll across the message box
View 1 Replies
Nov 16, 2009
I am using Visual Studio 2005 for coding. I am doing an exercise where I have to create a data lookup program. The program is to illustrate the concepts of using a database to look up information based on user input. The program allows a user to input two search criteria for a product search. The program then displays each individual search result, or record that meets the search criteria in a message box. I am not getting the message box and I don't know why. No errors are present during compiling so I have no indication as to where the problem is.
Option Strict On
Imports System.Data.OleDb
Public Class Form1
[Code]....
View 4 Replies
Oct 18, 2011
I have to Create a Bowling Scores application that allows the user to enter 5 scores and then displays the high score and the low score and then clicking on the Statistics button there would be a label showing which is higher and lower. We HAVE TO USE FOR AND NEXT STATEMENTS.
View 7 Replies
Nov 5, 2011
How can i implement a statement with if for this number to be greater than 0 but less than 10? More Specifically where would the < 10 go?
Quote:
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
[code].....
View 12 Replies
Dec 20, 2009
is there any way to use 2 for every.... statements?
i want to load up my.settings and 1 list will make new toolstripdropdownitem and the other lists is for the tooltiptexts
or I could do it another way, but how can I check the index of items in a my.setting string collection? like if I want to get the text of index number 3 how do I do that?
View 4 Replies
Oct 28, 2009
I am sending a DDE message to a client using System.Text.Encoding.ASCII.GetBytes(item) . However, before the message is actually sent, I would like to get the message coded where if the item="Ask" then item=Ask (string variable) and so on. The code is:
Protected Overrides Function OnRequest(ByVal conversation As DdeConversation, ByVal item As String, ByVal format As Integer) As RequestResult
' Return data to the client only if the format is CF_TEXT
[code]....
View 3 Replies
Oct 24, 2010
Don't know how to get "Textbox1.text" to go into the message area of Xbox Compose Message.
View 7 Replies
Oct 6, 2010
I am using Microsoft Visual Studio 2008 with VB.NET, and in class we were assigned this project: A procedure should calculate a 2% price increase on all red shirts, but a 1% price increase on all other items. In addition to calculating the price increase, the procedure also should calculate the new price. You can use the variables strItemColr, strItem, decOrigPrice, decIncrease, and decNewPrice. Format the original price, price increase, and new price in the lblOriginal, lblIncrease, and lblNewPrice controls, respectively.
View 1 Replies
Jul 20, 2010
Basically if i wanted my controls to be checked at startup id use a setting obviously
'UI Settings
chkCloseToTray.Checked = My.Settings.CloseToTray
chkAlwaysShowSystemTrayIcon.Checked = My.Settings.AlwaysShowTrayIcon
[code].....
View 3 Replies
Oct 31, 2011
how to combine this 2 statment..
IsConnected("Select * from manager_table", False)
Call Loader()
IsConnected("Select * from Clerk_table", False)
Call Loader()
i hve 2 listview, 2 table from accessdatabase..i put listview in tabcontrol..1 in tab 1 & second in tab 2...
View 1 Replies
Oct 24, 2011
I need to know if this particular block of code will work, and if not, what i need to do to make it work. I'm doing touchy business and i'd prefer to have it right the first time.
strsql = "IF COL_LENGTH('orders','nosign') IS NULL" & _
"BEGIN" & _
"ALTER TABLE orders" >& _
"ADD nosign bit;" & _
"END"
View 2 Replies
Sep 21, 2011
How do I make an OR Statement.
Im trying to do this
name3 = [name2].EndsWith("," Or "." Or "?" Or "!" Or ";" Or ":")
View 1 Replies
Apr 13, 2012
I just wanted to know if it's possible to get an if statement to accept two strings into the same text box. An example of my code so far is below: (although please note that the program does not accept the strings after the "Or" boolean)
Private Sub btnpreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnpreview.Click
If cbox2.Checked Then
[code].....
View 5 Replies
Jun 27, 2010
Okay I need two blocks of code for each of these:[code]Now both of these are under the if statements checking if the startsWith or equalsIgnoreCase check boxes are checked. (Only one is under the corresponding code not both.) At runtime when I check off the boxes neither of these two code blocks execute.
View 4 Replies
Mar 17, 2011
Here is my code as I have it
Code:
Public Class Form1
Dim OpePro(7) As String
[code].....
View 8 Replies