159 Posted Topics
Re: * Ok Change line 21 to double fixedSalary = 100000; Reason: Type of variable not declared also a syntax error, you can't add any character such as "," in type int, double or float and it's unnecessary. * line 23 double commission; Reason: since it's a fraction number (2.5) you … | |
Re: Are you sure it's connected through "COM9"? (devices and printers >> printer properties >> ports), if yes then add this code before opening the serial port PrinterSerial.DtrEnable = True PrinterSerial.RtsEnable = True Reference : [Click Here](https://www.daniweb.com/software-development/vbnet/threads/376805/serial-port-questions) | |
Here's a simple game code, open a new vb project and copy paste this code and hit run. the game contains 3 levels, all you have to do is to shoot the smiley faces to earn money using mouse clicks, also there's a boss enemy on level 3. I didn't … | |
Re: Check your Active solution platform if it is compatible with your System type (e.g. 64-bit) | |
Hi guys, i was told that with the right settings of Qos in my router, i can prioritize the internet speed between online gaming or watching videos or browsing etc.. but what i want is to give a high priority to my pc among other pc's connected to my router. … | |
Re: Your "errors" are both logical errors and syntax errors Syntax errors: -when you write a method, you can't use the semicolon, just open the curly braces then write your code then close it. -in your main method it's a "String" instead of "Strings" -as JamesCherrill said, indent your code, so … | |
Re: Replace while (end = false) With while (end == false) Or while (!end) | |
Re: Create your database >> connect your device >> open serialport >> read data >> store data. usually there's a manual accompanied with this device and i'm sure there's developer section in it, check it. | |
Re: Use Form.ActiveForm 'close button Form.ActiveForm.Close() 'maximize button Form.ActiveForm.WindowState = FormWindowState.Maximized 'minimize button Form.ActiveForm.WindowState = FormWindowState.Minimized | |
Re: [Click Here](http://www.vbforums.com/showthread.php?336585-Get-MSN-Messenger-Contacts) | |
![]() | Re: Create a fullscreen black form with low opacity and make it on top most then display your dialog above it. |
Re: Use a webbrowser from toolbox menu 1 .. pass the address to the webpage Webbrowser.Navigate(URL) 2 .. click the webpage (find) button webBrowser1.Document.All("Button ID").InvokeMember("click") Good Luck ![]() | |
Re: Try to put this code in between System.Threading.Thread.Sleep(Time) | |
Re: If e.RowIndex.ToString > -1 Then Diameter = DesignationsDataGridView.Rows(e.RowIndex).Cells(0).Value endif | |
Re: what are you trying to do? explain more. | |
Re: when you use the getdata methode it collect the values in your query, your "fuel/litre" is no longer there. instead use this code to get your item Dim qry As OleDb.OleDbCommand Dim dr As OleDb.OleDbDataReader qry = New OleDbCommand("SELECT * FROM [fuel_allowance] WHERE [project number]='" & projcode & "' AND … | |
Re: Before reading Mifare Were you able to connect to it? | |
Re: You need to create the installer (go to your project properties then go to publish - publish wizard) then on the user machine double click on the installer. also make sure to set your application platform on X86 for it to work on both machines (32bit and 6bit), for that … | |
Re: MsgBox is the default one, you show a string and wait for the user to click the msgbox button in Messagebox.show you can add a custom buttons and icon etc.. MessageBox.Show(message, caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question) | |
Re: usually a product like this comes with a software disc or you can download it from their website..if thats not the case, is there any part in that documentation that talks about developing or programing if so, upload it or send a url. anyway this is how you read the … | |
Re: Read [this](http://www.daniweb.com/software-development/vbnet/threads/475373/adding-data-in-access-database) | |
Re: Get all files and folders in a directory Dim f As New DirectoryInfo("C:\test\") Dim dirs() As DirectoryInfo = f.GetDirectories("*", SearchOption.AllDirectories) For Each d As DirectoryInfo In dirs ListBox1.Items.Add(d.Name) Dim di As New IO.DirectoryInfo(d.FullName) Dim diar1 As IO.FileInfo() = di.GetFiles() Dim dra As IO.FileInfo For Each dra In diar1 ListBox1.Items.Add(dra) Next … | |
Re: Dim timedifference As TimeSpan = DateTime.Now.AddMinutes("45").Subtract(starttime) | |
| |
Re: i once did a pos for a delivery company, they take orders over the phone so i included a caller id in the pos, you can try something like that..just for fun. | |
Re: this one works and wont give any error if the item is not selected ComboBox1.Items.Remove(ComboBox1.SelectedItem) but this one will give you "InvalidArgument=Value of '-1' (not 0) is not valid for 'index'" if the item is not selected ComboBox1.Items.RemoveAt(ComboBox1.SelectedIndex) | |
Re: Yes you can try this System.Data.DataSet or this dim datagrid as datagridview | |
Re: Private Sub Button7_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button7.Click 'set your timer to minutes Timer2.Interval = 60000 'set you progressbar max value to 45 ProgressBar1.Maximum = 45 Timer2.Start() Button7.Enabled = True Label8.Text = "Match Begins" End Sub Private Sub Timer2_Tick(ByVal sender As Object, ByVal e As EventArgs) … | |
Re: in a button click event create 2 different connection(oleDb.oleDbConnection) like this Dim Connection1 As New OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;" & "Data Source='" & "Access 1 Full Path" & "';" & "Persist Security Info=False;" & "Jet OLEDB:Database Password=" & "your pass" & ";") Dim Connection2 As New OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;" & "Data Source='" & "Access 2 … | |
| |
| |
Re: wow buddy your code doesn't make any sense. you should run this once With dgv_booklist .Columns.Add("ISBN", "ISBN") .Columns.Add("BookCode", "BookCode") .Columns.Add("Title", "Title") .Columns.Add("Author", "Author") .Columns.Add("Category", "Category") .Columns.Add("StudentNo", "StudentNo") .Columns.Add("FirstName", "FirstName") .Columns.Add("LastName", "LastName") .Columns.Add("BorrowDate", "BorrowDate") .Columns.Add("LoanPeriod", "LoanPeriod") End With and that's the add row code Private Sub btn_addborrow_Click(ByVal sender As Object, ByVal … | |
Re: Imports System.Data.OleDb Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Change Tablename,Access Full path,Password Dim CN As New OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;" & "Data Source='" & "Access Full Path" & "';" & "Persist Security Info=False;" & "Jet OLEDB:Database Password=" & "your pass" & ";") Dim cmd … | |
Re: Instead of the ip address, type "\\pcname" | |
Re: 2 things you should take care of: 1) in your project publish settings, when the user install your application the "application files" and "prerequisites" will be automatically installed on the user machine so make sure you include everything in the application files 2) the user machine platform if the targeted … | |
Re: [Click Here](http://www.daniweb.com/software-development/game-development/threads/464500/where-to-start-fro-create-video-game) | |
Re: like this ? datagridview.rows(index).cells(index).value = dr.item("ID") | |
Re: > Please tell me the code. Dear Satyam_1 What you are asking is for us to work for you instead of helping you, you see programmers get paid for these codes! Programmers spend a lot of money and years of their time studiyng these codes,don't take this the wrong way … | |
Re: There is no path to your resources it's already embeded in your exe app but instead you can use the text inside (only to copy) Like this: Dim Text As New RichTextBox Dim FilePath As String = My.Computer.FileSystem.SpecialDirectories.Desktop Dim lines() As String = My.Resources.wsha.Split(Environment.NewLine) For Each line As String In … | |
Re: Add your txt file to your app resources Project - Project properties - resources - upload | |
Re: set timer to minutes : timer.Interval = 60000 on button click event put timer.start in timer1_tick event each tick is a 1 minute so count the minutes count = count + 1 and if count == 2 then alert and stop timer (timer.stop). good luck | |
Re: use a Yes/No messagebox to interact with form DialogResult MSG = MessageBox.Show("Subtitle", "Title", MessageBoxButtons.YesNo); if (MSG == DialogResult.Yes) { //code } else if (MSG == DialogResult.No) { //code } | |
Re: Is your table a datagrid or a database ? what's the error ? a wild guess DataGridView1.Rows.Add(1) DataGridView1.Rows(0).Cells("T_ID").Value = ComboBox1.Items(0) DataGridView1.Rows(0).Cells("Sbj_Paper_Name").Value = ListBox1.Items(0) | |
| |
Re: If you want your FOUR INDEPENDENT apps to access the same database, you need to host your database online. Use your experience in java to create the android app (eclipse) Use your experience in php to write the login process,connecting,sql commands etc... for the android app. You can learn C# … | |
Re: Dim sum As Integer = 0 For i = 0 To DataGrid.Rows.Count - 1 sum = sum + DataGridView1.Rows(i).Cells(4).Value Next as for the second question i didnt understand it, can you explain more? | |
Re: use a background worker, Don't use thread.sleep this will hold off your operation. good luck | |
Re: 'add yourTableName Dim insertCommand As New OleDb.OleDbCommand("INSERT INTO yourTableName (Bank, Acno, Name) VALUES ('" & TxtBank.Text & "','" & TxtAcno.Text & "','" & TxtName.Text & "')", CN) Try CN.Open() insertCommand.ExecuteNonQuery() MsgBox("Record Added Successfully") Catch ex As Exception Finally CN.Close() End Try | |
The End.