20,285 Topics
![]() | |
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 … | |
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 … | |
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 … | |
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.. … | |
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 … | |
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. … | |
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 … | |
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? | |
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 … | |
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 … | |
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.. | |
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 … | |
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 … | |
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! | |
[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 … | |
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 … | |
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 | |
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. :) | |
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... | |
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 … | |
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? … | |
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? | |
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 … | |
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 … | |
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? | |
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 | |
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 … | |
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 … | |
Hi, How to move a form without controlbox? Help please ... Thanks | |
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 = … |
The End.