i want to create windows form application that user can type in celsius(10value) temperature in listbox (celsiuslistbox)
using textbox and converter button will converter all 10 value in the celsius listbox and display results in fahrenheit listbox .
this what i wrote so far:
double temp_celsius ;// to hold celsius temperature
double temp_fahrenheit ,/7 toe hold fahrenheit temperature
converter button code
celsiuslistbox.items.add(textbox);// value of celsius
temp_celsius = celsiuslistbox.items.add(temp_celsius)// value of celsius displays in celsiuslistbox
my questions : i know there are som mistakes in my code , it is hard for me to find
how can i converts all value in celsius listbox into fahrenheit ?
10 value of celsius is in the listbox written by the user .
should i use for loop to perform conversion .?
In my application, I have DataGridView1.
The DataGridView is not connected at Access or Sql (or others basses).
I would like to create a filter from a Textbox3 for column1. My DataGridView1 is filling from Textbox1 & Textbox2 manually.
Here my code:(it doesn't work)
Dim DataGridView1 As DataRowView
DataGridView1.RowFilter = "Column1 ='Like'%" & TextBox3.Text
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim newcaserow As ResourcesDataSet.RecordRow
newcaserow = ResourcesDataSet1.RecordRow.NewRecord()
newcaserow.Student_ID = TextBox6.Text
newcaserow.Name = TextBox1.Text
newcaserow.Homeroom = TextBox2.Text
I'm not sure to understand:
1-I must copy the database
2-I put the database in folder like my projet
but how to points to the correct place.(I must add it in ressouces? but it doesn't work).
(if you know tuto(link),I'm very interested for my case,I didn't found for the moment.)
Here my procedure to create my project with Access Database:
2)I chose a DataGridView1
3)in DataGridView1 tasks then "choose data source"
4)add project data source then database
5)new connection then Microsft Access database file (ok)
6)database file Name
7)Pop up"The connection you...." (Yes)
8)Save the connection string to the application configuration file
(I can see my database)
9)New page "Choose your database objects"
Now I can see all information in DataGridView1(with my database in my computer)
When I publish my project to USB key by example, it doesn't work.
I think my procedure is not correct. thank you for your help.
(perhaps you can try my procedure to understand my problem)
Ehr, no, I don't use the wizards as they hide some of the complexity. The connection-string is probably generated and put in the app.config file. That's the thing that "points" to the file and tells the computer which thing to use to read it.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]