- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 9
- Posts with Upvotes
- 9
- Upvoting Members
- 8
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
64 Posted Topics
![]() | Re: [What i have to do?](http://i1184.photobucket.com/albums/z328/waluhkuning/for%20share/1-1.jpg) its appear when i click the map. |
Re: @Jx Man he said datagridview not listview bro | |
Re: what is datatype for login field and password field in your database? | |
Re: is "Enable Adding" on your DGV properties checked to true? if yes, then you have to use Count - 2 if no, then you have to use Count -1 | |
Re: is a user have to choose a password first to fill the datagrid? | |
Re: i don't know with others people here, but i think it can't do like that because its directly connect to the database. anyway, why you have to remove your datasource? | |
Re: here an example what i do with a label and a reader : Try Using conn As New SqlConnection("Your Connection String") conn.Open() Dim command As New SqlCommand("select team_name, address, contact_person from team", conn) Dim reader As SqlDataReader = command.ExecuteReader If reader.Read() Then Label1.Text = reader("team_name").ToString & vbCrLf & reader("address").ToString & … | |
i try to align a line of text with vertical center on coreldraw x5 to a specific point, example point x = 0, point y = 2, this is my code : Dim a As New CorelDRAW.Application a.Visible = True Dim b As CorelDRAW.Document = a.OpenDocument("document path to open") b … | |
i am so confuse dude.. why in my visual studio 2010 ultimate didn't show crystal report gallery? after i click "add new item" and add crystal report, it just show me SAP page that say "learn and download". i have install SAP crystal report runtime engine for .NET framework 4(32-bit). … | |
Re: what is adapter for? if you want to update your voted field you can do like this : If Textuser.Text = String.Empty And Textpass.Text = String.Empty Then MsgBox("Invalid") Else Try Using conn As New MySqlConnection("server=localhost;user=root;password=;database=voting") conn.Open() Dim command As New MySqlCommand("UPDATE tbl_elemvoters SET Voted = 'yes' WHERE Username = @Username … | |
Re: it's like you want us to do your homework here dude :D, show your progress so far | |
Re: i do this with mysql : Using conn As New MySqlConnection("myConnectionString") conn.Open() Dim command As New MySqlCommand("SELECT DATE_FORMAT(myDateColumn, '%d-%m-%Y') FROM myTable", conn) If command.ExecuteScalar = Format(Date.Now, "dd-MM-yyyy") Then MsgBox("this date is equal with now date") End If command.Dispose() conn.Close() End Using PS : i format date from mysql side to … | |
Re: ComboBox1.Items.Add(WebBrowser1.Url.ToString) | |
Re: i don't know what are you try to make, but if i were you, i will loop it. maybe something like this : Try For i As Integer = 0 To dgvStudDisc.Rows.Count - 1 If dgvStudDisc.Rows(i).Cells(0).Value >= 0 And dgvStudDisc.Rows(i).Cells(0).Value <= 5 Then dgvStudDisc.Rows(i).Cells(1).Value = "Very Poor" Else dgvStudDisc.Rows(i).Cells(1).Value = … | |
Re: 1. you mean get data from database? 2. get data from one row with 6 column? if yes, i would do with reader. example with mysql database : i have 1 table in my database, on that table i have 3 columns, so .. Try Using conn As New MySqlConnection("MY … | |
Re: the "P_id" is already binded on your DropDownList, so i think, you no need to read it again. use scalar, because you just need to pass the "P_Name" try this : TB1.Text = DropDownList1.SelectedItem.Value Dim sqlcmd As New SqlCommand ("select P_Name from DP_Table where P_id = '" & DropDownList1.SelectedItem.Value & … | |
i have a datagridview with 2 columns on it. i add column 1 manually from Datagridview task (add columns), it should numeric value and came from user input. for column 2 (it's numeric value), on load event from database with this : Using conn As New MySqlConnection("connection string") conn.Open() Dim … | |
Re: what you do so far? have you try something? | |
Re: i'm not really understand what you want, sorry my bad english, here is what i got from your explanation : if caste field in database = null, then 7th column in datagridview should textboxcell type. Else if caste field in database not null, then 7th column in datagridview should comboboxcell … | |
Re: [database query](http://msdn.microsoft.com/en-us/library/office/bb221186%28v=office.12%29.aspx) | |
Re: split it. UPDATE table_name SET column1=value, column2=value2,... WHERE some_column = some_value | |
Re: sure it's possible, simply add more form to your project : Project > Add New Item... > Windows Form on your button "Add New Patient" code : Form2.Show() | |
Re: Dim myString as string = TextBox1.Text + " " + TextBox2.Text + " " + TextBox3.Text YourDataGridView.Rows.Add(myString) | |
Re: [Click Here](http://www.daniweb.com/software-development/vbnet/threads/437610/textbox-values-into-datagridview) | |
Re: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim process As New Process With process With .StartInfo .FileName = "cmd.exe" .WorkingDirectory = "C:\Windows\System32\cmd.exe" End With .Start() End With End Sub i don't know if its can stick together. | |
i'm just curious, can we make scrolling text without using a Timer? (like scrolling text for news in television) | |
i have a listbox with many path of picture in Form1, in Form2 i have a PictureBox to show the picture (based on listbox.selecteditem.tostring in Form1), is it possible to make every transition fade? | |
Re: i think you'll need put that code into index change event for combo | |
Re: hahaha.. not listview anymore? :D | |
Re: change into like this : Imports MySql.Data.MySqlClient Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try Using oSQLConn As New MySqlConnection("server=localhost;user=root;password=chris;database=retail") oSQLConn.Open() MsgBox("Connection Open !") oSQLConn.Close() End Using Catch ex As Exception MsgBox("cannot connect") End Try End Sub End Class | |
Re: i have done one project that work with multiple picture, 3 differences from your project is : 1. i use datagridview (not listview); 2. i use 2 form (first form for DGV, and second form to hold picture preview when user double click the DGV); 3. i save the path … | |
Re: Private Sub DataGridView1_Validated(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DataGridView1.Validated For i As Integer = 0 To DataGridView1.Rows.Count - 1 For j As Integer = i + 1 To DataGridView1.Rows.Count - 1 If DataGridView1.Rows(i).Cells(1).Value = DataGridView1.Rows(j).Cells(1).Value Then MsgBox("Duplicate: " & DataGridView1.Rows(j).Cells(1).Value) Exit Sub End If Next Next End … | |
Re: what database you are using then? | |
| |
Re: for ComboBox, where the data came from? database? | |
Re: pheww.. your question is too wide, what is this? database side or application side? which metode that you want to do? please more spesific sir. | |
Re: here is in example : 1. in ComboBox1 Properties i put this item : "Superhero" "Badguy" 2. in ComboBox1 SelectedIndexChanged event, i put this code : Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged If Me.ComboBox1.Text = "Superhero" Then With Me.ComboBox2 .Items.Clear() .Items.Add("Batman") .Items.Add("Optimus") .Items.Add("Superman") End … | |
Re: here is a reference : [Click Here](http://www.vbforfree.com/?p=251) | |
Re: here is an anology : i have two form, LoginForm and MainForm when user success login : LoginForm.Visible = False MainForm.Show() and when user logout : MainForm.Close() LoginForm.Visible = True hope give you some imagination. | |
Re: if you mean copy value from DGV1 to DGV2, here is what i do : DataGridView2.Rows.Clear() For i As Integer = 0 To DataGridView1.Rows.Count - 2 DataGridView2.Rows.Add(DataGridView1.Rows(i).Cells(0).Value) Next NOTE : 1. Allow user to add row 2. i do that with just one column, so if you want do that … | |
Re: use reader, cmd = New SqlCommand("select ida from Issue where aname='" + TextBox3.Text + "'", con) Dim reader As New SqlDataReader = cmd.ExecuteReader If reader.Read() TextBox4.Text = reader("column name in database that you want to display").ToString End If reader.Close() cmd.Dispose() conn.Close() | |
Re: so.. don't set it to be primary.. that's it.. | |
Re: hmm.. row(i).. i think it's not specific, how if you use CurrentRow? | |
Re: wrong place to ask? :( | |
Re: what are you trying to get? a Database name? | |
Re: wahahahaha indo punya nih.. wkwkwkwkwkw begini gan, ada baiknya data yang ente binding ke DGV di binding melalui DataTable, itu lebih baik untuk DGV, seperti contoh yang dikasih ama si pooja, terus kalo ente ingin ketika user mengetik ketika itu juga data terfilter, maka ente harus taro itu kodenya di … | |
Re: how about label help? i mean.. get the old value and add that to a label. example : label 1 for count, and label 2 for times after that, on insert query just sum it set count=value1 + '" & label1.Text & "',times=value2 + '" & label2.Text & "' where … | |
Re: and what is the code? | |
Re: you do double post with different name : http://www.daniweb.com/software-development/vbnet/threads/420772/data-gride-view-problem-in-vb.net |
The End.