20,278 Topics

Member Avatar for
Member Avatar for dre-logics

[TEXT] I have in Visual Basic 8.0 a MaskedTextBox1 with the mask "00/00/0000" (short date) I have in my MYSQL table a fields : "name" datetype CHAR(15) [COLOR="Red"]"birth-date" datetype DATE[/COLOR] "birth-place" datetype CHAR(15) I have one record: Name birth-date birth-place Andre [COLOR="red"]01-01-1974 [/COLOR]Amsterdam [/TEXT] [CODE] Me.TextBox1.DataBindings.Add("text", myData1, "name") Me.MaskedTextBox1.DataBindings.Add("Text", myData1, …

Member Avatar for dre-logics
0
74
Member Avatar for Nada_ward

error when get the checked value of checked listbox array "Object reference not set to an instance of an object." what is the problem in my code [code=vb.net] Public Class Form1 Dim c1b1 As CheckedListBox() Private Sub btnAddItems_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim l As …

Member Avatar for Nada_ward
0
84
Member Avatar for realone

cmd = New SqlCommand(sql, myConnection) reader = cmd.ExecuteReader() While reader.Read() For Columns = 0 To reader.FieldCount - 1 Category = reader.Item(Columns) 'READ COLUMN FROM DATABASE cmbfld.Items.Add(Category) ComboRow += 1 Next End While this code is populating the records instead of the field name.what can i do pls?

Member Avatar for kvprajapati
-1
111
Member Avatar for manish_rms

I have made one crystal report.In which i hv used sql server 2005 db and ms access db .It works properly but it doesn't work with vb.net. I want to know how to make connection string for both db for a single report in vb.net.

Member Avatar for kvprajapati
0
194
Member Avatar for doomfrawen

Hi everyone, I have to make a program that reads a txt file after reading it, show it in a richtext box and in another tab make the average of the grades the input received sort it by the student id and then in the same rtb sort it by …

Member Avatar for sknake
0
145
Member Avatar for Ole Raptor

I am wanting to display the PC's System Directory in a treeview. I have been searching for how to do this for some time now without finding anything. if anybody can help me out i would greatly appreciate it. thanks

Member Avatar for GeekByChoiCe
0
138
Member Avatar for leroi green

Yeah... the semester is on! lol but anyway, i'm trying to find a solution manual for my text and wonder where you guys get 'em? i'm a decent googler and haven't came up on anything yet. my text: Microsoft Visual Basic 2005 RELOADED: Advanced by: Richard A. Johnson/Diane Zak any …

Member Avatar for leroi green
0
61
Member Avatar for Steammike

Hi expert, I'm facing a problem when i try to update the database, below is my code: Dim conn As New OleDb.OleDbConnection Dim strSQL As OleDb.OleDbCommand Dim ra As Integer Dim num conn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;" & _ "Data Source=C:\employee.mdb" conn.Open() strSQL = New OleDb.OleDbCommand("Update [emp] Set e_name = '" & …

Member Avatar for Steammike
0
277
Member Avatar for ggl0rd

What mean that error? can someone help me? [B] The connection was not closed. The connection's current state is open[/B] [CODE]Private Sub btnCari_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCari.Click con.Open() sql = ("SELECT * FROM RekodAnggaran WHERE [NoIC]='" & txtNoIC.Text & "'") da = New OleDb.OleDbDataAdapter(sql, con) …

Member Avatar for samir_ibrahim
0
97
Member Avatar for Arunabh Nag

I just found out that project modules in visual studio can be built on separate languages e.g. VB.NET and C#.NET. This can be done by publishing the module as a dll. Q1. How do i integrate the separate modules. Q2. Is the process cumbersome? Q3. If the project is a …

Member Avatar for danielagaba
0
102
Member Avatar for ggl0rd

why my coding find data only can find 1 data, then can't find any other data. if i want find other i need restart my vb.net.. what the problem anyone can help me please? [CODE]Private Sub btnCari_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCari.Click sql = ("SELECT * …

Member Avatar for GeekByChoiCe
0
122
Member Avatar for ajschoeman111

Hi I am a new bee, I am trying to insert data into a database white the use of parameters. When I run this code I get an error message: "No value given for one or more required parameters." Any help will be appreciated conn.Open() sql = "INSERT INTO Categories(Name) …

Member Avatar for ajschoeman111
0
98
Member Avatar for k.vijayakumar

hi friends,i am using dropdownlist in gridview.i am populating it using [code] Dim dsUserRoles As DataSet = objUser.GetRoles() CType(gvUsers.Rows(gvUsers.EditIndex).FindControl("ddlRoleName"), _ DropDownList).DataSource = dsUserRoles CType(gvUsers.Rows(gvUsers.EditIndex).FindControl("ddlRoleName"), DropDownList).DataTextField = "RoleName" CType(gvUsers.Rows(gvUsers.EditIndex).FindControl("ddlRoleName"), DropDownList).DataValueField = "RoleId" CType(gvUsers.Rows(gvUsers.EditIndex).FindControl("ddlRoleName"), DropDownList).DataBind()[/code] but when iam runnig if had some no.of.cols and when i click on editlink dropdownlist is replacing …

0
79
Member Avatar for xentamax123

suituation: having employee perrsonel details as a database(msaccess) by selecting empno in combobox and the button(button name:showbutton) was clicked.............. question: how to retreive records in databaseand to display that record in textboxes?

Member Avatar for ithelp
0
26
Member Avatar for pao09

can someone please check my code because it doesnt update my database.. i set the room no. as the primary key.. can you please help, its urgent.. i need it tomorrow.. thanks. [CODE]Dim con As New OleDb.OleDbConnection con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=..\data\YayaDB.mdb" con.Open() Dim query = "UPDATE Rooms SET …

Member Avatar for pao09
0
122
Member Avatar for mrjonie

Hi Friends, I am having an issue with the login form for our application. Its a windows app, developed in VB.net When the app loads, from the main form, a login screen is invoked, but the issue is , login screen looks like its having focus and the user id …

Member Avatar for sknake
0
91
Member Avatar for ShadowZ00

I have been trying for about 3 days now trying to find a way to open multiple instances of a simple program and have had no luck. It is being used to log into a site multiple times and the web browser component uses the same cookie which is stopping …

Member Avatar for sknake
0
80
Member Avatar for WellCom34

hey guys need a little help. i tried to save image into my database, it saves without error but when i tried to check if it saves in mysql, the data about my picture id save, but the image i save return a value of 0. please help me with …

Member Avatar for sknake
0
94
Member Avatar for ggl0rd

i got bit calculate coding.. i want make my output be double like 100.30(this is double?) the calculate data is from database. i want the result at lblPremiumJP.Text be double anyone can help me? [CODE]Private Sub cmbPremium_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbPremium.SelectedIndexChanged con.Open() sqlPremium = "SELECT …

0
64
Member Avatar for ggl0rd

who know how to make data show at textbox from this code. from the below code, i only can check if that data got in database or not, if got it show a msgbox. but i want the all data show at text.. [B]example[/B] i search data use a NoIC …

Member Avatar for ggl0rd
0
134
Member Avatar for k.vijayakumar

i am doing onlineeducation project.in that,how to send mails to every student from our mailserver daily at 12pm without our interaction.i am using consoleapplication in vb.net.can anyone please help me thank you in advance

Member Avatar for k.vijayakumar
0
169
Member Avatar for DAWNIE

Hi, currently i'm able to save an image that I have draw into SQL but I would like to knw if it is possible to update new draw picture to replace the old picture? how can i modify this code in order for it to save instead of create another …

Member Avatar for sknake
0
123
Member Avatar for k.vijayakumar

hi friends,i entered some text in text box.later another one came and entering some text.at that time as intelensence my words are coming.how to clear them.i asked my sir,he said to clear the cache of textbox.but how to do it.if not understood,sorry for my language. ex:in gmail loginname,we will get …

0
97
Member Avatar for k.vijayakumar

hi friends,in my project when i am clicking on the browser back button i am redirecting to-- page cannot be displayed--but i want to redirect to my login page.i am using vb.net in my project. i wrote in source file <script type="text/js" language="javascript"> history.go(1) </script> but not working

0
82
Member Avatar for Wenners

Hi, I strange thing is happening in my app. I have a main form (IsMdiContainer =True) containing a gridview, which when double clicking a record opens a form in Modal state containing a TabControl. When I close down form 2 and select another record, the form opens with the new …

Member Avatar for samir_ibrahim
0
124
Member Avatar for chanlichin

Hi, i am now want to insert data(fault and visual(bold)) into the table. After done the calculation, i would like to insert the fault and visual value into my table summary. My field name in table summary for fault(fo_ratio) and visual(visual) So below is my coding. How can i save …

Member Avatar for Kalpsanu
0
98
Member Avatar for q8_dreamy

Hi This is first time I use ajax controls I put script manager control and calender extender then I chosed text box and wrote in calender extender target controlID: TextBox1 but when I run I got nothing when click on textbox!

Member Avatar for q8_dreamy
0
70
Member Avatar for sonia sardana

hi i want to know that how to use sound like query in VB.net with access. EXAMPLE (SQL) - [code] create table names (name varchar(100)) insert into names values ('ritu') select * from names where soundex(name) =soundex('reetu') [/code] OUTPUT- [code] ritu [/code]

Member Avatar for dkmansion
0
734
Member Avatar for minyax_mu

helo..i have a problem with my system.. i have try many time and i cannot solve the problem..here is my question Use one dimensional array to solve the following problem: A company pays its salesperson on a commission basis. The salesperson receives RM200 per week, plus 9% of their gross …

Member Avatar for minyax_mu
0
106
Member Avatar for nolesce

I had an issue getting data beck from a popup form and was assisted with a solution from Stevoni (thanks again). It has led to another problem however. In trying to send data to the popup I have over loaded the constructor to get the new data across. It appears …

Member Avatar for Stevoni
0
103

The End.