Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
92% Quality Score
Upvotes Received
9
Posts with Upvotes
9
Upvoting Members
8
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #779
~49.3K People Reached
Favorite Forums
Favorite Tags

64 Posted Topics

Member Avatar for Unhnd_Exception

[What i have to do?](http://i1184.photobucket.com/albums/z328/waluhkuning/for%20share/1-1.jpg) its appear when i click the map.

Member Avatar for Jorge Braga
4
9K
Member Avatar for ranTHE
Member Avatar for Satyam_1
Member Avatar for altjen
0
253
Member Avatar for wilsonchama

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

Member Avatar for wilsonchama
0
318
Member Avatar for Emma Etigu
Member Avatar for malik10

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?

Member Avatar for ashley.steenson
0
789
Member Avatar for pezza

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 & …

Member Avatar for pezza
0
4K
Member Avatar for artemix22

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 …

Member Avatar for artemix22
0
517
Member Avatar for artemix22

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). …

Member Avatar for Sqiar
0
182
Member Avatar for aning0420

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 …

Member Avatar for Keerthi_1
0
310
Member Avatar for sunilkumarasem
Member Avatar for ZIPB

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 …

Member Avatar for shann_
0
516
Member Avatar for yuvjeeth
Member Avatar for gbhs

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 = …

Member Avatar for gbhs
0
2K
Member Avatar for Papa_Don

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 …

Member Avatar for Papa_Don
0
173
Member Avatar for Aman.jen

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 & …

Member Avatar for artemix22
0
147
Member Avatar for artemix22

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 …

Member Avatar for TnTinMN
0
408
Member Avatar for kenomote
Member Avatar for Rachna0309

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 …

Member Avatar for Rachna0309
0
164
Member Avatar for pratik65
Member Avatar for artemix22
0
78
Member Avatar for yvrej17

split it. UPDATE table_name SET column1=value, column2=value2,... WHERE some_column = some_value

Member Avatar for Icone
0
5K
Member Avatar for bprosic

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()

Member Avatar for Icone
0
315
Member Avatar for pratik65

Dim myString as string = TextBox1.Text + " " + TextBox2.Text + " " + TextBox3.Text YourDataGridView.Rows.Add(myString)

Member Avatar for pratik65
0
554
Member Avatar for pratik65

[Click Here](http://www.daniweb.com/software-development/vbnet/threads/437610/textbox-values-into-datagridview)

Member Avatar for artemix22
0
276
Member Avatar for joshl_1995

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.

Member Avatar for artemix22
0
327
Member Avatar for artemix22

i'm just curious, can we make scrolling text without using a Timer? (like scrolling text for news in television)

Member Avatar for Gé48
0
190
Member Avatar for artemix22

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?

Member Avatar for Begginnerdev
0
78
Member Avatar for ss123456
Member Avatar for ss123456
0
255
Member Avatar for jayrbete
Member Avatar for Codaholic
Member Avatar for fritafana

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

Member Avatar for artemix22
0
191
Member Avatar for jayrbete

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 …

Member Avatar for jayrbete
0
813
Member Avatar for brylle

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 …

Member Avatar for artemix22
0
613
Member Avatar for harsh01ajmera
Member Avatar for jsj1411
Member Avatar for Pamilerin
Member Avatar for seek

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.

Member Avatar for Reverend Jim
0
165
Member Avatar for Iamateur

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 …

Member Avatar for Reverend Jim
0
147
Member Avatar for Subhajyoti_Saha
Member Avatar for artemix22
0
103
Member Avatar for Iamateur

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.

Member Avatar for artemix22
0
154
Member Avatar for CaptainRon

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 …

Member Avatar for CaptainRon
0
114
Member Avatar for Iamateur

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()

Member Avatar for Philippe.Lahaie
0
141
Member Avatar for sing1006
Member Avatar for prajot_03
Member Avatar for thines01
0
152
Member Avatar for renzlo
Member Avatar for Wolxhound90
Member Avatar for Hazuan Nazri

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 …

Member Avatar for poojavb
0
142
Member Avatar for renzlo

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 …

Member Avatar for renzlo
0
179
Member Avatar for zhouy
Member Avatar for prajot_03

you do double post with different name : http://www.daniweb.com/software-development/vbnet/threads/420772/data-gride-view-problem-in-vb.net

Member Avatar for artemix22
0
190

The End.