|
Hi all!
Its been a while, ive got just one question, previously I was accessing my database which is on SQL Server 2005, but now that I have exported that db out and included into my project space, ive changed the connection string to access the so called 'local' db at the directory folder where my project is.
The problem is, during application runtime, I could still insert, update and delete but when I close the application and reload it back, the changes made to the DB is lost. So im wondering where ive gone wrong, btw im not using any dataset.
Thanks in advance!
Regards,
Jensen
|
|
|
|
|
Alright I think I might had just solved this.
It seems that the effect is not written to the DB during debug mode but works normally when the application is executed after its been published.
Regards,
Jensen
|
|
|
|
|
This is probably because you're using an Access database in your project folder. When you compile the app, the database file is flagged as "Copy Always" and is being copied to the target folder when your app's .EXE file is written to, usually ...\projectFolder\bin\Debug. So, every time you compile your app, you're overwriting the database your the Debug version of the app is using with the copy in your project folder. Look in your project folder tree and you should find multiple copies of your database.
|
|
|
|
|
I thought the OP said he was using SQL Server 2005?
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
It works exactly the same with an SQL Server 2005 Express database file.
---
single minded; short sighted; long gone;
|
|
|
|
|
I didn't know that since I usually just have all my stuff sitting on a server
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
how to zoom image or picture in vb.net
Aamir Mustafa
|
|
|
|
|
Don't ask twice. You can Scale a graphics object, which will zoom. Or you can use the DrawImage overload that takes a size to draw from, and a size to scale to. Depends really on what you're trying to do.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
how to zoom in vb.net
Aamir Mustafa
|
|
|
|
|
Be more descriptive of what you want to do. If you want to take an image and zoom it in, that is rather straightforward.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
My question is how to connect a database with a data to blank database using vb 6.0?
|
|
|
|
|
Why would you learn VB6 in this day and age ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
newbie@vb wrote: using vb 6.0?
Why VB6? It is no longer supported by Microsoft and it is pretty much dead now.
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
Hey man
i Suggest you Buy a book on introduction to vb.net, i used to use vb6, but i cant now.vb6 its a toy, come and enjoy OOPS with us in .net. these guys are right its 2007, by this time you should be using VS 2005, come on man Technology is not a Culture its not stable, it gets upgraded.
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sudden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Dear Friend,
I want to collect the information of the hardware of my pc with there details using .net technology i know that it can be possible but dont know the direction can any one help me regarding this give me the proper direction and knowledge so that i can know exactly what is happening (i mean i dont want to copy pest the code but want to know the steps so it will be easy to me for my future also).
thanks in advance for your reference i have .Net 1.1 framework install on my pc as well as Microsoft Visual Studio 2005.
Thanks and Regards
Sasmi
Sasmi
|
|
|
|
|
First, you have to define what data you want to gather about the machine. Motherboard, BIOS, drives and their types, volumes on those drives, RAM, O/S installed, ... Then you have to can define WMI queries for all of this stuff to retrieve all the data you're looking for. You can then use the classes in the System.Management namespace to execute these queries and get as much data as you can.
Sasmi wrote: thanks in advance for your reference i have .Net 1.1 framework install on my pc as well as Microsoft Visual Studio 2005.
Visual Studio 2005 only works with .NET 2.0, not 1.1. If you have VS2005 installed, you automatically have .NET Framework 2.0 installed too.
|
|
|
|
|
Thanks for the info.
I will get understand the namespace for any other help i will disturbe you.
Sasmi
|
|
|
|
|
hi friends,
i have some values in my Db table, i want to show that datas in TV screen as flash data, like airport information screen. how can i do this, can anybody give any idea or link.. its urgent....
cheers
|
|
|
|
|
SamRST wrote: its urgent....
It's rude to say this. If you problem is so urgent, why aren't you paying for assistance?
Anyway, you haven't expressed your problem in a coherent enough manner for me to know what you are trying to do. Do you want to write some sort of real-time information system? Is it web-based or windows-based? You probably want to employ some sort of timer to update the screen periodically and read the latest information from your database.
Paul Marfleet
|
|
|
|
|
pmarfleet wrote: If you problem is so urgent, why aren't you paying for assistance?
He'd probably rather suck off of free community.
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
Hi I am trying to increase the appeal of my forms by ading the colours across them, I have found a couple of code snippets online but when i try to implement it myself the keywords get underlined by the intellisense in vb.
eg:
oForm.AutoRedraw = True
oForm.DrawStyle = vbInsideSolid
oForm.DrawMode = vbCopyPen
oForm.DrawWidth = 2
oForm.ScaleMode = vbPixels
it will leave a message saying that Autodraw is not a member of system.windows.forms.form
the same for the other lines.
has something changed in vb.net or something? how could i implement fading the form colours?
thanks in advance
Mr Oizo
|
|
|
|
|
That's VB6 code. Although the syntax in VB.NET is very similar, it's a completely new language.
Here you see that most of the properties that you try to use simply doesn't exist any more:
MSDN Library: Graphics for VB6 users[^]
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks i'll check it out. hopefully what i'm trying to do is fairly easy
Mr Oizo
|
|
|
|
|
Thanks i'll check it out. Hopefully what i'm trying to do is fairly easy
Mr Oizo
|
|
|
|
|
I managed to sort out what i needed using the following code. Unfortunately if i use it on a button in the paint event it clears the text off the button and the button isn't raised off the form like normal.... Any ideas on how i can fix that?
Dim rec As Rectangle = New Rectangle(0, 0, Me.Width, Me.Height) 'create a new recatangle<br />
<br />
'Create a new brush. Make is a Gradient style brush.<br />
<br />
Dim myBrush As Brush = New Drawing.Drawing2D.LinearGradientBrush(rec, Color.Silver, Color.SteelBlue, Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal)<br />
<br />
'draw the gradient onto the form.<br />
<br />
e.Graphics.FillRectangle(myBrush, rec)
Mr Oizo
|
|
|
|