20,897 Topics

Member Avatar for
Member Avatar for chdboy

This code creates XML File Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim connetionString As String Dim connection As SqlConnection Dim adapter As SqlDataAdapter Dim ds As New DataSet Dim sql As String connetionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Danial\documents\visual studio 2010\Projects\ESI_PF_Payroll_V1\ESI_PF_Payroll_V1\Pay.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" connection = New …

Member Avatar for chdboy
0
250
Member Avatar for Trle94

Hello there, i know there is alot questions about this and source but i could not manage to get it working since im trying to make it using only one letter example F1 or F5 as hotkey to work on non focused form, but im also in need to get …

Member Avatar for Trle94
0
119
Member Avatar for Papa_Don

Group, I may have messed up bad. I need help. I was having trouble loading a database I had created with data. So I downloaded SQL Server 2008 Express that included the management tools. I tried to find and open the created database and never could find it using the …

Member Avatar for Papa_Don
0
244
Member Avatar for shermags

Hi Experts, I've tried to use keyboard hook under **Windows Form** and it all work fine. But when I had tried it to **Windows Service**, it does not work. I had downloaded a keyboardhook library, [Global Windows Hook](http://www.codeproject.com/Articles/19858/Global-Windows-Hooks) I have configured it as running with logon as Local System and …

0
73
Member Avatar for AlphaXero

I am trying to make a vb program that reads a text file and manipulated the data within. For instance, my text file contains the following information: 27 rt 3 + 5 * 2 / 4 - 2 ^ 3 This is all the information my text file contains. I …

Member Avatar for tinstaafl
0
386
Member Avatar for robert.montgomery.75054

I need help with the code below. I coded using the For..Next statement, now I have to place the For..Next statement with a Do..Loop statement. Can anyone help down the right path? Thank you in advance. ` Dim strGrades() As String = {"A", "B", "C", "A", "B", "A", "F", "A", …

Member Avatar for tinstaafl
0
164
Member Avatar for nosfa

I'm trying to populate a dataset from an excel sheet but I keep getting a "could not find installable ISAM" error. (In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user.) on the adapter.Fill line. Already tried changing …

Member Avatar for TnTinMN
0
798
Member Avatar for DyO1

Hello everyone, I'm making programs from quite a while now, and they don't work on most computers, people keep asking me: What are the system requements for this and that program? My answer is: I don't know ! Basically **I need a program that tells me what .NET Framework version …

Member Avatar for HctiMitcH
0
281
Member Avatar for sowrabh_b

I developed a software in VB .Net. I want - main software will lode with database suppose in Computer-1 but I want to use & run from multiple computer including Computer-1. I have lan connection among all computer.

Member Avatar for deceptikon
0
36
Member Avatar for themaj

Need a little help on this since it seems to be vastly different than VB6. I have multiple forms and would like to set the Startup Position of secondary forms (form2 & form3) slightly lower, and to the right of the primary form (form1); similar to the 'cascade' effect in …

Member Avatar for Luc001
0
525
Member Avatar for sirmcfly.works

i'm having a problem with my project where i should read the inputs from the status port of a DB-25... Input = Inp(&H379S).... whenever i trigger one of the sensor the value of INPUT will be 135 regardless of which sensor i trigger or even if i simultaneously trigger multiple …

Member Avatar for sirmcfly.works
0
318
Member Avatar for ImZick

Hi how can i sort using Month i have January, February.... December i want to sort it out so the user will see it from January - December my column name is "Months" and it is in subitems(0) Thank you in a advanced

Member Avatar for ImZick
0
571
Member Avatar for ImZick

I have a code here which will add the data in the system and also if it find a data that exist in the system a message box will appear if the user want to overwrite the data. here is the code Dim con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source='" & …

Member Avatar for Reverend Jim
0
120
Member Avatar for kumar_g

Hello Friends I am VB.NET Programmer and currently working on a project where i have to copy the rar/zip file from any folder. While pasting it, it should extract the rar/zip contents automatically. I am done with my extracting part but Here are some problems i am facing Problem 1 …

Member Avatar for tinstaafl
0
287
Member Avatar for jontennyeah

I have a 3 columns in my MS access database namely ID, Name and Type. The Types are Driver, Conductor, and Inspector. I want is i click a button, all names in column "Name" that is classified as Driver will be the items of my combobox, also the other two. …

Member Avatar for jontennyeah
-1
149
Member Avatar for hafizhin.rosyiid

help me i want get data from combobox into single datagridview forecasting i have 3 table table 1 = Jenis with 3 column = IDPemakaian,JenisData, JenisPelanggan table 2 = Periode with 6 column = Nomor, IDPemakaian, JenisData, Periode, Tahun, Jumlah table 3 = Pelanggan with 6 column = Nomor, IDPemakaian, …

0
114
Member Avatar for ImZick

Hi, Sorry i need to ask for a help again. I have a listview and a search button i want to populate my listview when i click a button to search the field name "Last Name" for example i want to search "Sample" then it will populate my listbox with …

Member Avatar for Reverend Jim
0
503
Member Avatar for Papa_Don

Group, Via Visual Studio 2010, I've created a SQL Server database with the appropriate fields, data types, etc. I'm now ready to begin some testing, however I need to put some information in those datafields. I'm having trouble doing this. I DID NOT set the tables to display in the …

Member Avatar for Reverend Jim
0
311
Member Avatar for vinay7868

hiii am just gong to start the coding for barcode generator so can any one help me or guide me how to start and what to do...

Member Avatar for vinay7868
0
451
Member Avatar for Papa_Don

Group, I have a form that opens with a panel and multiple textboxes displayed that I created via the GUI. Once the user enters the desired information within this panel, a button is click and a new panel appears with the same textboxes displayed as the original. This panel and …

Member Avatar for Papa_Don
0
173
Member Avatar for HctiMitcH

I am trying to create a program that searches a screenshot 1600x900 px for a smaller image 200x50. For example on this website I would like to have the program take a screenshot and then search the screenshot for the DaniWeb logo. I would like the coordinates of the center …

Member Avatar for HctiMitcH
0
223
Member Avatar for HctiMitcH

I am working an a simple project that required a vb.net login form. I added a login form that was preinstalled in visual studio, ex. Menu>Add existing item>login form. I am using visual studio desktop 2012 and I made the project for .NET 4.5. I then realized that my target …

Member Avatar for HctiMitcH
0
439
Member Avatar for samirkhzem

just want to know the correct synthax for creating a table in access database using vb myqry = "CREATE TABLE HoldInvoide'" & k & "'(Barcode varchar(20) not null Primary Key, ItemName varchar(40) not null, Quantity int , Price double, Total double)" k is a variable i want to create a …

Member Avatar for Reverend Jim
0
337
Member Avatar for verbalurbs

Hello I am trying to display an ID which is a primary key in my table by selecting the corresponding name in my table. the names have been saved in a combo box and depending on the name selected the textbox will display that Id. the code I have so …

Member Avatar for martinhosking
0
409
Member Avatar for Minko

Hello, I have a Textbox and on the textchanged event it takes the users input and searches through a database and takes the items which are like the users input and puts them in a listbox which a user can select from. The problem with this method is that it …

Member Avatar for deceptikon
0
163
Member Avatar for jomitz03

Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click Dim cmd As New OleDb.OleDbCommand If Not cnn.State = ConnectionState.Open Then 'open connection if it is not yet open cnn.Open() End If cmd.Connection = cnn 'check whether add new or update If MsgBox("Do you want save?", vbInformation + …

Member Avatar for Reverend Jim
0
256
Member Avatar for Papa_Don

Group, I have 36 string names that I'd like to create. In general these string names can be very similar. I thought I'd try creating a loop to do this for me. But I can seem to find the correct syntax to do this. To clarify, these string names can …

Member Avatar for TnTinMN
0
618
Member Avatar for sonyj
Member Avatar for Ann95

An error was encountered while opening associated documents the last time this solution was loaded. Document load is being skipped during this solution load in order to avoid that error. How can I resolved this error in VB 2010?

Member Avatar for TnTinMN
0
638
Member Avatar for shermags

Hi All, I would like to seek you expert advice. I would like to create an image viewer with a capability to view thumbnails or a film strip like images. I had search in google and found some idea, but upon trying it with about 100+ images the system thrown …

Member Avatar for TnTinMN
0
241
Member Avatar for chdboy

CODE: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con = New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Danial\documents\visual studio 2010\Projects\ESI_PF_Payroll_V1\ESI_PF_Payroll_V1\Pay.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True") Dim adaptor As New SqlDataAdapter Dim dataset As New DataSet con.Open() con.Close() con.Open() cmd = New SqlCommand(str, con) cmd.Connection = con cmd.CommandText = "SELECT Firstname FROM …

Member Avatar for chdboy
0
176
Member Avatar for munyaradzi.marawanyika

i am working om a project using vb.net and asp.net .its an online restaurent management system.can the two languages work together.

Member Avatar for JorgeM
0
40
Member Avatar for jakeezakiel

Dim conn As New OleDb.OleDbConnection Dim ds As New DataSet Dim dt As New OleDb.OleDbDataAdapter conn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\admin\Documents\Visual Studio 2010\Projects\office software\office software\bin\Debug\Office1.accdb;Persist Security Info=False; " Try cmd.Connection = conn conn.Open() cmd.CommandText = "insert into Office Values('" & CInt(TBID.Text) & "','" & TBSupplierName.Text & "', " & TBProductName.Text & "," …

Member Avatar for pritaeas
0
309
Member Avatar for sonyj
Member Avatar for danielgr

Hi, I have a webservice which needs to be serialized. At the moment I can call the webservice as: Call10.Process("field_a","field_b") and the function looks like this: Public Function Call10(ByVal User As String, ByVal Password As String) As String If User = "user" Then MsgBox("Correct User") End If If Password = …

Member Avatar for danielgr
0
185
Member Avatar for slpefanis

Hi All, i am not sure if this is the right forum, but i couldnt find a SQL section. I am writing an application to log data from our PLC system to a SQL database. I would like to write a record every second. I have it all working fine, …

Member Avatar for Reverend Jim
0
135
Member Avatar for bornwith

I am trying to change a computer's IP address from inside a VB project using netsh. I can get the cmd prompt to open but it doesn't pass the arguments. Any thoughts? Thanks Private Sub BtnTest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnTest.Click Dim IPmsg As String Dim …

Member Avatar for bornwith
0
3K
Member Avatar for alwayslearn

i have a problem when updating database. i need to update stock value in other table and count it and update to another table again. here the code : 'in every row on 'SalesDetailBindingSource' For Each SalesDetailData In SalesDetailBindingSource MsgBox("SalesDetailData : " & SalesDetailBindingSource.Count) 'dim use to take parameter Dim …

Member Avatar for lolafuertes
0
350
Member Avatar for Papa_Don

Hi Group! I need to write the data from multiple TextBoxes (which I've moved to individual string names) into one text file (miscflds.txt). These individual strings will need to be written one on top of the other. To be clear, it will need to look like this: Item A Item …

Member Avatar for TnTinMN
0
618
Member Avatar for jeansantos

I have not found any answer on Daniweb neither on the web. What I need is a winform that send an e-mail using the Exchange Server on the local network are and authenticate with the current domain user without entering credentials. It is possible? I have this code? Can anyone …

Member Avatar for tinstaafl
0
321
Member Avatar for Reverend Jim

If you have any particular topics that you'd like to see a code snippet for then please post your requests here. In order to avoid duplication of effort, if you feel inclined to respond to a request then please post here indicating that you will create the requested code snippet …

3
114
Member Avatar for Ashenvale

Hi! I tried creating a log-in screen that is connected to a database from the examples I've seen on the net. The thing is, I wanted to put a function where the user can only log in if the account is not yet expired. for that, I've put a datefield …

Member Avatar for Ashenvale
0
142
Member Avatar for akasekaihime

Hello, Good evening! I am trying to validate my atachments in my system. In my program, there is an upload button, what I am trying to do is to validate it by not copying and saving the upload file once it already exists in the database..... HERE IS MY CODE: …

Member Avatar for Reverend Jim
0
249
Member Avatar for thewilf

Hi All, Hopefully a quick one but I don't think it will be :( I have a piece of software which is a data logger and plays sounds when users have been inactive for a period of time etc... The software also plays a type of audio file upon a …

Member Avatar for thewilf
0
245
Member Avatar for Papa_Don

Group, The SQL Server (I'm using the edition that comes with Visual Studio 2010 Express) is different in every aspect form the database(s) that existed in the UNIX based program I work with over the last 15 years. There is much to learn and understand. With that said, I've connected …

Member Avatar for Reverend Jim
0
183
Member Avatar for Sevyt

Ok sorry was kind of hard to explain my problem in the title. I got basically 3 forms. Form 1 and Form2 contain mostly the same fields. But Form 1 is used to enter data in the database. Form 2 is used to view and if needed edit data. Form …

Member Avatar for tinstaafl
0
142
Member Avatar for monching
Member Avatar for EliteNMC

Hello, I want to make an application that can change the arrays of bytes, I want something that could look like this: If Button1.Enabled then arrayofbyte1("2g 7a 13") changes to ("a3 f7 11") Else arrayofbyte1("a3 f7 11") changes to ("2g 7a 13") I hope you understand what I want to …

Member Avatar for tinstaafl
0
198
Member Avatar for Mits14

Hi! I need a help!! I'm currently working on an Online Election. Basically, what i want is to output the list of candidates in every position in my database. I output the list of the positions in a dynamic labels and the list of candidates in a dynamic dropdownlist. For …

Member Avatar for LastMitch
0
341
Member Avatar for analys

Hello guys, I'm working on my code vb.net to save data into access database. I'm kinda lost right now. Couldn't find the solution to the error. it highlight on dbcommand.ExecuteNonQuery() as state as the title problem. Here's my code. Appreaciate the help. ` Imports System.Data.OleDb Imports System.String Imports System.Windows.Forms Imports …

Member Avatar for analys
1
2K

The End.