20,899 Topics
![]() | |
How to save and load a 2d array into a binary file? urgently need help | |
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 & "', … | |
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 … | |
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 | |
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) … | |
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 ![]() | |
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 … | |
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 … | |
[B]i want the source code of face detection by v.b.net[/B] | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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' … | |
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 … | |
[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 | |
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] … | |
[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) = … | |
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. … | |
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 … | |
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("", "" … | |
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. … | |
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 … | |
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 … | |
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, … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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!! | |
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/ … | |
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 … | |
how to show the tally using radio button on the next form | |
Hi Experts In VB .net form, How I can close/off Title Bar and how can set border width = 0 or close Border | |
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 … | |
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, … | |
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 … | |
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? … | |
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 … | |
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 … | |
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 … | |
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 … | |
Hi friends i want to format a datetime column like 4-mar-10 9:15 pm | |
how to crete flash in vb.net 2008 | |
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 … |
The End.