While a fairly simple form it has had its problems. The latest is an error message (see below) that I do not understand and hence cannot correct. I have looked at the other postings, but did not see one that would apply.
Im wanting to display a Login message after my user Logs in. The Database has a column called AName where the users display name is stored. I have: [code]to let them login. At this point I want to grab the value in AName and display Welcome 'AName'
for the any of the button in vb the c# code which is written is not working at all after running a form example: exit, message box even these also not working give me solution
I'd like to write a simple Windows form that will make it easy to record a voice message before uploading it to a remote web server and sending the URL to the recipient(s):
[URL]
Currently, the user has to use Sound Record to record the message, use an FTP client to upload it to a web server, and finally, use an e-mail client to send the URL. I'd like to combine those three features into one.
a designed a tetris game in visual basic 2005 but i keep getting the error message 'A startup form has not been specified.' everytime i start de bugging it does anyone know what the problem might be?
Every time I modify something on a form (add or delete controls , modify their colors etc) , when I debug the program (with the Play button), I get a message saying: The file C:........MyForm.vb cannot be modified at this time .
Why is this happening? I have noticed that the only way to bypass this problem is to save before debugging , but that is not convenient because I don't want to save something that I haven't decided yet. One more thing that I have observed is that this only happens in projects that have been created with the Upgrade Wizard (from VB6). This never happens in new projects. Does anyone know why is this happening ?
I'm trying to learn little SQL database with VB form application.
I made a little test application and publish it. On my PC works normal after installing. But when I tried to install the app on my wifes PC I get this error message
What does this mean? Is this something connected to app directly or not? In "Prerequisites..." I don't see nothing like this
I'm trying to program in a true object oriented manner and its causing me to re-learn a few things. Specifically, I'm having some trouble with error handling. I have all of my data access being performed by an adapter class in a seperate project. I can catch duplicate records without any problems, but I want to be able to send a message back to the user. Here's what I have so far:
I have been working on a file upload section within my ASP.NET site.With the below code, I am able to get a user to upload documents based based on the Regular Expressions set within the RegularExpressionValidator.I am happy that this works accordingly.What I would like to complete now is a message to indicate that the file has been uploaded successfully. I am unsure how to complete this, but would like to add it to a Label named "fileuploaded".Here is my code for the .aspx page:
<table width = "60%"> <tr> <td>Modes of Operation:</td>[code]......
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 want to make some simple program for encrypt / decrypting message using VB, my problem was when i want to decrypt the message, the result was incorrect,
Code: Dim decryptor As Integer = TextBoxhasilencrypt.Text Dim privatekey As Integer = Labelprivatekey.Text Dim modulus As Integer = LabelModulus.Text
[code]....
the logic error on the program was when the "power of" are odd
I'm trying to get the date and time in the database and see if it has a conflict on the textboxes that I have in my form. I use the DateDiff to see if there was a conflict but instead, I got an error. In vb6.0, I've done this code and there were no errors so far when I run it.
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]
Can anyone tell me how to add a Excel like form to a Windows form so I can add and remove rows/colloms and do simple calculation. It would be nice to have tabs along the top.
I am making a little game for my friend in Visual Basic 2008. It uses 3 files (gamedataidname.txt, gamedataidlevel.txt, gamedataidgold.txt).
When the play button is clicked, I wrote some code to check if the file exists and display the content of the 3 files. This part works fine. But then I have a 'Else' statement to create the files.[code]...
i have tryed using multithreading with my program with no luck/I just get a strange error thrown at me no matter what i try [code] Then i get this error:An error occurred creating the form. See Exception.InnerException for details. The error is: ActiveX control '6bf52a52-394a-11d3-b153-00c04f79faa6' cannot be instantiated because the current thread is not in a single-threaded apartment.
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
When I execute the code provided, Word 2010 opens and appears visible and then stops with an error: "COMException was unhandled". But if I execute the code line by line (F8), the code runs perfectly, that is Word 2010 opens, it is visible and the template is opened. The error fails (always) on the third line of code. What is going on and how might I fix it? [Code]
Just trying to execute commands in cmd.exe just a simple Net Stop [service] and get a error 5. I want it to run cmd in administrator mode. One way I have seen that you can by holding down ctrl & shift while clicking cmd.exe?
I'm trying to run a simple database and im getting a "System.NullReferenceException" error ) & "Additional Information:Object reference not set to an instance of a object" .
txtItemName.Text = rowCurrent.Item("ItemName") <-- highlighted in yellow
Code is as follows:
vb.net Imports System.Data.OleDB ---------------------------------------------------- Public Class Form1
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.
Description of problem: I have a simple form with a usercontrol on it. There is a drop down box with a list of departments in it and a button, this is all in the usercontrol. I pick a department then press the button to view the employees in a listview for the department picked. All worked fine until I moved the code for drop down and button into the usercontrol from the form.
The data is taken from oracle database express 10G edition and I am using a cursor package (CP) and I pass parameters from the code to the oracle procedure within the CP. One of these parameters is the selected department from the drop down list (which I have picked) and my code does not seem to be picking up this parameter, it keps saying that the bold bit of code below is nothing:
Everything else seems to be fine. Because it is not picking up the selected item then the dr.read (no data by the looks of it) is false and it just falls out without populating any employees for that dept in the listview.
Does anyone care to take a stab at suggesting what might be wrong? Why won't it pick up the selected item in the user control I have just picked it in?