20,899 Topics

Member Avatar for
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
86
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
113
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
196
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
150
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
146
Member Avatar for Ana D.

Hi, In my page I have a formView with <ItemTemplate>, <EditItemTemplate> and <InsertItemTemplate>. In the <ItemTemplate> I have a linkButton "Edit" that, when clicked by the user, should show the FormView in Edit Mode. I have the following: [code=ASP.NET] <asp:LinkButton ID="EditLinkButton" Text="Edit" OnClick="EditLinkButton_Click" runat="server" /> [/code] And in the code …

Member Avatar for Ana D.
0
117
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
62
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
281
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
99
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
107
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
125
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
100
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
83
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
31
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
133
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
94
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
86
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
95
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
66
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
137
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
171
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
125
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
101
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
86
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
127
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
102
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
75
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
770
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
109
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
104
Member Avatar for Steammike

Hi expert, i facing a problem when i try to connect to database by using vb.net below is my code: Imports System.Data Imports System.Data.OleDb Public Class Form1 Dim dSet As New DataSet Dim da As OleDb.OleDbDataAdapter Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click Dim User, …

Member Avatar for Steammike
0
331
Member Avatar for mania_comp

I want to know that what is the MAXIMUM number of Forms that can be added in a single project in VB 6.0 and in VB.NET also. any ideas? :)

Member Avatar for hbmichael
0
157
Member Avatar for Atove

Hi all! I'm developing some software for my current employer and i'm looking to incorporate an option that changes the font size across all forms for accessibility purposes. Now I have managed to make it work; however the code appears long and inefficient. My question to you guys is: Is …

0
53
Member Avatar for coollife
0
53
Member Avatar for BlkR

Hi guys, Currently I am updating a listview with data in it via clicking on the selected row and displaying that row data onto textboxes and then updating it. What the data has is ID number follow name and QTY. What I want to add to this function is to …

Member Avatar for samir_ibrahim
0
5K
Member Avatar for atplerry

1.) I have problem uploading file. it work sometime and in the other hand will not work give and error that cannot find the path 'c:/upload/' 2.) i want to upload video file i could not upload video file please could anyone help me with VB.Net coding to upload video …

Member Avatar for saj_amo
0
129
Member Avatar for PhilipJohn

Hi Everyone, MY name is Philip I am a Programmer Analyst. BS in CIS. I am a mid level VB.NET programmer and MCITS Certified in SQL Server. Glad to meet everyone, PhilipJohn

Member Avatar for debasisdas
0
25
Member Avatar for Untam3d

Well basically, I edited my patcher/launcher application that is used with a program, and now, when I use it, I get no errors, but it appears in task bar... when I click it... nothing happens. The odd thing is that I am using Windows 7, which shows a preview when …

0
42
Member Avatar for PhilipJohn

I have a Folder on the Web Server that has files that have been uploaded by users via my Web App. I would like to create a button click event that would download the Folder (Directory) and all of its contents. Currently I have a link on a web page …

Member Avatar for kvprajapati
0
84
Member Avatar for hery

[code] Dim workspace(1 To 4) As Long ' (1)=left (2)=top (3)=right (4)=bottom SystemParametersInfo &H30, 0, workspace(1), 0 ' &h30 = get workspace size Dim X As Long, Y As Long, w As Long, h As Long X = workspace(1) * Screen.TwipsPerPixelX Y = workspace(2) * Screen.TwipsPerPixelY w = workspace(3) * …

Member Avatar for sknake
0
99
Member Avatar for vaq

Basically, what I want to do is... Have a listbox with a list of directories and the executable name in, e.g. "C:\Directory1\file.exe" "C:\Directory2\file.exe" "C:\Directory3\file.exe" And then using My.Computer.FileSystem.CopyFile(Application.ExecutablePath, [Each List Item Here], True) To copy itself to the directories I want to :) How can this be done? Thanks

Member Avatar for sknake
0
87
Member Avatar for chanlichin

Hi, I am now want to retrieve only year from my table(summary),field name(dates). So i am facing the problem on how to display the year in combo Box. my sql statement as below. Thanks If i put [b]SELECT DATES[/b], that means day,month and year will display. So, what should i …

Member Avatar for chanlichin
0
158
Member Avatar for milhero

Hi Professionals, I found these tutorials and codes regarding 'Retrieve E-Mail Through POP3' on an e-book entitled 'Microsoft Visual Basic .NET Programmer's Cookbook'. I understand what each functions/codes are but how do i design the GUI/interface to fit the codes? Please advise. Thank you in advance. Best Regards, Md Azmil …

0
70
Member Avatar for LillyPooh

hey =) I'm working on a vb.net application. One of the forms has a few tabs, each having multiple text boxes in it. Because I have so many text boxes, I'm sort of limited when it comes to their size, while I'm allowing the user to enter up to 4000 …

Member Avatar for GeekByChoiCe
0
105
Member Avatar for TheBrenda

I have a DLL that copies an Access database, opens it, reads it, and then closes it. The second time through it is unable to copy the Access DB because the EXE has an open handle to it. The EXE does not reference the Access DB at all, it just …

Member Avatar for sknake
0
115
Member Avatar for realone

Pls see my code.Nothing is displaying in the grid [code]Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim connString As String = "Provider=SQLOLEDB;Data Source=MSALAMEEN;uid=sa;pwd=Sa1;Initial Catalog=Biometric" Dim myConnection As OleDbConnection = New OleDbConnection myConnection.ConnectionString = connString Dim da As OleDbDataAdapter = New OleDbDataAdapter("Select ID from bdata", myConnection) …

Member Avatar for samir_ibrahim
0
117
Member Avatar for mister p

How does one backup an Oracle database? which files do I backup? and which recovery Procedure I use?

0
119
Member Avatar for sweetsasthi

Hai, I don know how to store data from datagrid to SQL database. I also don know how to find the number of records in dataset or datareader. for an example [B]myCommand = New SqlCommand("Select * from discounts", myConnection) dr = myCommand.ExecuteReader()[/B] How can I know whether there is any …

Member Avatar for sweetsasthi
0
95
Member Avatar for Oebenezer
Member Avatar for vampke

Hello good people of vb.net, I'm experiencing problems with an application I'm writing. I have a login dialog that is loaded in the main form's load property, like this: [CODE] Private Sub FrmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' show login if configured If My.Settings.login Then …

Member Avatar for vampke
0
129

The End.