1. Form created in VB2008 3 Textbox [Name(string), Company(string), Contact(number)] 3 Buttons [New Record, Update Record, Delete Record] 2. Database created in MS Access 2003 File Name: Contact.mbd Fields: ID [Primary key] Name [Text] Company [Text] Contact [Number] How to Create Connection? How to get data on form load from database in textboxes? How to insert, update, delete data? Please provide information as I am not able to get any simplest way to understand these questions.

Member Avatar
Member Avatar
+0 forum 9

The problem is in lies in TA.Insert(txtfirst.text) I really dont know what is parameter,,,,all about pls help me...pls [CODE] Public Class AddOutPatient Private Sub btncancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btncancel.Click Me.DialogResult = Windows.Forms.DialogResult.Cancel End Sub Private Sub btnaddout_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnaddout.Click 'validation for firstname If txtfirst.Text.Trim = "" Then MsgBox("You should enter your firstname", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly) txtfirst.Focus() Exit Sub End If If txtfirst.Text.Contains(".") Then MsgBox("The name should include letters only", MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly) txtfirst.Focus() Exit Sub End If 'validation for lastname If txtlast.Text.Trim = "" Then MsgBox("You should enter …

Member Avatar
Member Avatar
+0 forum 4

How are you, I need some help with the following code (Attached Form1 & AccountClass). I am trying to figure out the following: - Figure out the code in ButtonWithdrawal when the amount is bigger than 0. - Show the (Balance) in ButtonBalanceInq. - Show the List of transactions in (ButtonListTransactions). I commented out the things that I could not figure out and I really appreciate the help and thank you in advance. [CODE] Public Class Form1 Private AllAccount(-1) As AccountClass Private Sub ButtonCustomerInfo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonCustomerInfo.Click Dim NewAccount As New AccountClass ReDim Preserve …

Member Avatar
+0 forum 0

This is my first time to do visual basic program Please help me about this problem... When I run the program with maximum attempt of 3 with correct username and password, Illegal user will pop up,,,i really dont know what to do..illegal user must be pop up when i already attempt " try again " then another "3attempt" then the username or password are wrong....pls help me [CODE] Imports System.Data.OleDb Public Class SignIn Dim ctr As Integer = 0 Dim crr As Integer = 0 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ctr += 1 …

Member Avatar
Member Avatar
+0 forum 3

So i am currently working on a project about enrollment system and I am having a problem with transferring items from one listview to another. I've been stuck on this problem for a while now. And I'm wonder if you guys and help me out. Here's a photo: [ATTACH]23978[/ATTACH] I want to be able to transfer from the lower right form's listview to the other form's listview.

Member Avatar
Member Avatar
+0 forum 4

Hello everyone, i have the following problem and I come here looking for some advice. I am using c#, but i have a dll that creates the excel file in Visual Basic. i have a datagridview and the information there is exported to excel file. No problem there. the problems is the following, in my datagridview i have a field that has almost 20 numbers(15 to 17). in my datagrid the information is being displayed fine from the database. example | col_Number | |20120217082628888| but the problem is when i export this data to excel. i am using a template …

Member Avatar
Member Avatar
+0 forum 30

Hi guys I need to find next highest no in a field that is a stick ref it has chars at front and 0 padded How so I strip off front chars and 0's to get actual highest no number in the table field? Am using LINQ against entity framework cheers George

Member Avatar
Member Avatar
+0 forum 4

Hi all! I use vb2010 and I try to filter a datagridview. I achieved to do this but not at the column of dgv like in excel.. I found information about datagriviewAutofilterColumnHeader library but i dont have this library and I dont know if it is ok fro vb2010. I found some samples in some sites which refered that you hade to build this sample and the library will be created..something that didnt happen. If anyonw knows about this please let me know! Thanks in advance!

Member Avatar
+0 forum 0

Hi forum, I am wanting to advance my programming knowledge to the next level: to create games. I have a pretty-good understanding of VB.NET and I am wondering what I could do to make games. I know that most on-the-web games are written in ActionScript with Adobe Flash, but would Visual Basic be good for games also? I am wanting to find some books over programming games from scratch, and I do not know of any good ones out there... The ones I have looked at were not very great. Anyway, thanks for future replies and I hope to receive …

Member Avatar
Member Avatar
+0 forum 4

Hi everyone, well I have trying to do an elevator simulator, wich have to includo the panel with the floor, available floors, and a button panel with available floors and button up, down, but I dont understand is how to use the timers for up and down, because I vague idea to select the floors is to usea a for or select case but I dont know wich one is the most appropiate in this case. Wha tI have so far is: [CODE] Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Timer2.Enabled = False If lbl1.Text …

Member Avatar
Member Avatar
+0 forum 9

I would like to start this post off with, I am not looking for someone to do my homework for me. If I was looking for someone to "do it for me", I would go to one of the sites where you can pay someone to do your work for you. I am trying to learn VB and C#. This is a VB.Net assignment. However, I am looking for guidance or someone to point out my errors (and there are SEVERAL of them from the odd results my game is producing. I am going to paste the assignment requrirements, then …

Member Avatar
Member Avatar
+0 forum 2

Has any one successfully implemented adding additional voices to system.speech in Visual Basic 2008 or 2010 with Windows 7 64 bit? The support documentation is very old and I am not sure I will be pulling my hair out working on the newer hardware and operating systems. Thank you for your help.

Member Avatar
+0 forum 0

I am stuck doing this assignment given for monday ...i am at the do while coding (already did the interface ...) anw here it is : Candidates for employment by a security organization have to undergo a medical test in which sight, hearing and mobility are tested. In each of these three tests, a candidate is given a score on a scale running from 0 to 89 inclusive. These scores are then converted to grades going from 1 (very poor) to 9 (excellent) with 1 corresponding to scores between 0 and 9 inclusive, 2 corresponding to scores between 10 and …

Member Avatar
Member Avatar
+0 forum 7

I have an application that currently operates based on a static password that is hard coded into the application. I would like to somehow have the application look in a text file, say: C:\passtest.txt for a password. The text file will have nothing but the 1 password in it, it is just to make the changing of the password easier than having to recompile it everytime. This is in VB.net. Also, there is no required user name for the application, just 1 textbox (TextBox1) that asks for the password. I suppose the application (upon startup) should read the text file, …

Member Avatar
Member Avatar
+0 forum 4

Hi, i'm just wondering if there's any differnece between visual basic 6.0 and visual basic 2008?? Is visual basic 2008 compatible with the older versions of visual basic??? Please help.. Thank you in advance! :)

Member Avatar
Member Avatar
+0 forum 1

Hey guys, I got my application working fine but it's using a constant 50%-ish of my CPU power, which is way too much I believe. Can any of you figure out what's causing this, or tell me how I can find out myself? :) What we're doing is reading a HTML link, putting that in a datagrid, then moving on to next link etc. until we have 50 pages' data read. Then we copy all data over to second datagrid, put that data in a dataset and export it to XML. Next we clear the datagrids and then we move …

Member Avatar
+0 forum 0

Hi there, I'll be dropping in quick: I'm trying to pull four <t> nodes from a XML file, eg. [CODE='XML']<?xml version="1.0" encoding="UTF-8"?> <tasks tid="TERMINAL012345"> <t> <reqs>keuringen/bammens3h.xml</reqs> <deadline>200120111600</deadline> <desc>WML keuring BAMMENS-3H</desc> <loc>Danzigerbocht 87 AMSTERDAM</loc> <ocode>TEST1234567890</ocode> <form>quiz</form> <sn>0000000001</sn> </t> <t> <reqs></reqs> <deadline>200120111630</deadline> <desc>Vulgraad meting</desc> <loc>Danzigerbocht 87 AMSTERDAM</loc> <ocode>TEST1234567890</ocode> <form>quiz</form> <sn>0000000002</sn> </t> <t> <reqs>keuringen/bammens3h.xml</reqs> <deadline>200120111645</deadline> <desc>WML keuring BAMMENS-3H</desc> <loc>Papierweg 12 AMSTERDAM</loc> <ocode>TEST1234567891</ocode> <form>quiz</form> <sn>0000000003</sn> </t> <t> <reqs></reqs> <deadline>200120111730</deadline> <desc>Inname container</desc> <loc>Accraweg 2 HAARLEMMERLIEDE</loc> <ocode>TEST1234560420</ocode> <form>quiz</form> <sn>0000000004</sn> </t> </tasks>[/CODE] I've separated them into four vb XmlNodes like [CODE='VB.NET']Dim Task1 As XmlNode = XmlTaskList.SelectSingleNode("//t[1]") Dim Task2 As XmlNode = XmlTaskList.SelectSingleNode("//t[2]") Dim Task3 As XmlNode = …

Member Avatar
+0 forum 0

Last week, Microsoft released a set of tools for developing software for the new Windows Phone 7 using Visual Basic. In order to use the tools, you have to have Visual Studio 2010 Professional or better (right now the Express versions don't work, although I've heard that will change). But here's the catch: You're coding for Silverlight. You're building Silverlight apps that run on Windows Phone 7. However, that's not necessarily a bad thing. Normally I have my reservations about Silverlight in browsers on desktops, because that's just one more runtime that needs to be downloaded and installed next to, …

Member Avatar
Member Avatar
+1 forum 2

[CODE] <asp:Repeater ID="Repeater1" runat="server"> <HeaderTemplate> <table border="1" width="100%"> <tr> <th>id</th> <th align=left>Room Categories</th> <th>single</th> <th>Double</th> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td width="5%"> <asp:Label ID="Label3" runat="server" Text= '<%# Container.DataItem("packageid")%>' /></td> <td> <asp:CheckBox ID="chk_packages" AutoPostBack=true runat="server" Text = <%#Container.DataItem("package_name")%> /> </td> <td><%#Container.DataItem("single_rate")%><asp:CheckBox AutoPostBack=true ID="single" Enabled=false runat="server" /></td> <td><%#Container.DataItem("double_rate")%><asp:CheckBox AutoPostBack=true ID="Double" runat="server" /></td> <td><asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></td> </tr> </ItemTemplate> <FooterTemplate> </table> </FooterTemplate> </asp:Repeater> </asp:PlaceHolder>[/CODE] i want when any packages checbox click in repeater two other checkbox in repeater (single,double get enable) in the same row ,whne i un-unchecked it it also disables them , iw rite some stuff in my application in order to …

Member Avatar
+0 forum 0

I am writing a program that sends an email with attachments. I need to send it as HTML but I can not find any reference as to how to do this. My code follows: [ Private Sub sendMail(ByRef Message) Dim Attach As Attachment Attach = New Attachment("c:\Project\Articles1\Article.txt") 'create the mail message Dim mail As New MailMessage() 'set the addresses mail.From = New MailAddress("xxx@cox.net") mail.To.Add("xxx@cox.net") 'set the content mail.Subject = "Article to be submitted." mail.Body = Message mail.Attachments.Add(Attach) 'send the message Dim smtp As New SmtpClient("smtp.east.cox.net") smtp.Port = 25 smtp.EnableSsl = True smtp.Credentials = New System.Net.NetworkCredential("xxx", "xxx") smtp.Send(mail) End Sub ] …

Member Avatar
Member Avatar
+0 forum 2

I am trying to write code to send a mail message with an attached file. my code works fine if I don't try to attach a file but crashes when I do. I have not been able to figure this out. My code looks like this. [ Dim mail As New MailMessage() 'set the addresses mail.From = New MailAddress("xxx@cox.net") mail.To.Add("xxx@cox.net") 'set the content mail.Subject = "Article to be submitted." mail.Body = Message mail.Attachments("C:\Project\Articles1\Article.txt") 'send the message Dim smtp As New SmtpClient("smtp.east.cox.net") smtp.Port = 25 smtp.EnableSsl = True smtp.Credentials = New System.Net.NetworkCredential("xxx", "xxx") smtp.Send(mail) ] What am I doing wrong?

Member Avatar
Member Avatar
+0 forum 2

at a current project I was ask to provide a native access using Visual Basic and the Btrieve API. Since there isnt any actual sample at the website availabel ([url]www.pervasive.com[/url]) I thought posting it might help some of you. You can find sample code but almost all of them using VB 6 or older. If you want to download the whole project just check our site ([URL="http://www.dbcoretech.com/?p=364"]www.dbcoretech.com/?p=364[/URL]). Most importand are the declaration of the API itself: [CODE] ' ------------------------------------------------------------------------------------ ' ' Btrieve API declaration ' ------------------------------------------------------------------------------------ ' Protected Declare Function BTRCALL Lib "w3btrv7.dll" (ByVal Opcode As Short, _ ByVal Cursor …

Member Avatar
+0 forum 0

Hi Everyone, Is there any easy way of changing the default hover color of a Toolstrip button in Visual Basic.NET

Member Avatar
+0 forum 0

We are creating a Who wants to be a millionaire style game in VB. Our server is pulling information such as questions and answers from a Access Database and sending them to the contestants (Clients). All transfer of information is directly from the server to each client. One of the "Life Lines" we want to use is "Ask a friend", where one client is able to Instant message another client for a short time to get help on the question. If client 1 says "Is the answer Georgia?", we want the server to take this string and send it to …

Member Avatar
Member Avatar
+0 forum 2

Hi everyone, I really need to figure out how to manipulate the Multiview control with a dropdown list control. Also, what is the C# equivalent to this VB Code [CODE] MultiView1.ActiveViewIndex = RadioButtonList1.SelectedValue[/CODE]The following does not work... [CODE] MultiView1.ActiveViewIndex = RadioButtonList1.SelectedValue; [/CODE] Anyone please help, i'm coding with C# and using Visual Web developer 2005.

Member Avatar
Member Avatar
+0 forum 3

Im trying to work out how to do a project called pig latin in vb.net 2003... so far I've gotten it to work for a single word. If there are spaces it still acts like there is only one word with the rules (ex: monkey stuff = onkey stuffmay) I know that i have to figure a way to seperate the string up if there is a space and do the rules for pig latin for each word and then make it show up in a message box but I'm stuck... as soon as i can get it to split …

Member Avatar
Member Avatar
+0 forum 1

I have problems with adding bullets. I know I can add pictureboxes with commands, but I don't know how can I erase them. I also have problems at adding more than one. [CODE]Dim aButton As New System.Windows.Forms.Button() FormName.Controls.Add(aButton)[/CODE] I use this, but still I don't know how can I rename the buttons I add.(I'm just using them for testing, I'll switch to pictureboxes when I get the code working) I hope you can give me a sample or at least give me some codes.

Member Avatar
+0 forum 0

Ive been working on a checkbook application for my visual basic class and I'm a little stumped.. To preface, the values I need to mess with include: transaction type (checking or deposit) DTP check number ("dep" if deposit) payee (who check is for) purpose of check/deposit amount of check/deposit user defined beginning account balance Below is the Change I need to make to my program... "You will create a set of either collections or arrays (your choice but use just one or the other--don't mix them) scoped at the form/module level. These structures will store all of the input data …

Member Avatar
Member Avatar
+0 forum 9

Hi i need some help with a project i'm working on. Little explanation on it first then ill tell you where i am what i need help with and post code and maybe a screenshot. Well its a usb launcher its supposed to launch your usb drive and also has two combo boxes for launching of programs and folders that you specify and has a mini notepad i wrote in like 5 minutes. What i have so far: Custom Icons Notepad done Buttons for program files and c drive toolstrip with a split button for many dialog (add remove Programs/Folders.) …

Member Avatar
Member Avatar
+0 forum 7

The End.