20,285 Topics

Member Avatar for
Member Avatar for Shantanu88d

Hi, I am writing a web site in vb.net. I need to show javascript confirm box before data is inserted. so if cancel is pressed program flow stops, otherwise data is inserted. quick help will be much appreciated !! :)

Member Avatar for Shantanu88d
0
221
Member Avatar for DoctorGiraffe

Hello! Can anyone give me a tip on a fairly good serial code system for my software, i obviously don't want to store the codes in the software(unless that's what you ussualy do) I want to be able to hand out a certain serial code and when they enter it …

Member Avatar for ghimangi
0
185
Member Avatar for lbeddawi

Hi everyone; I'm pretty new to VB.NET and I'd like your help in validating the CheckBoxList because I have two of them and then how to read them with an attachment file. Appreciate the help: here is the code[CODE]<%@ Page Language="VB" AutoEventWireup="true" CodeFile="test.aspx.vb" Inherits="test" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML …

0
41
Member Avatar for bettybarnes

my deletecommand delete all my rows whenever i delete a row..but when i view it again the other rows still there and the i deleted is actually deleted.. here's my code for da.deletecommand [CODE] da.DeleteCommand = New SqlCommand("Delete from Admission_Record WHERE Patient_ID = @Patient_ID", cs) da.DeleteCommand.Parameters.Add("@Patient_ID", SqlDbType.VarChar).Value = ds.Tables(0).Rows(bs.Position)(0) cs.Open() …

Member Avatar for bettybarnes
0
113
Member Avatar for stats79

Create a text file called TOONS.TXT with the following data: Daffy Duck Daffy Duck Daisy Duck Fred Flintstone Mighty Mouse Minnie Mouse Porky Pig Yosemite Sam Write a program to find and display those names in the TOONS.TXT file that are repeated. Assume that the file has already been sorted …

Member Avatar for codeorder
0
170
Member Avatar for bettybarnes

hi everyone i got this error Cannot insert explicit value for identity column in table 'Patients' when IDENTITY_INSERT is set to OFF. i set identity to Yes in sql server 2005..whenever i run my code i get this error message here's part of my code [CODE]Private Function GenerateCaseNumber() As String …

0
75
Member Avatar for rookanga

Sorry for the confusing thread title but im trying to make a fast food program on which the user will input the amount that he has, then he will check on what he wants, by using check boxes. There are 7 different check boxes with 7 different amounts of money. …

Member Avatar for codeorder
0
135
Member Avatar for razree

Hello I'm new to this forum and quite new to visual basic. I started editing an existing code (basicaly to learn vb) without any real previou experience. Well let's get to the point; I have a form that gathers data from db ordering by user ID (on click count). I …

Member Avatar for razree
0
322
Member Avatar for Joshua Kidd

Hello, I was wondering if there is any way, I can have my Application save its settings upon exit or a save button to save to maybe a CFG File? such as textbox.text info, Checkbox.checked info, etc... If there is could you please help?

Member Avatar for codeorder
0
152
Member Avatar for bestex

Hi why do i have errors in updating a column using where? this is my code [CODE]"Update inventory Set isExpired='1' from inventory where expirationDate= '" & DateTimePicker1.Text & "'"[/CODE] my date format is yyy-MM-dd can anyone help me pls?

Member Avatar for Pgmer
0
66
Member Avatar for saj_amo

hi friends, i have a problem with using vb.net application, i want to take backup of my database from my vb.net application so that user clicks the button and backup can be copied in a drive .

Member Avatar for geoamins2
0
140
Member Avatar for jmensah

I have a main form with datagridview attached to the form. i calling datagridview when the form load, but am getting the 'property access must assign to the property or use it's value. Please help me correct the error. Attached is the form to help analysis the problem. thanks Gyamfi …

0
76
Member Avatar for bLuEmEzzy

Please Help, the user can only input today's date and tomorrow's date... How can i get it?? example valid dates are: Today's date: March 01, 2011 and tomorrow's date: March 02, 2011 if the dates are not valid then error.... Thank You... [CODE] Dim DD As String : Dim MM …

Member Avatar for codeorder
0
320
Member Avatar for reneeschultz

Need to write a script wit the following criteria using VBScript: Am an English teacher and have some programming experience but not to this extent that is needed. Just trying to make it easier on me for grading... 1. prompt user for a # of quiz scores to input, should …

Member Avatar for Tarkenfire
0
124
Member Avatar for jharrigan

Hi Guys / Gals, First off, if I'm not in the right forum for this question, I apologize. For this question I figured I would ask some seasoned coding professionals :). I do realize that this type of question is not a simple yes / no, but i would just …

Member Avatar for Tarkenfire
0
203
Member Avatar for markdean.expres

Guys, is there a way to programatically and more efficiently sort records displayed in a datagridview control? If so, how?

Member Avatar for markdean.expres
0
131
Member Avatar for steve_Student

Hi Here is my question. My project is basically a addition test for 5 to 9 year old children. On my form I have a button which when clicked, it inputs a number from 1 to 10,( which is chosen by the user via an combo box drop down), into …

Member Avatar for steve_Student
0
324
Member Avatar for johnbo100

Hi All So I have 2 forms form 1 has a list of checkboxes on it form 2 needs to check if one of the form 1 checkboxes is checked. Please see the code below: texton is a value passed from a function parameter of type string [CODE] If (Form1.Controls.Item("checkbox" …

Member Avatar for johnbo100
0
421
Member Avatar for msaranya

Hi, For my application I send mails when an idea is submitted. The mails goes in most cases. Sometimes I get 2 errors "Mailbox unavailable. The server response was: 5.7.1 Unable to relay for -" "Unable to send to all recipients." So I am not able to ensure that mail …

Member Avatar for jlego
0
101
Member Avatar for Mike Askew

Not entirely sure if this is even possible as have yet to find a solution anywhere for this but here goes. The form currently looks at a database and pulls a text name from location: [CODE]DS.Tables("Location").Rows(0).Item(4)[/CODE] The resultant text entry from this location, for example: "loc_fvh_Flowers", will then be compared …

0
87
Member Avatar for Tarkenfire

Okay, so as a project for one of my classes I need to make a basic drawing program in VB that can do three things: [LIST] [*]"Draw" with a brush of some sort [*]Clear the screen [*]Perform a flood-fill (paintbucket action) [/LIST] I decided to do the first two tasks …

Member Avatar for Tarkenfire
0
941
Member Avatar for steve_Student

Hi Ia want to show text in a multi-line textbox, but my problem is how do I start a new line when using code like so.. [CODE] TxtBox_TechTalk.Text = " Good Effort.. You Got " & Lbl_TotalMark.Text & " Lets try the next test. Click the Subtraction Test button to …

Member Avatar for steve_Student
0
107
Member Avatar for JohnBo

Hi I am using VB 2010 on a Windows 7 Home Premium PC. I can't get my my smtp code to send an email out. It always comes back with the error: "The operation has timed out" I have both a Google Mail account and a Sky Mail account both …

Member Avatar for JohnBo
0
135
Member Avatar for vanzhyme

Im using this code ! con.Open() cmd = New OleDbCommand("select * from RoomTypeA", con) conreader = cmd.ExecuteReader Do While conreader.Read If conreader.Item("TimeEnd") = Me.TextBox6.Text Then Me.RTypeListA.Items(0).Selected = True Me.RTypeListA.Select() End If Loop cmd.Dispose() con.Close() conreader.Close() i want to select the item in listview that has the same TimeEnd with textbox6.. …

Member Avatar for vanzhyme
0
201
Member Avatar for jmensah

Am a student novices in vb.net. But task to vb.net for school project. I want a code to help me add a No fo Months(this is an integer) from date and the result display in a tet box as a date. I have 2 fields: Months and startdate, the third …

Member Avatar for prvnkmr194
0
181
Member Avatar for VBrulez

Okay, so I have this program I'm working on, and I was wondering if it was possible to disable/enable TextBoxes when specific words are wrtten. I tried doing this, but it errored. I'm a new programmer to VB, I just started a month ago, and I'm doing this for fun. …

Member Avatar for prvnkmr194
0
198
Member Avatar for johmolan

I have a small problem when I edit cells in my datagrid. If I leave my cursor in the cell I just edited. and runds the updatecommand the cell does not update the edited value. But if I leave the cell before I run the updatecmmand it does. Anyone who …

Member Avatar for johmolan
0
115
Member Avatar for odica

ok im making my first app in VB and i saved it and i run the exe file all workes great but when i close the program the exe stays running i can see it in task even after i close the program can some one help?

Member Avatar for SARUBA
0
87
Member Avatar for tasty

I don't really know how to make the code for the following question. I need a program that counts. The program will ask the user what he/she wants to count by and It will then count from 0 to 20 using what ever increment that user has chosen I want …

Member Avatar for tasty
0
121
Member Avatar for drdream100

hi all!! here's the deal: i have this code [CODE] Sub SaveToTextFile() Handles Button1.Click Dim name1 As String = TextBox3.Text Dim st1 As String = TextBox1.Text Dim st2 As String = TextBox2.Text Dim br1 As String = "{" Dim br2 As String = "}" Dim desck As String = br1 …

Member Avatar for razree
0
184
Member Avatar for arezz09

anybody know how to upload or set piture into windows form using code..i want create a button like browse that can chnge background and every i relaunch application,bckground is still there..please anybody..

Member Avatar for codeorder
0
295
Member Avatar for Mike Askew

The program is currently trying to pull information from three different database tables and compiling the information onto one screen, to do this i am using three different connections and a function to handle the data at each stage. The issue is as my code hits PageLoadStage of "2" and …

Member Avatar for Mike Askew
0
150
Member Avatar for AngelicOne

There's an error saying that the combobox is already b, inded to a datasource, thus cannot add new items. This is how I populate my combobox [CODE] cmd = new SqlCommand(); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "usp_distinctevent"; cmd.Connection = con; da = new SqlDataAdapter(); da.SelectCommand = cmd; ds = new …

Member Avatar for Mitja Bonca
0
360
Member Avatar for bettybarnes

pls help me with auto generated alphanumeric pk say i want my customer id to be like these CUST00001 CUST00002 CUST00003 CUST00004 any help is a great help.! Blessings!

Member Avatar for CodeWord
0
2K
Member Avatar for tendaimare

[code] Dim Conn_web As SqlConnection Conn_web = MyFormz.connec.ConnWeb2(dbName) Conn_web.Open() Dim sqlcmd_Insert As New SqlCommand(sql_Insert1 + sql_Insert2, Conn_web) Try sqlcmd_Insert.ExecuteNonQuery() MsgBox("The New Record has been saved.") Catch ex As Exception MsgBox(ex.Message) End Try [/code] [code] Sub Insert_New_Converts_Followups(ByVal strFollowup_No As String, ByVal strFollowup_Date As String, ByVal strFollowup_By As String, ByVal strFollowup_Response As …

Member Avatar for tendaimare
0
145
Member Avatar for JohnDove

I'd like to use data from a text flat-file in my VB app. I have a data dictionary that describes the content of the flat-file. The challenge is that the flat-file structure may change in future (with an associated change in the data dictionary). Not frequently but every 6 months …

0
55
Member Avatar for emaduddeen

Hi Everyone, In my form there is a "Validating" event on a textbox. This form also has a "Cancel" button. Is there a way to not execute the "Validating" event when the user clicks on the "Cancel" button? Please show me code to do this. Thanks. Truly, Emad

Member Avatar for emaduddeen
0
1K
Member Avatar for paulablanca

Hello! Can someone help me? I need to get the product of the 2 columns in the same row but my problem is the values of my datagridview come from database and the number for rows is not fixed. Thank you very much and God Bless. :)

Member Avatar for paulablanca
0
78
Member Avatar for arezz09

anybody know how to load 1 column data from accessdatabase into combobox item...i mean, i have 1 table " info_table and 1 column "product..so in product column have data like nokia and sony"..i want nokia and sony to be load into combobox item or dropdownlist...anybody help me...

Member Avatar for cyberdaemon
0
68
Member Avatar for bettybarnes

hi im having errors with listview binding navigation specifically in last >> and first << here's my code [CODE] Dim inc As Integer Dim MaxRows As Integer Dim dr As DataRow Dim ds As DataSet Public Sub navigaterecords() txtMed_ID.Text = ListView1.Items(inc).SubItems(0).Text txtMed_name.Text = ListView1.Items(inc).SubItems(1).Text txtfname.Text = ListView1.Items(inc).SubItems(2).Text txtMname.Text = ListView1.Items(inc).SubItems(3).Text …

Member Avatar for bettybarnes
0
158
Member Avatar for Joshua Kidd

Hello all, In the game microsoft flight simulator X, there are guages called "XML Guages" and there is a picture of the guage and an XML file which it reads from. What I am wanting to know for VB.NET is: Is there any way to implement this into my program? …

0
59
Member Avatar for bettybarnes

my datagridview displays my records but when i click my next button it display error message " Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index " what should be the problem here?

Member Avatar for Luc001
0
33
Member Avatar for Jake.20

Please i need help in leap year. My problem is, all of the month has a date of 1-31, except for feb. after i choose feb, as my month ( i'm using combo box ) , it removes the date from 29-31, and if i choose a leap year, it …

Member Avatar for Jake.20
0
619
Member Avatar for maccinelyro

hey guys, can you help me? im using a datagridview, and it is connected to ms access. every time i have an input same in the column where primary key is I already got an error. can you guys how to show a messagebox if the Customer Contact number is …

Member Avatar for AndreRet
0
109
Member Avatar for sanjon

I have an online MySQL database, and I need to connect to it using Visual Basic. I have to read the values in the table and edit them. Any ideas?

Member Avatar for AndreRet
0
58
Member Avatar for tukky

whenever i try to run my program i keep getting this one error: [IMG]http://i54.tinypic.com/2n8u815.png[/IMG] it works fine in college but on my laptop at home it doesnt seem to work :( does anyone know whats wrong with it and if theres a solution for it? thanks

Member Avatar for AndreRet
0
103
Member Avatar for bklynman01

I have a set of code that builds a table as the user enters information. This information may be changed more than once before it is considered complete. After the user is done, I want them to click a button, and have that information entered into the SQL database where …

Member Avatar for bklynman01
0
202
Member Avatar for vn412

Hi, I am using vb.net 2010 with access 2007. everything works fine in XP, but when I switched over to windows 7 I did not proper result some queries here is my query: [CODE]Select * FROM tblname WHERE fordt=#13-12-2010# [/CODE]. It shows result in access as well as as in …

Member Avatar for manoj_582033
0
94
Member Avatar for xxxferraxxx
Member Avatar for bettybarnes

i got this error i already checked my table definition [CODE] Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click da.InsertCommand = New SqlCommand("INSERT INTO AdmissionRecord VALUES(@Patient_ID, @Patient_Type, @LName)", cs) da.InsertCommand.Parameters.Add("@Patient_ID", SqlDbType.VarChar).Value = Txtpatient_id.Text da.InsertCommand.Parameters.Add("@Case_Number", SqlDbType.VarChar).Value = txtCaseNumber.Text da.InsertCommand.Parameters.Add("@Patient_Type", SqlDbType.VarChar).Value = IIf(String.IsNullOrEmpty(cboxpatient_Type.Text), DBNull.Value, cboxpatient_Type.Text) da.InsertCommand.Parameters.Add("@LName", SqlDbType.VarChar).Value = …

Member Avatar for CodeWord
0
490

The End.