VS 2008 Datetimpicker - Value Did Not Incremented After Saving
Sep 7, 2011i want to save the values from these code wriiten below,but the value did not incremented after saving.
[Code]...
i want to save the values from these code wriiten below,but the value did not incremented after saving.
[Code]...
I have a datetimepicker
and i have a datatable and as datasource acces
in the datatable i have colums named........ day of week , day, month, year
what i want is ... when i select a value in datetimepicker
i want to find the row with the value in datatable
[Code]...
how could i make my datetimepicker to compute for the expiry date within 5 years... example date grated is 1/2/2012 and expires on 1/2/2016
is it possible to bind a datetimpicker to a datetime column in datagridv if so how can i do that
View 5 Repliesknow the title seems a little bit confusing, let me explain.Let say i have 10 properties of bindingsource.The names are: bindingsource1, bindingsource2, bindingsource3, ....., bindingsource10i want to develop a code using loop for these properties..
For i = 1 to 10
//bla bla bla
Next i
[code].....
When I rebuild a VB.NET solution (class-lib, winforms) in VS.NET 2008 prof, the assembly-version isn't updated anymore.This i a project which i used to open in VS.NET 2005, but converted to VS.NET 2008 (no code changes, because is a ms.NET 2.0 project)I have the only following in my AssemblyInvo. vb <Assembly: AssemblyVersion("2.0.*")> Before it worked in VS.NET 2005 (when I reopened Vs and rebuilded, the assembly-version info did changed). But now when i reopen the VS.NET 2008 solution, change something, rebuild --> the assembly-version info did NOT change. Even closing vs.NET 2008 an reopen, change, rebuild --> still no changes in the assembly-version...Why doesn't work this anymore (It still works in a C# project) ? My custom-auto-update solution uses the internal versions of the dll's, exe,
View 11 Repliesi want to display the id value incremented by 1 in a textbox in my form but getting error in the line cv = reader("id") + 1 my code is
Imports System.Data.SqlClient
Public Class Form1
Public connection As New Data.SqlClient.SqlConnection("Data Source=AMIT-
[Code].....
How to maintain Zeros in incremented values ex: ECJ-00001
[Code]...
Need advice on what is the best approach to get the auto incremented id to be the same on multiple forms.
Basically I am using VB .Net with SQL Server as the backend. I wrote a few stored procedures to insert data and then I am calling the stored procedures on the front end. I have 3 forms and once the first form is submitted it generates an autoID and then takes the user to 2nd form.
In the second form I have a separate insert stored procedure is there a way to grab the id that the first form generated and for it to be consistent. Or should I store it in a variable after they submit the form and then call it in the second form.
I have a simple application for taking Customer orders and their Products. I am using Visual Studio 2008 Express Edition and MS Access 2007.My application uses multiple forms. One of the forms is an Add form from where a New Customer along with his/her details like address, phone, city, state etc can be added. Another form is for the Product Details to be added.I want to know how to retrieve a CustomerID from an MS Access 2007 database for either the newly added Customer or an existing one and insert multiple rows or records for the same CustomerID, as a Customer can order multiple products. I am using the following code for the Add button:
Private Sub cmdAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdAdd.Click
[code]......
Im writing a program and its pulling data from a .MDB to put in a .DAT file.
Here is my while loop:
vb
database_connection()
sql = "SELECT * FROM tlalist"
[Code].....
In my database there are currently 6 rows. and only 1 row has the TLA_DAY column equal to 1, but for some reason when I look at the .DAT file it creates it outputs the result twice rather than only once.
Once JTLA_count increments it becomes "2", but the while loop still outputs as if its still equal to "1". Ive used breakpoints and the counter is incrementing fine.
create an auto incremented student no.in mysql using vb.net lyk 2006-141791
View 2 Repliesrewriting a class I use for saving Treeview data to a XML file for use of saving ListView data I can't really figure out the rewrite, I'm stucked, unfortunately Listviews seems to be a big problem for me in general.
Option Strict On
''' <summary>
''' The TreeViewDataAccess class allows the nodes within a TreeView to be
''' persisted to xml for later retrevial.
''' </summary>
[Code]....
Currently I am saving data from my applications by saving a text file via a stream reader as a string. I have come to a problem. In my current application, I have an array of the following structure:
[Code]...
I have a problem. I'm working on this advanced web browser with my friend, and we made a favorites feature. So, it works and all that, but, after I close the executable file, it doesn't save anything!
Ex:Starting Up, adding Google as new favorites, then closing the browser. Starting up again, 1 hour later, but there's no Google Here's what I put for saving the favorites (please do not steal the code Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
[Code]...
I think I have a simple problem but I have worked on it for many hours over the last few days without success. I am just trying to save a new record with VB 2008 to a very simple Access db with 4 fields in "Table1": "Part Number", "Description", "QNTY" and AutoID. The latest error that I have trapped is "Syntax error in INSERT INTO statement". Here's what I have:
[Code]...
I'm making a log for my application.I have made the log and it works.I use the streamreader and the streamwriter to save and load the data. I thought that it would be more organized to have columns inside the log.The problem is how will i save the information to the text file and load it up again so that it could organize itself again. The code that i used to make the columns.
log.Columns.Add("Task performed ", CInt((log.Width - 4) * 0.3), HorizontalAlignment.Left)
log.Columns.Add("Time and date", CInt((log.Width - 4) * 0.2), HorizontalAlignment.Left)
log.Columns.Add(" Amount of detected files(s)", CInt((log.Width - 4) * 0.2), HorizontalAlignment.Left)
log.Columns.Add(" App version", CInt((log.Width - 4) * 0.4), HorizontalAlignment.Left)
The code that i use to add the information to the log.
[Code]...
so, now my code is: (part of it.)
For Each item1 In ListBox1.Items
Write.WriteLine(" " & item1.ToString)
Next
[code]....
I'm looking at making a game. However I want it to be able to used by more than on person. So i want to be able to save the game then when you open it again you either open a game or start a new one.How would I save the game?? save all the variables into a db?
View 18 RepliesI would like to save a big textfile in the same format . I mean when I open it on a richtextbox and save it , the text loose is space .Exemple:
[Code]...
I have buttons working that cycles through all the records and everything shows up fine. I also made a simple DB program to test what I was doing without all the extra stuff my current program has and it works fine. Updates the dataset and then saves to the database and reflects the changes. When I tried adding it to this program, I get errors when I click "Save" and "Commit".The "Save" (updates DS) error is: "Additional information: Update requires a valid UpdateCommand when passed DataRow collection with modified rows."The "Commit" (commits changes to DB) error is: "Additional information: Syntax error in INSERT INTO statement."Not sure what either of these mean, the same code worked fine in the standalone program. Looking at another site, they show the exact Save error I'm getting and say it's because I don't have a command builder, but it's up there. [code]
View 6 RepliesI have a small problem that I was hoping you could help me with. I was wondering if anyone could show me how to make it so when I save my textbox to the file it would show new lines for the text.
[Code]...
I need to have so way of saving in to a zip file.
View 9 RepliesI feel bad to post another question, but I can't find a answer to this kind of question anywhere.I am using some text files as a database. To seperate the records I use the # symbol. I am just using the write method to do this.... so when I open the text file it's a very very very loooooooooooooooooong line.
View 2 RepliesI have a Database which is a file, and my application uses BlindingSource and a navigator to browse the database.
I can edit the data with the Blidingsource. Just one problem - I cannot save that. The save button doesn't works, maybe because it got no code.
I am trying to save the sound that comes from my text to speech program. I want it so if i click the save button it will read the text in textbox1 and then it will save it.
Imports System.Speech.Synthesis
Imports System.Collections.ObjectModel
Public Class Form1
[Code].....
I'm trying to save a setting I've defined under Project -> Settings -> FirstRun, type boolean, scope Application, default value, false,But it doesn't seem to work, this is my(the text box does not stop, every time I open the program it shows)
Private Sub Form1_Shown(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Shown
If Not My.Settings.FirstRun Then
[code]....
I am working on a Screenshot Taker project, my project captures the screenshot and saves, but to save it a saving dialog shows up, and you have to select where to save it, file name, and bla bla bla; I don't want it to be like that, I want the saving thing be silent, I don't want the dialog to show up, like I want everything to happen from behind the seens.
[Code]...
So etc. we want a label1 etc. to be the money in this game, and i know how to save one thing. But arent there a way to save everything in one code? So that you are available to load the game, and continue every time..
View 7 RepliesWe have to learn VB.NET for the semester, my experience lies mainly with C# - not that this should make a difference to this particular problem. I've used just about the most simple way to save a file using the .NET framework, but Windows 7 won't let me save the file anywhere (or anywhere that I have found yet). Here is the code I am using to save a text file.
[Code]...