Vshost.exe has stopped working... Posted A minute ago vshost.exe has stopped working this error showing after using the Crystal Report. The error show when I closed the application. If I not use the crystal report then the error not showing. I am creating a program in vb with visual studio 2010 ultimate and crystal report Please help me..... -------------- For view a report Public Sub PrintSaleRInvoice() Dim PrintSale As New DataSet objsale.saleinvid = txtSaleInvid.Text PrintSale = objsale.PrintSaleInvoice() ' Procedure name PrintSale.Tables(0).TableName = "DataTable1" Dim rpt As New SaleInv rpt.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.Portrait rpt.PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.Middle rpt.SetDataSource(PrintSale) SaleRInvPrint.CrystalReportViewer1.ReportSource = rpt SaleRInvPrint.ShowDialog() End …

Member Avatar
Member Avatar
+0 forum 1

Hi Im just wondering if anyone can help me out? I have a text file that contains data that i want to load into a datagrid view I'm new to vb.net so i really have no idea on how iam supposed to start im using vb.net 2010 thanks in advance

Member Avatar
+0 forum 0

Hello, I'm making a application to use in college to retrieve my calendar and other things in VB.NET. But my college uses a proxy so when I connect my laptop I need to change the internet settings in my web browser to view web pages. Can anyone help me by telling me how I would send requests via a proxy server in VB.NET? Or is there a piece of software that I can download which tunnels all connections or is there a setting in win7 does this? Thanks

Member Avatar
Member Avatar
+0 forum 2

in form1 i have two listboxs listbox1 listbox2 loadbutton and savebutton this code will write listbox1.selecteditem into a txt file and loadbutton will load info in listbox2 but i want when i click loadbutton it check if that item is already exist in listbox2 , if not so write selected item from listbox1 and if that item is already exist in listbox2 then do not save it (msg"this item is already exist in listbox2") but this is not work well [CODE] Dim wri As New IO.StreamWriter("e:\test.txt", True) If ListBox2.ToString.Contains(ListBox1.Items.Item) Then ' or ListBox1.SelectedItem ? ' not work i tried more …

Member Avatar
Member Avatar
+0 forum 1

How are you, I need some help with the following code (Attached Form1 & AccountClass). I am trying to figure out the following: - Figure out the code in ButtonWithdrawal when the amount is bigger than 0. - Show the (Balance) in ButtonBalanceInq. - Show the List of transactions in (ButtonListTransactions). I commented out the things that I could not figure out and I really appreciate the help and thank you in advance. [CODE] Public Class Form1 Private AllAccount(-1) As AccountClass Private Sub ButtonCustomerInfo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonCustomerInfo.Click Dim NewAccount As New AccountClass ReDim Preserve …

Member Avatar
+0 forum 0

Hi, In the following code (Class & Form1), I'm trying to figure out the following: - Create an array that stores the 'Clients' (first name, last name, account number) - 'Button List' the array with the (First Name , Last Name , Array Value , Account Balance) I attached the output and the code to make it more clear and I appreciate the help. Thank you. This is the Class code: [CODE]Public Class BankAccountClass 'Private "Protected" variable Private FName As String Private LName As String Private AcctNum As String Private Bal As Decimal Public Property FirstName As String Get Return …

Member Avatar
Member Avatar
+0 forum 4

Hi, I am trying to "Show" an error message for the user in two cases: 1. If he/she did not enter a correct value for a String. 2. If he/she did not enter a correct value for a Decimal. I know I have to use Try & Catch but each time I use them I get an error. [CODE] Private Sub ButtonAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonAdd.Click Dim AClient As New BankAccountClass AClient.LastName = InputBox("Enter last name", "Enter") AClient.AccountNumber = InputBox("Depost Amount", "Enter") End Sub[/CODE] And this what I used for the Decimal [CODE]Try AClient.AccountNumber Catch …

Member Avatar
Member Avatar
+0 forum 5

The title says it all; I want to make a simple, not all-over-the-place HTML code. I'm asking for help since I'm still in middle school. I understand a lot of code, but if you give me a from college class explanation, it's not going to help until I get to high school. I'll just put my other question out there; how do you get HTML documents from the internet? Thank you for all suggestions, helpful or not.

Member Avatar
Member Avatar
+0 forum 1

How are you, I created a simple cash register code that makes the user selects the order from different buttons. I have some problem figuring out the following: 1. How can I get the total (if the user selects 1 or 2 or 3 different orders). I need to find out the total no matter what the user selects and presses (ButtonDone) with the tax added. I could not figure out how to add the arrays based on the user selection. 2. I need to clear the (TextBoxBill) when the user selects New Order (ButtonNewOrder) 3. I managed to get …

Member Avatar
Member Avatar
+0 forum 9

just want to know how will i able to display the info description in my list view but the one that appears in the database is its id(using vb.net)

Member Avatar
Member Avatar
+0 forum 1

I currently have two stopwatches ( running in a VB 2010 program. What I would like to do is combine their values together and have their results outputted in a string formatted as 0:00:00. I tried the Add method and the + method but this fails. This is in short what I have: [CODE=VB.NET]Dim timer1 As New Stopwatch Dim timer2 As New Stopwatch [Assuming the timers were started separately] Dim elapsed1 As TimeSpan = timer1.Elapsed Dim elapsed2 As TimeSpan = timer2.Elapsed elapsed1 += elapsed2 [/CODE] Can anyone help?

Member Avatar
Member Avatar
+0 forum 1

Hi, I am learning about the search capability in an array. I wrote a code that stores three names (first & last) and I want to: - Make the user select a number (from 1-3) by using a (combobox) - If the user select the proper number then a message will appear that the name is there. - If not then an error message will appear. I did all I could by creating this but my main problem is in the (ButtonFind). I went through lots of tutorials and this is what I came up with and I hope that …

Member Avatar
Member Avatar
+0 forum 3

Hi Coders, Once again I feel I need your help/assistance. I have been trawling the net and forums for a simple way of automatically updating a newer version of my application from a network share. Everything I have read pertains to an update from a web site. This is possibly a simple thing to do but as I have 6-8 users using the application I have to email them all stating there is a new version on the share and for them to copy and overwrite the existing application executable in the program files\app directory. If this could be done …

Member Avatar
Member Avatar
+0 forum 3

Hi, I am totally lost and I went through a lot of sites about searching within an array, but I could not find any clues. I created the following array : Private LetterArray() As String = {"A", "B", "C"} and I don't know how to get the target letter from a "Textbox" and search "SearchButton" for it ? I have to do the following: - Get the TargetLetter from the textbox - Set a Boolean for Found to False (which I did) - Use for loop For Each Letter in the Array (LetterArray) - If the Word = the Target …

Member Avatar
Member Avatar
+0 forum 4

Hi, I am trying to write a program that - Generates 3 unique random numbers between 1 and a number entered by the users in an InputBox - Displays the 3 random number results in labels - Count the number of Loops So far I wrote this code but I don't know how to create the randoms to make it work. Your help is really appreciated. [CODE] Private Sub Button1Generate_Click(sender As System.Object, e As System.EventArgs) Handles Button1Generate.Click Dim userMsg As String userMsg = InputBox("Please Enter A Number?", "Integer", "Enter your integer here", 500, 700) Dim GenerateRandom As New Random(DateTime.Now.Millisecond) Try …

Member Avatar
Member Avatar
+0 forum 2

Hi, I am having a problem with the if statement that I created in my code. The condition should be: - Select Both Comboboxes (1&2) to print out a text in TextBox1 - If only One Combobox or No Combobox was selected, an error message appears and Nothing is printed in TextBox1. The code I wrote did not function as I wanted. It prints out a text after I select Combobox1 which isn't the way it should be. Please advise and thanks in advance. [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If ComboBox1.SelectedIndex = …

Member Avatar
Member Avatar
+0 forum 3

Hello, I am building a web browser with tab control using VB 2010. I have everything working good so now I want to have it save the browser tabs when I shut down the browser and have them re-opened when I run the browser again like Chrome or Firefox would do. Thanks in advance for your replies.

Member Avatar
Member Avatar
+0 forum 5

Hi Y'all, I have a RTB which I import with a set of 7 or 9 didit numbers, 7 for Staff and 9 for Students. e.g. Staff numbers 0628189 0628191 0629991 0629850 0804930 and depending on what is selected in a list box ('Student' or 'Staff') will generate a string to create user accounts. To further error check I would like to check if a line in the RTB = 7 And Listbox = "Student" Then msgbox("Data mismatch between User ID and Account type") Else ..... many thanks in advance

Member Avatar
Member Avatar
+0 forum 4

Hi Coders, I have a minor problem that I would like to try and resolve. I am pasting data from an Excel spreadsheet and and adding a 0 to the start of each 9 digit string it's it's missing (thanks to the help of Rev Jim. This works great if I'm pasting from notepad but from excel I see from this line of code RTBUserID.Text = RTBUserID.Text.Substring(1, RTBUserID.TextLength - 1) that there seems to be a carrage return (denoted by a square) System.Windows.Forms.RichTextBox, Text: 62818972 " & vbLf & "62819154 " & vbLf & "62999101 " & vbLf & "62985054 …

Member Avatar
Member Avatar
+0 forum 1

what is the error in the bleow: 'Public Event OnFilterAdded()' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event. [CODE]Imports System Imports System.Collections Imports System.Configuration Imports System.Data Imports System.Web Imports System.Web.Security Imports System.Web.UI Imports System.Web.UI.HtmlControls Imports System.Web.UI.WebControls Imports System.Web.UI.WebControls.WebParts Imports Tawammar.CustomControls Partial Class Filter Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) DataFilter2.DataSource = SqlDataSource2 DataFilter2.DataColumns = GridView1.Columns DataFilter2.FilterSessionID = "Default.aspx" DataFilter2.OnFilterAdded += (DataFilter2.OnFilterAdded + New DataFilter.RefreshDataGridView(DataFilter2_OnFilterAdded)) End Sub Protected Overrides Sub OnLoadComplete(ByVal e As EventArgs) If Not Page.IsPostBack Then DataFilter2.BeginFilter() DataFilter2.AddNewFilter("Emp_ID", "Emp_Name", "Dav") End If End Sub Private …

Member Avatar
Member Avatar
+0 forum 2

Hi All, I have a 3 richtext boxs where I add each line together and output to a textbox, all is working great. But the problem I am seeing is that I paste the contents from a spreadsheet which strips off the leading 0 (zero) from a 9 digit number into the 1st RTB. What I require is that I need to read each line in the 1st RTB and if the digits are = 8 then prefix them with a 0 (zero). Any help would be greatly appreciated.

Member Avatar
Member Avatar
+0 forum 13

I am unable to run batch file that is located in mapped network drive using System.Diagnostics.Process in VB.Net. I get: [CODE]'<batchfilename>.bat' is not recognized as an internal or external command, operable program or batch file. Press any key to continue... [/CODE] I get the same error when navigate to the folder (using explorer) that contains this batch file and double click it. I can successfully run the batch file by changing the directory to that folder through command prompt. I can't figure out why this is happening. I think the problem is Start() function of Process works like double click …

Member Avatar
+0 forum 0

Hi All, Been reluctant to drop this on anyone as I wanted to resolve it myself but alas it has got the better of me. I am trying to do an insert into an Access 2007 DB but keep getting a syntax error even thougt I can get the generated query and run it in Access and successfully add to the table. I would greatly appreciate any help on this so I can continue with the development of this project. [CODE] PrivateSub ButCommit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButCommit.Click con.Open() TxtPrice.Text = Val(TxtPriceCat.Text) * Val(TxtQty.Text) 'gets the …

Member Avatar
Member Avatar
+0 forum 8

I don't know how to run my application with system level privilleges, so that it does not encounter any [B]UNAUTHORISED ACCESS[/B] in any case and when in seen in TASK MANAGER the user shown will be SYSTEM. I've no idea how to do it,PLZZZZZ HELP

Member Avatar
Member Avatar
+0 forum 23

The End.