This is an old topic and the original author never replied back, but thought I'd chip in as many people like databases.
SQLite is a database library and to 'install' it, you just need three files - a common DLL, then two DLLs to cater for 32bit and 64bit applications. To use it in your...
The code you posted has no bearing on the post title, but by 'pin' do you mean on top of every other window? In vb6 days it was called 'ontop'. Now its 'topmost'. Set a form 'topmost' property to true, and it'll float and be above all other forms.
Eurgh. Why would you ... no, just don't. No. Program functionality is far better than wacky buttons.
If you really do want custom controls, then WPF might be the way to go.
Yes, if you double-click the .resx file, then right-click an image, you should see an option to remove it.
If there is a reference to that image, its easy to relink it to the other image.
If you need another screencast, just yell.
OK, so I created a new project. Hopefully this makes it easier to explain.
https://streamable.com/b2qkp6
If you add in the resx file, you can open it in VS, and export any image you want to reuse. When you add an image to a button, you can only select images already imported into the project...
OK, a solution that worked for me, and got the project loaded without errors.
Click 'Project', 'Add Reference', select 'COM', and select 'Microsoft ActiveX Data Objects 2.8' (or whatever you have)
> it can show error
Whats the error? Do you mean the 'adodb.connection is not defined' (x10 of those)
On the PC you're opening this project on, do you have Microsoft Access libraries? The database is .mdb, which is MS Access (urgh). You need the libraries to open it.
Also, the program is...
> By the way their is an error here.
Can you move the error box, or re-enter the line that begins "dim cmd as ..." as its hidden, and different from the line you originally posted. Does that line contain the 'con' object?
When you click a button, then 'image' on the properties grid, you can either add a local resource, or a project resource.
If you're going to add a picture that could be used throughout your project, use the project resource.
Icon images are usually 16x16 or 32x32 so relatively small - the...
> but the problem has been resolved
Oh ... it helps if you mark the thread as 'Answered' or 'Resolved' and finalise it, otherwise idiots like me think its' still open and try and help. :|
Does an animation really help when copying? Is a user going to stare at your screen constantly for seven...
Also, if the user has clicked a cell (which they have as you're in cell content click) then you can use
dtpur.Text = dgview.currentrow.Cells(2).Value.ToString
Also, a couple of suggestions.
If the cell content is blank (empty) then your code will fail - it cannot convert the .value to...
So you're adding book number 1 (or asking the user to enter a book number). Will they know its 1?
Usually, the computer will find a unique number for you. What happens if user A and user B both enter '1' for the book number? What happens if they choose 5, but book 5 already exists?
Databases...
Just to reverse the direction ... rather than solve the problem that you think you're having, what are you trying to solve? Why are you having a timer kick off during a copy operation?
Can you explain the 'I'm trying to ....' ?
I'm worried you're asking how to get to Brighton from Sheffield...
In the first SQL block, you're building a SQL statement... so what happens if the user is called "O'Brien" ?
What happens if their name is "a';drop table users;" - you might want to try that (on a test database, obviously)
You're using parameters in the second block ... why the different...
> I thought about having two connection strings
Would the user log in to this application? How would the user switch between the two databases - via a selection at startup, or can they switch on the fly?
Does your application have other general settings?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.