Make Changing Database Location?
Jan 20, 2012I often need to change the location of my Access database. Since ini files are outdated can I create a dll file to store the location?
View 4 RepliesI often need to change the location of my Access database. Since ini files are outdated can I create a dll file to store the location?
View 4 Repliesdim cn as oledbconnection
cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:valid.mdb")
[code]......
I have been trying for about a hour to get this to work but I cant. Want to do is change the location of my button when I check my Checkbox I tried If CheckBox7.Checked = True Then Button3.Location = (100, 277) End If is this wrong? It seems like it should work but it doesn't.
View 4 RepliesI'm developing a program at the moment and I'm trying to add the capability to add a texbox everytime you click a button. This is simple other than I'm trying to be efficiant as possible, so I made a sub that creates the textbox and the button calls the sub. Here is where it gets tricky I want the new textbox to move just below the previouse textbox, I'm not sure how to do this since Im only really createing one textbox over and over and having a variable name it by one. This souds confusing I know, but check out my code and it will make since. Really all I'm trying to do is change the location of a unknown textbox say since I create a textbox name textbox0 then when I hit the button again my varibale goes up by 1 which makes the new textbox, textbox1. how to I tell VB to change textbox1's location....
Code:
Public
Class
frmExpenses
'I made everything public because I'm runnings a test timer which are sending realtime data to some labels
Public i
As
Integer
[code]....
I am trying to change an objects location programmatically. I have the line: Trackbar1.Location.Y=100 but recieve the error: Expression is a value and therfore cannot be the target of an assignment. Does anyone know how to get around this?
View 2 RepliesAll variables and Arrays have been declared properly the problem Is when the user enters a new number using a scroll bar
LottoNumber = HScrollBar1.Value
Label2.Text = "Number Selected: " & LottoNumber
The out put of the variable count stays at 1 so the output stays at (Pick # 1 of 6) and doesnt increment at all and does not build the OutPut string
'IF The LottoNumber Location Value is 0 in the Array selectedLotto THEN mark it by making the Loacation Value to 1
If selectedLotto(LottoNumber) = 0 Then
[Code]....
First of all take a look in here :[URL]...As you can see, in the image there're 3 items.So let's talk about the first one, the first right one. (CRAYON SHORTS)I want the picturebox to move always to the left side,After it knocks the "wall" it'll re-start all the progress.So simply, I want the picturebox to move left.
[Code].
if the users clicks on a setting the text of a label will change, but its not aligned so I want to get it aligned? Label1.Location and then?Label1.Location (blabla ;blabla) won't work so..
View 7 RepliesI wanna have Label1 change to a specific location whenever NumericUpDown1.value = 10 or more.
View 1 Repliesi would like to be able to set the change the default file location. for example if i do a filestream on a "file.txt", i want it to look by default in the desktop. is there somewhere in the settings of vb.net express 2008 where i can change this default location of working with files?
View 1 RepliesI have come across a problem with visual studio 2010 & vb.net. i have a few custom controls on the form and few standard controls. When i build the application, the custom controls automatically change size and location. Anchoring and Dock properties are fine. Anchored to Top Left without dockstyle. Even if i fix the location and size in design mode, after i run the application the controls again change back to weird position.
View 2 Replies[ProgramFilesFolder][Manufacturer][ProductName][Version] is the Default. i Want to change the programfilesfolder to documents folder.
I already try this:
[DocumentsFolder][Manufacturer][ProductName] but it doesnt work. error in installing the product. ERRROR: "Could not access network location Polongo companyMC"
Iam changing the installation directory because when the application is installed in program files, my database can't add and edit record. having an error something like "operation must need an updateable query" because of that error i tried to install the appl in documents and there n error i'd encountered like when I install it to the program files folder.
We are testing the visual basic 2010 ee in one of the computing suites at a secondary high school. The installation was fine When we tried opening or saving a project it saves it into a default location i.e my documents. The problem withthis is pupils dont have access to c:. They their own drive on the network (h:) where they save their work. When i went and changed the settings in VB in tool > options.
View 3 Replieson my program i have an activation in it and in order to activate the program you need to enter a code that is stored in the settings. so i was looking through my computer and i found the programs config file. and so I opened it and i found all of the codes for the activation. I need to find out how to make the file so the user doesn't have access to it and then how to move it to a more hidden place in the C: drive.
View 3 RepliesI'm trying to make a program with transparent labels over pictureboxes and when I set the label Parent to the PictureBox the position of the label changes.
View 2 RepliesI am looking to create a file in an exact place using a code such as this one:[code]
View 6 RepliesI was wanting to make a little game. You press a start button, and a picture moves into different spaces. If you can hit stop when the picture is in a certain spot, then you win. How do i make it so when i press the stop button, it will check to see if the picture is in the location (180, 307)?
This is what i have:
CODE:
I wanna make a program wich starts a .exe I know the code for starting the program : (EXAMPLE)
Process.Start("C:UsersPublicGamesWorld of Warcraftwow.exe")But the program only opens the file when its placed there, is there a way to start it else way?Maby make them choose the file derection ?I know u can make a text box so they have to type it them selve, but can u make it so they have to go through a menu with it ?
I make 3 datagridview control in 3 tabpages with same size and location, they stack together.I can tick the related datagridview to show such each datagiridview.But when initialize or tab selectedIndex change event, change from dgv to another dgv. dgv display in mess, all border line and color are not shown property.When I resize my main form cause dgv resize, it display fine.
1)Is it bugs for dgv ?
2)I try to run the Main_resize before but also not ok , need to manually regulate the main form size. [code]
I'm trying to make a Form pop up at an random place (given in a textbox). Here is my code so far:
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Form2.Location = Textbox1.text
Form2.Visible = True End Sub
Yes i know it doesn't work. What I really need to know is how to make the txt understandable for the system.drawing.point.
I use VB2008 and database access and Crystal report.my problem : when ever I change location the database. I will always change location in my report from crystal report. It's very difficults and waste the time because I have many report. how to set up location only 1 place and impact to many report.
My VB Code :
Dim dbname1 As String = "D:AF_SoftwareDBDBAF1.mdb"
Public Strcon As String = "Provider=microsoft.jet.oledb.4.0;data source=" & dbname1 & ";jet OLEDB:Database Password=999"
make code in crystal report , if i want change drive to drive Z / or somthing else.now, i am go to the report and click change location.
I am pretty new to the vb community and very new to this forum. I am glad I found this place too because its an extremely helpful place due to how much time a lot of you have put in helping others and such; great work.
Well on to my question that I wasnt able to find out exactly using my search. What I want to do is use opendialog to select a location to an access database and then take that location, and use it to update my connection string db location. Would it be possible to edit the path at runtime like that using an opendialog? Also, if that is possible, would it be able to save that location to the program so that I wouldnt have to be edit again. The reason why I just dont hardcore the location into the database is because there will be many different computers that the program will be installed into and the person I am making this for wants the flexibility to move the database around at will.
In my database I have this "C:UsersLauraDesktopUni AnimationBluedot.gif" in a table called "images" and within a colomn called "image" I thought this code would work but I don't understand the error message I am getting. PictureBox1.Image = ds.Tables("Pipelining").Rows(inc).Item("image") If anyone could give me a hand that would be good
View 2 Replieswhat code is needed in order to make an integer equal the horizontal location of the cursor on the form?
View 3 RepliesAfter I published my application and then installed it to the same computer i used to develop the application, there was an error during the installation, the data source file was not found in the new location set by VBE 2010. How to make sure data source file will be installed at the pre-defined location? so that there will be no installation error.
View 9 Repliesmake a password changing program?
View 3 Repliesi am having a trouble about adding a file location (e.g. c:/bla/blahblah)to a database i have my code here
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=G:\WindowsApplication2\Database1.mdb"
AxWindowsMediaPlayer1.settings.volume = 100
[code]....
everytime i add a mp3 file to listbox it should get the file location and pass to the database but it seems my database is empty?
I want to Backup my Database to a location and restore it afterwards. The problem is , i want to keep my program open. I seem to have a problem with this, the connection stays open. How can i do this , close connection and open it again without data loss?
View 7 Repliesi am using b.net 2005. i am generating a crystal report. but when i work in a different computer i have to set the location of the database of the report before i generate. is their any dynamic way to set my database location to the report.
View 1 Repliesi am generating a crystal report. but when i work in a different computer i have to set the location of the database of the report before i generate. is their any dynamic way to set my database location to the report.
View 2 Replies