20,284 Topics

Member Avatar for
Member Avatar for littlelou

What i'm using; VB2008 express, Access 2003 DB, Objective to clear the datagrid view after updating. This should happen when the user clicks the OK button "which confirms the update". Below is what I have. I see in some forums they use the .Clear and some other options so what …

Member Avatar for littlelou
0
772
Member Avatar for Mike Bishop

i have a private sub that reads 4 lines of data from a text file, and then uses whats read and stores them in varibles. see below [CODE] Dim FileName As String = configfileV Dim TextFromTheFile As String ' Whole text Dim Lines() As String ' File splitted to lines …

Member Avatar for dxider
0
256
Member Avatar for bluehangook629

I am trying to write a code which will combine these values and format it in the following format to be used as control/validation ID. I have written a line of code that will merge these values together into a long string but I can't get the zeros to fill …

Member Avatar for bluehangook629
0
124
Member Avatar for MikeTackett

I'm looking for any thoughts on how I am currently doing error handling in my VB.NET programs. Basically I put code in a try/catch, then call an error handling sub passing the exception and a string. The error handling sub gives an error message and writes to a text file: …

Member Avatar for Pgmer
0
151
Member Avatar for twigan1015

I don’t know if this is really possible, the program can not use a mouse or anything that requires the use of the tab key (this would be considered a use of the mouse), is there a way to still add input into textboxes and hit buttons, kinda like the …

Member Avatar for MikeTackett
0
131
Member Avatar for crazycat503

I am trying to connect to SQL SERVER 2008 from vb.net but failed with Error 40. If I try to connecton to server\sqlexpress, error 26 is raised. step by step guide or tip would be helpful.

Member Avatar for debasisdas
0
71
Member Avatar for raffy3

How could you, update the fields on database if its data type is Y/N, and the method of updating is a checkbox??

Member Avatar for Jx_Man
0
75
Member Avatar for akamini

I feel guilty about posting again but I need help again and I have tried other sources of help e.g google and asking someone who is familiar with vb.net but still can't find the solution to it. It must be another simple fix but I cant find any reference to …

Member Avatar for raffy3
0
339
Member Avatar for ryan311

[CODE] Private Sub AddIngoing_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load loadprodin() End Sub Private Sub loadprodin() Dim i As Integer objCon = New SqlConnection(conStr) Try objCon.Open() obj = objCon.CreateCommand() str = "Select * from product ORDER BY p_code" obj.CommandText = str sda.SelectCommand = obj sda.Fill(ds, "product") dt …

Member Avatar for Jx_Man
0
167
Member Avatar for tstory28

I am quite sure I am gonna feel real dumb when I found where I am screwing up but I am ALMOST done with a fraction calculator (part of a complete algebraic calculator I am making) and am stuck when trying to reduce my fraction because when I hit the …

Member Avatar for tstory28
0
186
Member Avatar for DiracDelta

I have a fun family app dealing with the odds of winning the lottery. Seems simple, right? I'm having a problem with the following (I'm sure a simple solution is evident but all help appreciated): 12 variables, 6 user chosen and 6 random generated, all integers. Want to perform comparisons …

Member Avatar for codeorder
0
95
Member Avatar for gravikiran

I AM A NEWBIE TO VB.NET. RECENTLY I HAVE STARTED PROGRAMING AN APPLICATION CALLED "OFFICE-MANAGER". THIS IS A PROGRAM WHICH DEALS WITH ACCESS 2003 DATABASE. I HAVE A VARIETY OF OPTIONS LIKE FILE MANAGER, MAIL MANAGER, ETC. I AM STILL AT THE STARTING LEVEL. BASIC USER INTERFACE IS READY AND …

Member Avatar for IrshadIkhlas
0
259
Member Avatar for man924

the code is below. the system said me that the insert into sql syntax error any solutions? [CODE] Dim dbProvider As String Dim dbSource As String Dim constr As New OleDb.OleDbConnection Dim sql As String Dim ds As New DataSet Dim da As OleDb.OleDbDataAdapter form load code: dbProvider = "PROVIDER=Microsoft.Jet.OLEDB.4.0;" …

Member Avatar for IrshadIkhlas
0
274
Member Avatar for hafizurahman

i use ms access as database and i dont know why my code not working.. here some of code [CODE]Private Sub btnSimpan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSimpan.Click Dim conAccess As OleDb.OleDbConnection conAccess = New OleDb.OleDbConnection conAccess.ConnectionString = "Provider=Microsoft.Jet.OleDb.4.0;Data Source=" & Application.StartupPath & "\kptm.mdb" conAccess.Open() If txtNamaP.Text …

Member Avatar for IrshadIkhlas
0
141
Member Avatar for tstory28

I am starting to feel completely dumb when it comes to VB.Net coding. I am using Visual Studio 2010 and am trying to compare the numbers in 2 listboxes. If an item from list A matches an item from list B, I want it to add that item to List …

Member Avatar for Unhnd_Exception
0
357
Member Avatar for Joshua Kidd

Hey, I am Creating an Application that has one button and a listbox, and I am using the FSX SDK. The button has Code that Extracts Data from the FSX game and Adds the Items to a ListBox. But When I click the Button and Am in game, it gives …

0
66
Member Avatar for aljiro

Hi, Anyone know how to access the contents of a password protected zip file via VB.Net? Like read, write, modify the contents as if its a regular folder. I have absolutely no clue how to the above. Its the final missing piece from my program. Any help would be very …

0
99
Member Avatar for diana_j86

How to fill a combobox with a data stored in a table in sql server?.... Can we use stored procedure to do so? I tryed this code but it keeps giving an error message: "An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll" What does that mean???? My code: Private …

Member Avatar for kazekagerandy
0
783
Member Avatar for jamshed ahmed

Hellow and hi i have one filed that makes total sum of bill and there is parameter serverice charges of type number now when i am creating formula like this {#total}+{?servervicecharges} then i get error that result of the formula can not be an array how to do this thx …

0
65
Member Avatar for vb2learn

Well, i really don't know, maybe the title would be in appropriate. Here's my problem: Textbox1.text = [CODE]abcd sadsadasdas dsad as das d 1234[/CODE] After parsing between [TEX]abc[/TEX] and [TEX]1234[/TEX] It shows [TEX]sadsadasdasdsadasdasd[/TEX] However it should also contain spaces. Here's my piece of code: [CODE] Dim daniweb As String = …

Member Avatar for Smith5646
0
93
Member Avatar for pratibhamohanty

Hi, can anyone out there help! I have a default form and a button. On click of that button I want to export a particular crystal report(without actually displaying it) to pdf format and store it in a folder named as temp. Is it possible? Thanks in advance,

Member Avatar for Ronln
0
3K
Member Avatar for Shantanu88d

Hi, I have a web form. On it I am generating a gridview through a stored procedure. Now it has it's DataSource set to dataset object ds. After generating this gridview. I want to generate an xls file. The code for that is correct. But since I am calling a …

Member Avatar for crishlay
0
373
Member Avatar for rustyone

I am using vb.net visual studio 2010 I have two comboboxes in the datagrid - one for Country and the other for State Province. Obviously the Country combo box controls what state/provinces to display. The trouble for rows with different countries - when the user is changing the state for …

Member Avatar for richardd
0
315
Member Avatar for shilp

I am using VB.NET using Visual Stduio 2005. From a Windows application, how to execute another form? Thanks for your help.

Member Avatar for tomato.pgn
0
190
Member Avatar for msqueen082

hello I wrote this code using classes and it keeps giving me the error message : a nullreference exception was unhandeled/Object reference not set to an instance of an object. I am trying to add stock code and stock shares to the list of transactions using a currClient As Client …

Member Avatar for msqueen082
0
118
Member Avatar for Trle94

As Title say i need help to make code to i get in application listview if Recyclebin has some files in it their name if not then there is no listview... Do you have any idea guys? Tnx

0
63
Member Avatar for baldandwild

Having problem make last if an statement work in the code. the variables in the if statment are doubles but the ide keep telling i need a proceeding if statement. but is already there it is in the last if statement of the code [CODE]Public Class Form1 Dim Totals As …

Member Avatar for baldandwild
0
210
Member Avatar for eldaerys

Can anyone show me how to get an Iamge from file. I tried using `image.fromfile"x.jpg"` but it didn't work when I used it in an array. Anyone have any suggestions on how to do it?

Member Avatar for Luc001
0
62
Member Avatar for battlex2010

Is there any way i can pause a file download in my vb program?? I have tried both the http method and the my.computer.net method with no luck. I have also tried pausing the background worker by this method:[URL="http://social.msdn.microsoft.com/Forums/en-US/vblanguage/thread/407a38ec-b012-4628-9627-c0aa3cd87a42/"]http://social.msdn.microsoft.com/Forums/en-US/vblanguage/thread/407a38ec-b012-4628-9627-c0aa3cd87a42/[/URL] But even if the bgworker is paused the download goes on..... …

Member Avatar for battlex2010
0
277
Member Avatar for code07

a. Create a database named “techdb” and create a table as “Personal” with Employee No, Name , Age & Salary b. Insert 2 records to the table c. Design a form in VB.NET e to Add, delete and Update records

Member Avatar for Luc001
-3
134

The End.