|
:-OI would like to know, if I could use FileCopy to backup my Access Database?
Blonde
|
|
|
|
|
System.IO.File.Copy (Source, Destination, Overwrite)
Check that connection is closed.
|
|
|
|
|
Thank you so much ! I truly appreciate it.
Will make sure I close connection before copy.
|
|
|
|
|
I have been searching for days, but I just can't seem to make heads or tails of anything google brings up. Here's my situation, I need a quick and dirty program that can read the contents (string) of a specific memory address of a separately running process.
I have it to the point where I can find the window I need via hwnd/findwindow, I can associate the processID, but everytime I dive into readprocessmemory I just can't make it work. Any help is greatly appreciated. Thanks!
PS - VB6, not VB.net
-Brian Nelson (Arokh)
|
|
|
|
|
|
I am currently working with the internet transfer control in VB6, but I have a problem. The file I need to get is passworded, but it's not an FTP site, and I know the control has ways of doing usernames and passwords on FTP's, but this is just a regular page with an account name and password.
Right here's where I need to get it from: https://www.e-gold.com/acct/historycsv.asp
But as you can see, username and password are needed. I haven't the slightest clue as to how to get the username and password in there and push it through to get the file I need. I know it's possible on this site, it's been done before by a programmer with about the same skill as me. But, he doesn't want to share code
Any help?
|
|
|
|
|
OKay, I randomly just figured that out on my own. New problem::: The values in the file are comma seperated. How to I parse it? (there are some strings of commas that have no values or spaces in-between too, FYI)
|
|
|
|
|
|
anyone know how to draw any shapes(square, trapezium) and the drew shape can drag using mouse to move around the form in VB .NET??
sounds something like using visio, but i just need the small graphic control part...plz...urgent help...
|
|
|
|
|
Draw the shape on a label or panel.
You can drag the whole control then...
|
|
|
|
|
Hi,
I am using Word Object library in my program to open word documents and save it as RTF documents. It seems this is not saving the Header/Footer information in the RTF file.
Any Suggestions?
Thanks.
GTS
|
|
|
|
|
Hi,
hope somebody out there can help me out...
I want to configure a DDE data feed in my VB.NET application. Is this possible or can I only use Visual Basic 6.0? Case "Yes": how should I do this?
Case "No": could someone tell how to make this feed in Excel?
Thanx,
H.J.Verschuren
|
|
|
|
|
Hi there,
i found a really good article about multithread tcp handling, but i code in VB.NET and the source is in c#; i managed to translate most of the code, but some of them are out of my knowledge, please help
##################
private Thread [] ThreadTask = new Thread[NUM_OF_THREAD] ;
ThreadTask[i] = new Thread( new ThreadStart(this.Process) );
ThreadTask[i].Start() ;
//NUM_OF_THREAD is a const
##################
public ClientService(ClientConnectionPool ConnectionPool) {
this .ConnectionPool = ConnectionPool ;
}
//is this a function ? a sub ? how do i translate 'this' ?
##################
lock( ConnectionPool.SyncRoot ) {
if ( ConnectionPool.Count > 0 )
client = ConnectionPool.Dequeue() ;
}
// lock opens {} as an if ?
#################
Thanks in advance
|
|
|
|
|
|
Thanks,'me' worked perfectly
I understood what
private Thread [] ThreadTask = new Thread[NUM_OF_THREAD]
say, the matter is that i cannot find a way to rewrite it in vb
the only near declaration accepted from the syntax that i found is
Private ThreadTask as Thread(NUM_OF_THREAD)
but i miss the 'new' part. Any idea ?
Thanks again for the kind help
|
|
|
|
|
|
|
Thanks, i'll study it, i found just a few mins ago the synclock function, i hope it will work in a nice way but i'll check the monitor first
|
|
|
|
|
Yo all, have entered a stupid problem which I'm not sure is a bug in VB. I have this code:
<br />
Dim Record as Recordset, DB as Database<br />
Set DB = OpenDatabase("c:\db.mdb")<br />
Set Record = DB.OpenRecordset("BASE")<br />
Yet this remarkably simple code falls over when setting the recordset, because there is a "data type mismatch" (groan), when in fact there is no data type mismatch. OpenRecordset returns, guess what, a recordset, so wtf????? To add insult to my injuries, if I declare Record as a Variant instead, the line proceeds and guess what, Record gets cast to a, wait for it, Recordset object (ie. I can access the variant as I would a recordset and in debug the fields are identical), and all the data is intact and correct. Also, interestingly (though wankily) if I cast the Recordset object to a variant using CVar and then call OpenRecordset, I get no errors and indeed no recordset object, its just set to 'Nothing'. Is this just another episode of why VB is so sh*t? Can someone explain to me how a function returning a Recordset object can have a data type mismatch when trying to assign to a Recordset object??? Honestly, this is basic programming logic which this stupid, shitting language cannot grasp. I await someone to prove me wrong.
|
|
|
|
|
OK guys, found the answer elsewhere on the web, and guess what, its sh*t. Basically VB defines two recordset objects, both called 'Recordset', for ADODB and DAO, which is fair enough. However, fatally, VB CANNOT differeniate between the two, so whenever you specify Dim Record as Recordset it always assumes you are using the ADODB recordset object, hence the data type mismatch because OpenRecordset returns a DAO recordset, duh. This is exactly why VB is sh*t. C++ adopts a technique of namespaces, if there is ambiguity in the type the compiler will throw an error saying 'use of ambiguous types', nice, addresses you to the problem. VB just kicks up some bullshit AT RUN-TIME, which is horrible, horrible, horrible, because no end of bugs could manifest themselves. You even have to specify Option Explicit to force the compiler to point out basic compiler errors such as undeclared identifiers. This is wank. Anyway, the solution is declare the recordset as part of the DAO 'namespace' like so Dim Record as DAO.Recordset .
VB should be burned on a cross and sent to hell for its sins
|
|
|
|
|
Yeah, I know exactly what you mean. It just totally disgusts me how flimsy the compiler is, and annoying when have a line myvar = and then press enter and it comes up with a box saying you did something wrong, when really you were just gonna cut and paste some code. I only use VB when absolutely necessary, like when I have to knock up some bullshit app in a day or so. Its strange mind, cos this guy at work, Mark, he loves VB, personally I think he must be a bit sadistical to love VB.
Lots of Love Simonxxxxx.
|
|
|
|
|
I tried to fill a combobox with xml data, but it wont work
the sourcecode is like this:
Dim ds As New DataSet("Koder")
ds.ReadXml("D:\Utveckling\dotnet\tester\forms tester\Forms test\bin\Codes.XML")
Dim i As Integer
For i = 0 To ds.Tables(0).Rows.Count - 1
With ComboBox1
.Items.Add(ds.Tables(0).Rows(i)("code").ToString)
End With
Next i
I recieved a error message with:
Invalid Cast exception
my xml sheet look like this:
<xml>
<aktiviteter>
<br />
<id>1001</id><br />
<avtivitet>Hej</avtivitet><br />
<br />
<id>1002</id><br />
<avtivitet>Då</avtivitet><br />
<kostnader>
<kkoder>
<id>9001
<kostnad>Bilresa
How should I solve this problem
|
|
|
|
|
Hi
I need some suggestions for VB.net books.What are the titles you recommend...
Regards, Agni.
|
|
|
|
|
mastering VB.NET is a good one..
one disadvanage is that it does not focus on VB.NET as an Object Oriented language,, it teachs you how to make things you used to make in VB6 ,, in VB.NET this time..
|
|
|
|
|
Thank you HSPC...
Regards, Agni.
|
|
|
|