Why Databse Will Reset To Default Whenever Reopen It Again
Apr 7, 2011Why my database always reset and what i had enter to the database using my application will be erased.if i dont close the application. the data will stay.
View 3 RepliesWhy my database always reset and what i had enter to the database using my application will be erased.if i dont close the application. the data will stay.
View 3 RepliesHow do I reset My.Settings at run time to the initial default values. I want to do this after the app has been running and the user may have save changed settings. The intention is to reset evering to 'factory defaults' as opposed to the last saved value as done by 'settings.reload'.For example in the property below , I want to restore to the value to '90' as given in the default value. I want to do this for all settings.[code]...
View 4 RepliesWhenever I name a new project, a file download window comes up. I tried to reset visual studio to default setting and even uninstalled firefox. I'm trying to get visual studio to behave like it use to. url....
View 5 RepliesHere is my case:I have a richtextbox called Rtb1 I have the text property for this control set to "ThreadAmountEdit=[Thread Amount]" This was set through the RichTextBox Tasks function, by clicking the control and selecting the little arrow in the top right corner. In working on my form, I edit the text "[Thread Amount]" of the rich text box to "45". What I need is to be able to reset Rtb1 back to default ("ThreadAmountEdit=[Thread Amount]")on button click.
I've tried: Rtb1.Refresh() which doesn't appear to do anything I've also tried Rtb1.ResetText() which completely clears the textbox.
I got on my form textboxes, checboxes but also a groupbox which holds texboxes.
The idea is to be able to clear and reset all of these by clicking a reset button.
At the moment i got this
Private Sub ClearFields()
Dim ctrl As Control
[Code].....
But ofc Me.controls isn't gonna get involved with the stuff in the groupbox.
How can I reuse(reopen) same Datareader after calling Close() ??
View 1 RepliesI have a vb.net application that opens two workbooks excel, if I close the excel file and try to reopen them is still an error:"COM object that has been separated from its underlyng RWC cannot be used".
View 9 RepliesOk, so I am building my own program to control a video player I have through telnet, I have everything else working except one thing.I have a reset button to reset the player, when I press it, it sends the string "Reset" and the unit resets without a problem.But when I add a code to close the winsock connection upon reset, it doesn't send the string to the unit. I am sure what is happening is the winsock is getting closed at the exact same time it is trying to send the string and so it fails to send, how do I make it close winsock AFTER the string has been sent? [code]
View 1 RepliesI ran out of ideas and couldn't find any reference about it so here I go... I need to keep a secondary application wich is not related to my c# project always running in background. So if this secondary application crashes or someone else close it manually it will automatically re launch again via my c# app.
I have no clue of how to accomplish this one, I mean checking if this application closes by something external to my c# app.
Constant monitor for process, if process not running execute this()
VB.NET
Imports System.Runtime.InteropServices
Imports System.Diagnostics
Public Class Form1
[Code]......
This question only applies to files of line-terminated/text strings.[code]I suspect that ultimately, I will generate the myfiles version of the HD file as I write it to disk,but at this point in my VB.net 'skills', until I can prove what I've written by reading it back and having control of it in my program, I can't assume anything about the data/format/file that I have written.
View 12 RepliesWhen my application first loads the parent opens and I select my child form from toolstrip:
'In parent open the form when option is clicked
Public Sub Showfrmitemreview(ByVal sender As Object, ByVal e As EventArgs) Handles itemreivewStripMenuItemA.Click, itemreviewStripMenuItemB.Click
[Code]....
Nothing happens I don't even get an error message. I've played around with the code numerous times and the only thing that worked was to have it open outside of the parent which I do not want to happen.
I've created a very simple form with one button on. I need it so when the form runs, it opens in the bottom right hand corner of the screen regardless of the resolution. It also needs to be always on top of all other applications.
When the buttons pressed, i need it to close all iexplore instances and reopen a fresh instance.
I've tried to search for the answer but to no avail.
I'm new to VB.NET 2010, i have a form that has textboxes and i need to update my Database but i am failing to do so.I maged to create the login page and i can search from my db but i cannot add or insert a record.
My form has the following textboxes, Name, Surname, Username, Password and i have to insert to a table with the same columns
[Code]...
Everytime i run the program and update the data in database. I got the error in this code da.Update(ds, "reservationdata") Dim dt As DataTable = ds.Tables("reservationdata") If resno.Text = "" Or custname.Text = "" Or custaddress.Text = "" Or TextBox1.Text = "" Or endTime.Text = "" Or amouttopaid.Text = "" Or InitialDeposite.Text = "" Or RemainingPayment.Text = "" Or DateTimePicker1.Text = "" Then
[Code]...
After using the following code, no errors are shown, but my database is not updated once i have made a change using my management system application.
Dim constring As String = Application.StartupPath.ToString() + "mydatabaseName.mdf"
Public c As String = "Data Source=.SQLEXPRESS;AttachDbFilename=" + constring + ";Integrated Security=True;User Instance=True"
Sub openConnection()
conn.ConnectionString = c
conn.Open()
End Sub
datagrid( value in combobox come from databse) the textbox of same datgrid show the value of slecete combo box no from same databsesimplyi select a item no form database in combo box of datagrid now i want textbox of datagrid show the item name related to the particular of a particular item no
View 14 Repliesi have datagrid on my interface with few columns eg. student name, address and age. on top of that there is a text box to include the group name. i want to save all the grid data into table called "groups" in access database. as an instance under group 1 all the students names and their details.
View 1 Repliesi have a calendar on a form, i am wanting to use the date clicked method so when i click on a date in the calendar amessage box will pop up and pull the informationfrom a field in the database and be displayed
View 7 Repliescan anyone give me any tutorial or guide me in building an application using vb.net which can display table from sql databse.
View 1 Repliesi tried a lot of variations in my code and even sql statement but still nothing happens.. i really need to do thing messed up project of mine and put all my efforts here.. but i really can't understand why my combo box isn't showing the names of the candidates w/ that designated position.. heres my current code:
constr = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source = " & Application.StartupPath & _
"SSC_Automation.mdb; Persist Security Info = False"
[Code]....
i am working on a university student council voting system and what i wanted to do is when the voter selected the radio button name "Vote by Party list" automatically the names of all the partylist that are entered in the databse will be listed in the combo box and all the candidates on that Party list will be shown on the individual combo boxes made for each position..
I have this code and whenever i try to run it, I always get an ODBCEXCEPTION WAS UNHANDLED ERROR [42000] [MySQL][ODBC 5.1 Driver][mysqld-5.0.51b-community-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char VALUES('101','noodles')' at line 1
[Code]...
I m entering information of each person in Employee Information form and saving it in MS Access database.Now i want to Show the data of each person Individually and the information of the next person will be shown on the next button click. to do this what shall i use a crystal report or windows form.
View 5 RepliesI am using MS Access 2007. There are 2 tables in my database. One is for payments and other is for departments. In payments table, there is a field for departments. In my VB 2010 project, i want the departments field in the payments form to be in list box. And during the program is running, i want the option to add new departments and as soon as new department is saved, the list in payments form should also upadte.
View 3 Replieswhen i had 3 text box then i did the following code and it worked for me also:[code]in the above code ,depending on the textbox3.text,i performed all the deletion,so it was easy now i have got a three of combo box and three text box.i filled the combo box with the database entries.now i want to perform deletion depending upon the selected items of any one of the three combo box.i cant get the logic of the where portion in the delete syntax.
View 19 RepliesHow to create database in my mysql if it the database name is not currently true in mysql? Using vb.net How to check if database name is already created or available in my localhost using vb.net.
View 5 RepliesIs there a tutorial out there for connecting an access database to a VB project? I want to create an appplication that generates numbers incrementally based on certain other conditions.
which I have been customizing in VB6, but I'd rather be doing the project in VS 2005.
Has anyone a sample code, or point me towards a guide on how to link in a Query from an existing Access Databse into my vb? Im wanting to populate some text boxes with information from a query.
View 1 RepliesCan i ask how do i make the data i retrieve from the database into a link?
View 18 RepliesI have searched a lot regarding my problem but no solution so i am posting here to get advise from the experts.I am making a windows form application , and using Sql compact database.My Problem :When i am inserting records in the database using code (run time) they are inserted deleted , update and i can see them updated,inserted,deleted in my application , but when i close the application and start again only a few times they are changed, once a million :). Else i again see blank database ,or if i directly put values in the database from the solution explorer Visual studio 2010 , they stay there forever. I am using simple update,insert ,delete statement but not sure why the changes made to database disappear when i close the application.
First this For all :
Dim con As New SqlCeConnection
Dim command As New SqlCeCommand
[code].....