20,899 Topics

Member Avatar for
Member Avatar for keny2020j
-1
75
Member Avatar for jallan2010

Sir, I am using the following code in my vb.net while using that code it will show me syntax error. [CODE]Private Sub updateinfo() Dim con As OleDbConnection Dim cmd As OleDbCommand Try con = New OleDbConnection(connectionString) cmd = New OleDbCommand("UPDATE [Lani] SET [First Name] = '" & txtfirst.Text & "', …

Member Avatar for kvprajapati
0
125
Member Avatar for automata

I am trying to read the matrix (please see this link [URL="http://www.clcbio.com/scienceimages/img8.png"]http://www.clcbio.com/scienceimages/img8.png[/URL]. This matrix will be in text based file. How can I read this file and create a matrix and fill it in my code. The other question I have is that the matrix has first row and column …

Member Avatar for ohsosexy
0
100
Member Avatar for Dimansu

Hi, I have an IIF function in my textbox expression.This is my code. IIF(IsNothing(Fields!Duration.Value) , "Not released ",Int((Fields!Duration.Value/12)).ToString()+ "Y " +(Int(Fields!Duration.Value) Mod 12).ToString() + "M") But when Duration is null the true expression doesnt work instead it displays "#error".Can anyone help me to fix this? Thanx in Advance

Member Avatar for kvprajapati
0
152
Member Avatar for Bold Eagle

I have the following code: tb_Job_No.Text is a combobox This is the code [code] Public Sub RepCD_process() ssql_Job = "SELECT * FROM Rep_Dist" ssql_Job = ssql_Job + " WHERE (Job_Number = '" & tb_Job_No.Text & "') " Dim Main_Form As New Main_Form With Main_Form .DC_Reps.Open() .DS_RepDist1.Clear() .DA_RepDist.SelectCommand.CommandText = ssql_Job .DA_RepDist.Fill(.DS_RepDist1) …

Member Avatar for lagspike
0
278
Member Avatar for davydick

Hi I have newly installed VB 20008 Express. What extras do I need to have to allow me to create standalone exes? This for giving to fellow model railway club members and not for commercial use. Thanks Davy

Member Avatar for Dukane
0
74
Member Avatar for TofiLuk

Hi I have a problem with this code. I'm trying to save a values in the database.. When I click the save button the table is being updated and showing the new values I entered. But the problem is it is not actually saved in the database, when I re-run …

Member Avatar for TofiLuk
0
123
Member Avatar for jackiejoe

I am trying to move through a list "TodaysCard" and print the TimeOfDay.ToString into the first column of every row and to only create the amount of rows that are needed. But am a bit of a novice when it comes to this and can only get it to display …

Member Avatar for jackiejoe
0
107
Member Avatar for امة الرقيب
Member Avatar for muthuivs

Hi Guys/Gals, I am writing a program that needs the user to scan in documents using either adobe or the software provided by the scanner makers (such as travelscan pro, etc). My program needs to have have button that says "SCAN DOCUMENT", and when it is pressed I need the …

Member Avatar for kinwang2009
0
391
Member Avatar for RSP86

When running the code the data does not save within the data base there are a few errors with in the code if someone can give the code a look over, that would be great thanks in advance.

Member Avatar for RSP86
-1
81
Member Avatar for nokesc

I'm somewhat new to .net programming but I have an ok background in development. I'm just trying to write a simple vb.net app that can make system calls but I get this . . . System.Security.SecurityException was unhandled GrantedSet="<PermissionSet class="System.Security.PermissionSet" version="1"> I have no idea how to give my app …

0
37
Member Avatar for Zandermander

Hey guys, i'm working on a program, kind of like a download manager. I have a background worker set up that handles the download, and it works great the first time, but the second time it just sits and times out. [code] Function DL(ByVal sURL As String, ByVal pProgress As …

0
70
Member Avatar for j_808

Hi, i want to know how i would go about updating a row on a datagrid. with the data being databinded in the text boxes and the fact that i can move through the records using the databind techniqu. I have tried through trial and error and still havent got …

Member Avatar for drewpee
0
72
Member Avatar for needanswer

This project is to load same form to managers, and the managers will start this same forms to manage a job. 1. How can you load the same blank form to different managers? 2. This form has the datagridview, textbox, combobox, how do you save the values to the tables …

0
54
Member Avatar for jonniebl

I am writing a program that loads a web page then get data from the page for calculations. I can navigate to the web page but the code does not wait for the page to completely load before proceeding. I need a way to have the program wait for the …

Member Avatar for jonniebl
0
260
Member Avatar for j_808

Hi all, just having problems with my next, previous, last and first buttons on my form. there not working but i am not sure where i am going wrong because i am a beginner. When i press any of the buttons it says 'there is no row at position 1' …

Member Avatar for j_808
0
103
Member Avatar for 0xbadcode

Hello mates, I want to dig deeper on WebBrowser Control programming, I searched in Microsoft's MSDN for advanced WebBrowser Control, But I didn't find the one that I want to take-up, It's about Converting Web Objects to its own type, let's say Flash Embed object to type of Flash will …

0
73
Member Avatar for rajb1

[I]<<split from [URL="http://www.daniweb.com/forums/thread245564.html"]here[/URL]>>[/I] Hello is it possible someone could post code that does the above in VB - i can't find any on the net - it's all in c# - which has some functions i can't seem to translate to VB such as cellpainting!!! Thanks

0
34
Member Avatar for mshdpotato

How can I get the value of the year, month and/or day from the DateTimePicker if I'm trying to compute for the age? I've tried [CODE] Dim x As String = "" x = Date.FromOADate(Val(DateTimePicker1.ToString)) MsgBox(x) [/CODE] But it only gave me 12:00 AM. and [CODE] DateDiff(DateInterval.Year, DateTimePicker1, Now.Date) [/CODE] …

Member Avatar for drewpee
0
91
Member Avatar for shrighead

[code] Dim da2 As OleDb.OleDbDataAdapter Dim cols As Integer = Attendance_QueryDataGridView.ColumnCount Dim rows As Integer = Attendance_QueryDataGridView.Rows.Count Dim a(cols) As String Dim dt As New DataTable("Attendance") da2 = New OleDb.OleDbDataAdapter(sql, con) da2.Fill(ProjectDataSet, "Attendance") Dim NewRow As DataRow NewRow = ProjectDataSet.Tables("Attendance").NewRow For z = 0 To cols - 1 a(z) = …

Member Avatar for shrighead
0
177
Member Avatar for flushfire

I am trying to send keystrokes to a window/s that is not in focus using sendmessage. Finding the window's handle using its name is simple enough, however what I want is to get the handle by clicking on the window or puting that window into focus (whichever is easier) bec. …

Member Avatar for flushfire
0
150
Member Avatar for j_808

i am trying to add a edit button where the data displayed in the textboxes from the selected record in the datagridview on vb gets update if i change any details when i press the edit button. problem is when i click the button it says 'There is no row …

Member Avatar for j_808
0
91
Member Avatar for kacebaza

hi i've got proble with my code, crystal report wont show data here is my code " [code] Try Dim path1 As String = constring '" '' path '' for normal ADO Concept '' The current DataSource is an ADO '' change path of the database rpt.DataSourceConnections.Item(0). _ SetConnection("", "" …

-1
49
Member Avatar for GowriJai

I have created a Cryatal Report and set its Access database(.mdb) during design time. I have imported the crystal report into VB.NET. now i want to know how can we set the database path during runtime. The database to which i've linked will change its path and name every year. …

Member Avatar for kacebaza
0
130
Member Avatar for adrianSigamoney

I would like to find all the "About" files of all programs stored on my hard drive. If you open a program, click on help and select "About". It provides the name, version and date written etc. I would like to extract and store in DB. The store in DB …

Member Avatar for kvprajapati
0
64
Member Avatar for Dorayaki

Hello... I want to ask how to change text from richtextbox/textbox ? For example I have the sentences "The bird fly away" I want to change it into [COLOR="red"]Fly [/COLOR]bird [COLOR="red"]the [/COLOR]away I tried some code like this [CODE]TextBox2.Text = TextBox2.Text.Replace(Fly, The) TextBox2.Text = TextBox2.Text.Replace(The, Fly)[/CODE] it become The bird …

Member Avatar for kvprajapati
0
158
Member Avatar for hiz460

Hi, Im trying to add a code which adds a record for me and then saves it. I am also trying to add a code which deletes the record for me. So far, my "Add" button, clears the form, which is what I want. Then when I click on save, …

Member Avatar for hiz460
0
236
Member Avatar for hiz460

Hi, Im trying to add a code which adds a record for me and then saves it. I am also trying to add a code which deletes the record for me. So far, my "Add" button, clears the form, which is what I want. Then when I click on save, …

Member Avatar for hiz460
0
194
Member Avatar for Artgenos

We use Netmeeting alot where I work and to make life easier I am trying to write a program that will find the machine name, IP address and MAC address with just a login name. Right now I can get the IP address from the DNS entry. But I am …

Member Avatar for peter_budo
0
144
Member Avatar for 0xbadcode

Hello mates, I want to dig deeper on WebBrowser Control programming, I searched in Microsoft's MSDN for advanced WebBrowser Control, But I didn't find the one that I want to take-up, It's about Converting Web Objects to its own type, let's say Flash Embed object to type of Flash will …

0
139
Member Avatar for xfrolox

To Read and Write [CODE]#Region "API Calls" Private Declare Unicode Function WritePrivateProfileString Lib "kernel32" _ Alias "WritePrivateProfileStringW" (ByVal lpApplicationName As String, _ ByVal lpKeyName As String, ByVal lpString As String, _ ByVal lpFileName As String) As Int32 Private Declare Unicode Function GetPrivateProfileString Lib "kernel32" _ Alias "GetPrivateProfileStringW" (ByVal lpApplicationName As …

0
67
Member Avatar for xfrolox

Well I'm trying to make a tool for a game for learning purposes and i can't figure it out, I have Checkbox1 and a button The button saves the ini with the checkbox1.CheckState correctly and when i open it the Checkbox1.CheckState is checked so it works, but when i Delete …

Member Avatar for xfrolox
0
271
Member Avatar for Bold Eagle

How do you change the size of a listview when the number of rows grow when a different where select is commanded on textchange. I have a textchange on coustomer name which fills the listview with just the names that start with the letters as they are typed in, this …

Member Avatar for NeilClayton
0
86
Member Avatar for london-G

hello I would like to know if it is possible to store an array within a structure. For examples for recording people with more than one name. Like this: Structure Product_Reccord Dim PNames(3) as string end structure It is giving me an error, help please!!

Member Avatar for NeilClayton
0
96
Member Avatar for awtz123

hey, im new here and i need help in installing vb.net express edition 2008 in windows virtual pc - win xp, i use win7ultimate anyway. When install, it goes like this. please help i badly need to run it. I have installed MSsql 2000 and 2005 in virtual xp w/ …

Member Avatar for awtz123
0
110
Member Avatar for ana_eht

hi everyone i'm sorry i know i am asking simple questions but i really cannot understand the problem with my code here i wrote a code for the cash register ( except two buttons : clear and delete ) but it doesn't work i think something is wrong with the …

Member Avatar for ana_eht
0
153
Member Avatar for chesterbarry
Member Avatar for tanvirahmad

Hi Experts In VB .net form, How I can close/off Title Bar and how can set border width = 0 or close Border

Member Avatar for kvprajapati
0
107
Member Avatar for eyein

i'm trying to create a rogramme that will compare the arrays between richtextbox1 and richtextbox2. if there is any error(s),then i will highlight the current array line in the richtextbox1. e.g.,if array1(7) <> array2(7) then i will highlight only array1(7) which is in the richtextbox1.how can i do this...? I …

Member Avatar for kvprajapati
0
93
Member Avatar for Manolo310

Hi, i need to search all cells inside a dataviewgrid in VB.net starting with "www" , once i found one cell apply a background color to the complete row and get the next cell with the same String. Part of my code: *********************** [code] Protected Sub Page_Load(ByVal sender As Object, …

Member Avatar for kvprajapati
0
118
Member Avatar for jonniebl

I am new to visual basic 2008 and am trying to navigate to a web site and automatically enter my username and password from within a visual basic program. Then I want to navigate to another page and fill data in various fields on the page. I can navigate using …

Member Avatar for kvprajapati
0
155
Member Avatar for technogeek17

Ok, I am relatively new to Vb.net, but I am getting along. I have an application that I wish to make an updater for. The updater needs to be able to read Visual Basic code files and insert the code into the application. Is there any way to do this? …

Member Avatar for kvprajapati
0
105
Member Avatar for OldQBasicer

I thought you couldn't run an EXE from a web page, you had to download it. How can it be that ClickOnce lets you choose online-only? Does it temporarily install the EXE on the users computer? If I want my application to run online only and I use the publishing …

Member Avatar for kvprajapati
0
96
Member Avatar for student21

Hi i have written my code to to insert data that has been entered into my textboxes n my form into my access database. i am gettin an error message saying: OLEDBEXEPTION OCCURED...Syntax error in INSERT INTO statement. i was wondering if someone could look over my code and tell …

Member Avatar for kvprajapati
0
163
Member Avatar for nsxdude

Today is my first day on this site. I am vey new to VB.NET, i have a good amount of experience in VB6. I have a application I wrote for my Aikido club to track hours and I am converting it to .NET. The code below is very basic and …

Member Avatar for nsxdude
0
153
Member Avatar for elorc

I'm using the VB.NET 2005 RichTextBox control as a base for a user control that I've written, and one of the functions I'm writing into this control is a spelling check. There's a problem I've found though: I can't preserve RTF markup when corrections to the spelling are made. I've …

Member Avatar for elorc
0
867
Member Avatar for sunilChoudhary
Member Avatar for apegram
-1
96
Member Avatar for neolyte120109
Member Avatar for LJames

This is a distraction task in a Psychologgy experiment. For a period of 5 mins the user moves a pic box from the centre of the panel to a matching triangle. The picbox mouseup detects which region it is and adds a score and then sets it back to the …

Member Avatar for LJames
0
168

The End.