so im trying to do this project, and it gives me a a data file, and asks me to use stream reader to put it in the combobox, and when i click the selected items from the combo box, it fills in the textbox's with other information i retrieved from the datafile...Does anybody know the solution?? heres what i have so far(option strict must be on) Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code]...
this gets all the Item names from the data file to appear on the combobox... now if i knew how to get the other information to appear in the textbox's when i clicked on it,
I have a problem that I�m sure will not be hard to fix for anyone who has been using CR for some time.
To start I have created a program in VB2008 that uses a MS Access data file, I can connect to it with no problem and can also add data and amend data, so all seems to work perfectly. I have published it and it once again runs perfectly on another/s machines.I have now a requirement for a number of reports so have chosen CR for this purpose. I have connected the report to the database and that runs with no problems at all, that is until I try to run it on another machine, it seems not to be able to find the database and comes up with a database Login panel wanting me to log in with a password and Admin name.
I feel it's properly a problem with the path to the database but if I modify the path manually it still won't work.
I've made a program that calculates the costs of a transport, wich to my own surprice works. Because the prices vary with the weight of the transport, extra services and delivery within the 3 countries of the Benelux (Belgium, The Netherlands and Luxemburg), I use an array. The array is filled with data from a textfile (in this case not *.txt but *.prc). The data in the datafile is presented as follows :
I need to add a row of data to an exisitng TextFile that is in Tba delimited format. My program currently used ADO to read and update the table but that was creating to many problems with varying 3rd party providers of the Text File.
I am inserting a record to a text file database using OleDb command Builder I am getting an error in one the fields could not insert .... expect type is decimal The problem is the column contains a mixture of Letter and numbers Ex:
I am using a VB.net application connected with a .mdf database file.The application is running successfully, and when I try to insert records its accepted.Everytime I close and reopen the application, new records from previous run disappear. This happens inside the VS IDE when I'm testing it.
I have this list (Just a typical .net list) and I am adding a bunch of UI Items into it, the list is then taken for a Sub which goes through it with .getenumarator and While loop. Now the question is how are my items retrieved from this list?
I'm trying to check if a bit retrieved from database is true or false but i have always the error IndexOutOfRangeException no matter how i get the value.
I would like to read values set in a string that's retrieved from the Web, I've already got the string in a string called Webdata.The string is like so...
"Info" { "Name" { "Name1""Value1"
[code]....
I need to set Value1, Value2, Value3 as strings that I can use.
I have a database in my app which loads and displays some information on a form by binding the Comboboxes and Textboxes. However, I need to get some of the other values from the database for calculations before they are displayed on the form and I can't seem to find out how to do this.I could bind a couple of Textboxes to the database and then use those values to calculate, but it doesn't seem like a very efficient way of doing things.The dataset is created using the wizard and the controls are linked in the UI.
is that instead of receiving data from one row and assigning it to the same array Im receiving data from multiple rows, but the information is the same because its from the same one column from the database. The error I keep getting is 'index out of bounds of array'
here is the code
What it does is it loops through once and retrieves the first value from the db then it throw the exception when it goes to retrieve the second value.
Dim qBkNum As String = "SELECT BookingNum FROM Bookings WHERE BookingID = '1'" Dim bkNum(5) As String Try
I am retrieving Images in a Picture Box at runtime using the following code.
Public Class Form1 Dim myDir As String = "C:Users rujadeDesktop" '-- my folder for images Dim x, y As Single ' the coordinates of the 'next' image to add Dim pic As Image
[code]....
I wanted to add more functionality to allow user to increase the size of images that have been retrieved in the Picture Box. How to do so?
I'm using VS 2010 and MySQL 5.5. I've got a data grid view displaying the results of queries entered by the user, shown below. It works; the trouble is that if there's an image in the results, you'll only see a cell-sized very long thin strip of it.
So I want to a) resize any images to a reasonable thumbnail height (say, 100 pixels, naturally maintaining aspect ratio) when displaying them, and b) resize the row to fit them.[code]...
I would like to retrieve a single column of about 800 rows in a table and save these values in an array so as to reference them later on. How can I do it? I tried:
[code]...
And it didn't work. The col1 is of type Int64 and so is the array prev_ob(). Please let me know how I can save it to an array.
how you would go about saving information(username, password, security questions) in a notepad, so it can be retrieved after a program closes. i'm making a log in program in my class, but we haven't done this, so when the program closes, everything is gone. rather annoying, to have to make a accounts each time i'm testing it.
I am trying to select multiples rows from a database table and insert the text into several "label" controls. For example, if the database search returns 5 results. then insert the first row's text into label 1, the second row's text into label 2, and so on. The number of rows will be variable. I was thinking of a while statement. I am having a problem understanding how to even seperate multiple rows from a query in VB. Would using an array for the query results be the right way to go? row one would be row(0), row two's text would be row(1), etc.
i have this code which i am using to retrieve image stored in image data type from sql database into a picture box.This code works well but i have just realize something which will not help me if left unattended.When ever i retrieve an image it write some file with a numeric name into my bin folder.I do not know how and the importance of that file written there. Even though it work perfectly for me.It means that if i am to retreive about 500 photograph within an hour, then i will get chunck of these file in my bin folder with will affect me because it take some space.please help me fix this problem This is the code
Dim barrImg() As Byte Dim cmdSelect As New SqlCommand("select Photograph from Personal where MyID=@ID", connect)
Recently I retrieved code of my project EXE file. And it was almost same with 100s of errors. So my question is Is career in .NET is safe? And is our code safe? Can this be done with other languages?
I have 20 labels on my Excel VBA user form. I have named them as lbl1, lb2,..... lbl20. I need to set the caption of all the labels retrieving from the excel sheet. for e.g., Dim objthis as object Set objthis=thisworkbook.sheets(1) lbl1.caption=objthis.cells(1,1) lbl2.caption=objthis.cells(2,1) . . so on till lbl20.caption=objthis.cells(20,1)
I felt this was crazy to write 20 lines of code for just captioning labels. If I can write it this way For i = 1 to 20 lbl & i = objthis.cells(i,1) next I know this is incorrect and wont work. May be I am near to finding out the approach or may be its not possible.