Answer Questions
Kyle McK Multi Text Boxes Validation and error provider
Dear all, I don't know what is the problem with following code I'm using for validation. can any one solve this please It works for txtProdName only. Private Sub txtProdName_Validated( ByVal sender As Object , ByVal e As System.EventArgs) Handles _ txtProdName.Validated,txtPrice.Validated,txtSize.Validated If txtProdName.Text.Length = 0 Then erpProductDataForm.SetError(txtProdName, "Required Field") ElseIf txtProdName.Text.Length > 0 Then erpProductDataForm.SetError(txtProdName, "") ElseIf txtPrice.Text.Length = 0 Then erpProductDataForm.SetError(txtPrice, "RequiredField") ElseIf txtPrice.Text.Length > 0 Then erpProductDataForm.SetErro ...Show All
barkingdog creating xdb file in access 2003
Hi, I have a situation here; my client has a credit card processing application which captures credit card detail and some basic info. of a customer. all these details stores in a file which has an extension '.xdb', on opening this file in notepad it shows some special characters and stored data. I have developed an application in ms-access 2003 for this client, which also keeps customers details and credit card info. Now, on using both these applications one has to enter same info. two times one for ms-access application and one for credit card processing application, naturally, duplication of work. Now, my client wants that info. stored in ms-access application should be made available to credit card application. I originall ...Show All
zoranj Datagrid
How can I produce a total for values in a datagrid and them display them in a label Where: dgv is the name of your DataGridView contol. "columnName" is the name of the column the total of which you are calculating. lblTotal is the name of the Label control wherein you wish to display the calculated sum. Dim total As Integer Dim c As Integer = dgv.Columns("columnName").Index For r As Integer = 0 To dgv.Rows.Count - 1 total += DirectCast(dgv(c, r).Value, Integer) Next lblTotal.Text = total.ToString() You could of course simply initialize c to the column index yourself but you'd have to remember it if you changed the order of columns later. If you were going to go this rout ...Show All
Danca Downloaded file (via HTTPWebRequest) not quite right
Hi folks, My current project downloads remote binary data files from a website, and I'm using HTTPWebRequest to do this. For whatever reason, the files I'm getting as a result are almost correct, but not quite. If I download the file manually through IE, it works perfectly. But the file that results from my program running is missing bytes here and there. Oddly enough, nearly all of those bytes are the character "+". I know I'm missing something obvious, but I can't figure out what. Code is as follows: dim wr as httpwebrequest, response as httpwebresponse, instream as binaryreader, done as boolean, _ hr as integer wr = webrequest.create(url) response = wr.getresponse() dim ms as stream = response.getresponsestream() ...Show All
Tryst Search using tableadapter.fill returns: There is no row at position -1. (Index out of Range)
Hi, I am working on a form (details) and I need my form to allow to search on some char fields. I have a button next to the field users can search. The button calls a pop-up form to enter the string to search. ItemsTableAdapter is the table adapter used for the form. I have 1863 records in the Items table. My goal is to show only the records matching the string using the same form. I have modified the DataSet to add a query using a parameter: SELECT No, Type, ..... Interest3 FROM items where nm_latin like @srch_nm_latin order by nm_latin This code is executed when I return from the pop-up. The string contain a string. Example: "thing%" If (String.IsNullOrEmpty(Me.Recherche.Text) = False) Then Dim rech_str As String = Me.Recherche.Tex ...Show All
kimhoskin Delete Data in DataGrid
Hi, This is my first post in this forum. I am using ASP.NET 1.1. I am able to do edit operation in DataGrid. But Is there any way to delete record in DataGrid Thanks in Advance Hi Richard, I have solved my problem. I am having an issue similar to this. I have written code to delete multiple rows at a time in a datatable by looping and deleting one row at a time out of the "Selected.Rows" collection. I was wondering if there is another way to do this so that the program does not prompt each time "You have chosen to delete 1 row. Are you sure " such that it says it 4 times if I have chosen to delete four rows. Any ...Show All
anu.ind Startup Complete Event
Hi, I have an application that has an exit button on the main form, if it is pressed before the form has completed loading, whilst the splashscreen is still visible, the application will exit and leave an box onscreen saying "..has encountered a problem and needs to close." the debug button says that a system object is disposed so I guess that something post splashscreen is accessing the main form which has gone at this point. I have tried disabling the exit button until form load completes but that is not the event as the splashscreen is still active so some other initialisation is taking place that needs to complete before the application can exit tidily. What is it weirdbeardmt wrote: Try using the form's " ...Show All
hasfad Substracting from Today
Does anyone know how to subtract or add 10 days.. from today into the today variable to get a 10 days heads up in the months. Dim MyDate as DateTime = Now MyDate.AddDays(-10) MyDate.AddDays(10) ...Show All
F.Costa txt files
How can I access text files in VS2005 and display them in Arrays Any help or websites containing a "How to" would be greatly appreciated. Thanks! Also, more information on split() method of the string class hmmm a fair bit of string parsing to be done, which shouldnt be. Can you give us the file format of what the file looks like with say a couple of records If the file has a comma delimeter to seperate the fields then it makes it easier as we can read line by line and split each record into an array of a string then do whatever we want Yes, that should give me a pretty good start on what I need to do. In the case if something pops up that I do not want which is in the txt fi ...Show All
Michel Racicot "*" Question
Hi again everyone, I am back once again working on a new project. For some reason I cant seem to find the info I need so, I am back here. :) Anyways, my project... I made a text file parser... it basically opens a text file of your choice, then it searches the document for any word you specify, afterwards, it places that info in a new textbox that you can save as a new file. What I really need this app for is to parse emails. Since the emails arent the same... just the same domain... I need to be able to use the * as a wildcard. Any info on how to do this would be much appreciated. Thank you in advance, The only domain I will be working with is aol.com With that being said, all I need to search for is "*@aol.com" Tha ...Show All
Roman Benko List of all necessary conditions and installed DLLs to import data from TXT files using ADO
hi, I use this code to import data from TXT file into MSAccess . ************** conDB.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; " & _ "Persist Security Info=False; " & _ "Data Source=" & rngDBFileName.Value conDB.CursorLocation = adUseClient conDB.Open strSQL = "INSERT INTO tblBasicData_Import (" & _ "[Country],[Calendar year],[Global Customer]),.......and next colums " & _ "SELECT " & _ "[Subsidiary],[Calendar year],[Global Customer], .......and next colums" & _ "FROM [" & FileName & "] in """ & FolderName & " ...Show All
John Paul Cook trust level does not allow use of the 'compilerOptions' attribute
I am having a devil of a time getting a couple of VB 2003 web apps that have been converted to VB 2005 to run on the remote server I use ... I am able to debug/run them on my local development machine. The problem seems to be centered around the web.config files for these apps. They each contain <compilation> elements with embedded <compilers> and <compiler ...> child elements. The <compiler ...> element has a number of attributes including compilerOptions. When I run each app from the server I get the following message: Parser Error Message: The current trust level does not allow use of the 'compilerOptions' attribute I have been in touch with the server folks (where I had been running the VB 2003 version w/. ...Show All
Gaurav Arora Button1_KeyUp
Why it doesn't work when I quite hold of button1 Private Sub Button1_KeyUp( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles Button1.KeyUp MsgBox( "Button1 is up" ) End Sub Thanks Thank you. I understand now. Thank you, DMan1 . It works. Private Sub Button1_MouseUp( ByVal sender As Object , ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseUp MsgBox( "Button1 is up" ) End Sub It's possible but I don't know to do it. Private Sub Button1_KeyUp ( ByVal sender As Object , By ...Show All
bluejay_2006 My.Settings strange problem
I have been trying to figure out why one of my settings will not properly save. Here is what the user.config file looks like: < xml version="1.0" encoding="utf-8" > <configuration> <userSettings> <Project_Tracker.My.MySettings> <setting name="MainLocation" serializeAs="String"> <value>86, 112</value> </setting> <setting name="Engineer" serializeAs="String"> <value /> </setting> </Project_Tracker.My.MySettings> </userSettings> </configuration> Notice that the setting for "Engineer" is not propery formatted. If I manually change the ...Show All
Webbert Displaying hexadecimal data as float. What sort of result are you after?
My setup is: SQL Server 2005, Visual Web Developer 2005 Express (VB) I have a SQL Server database that gets a large C++ data structure that contains longs and floats serialized as an ASCII string where all bytes were converted to hex. The bytes have to be reversed because of endieness. I have been tasked with creating a page to dispaly the parsed data. I know that I can extract the data in groups of 4 (for the longs) and 8 (for the floats). I can convert the hex to decimal, but it is converting to a very large integer type value instead of the expected decimal. I have tried to search the web, but have found very little to aid. The closest used a function similar to the C++ memcpy. This did not seem to be available in my case. A sample of t ...Show All
