okay so I have a simple code to generate card picks and store them in numbers except no two cards can be the same so my checkIf functions checks it against the current list. Also no four a values can be the same since there are only 4 cards of the same type in a standard deck. Now the problem I am having is that when I run my code I only get two message boxes when I believe I should be getting 30 - (15 a's and 15 b's).[code]
I can't rename my text boxes, it gives me an error message" The name txtjeffSales is already in use by another component. But I just created the project aand there is no way that anything else has that name, even if I try slight variations of that name it just won't let me do it, wtf is going on here? Attached image(s)
Windows 7 Home Premium X64 Visual Basic 2010 Express SP1 All Visual Studio updates installed except for a Visual C++ security update
The problem:Sometimes message boxes in a console app close after clicking the ok button on one before all the messages are displayed. It is just supposed to display one message box after another. Same code as above, A message box in a console app will sometimes minimize to the taskbar before displaying all the messages after the OK button is clicked on The same code as the above 2 problem but in a Windows form app will display all of the message boxes, But.sometimes won't show the form at the end like it should.
The bugs I know happen when I run the programs from VB itself, don't know about the EXE outside of VB.I know it isn't my code because others have tried it and had no problems.What can I try to fix it?EDIT: Code for the one with the button and form:Public Class Form1
I am doing an application where a person can enter a string in a text box. The application reverses it. That all works fine.
I am trying to set up an if statement where if nothing is entered in the box and Submit is clicked, a message box pops up and tells you that the box can't be empty. The message box pops up fine but when the user clicks on ok to close the box, another blank box pops up. How do I get rid of the blank message box?
I am doing an application where a person can enter a string in a text box. The pplication reverses it. That all works fine.I am trying to set up an if statement where if nothing is entered in the box and Submit is clicked, a message box pops up and tells you that the box can't be empty. The message box pops up fine but when the user clicks on ok to close the box, another blank box pops up. How do I get rid of the blank message box?Code is as follows:
Private Sub btnReverse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReverse.Click If String.IsNullOrEmpty(txtInputStr.Text) Then
I have an assignment where Im supposed to make a compound calculator which displays interest earned each year (e.g. next 10 years) as well as the total amount for those years. Im having difficulties in writing the code for the calculation.I know the formula and how it works but Im not entirely sure how to use it in VB
In Visual Basic Express, is there a way to format text in message boxes? Specifically, I want to be able to add tabs to align text on successive lines. Currently, I'm just adding a bunch of spaces, for example, see below. I'm using Visual Basic Express 2005.
In Visual Basic Express, is there a way to format text in message boxes? Specifically, I want to be able to add tabs to align text on successive lines. Currently, I'm just adding a bunch of spaces, for example, see below. I'm using Visual Basic Express 2005.
If MsgBox("The OUTPUT quantity for Acid Distillate is zero." & vbCrLf & "WAS THERE ANY ACID DRAINED FROM THIS BATCH?" & vbCrLf & vbCrLf & "If you need to enter a quantity
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
I need to assign code to a button, that when clicked on, validates an ISBN code, and displays a message that it is either Valid or Invalid. I basically need help transforming code used in a console application that will now be used in a windows form application, so no more writeline stuff, now message boxes. [code]
My app consists of some text boxes which use msg boxes on invalid input. How can i replace these msg boxes with balloon tips that will appear under each text box on invalid input.
I understand that currently vb.net message boxes support buttons like ok,cancel,yes,no,abort,retry.but i am wondering how do i customize my own message boxes such that i can rename the yes,no buttons to any text like delete or discard.
I am facing another error "An error occurred trying to load the page. Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND) )" performing the following scenario:- Opened a sample VS 2010 WPF project that I receiveved from a co-worker (Project compiles, and run on his machine)I tried to open project properties (Project --> Properties)The project properties panel/window didn't open, all it had was an error symbol (red/white X) and the error message above(HRESULT: 0x80020003).I am unable to view niether the designer window nor the code window (no messages are reported) but the pane where the code/design shoud display is empty, all you can see is the background color.
I know it's possible in asp.net to create a custom error page in a web app, by putting the following line in the web.config: <customErrors mode="RemoteOnly" defaultRedirect="frmErrorPage.aspx" />
I have had to do this for my web app, since it is clearly much tidier than letting the program bomb out with it's ugly default error page. My custom error page just has the customer's logo and a brief message saying "Error has occurred. Please return to homepage"The trouble now is that I have no way of knowing what caused the error, when a customer reports it.
Is there a way to make the actual error message appear on this custom error page too?
I dragged and dropped a label control on my web form. But then whe I go to my VB .net code behind file, if I try and set a property on that label control, I am getting a "Declaration Expected" error message for the label I created.Yet if I do try and explicitly declare my label control, the compiler tells me that the label control is already declared.[code]
Is there an easier or more concise way to validate my form other than what I have below? Also, for some reason if one of the validations is triggered then it goes through each of the validations and message boxes before it will let me enter the value. Is there a way to keep it from going through all of the validations every time?
If txtCustomerNm.Text = "" Then MsgBox("Please enter the customer name.") txtCustomerNm.Focus() End If
I'm looking forward to reading and adding more to the community here. I've created a text based rpg. Next semester we are learning Visual Basic. I'm on winter break and I would like to get a head start on my learning. I've been working on creating some forms and message boxes. What is throwing me off, is that I have a good feel for doing coding so that I get functionality the will produce effects in a console. Coding the forms is a bit confusing for me. Is this something that others have run into? Is their some good primers for VB? I don't have my text books yet.
When I run the code, type a value in quantity and hit the calculate button I get an error message stating, "Quantity must be a numeric value" and I don't see in the code what I have missed. I thought I set quantity as a numeric value by making it an integer and parsing it.
Private Sub calculateButton_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles calculateButton.Click ' Calculate subtotal Dim subtotalDecimal, amountDueDecimal, shippingDecimal As Decimal
First attempt at using the error provider, I've set this up for each of the five text boxes I have on my form, when I click the button it shows the error provider flashing between the various boxes if I leave them all empty. Ideally I'd like the form to show the symbol next to the box thats empty, click the button and remove it from those which are correct leaving only the incorrect text boxes with the symbols. Any thoughts? [Code]
I devoloped a program that detects type of iphone If the iphone is detected it show me an error Index array out of bounds How can i make it show a message box showing Iphone not detected
i am beginner of OOP program. i am using vb.net my problem is the vb.net not telling me if i have Error (Cannot implicitly convert ) at design time, but C# telling me if i have that error at design time.
In IIS 5.1, i have set the website security to Basic Authentications and i have set the page for custom error in IIS which is directing to c:est.asp file. When user try to access the website, the user name and password screen comes up and after entering the wrong password 3 times, system shows the custom error page which is fine but why does system prompt for the user name and password again (for three times)?
I don't want user login screen on custom error page. I have tried to put the custom error page on the default website and set the security to anonymous but it still shows login screen on custom error page.
I am working on a small program to find all images on drive and display them using Cygwin commands. I found a code snippet that seems to work well but get a error when I run it. Here is code:
Try Dim r As IO.StreamReader r = New IO.StreamReader(workingdir + "\images.txt")
i am receiving this error message when my application is being viewed on the remote machine(internet)
Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.Source Error:
Line 7: Dim oBF As New BinaryFormatter() Line 8: Dim oFS As FileStream Line 9: Dim strPath As String = Path.GetTempPath & "schedule.Bin" Line 10: Line 11: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load