159 Posted Topics

Member Avatar for xn hunk
Member Avatar for oussama_1
-1
707
Member Avatar for Khyxz

Step1 TextBox1.Text = sender.text & "," Step2 TextBox1.Text = TextBox1.Text & sender.text Step3 Dim qty As String = TextBox1.Text.Substring(0, TextBox1.Text.ToString.LastIndexOf(",")) Dim itemName As String = TextBox1.Text.Replace(qty & ",", "") DataGrid.Rows.Add(itemName, "", "", qty) Step4 Label.Text = DataGrid.Rows(index).Cells(index).Value

Member Avatar for Khyxz
0
119
Member Avatar for thirteen_xx

You should use a timer instead of Date/time picker when the user starts Timer1.start() when the user finishes Timer1.stop() but first you can set the time to seconds, minutes or hours for seconds use Timer1.Interval = 1000 now each timer Tick is a second, when the timer start log your …

Member Avatar for thirteen_xx
0
816
Member Avatar for Khyxz
Member Avatar for oussama_1
0
197
Member Avatar for ignnniter

check for internet connectivity first: Try If My.Computer.Network.Ping("daniweb.com") Then dataopen() If conn.State = ConnectionState.Open Then rlabel1.text = "Connected" Else rlabel1.text = "Not connected" End If End If Catch ex As Exception rlabel1.text = "No Internet Connectivity" End Try

Member Avatar for ryanjayson
0
213
Member Avatar for mavtcr

is there any error ? if yes what is it ? what are you trying to do, just focus on name textbox or get the name value.

Member Avatar for mavtcr
0
454
Member Avatar for netisland

[Click Here](http://www.homeandlearn.co.uk/NET/vbNet.html) go to VB .NET and Databases tutorials

Member Avatar for ryanjayson
0
184
Member Avatar for Shodow
Member Avatar for oussama_1
0
366
Member Avatar for Reverend Jim
Member Avatar for SkyCross
Member Avatar for Gen_2

If Q1.Visible = True Then Dim numb As Integer = 5 For i = 111 To 155 Dim q As RadioButton = CType(Me.Controls("q" & i), RadioButton) If i.ToString.EndsWith("1") Then numb = 5 End If If q.Created = True Then If q.Checked = True Then sm = sm + numb numb …

Member Avatar for Reverend Jim
0
176
Member Avatar for babyluxe03

try this Dim Connection As New OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;" & "Data Source='" & "your path" & "';" & "Persist Security Info=False;" & "Jet OLEDB:Database Password=" & "your pass" & ";") Connection.Open()

Member Avatar for babyluxe03
0
245
Member Avatar for jeffersonalomia

the easy and fast way for me is to load the access database into a datagrid and search through it.

Member Avatar for Reverend Jim
0
372
Member Avatar for uDevv

since your db is safe, take this code : ![e3a2b89ddcf066b13425c4e07159bc21](/attachments/large/4/e3a2b89ddcf066b13425c4e07159bc21.png "e3a2b89ddcf066b13425c4e07159bc21") and store it in your databade, on your login button event, download this code and execute it. how to do so ? check "CodeDom" and here's a Link [Click Here](http://www.aboutmydot.net/desktop-applications/compile-and-execute-code-at-runtime.html)

Member Avatar for uDevv
0
186
Member Avatar for Spencer_1
Member Avatar for Vish0203

Yes its possible. [Click Here](http://www.codeproject.com/Articles/161871/Fast-Colored-TextBox-for-syntax-highlighting)

Member Avatar for oussama_1
0
107
Member Avatar for xn hunk

buddy your question is vague along with your other questions, i can't figure out what you want. Please Read this [Link](http://www.daniweb.com/software-development/vbnet/threads/424836/please-read-this-before-posting)

Member Avatar for oussama_1
0
167
Member Avatar for dre-logics

start osk.exe process Dim OSKProces As System.Diagnostics.Process OSKProces = System.Diagnostics.Process.Start("osk.exe") Kill osk.exe Process Dim proc = Process.GetProcessesByName("osk") For i As Integer = 0 To proc.Count - 1 proc(i).Kill() Next i

Member Avatar for dre-logics
0
679
Member Avatar for docgrid

Search through datagridview from combobox data : For i As Integer = 0 To DataGridView1.Rows.Count - 2 For j As Integer = 0 To Me.DataGridView1.Rows(i).Cells.Count - 2 If DataGridView1.Item(j, i).Value.ToString().Contains(ComboBox1.Text) Then DataGridView1.Rows(i).Cells(j).Selected = True DataGridView1.CurrentCell = DataGridView1.Rows(i).Cells(j) End If Next Next i

Member Avatar for mridul.ahuja
0
204
Member Avatar for Deep Modi

Yes, it's possible. read about how WINRAR works [Data Compression](http://en.wikipedia.org/wiki/Data_compression) [File Archiver](http://en.wikipedia.org/wiki/7-Zip) [deflate algorithm](http://en.wikipedia.org/wiki/DEFLATE_(algorithm))

Member Avatar for oussama_1
0
199
Member Avatar for islam.gx.9

[Click Here](http://techbrij.com/install-sql-server-database-with-visual-studio-setup)

Member Avatar for oussama_1
0
89
Member Avatar for adam.wolnikowski.9

Dim NewLabel As Label = New Label Me.Controls.Add(NewLabel) AddHandler NewLabel.Click, AddressOf MyLabelClick Private Sub MyLabelClick(ByVal sender As Object, ByVal e As EventArgs) 'code End Sub

Member Avatar for adam.wolnikowski.9
0
354
Member Avatar for Thasarath

Dim StringFromWeb As String = New System.Net.WebClient().DownloadString("example.com") RichTextBox1.Text = StringFromWeb then find your Span ID

Member Avatar for oussama_1
0
136
Member Avatar for jared.geli

For indx = 0 To DataGridView2.Rows.Count - 1 If DataGridView1.CurrentRow.Cells("ID").Value = DataGridView2.Rows(indx).Cells(1).Value Then Dim ask = MessageBox.Show("Record Already Exist, Replace existing record ?", "Records", _ MessageBoxButtons.YesNoCancel) If ask = DialogResult.Yes Then ''copy code End If Else ''copy code End If Next

Member Avatar for oussama_1
0
139
Member Avatar for roni137

Dim i As Integer For i = 0 To DataGridView1.Rows.Count - 1 With DataGridView1.Rows(i) Dim insertCommand As New _ OleDb.OleDbCommand("insert into students_grade (student_no, student_name, grade) values ('" & _ .Cells(0).Value & "','" & .Cells(1).Value & "','" & .Cells(2).Value & "')", Con) Try Con.Open() insertCommand.ExecuteNonQuery() Catch ex As Exception End Try …

Member Avatar for oussama_1
0
305
Member Avatar for Satyam_1

DataGridView1.Rows(0).Cells(0).Value = form1.name.Text DataGridView1.Rows(0).Cells(1).Value = form1.age.Text

Member Avatar for oussama_1
0
68
Member Avatar for RikTelner

when there's a perfect program, there's a perfect hacker. deal with it! sorry :D

Member Avatar for Coloradojaguar
0
358
Member Avatar for Mr.M

in the destination, you need to put the file directory not the folder that contains it. My.Computer.FileSystem.FileCopy(your file,new file directory) ' ex: i want to copy this file(C:\sound.wav) to (c:\music) My.Computer.FileSystem.FileCopy(C:\sound.wav,c:\music\sound.wav)

Member Avatar for Mr.M
0
3K
Member Avatar for jared.geli

let me get this straight, your are asking for 2 things 1.you want on datagridview1_mouseclick to copy selected raw to datagridview2 2.you want on datagridview2_RowsAdded to update your database with the new added raw am i right ?

Member Avatar for jared.geli
0
4K
Member Avatar for missy_mi

For i = 0 To 2 Dim RadioButton As RadioButton = CType(Me.Controls("RadioButton" & i + 1), RadioButton) If RadioButton.Checked = True Then MsgBox("Food :" & RadioButton.Text & ", Quantity :" & txtCountFood) 'msgbox is example End If Next

Member Avatar for missy_mi
0
288
Member Avatar for VB 2012
Member Avatar for Iamateur

when exception(problem) occurs in a program, we handle it by Try, Catch and Finally. You can also define your own exception and your code is a perfect example for it. the above code is a "User-Defined Exceptions" class ex: Public Class NoInternetConnection : Inherits ApplicationException and the rest of the …

Member Avatar for oussama_1
0
251
Member Avatar for waleed.makarem
Member Avatar for AnooooPower

Dim ofd As New OpenFileDialog Dim strFile As String With ofd .Title = "Select a List" .Filter = "Text Files|*.txt|All Files|*.*" .ShowDialog() strFile = .FileName End With RichTextBox1.LoadFile(strFile, RichTextBoxStreamType.PlainText) For Each line In RichTextBox1.Lines If line.StartsWith("A") Then If line.EndsWith("0") Then RichTextBox1.Text = RichTextBox1.Text.Replace(line, line.Replace("0", "Replace with this")) End If End …

Member Avatar for AnooooPower
0
355
Member Avatar for 2lethal

go to your form properties go to misc and set keypreview to true and set your acceptbutton

Member Avatar for 2lethal
0
210
Member Avatar for CJMW

place this script on your camera transform.position = new Vector3(player.transform.x,y,z)

Member Avatar for CJMW
0
450
Member Avatar for chrisschristou

i work with unity..amazing game engine..we are team of two..my buddy is a 3d artist he deals with 3dmax and maya for modeling and creating enviroments and lightning..backing etc... and i deal with scripting (javascript, but u can choose between c# and python) and audio (i use reason for soundFX) …

Member Avatar for oussama_1
0
353
Member Avatar for nettripper

if you got a lot of controls try to put them in panels so that instead of rescaling each control u can just move the panels around according to the resolution

Member Avatar for oussama_1
0
881
Member Avatar for Lethugs

yes like what minimalist said and try to add mouse control to your form so you can move it around Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" _ (ByVal hwnd As Integer, ByVal wMsg As Integer, _ ByVal wParam As Integer, ByVal lParam As String) As Integer Private Declare …

Member Avatar for Deep Modi
0
264
Member Avatar for missy_mi

Exactly! your code will create an empty word file. you need to add your data to the MS word file programmatically

Member Avatar for missy_mi
0
478
Member Avatar for Gulzar_1

does both machine have the same platform ? (if not check this [Click Here](http://www.daniweb.com/software-development/vbnet/threads/463693/application-will-not-run-on-64-bit#post2018387)) check .NET Framework version try to include all your application files in your software (go to publish then application files)

Member Avatar for Minimalist
0
611
Member Avatar for waleed.makarem
Member Avatar for elie.karkafy

add a serialport to your form select your handpuch port ComboBox1.Items.AddRange(IO.Ports.SerialPort.GetPortNames) SerialPort1.PortName = ComboBox1.SelectedItem.ToString open it SerialPort1.Open() Receive data and convert Private Sub DataReceived(ByVal sender As Object, _ ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) _ Handles SerialPort1.DataReceived If SerialPort1.BytesToRead > 0 Then SerialPort1.Read(your data) end if 'convert bytes to plain text System.Text.Encoding.ASCII.GetString(your …

Member Avatar for oussama_1
0
789
Member Avatar for pc20912

try this Dim forms As Form() = {Form2, Form3, Form4} For Each form In forms If (form.Location.X <= Label1.Location.X + Me.Location.X) _ And (form.Location.Y <= Label1.Location.Y + Me.Location.Y) Then If (form.Location.X + form.Size.Width >= Label1.Location.X + Me.Location.X + Label1.Size.Width) _ And (form.Location.Y + form.Size.Height >= Label1.Location.Y + Me.Location.Y + Label1.Size.Height) …

Member Avatar for oussama_1
0
121
Member Avatar for DM Galaxy

Manually : Toolbox drag drop a listview into your form design set listview view to details Edit Columns Programmatically : Me.Size = New Size(700, 300) Dim list As New ListView list.Size = New Size(684, 262) list.View = View.Details list.Columns.Add("File Directory") list.Columns.Add("name") list.Columns.Add("email") list.Columns.Add(" ip address") Me.Controls.Add(list)

Member Avatar for DM Galaxy
0
312
Member Avatar for debrah.rutherford
Member Avatar for ricardo.scheufele

dgv.DataSource = listaBindingSource dgv.Columns(0).HeaderText = "Value" dgv.Columns(1).HeaderText = "Date" For i = 0 To dgv.Rows.Count - 1 Dim num As Integer = i + 1 dgv.Rows.Item(i).HeaderCell.Value = "Vendas" & num Next

Member Avatar for ricardo.scheufele
0
280
Member Avatar for Mr.XtrawEffecient

your code is working fine, its a driver issue you should reinstall MDAC check this link [Click Here](social.msdn.microsoft.com/Forums/vstudio/en-US/8775ee9c-f48a-4f2e-89dd-92e5f5c59799/the-net-framework-data-providers-require-microsoft-data-access-componentsmdac)

Member Avatar for oussama_1
0
232
Member Avatar for yagelnnn1

use http://freetexthost.com/ first app : upload text "close" get url second app : on each timer tick Dim closeIt As String = New System.Net.WebClient().DownloadString(yourURL) if it contains text "colse" then me.close good luck

Member Avatar for oussama_1
0
155
Member Avatar for mhieyo

Means Cell 9 does not exist here's a code i wrote it'll simplify your work (less codes :D) For i = 1 To DataGridView1.Columns.Count - 1 Dim label As Label = CType(Me.Controls("label" & i + 1), Label) If Not DataGridView1.CurrentRow.Cells(i).ToString = "" Or Nothing Then label.Text = DataGridView1.CurrentRow.Cells(i).Value End If …

Member Avatar for oussama_1
0
296

The End.