Search Results

Showing results 1 to 37 of 37
Search took 0.01 seconds.
Search: Posts Made By: Chris147
Forum: ASP Feb 27th, 2008
Replies: 2
Views: 1,208
Posted By Chris147
Forum: ASP Feb 24th, 2008
Replies: 2
Views: 1,208
Posted By Chris147
Hi All,

I'm a complete novice when it comes to ASP, so please bear with me.

I have a GridView bound to an Access Table that has no sorting on it (which is as it should be) and a Combo Box bound...
Forum: VB.NET Dec 19th, 2007
Replies: 1
Views: 1,973
Posted By Chris147
Hi,

Try using dr = Nothing instead of dr.Close()

You're getting the error because you have cmd set to the "New" keyword and not dr (so cmd is an Object whereas dr is a Variable).

HTH,
...
Forum: Visual Basic 4 / 5 / 6 Dec 6th, 2007
Replies: 6
Views: 2,576
Posted By Chris147
Placing the intCounter in the header as a Private variable makes it available to all the subs and functions in the form (or module for that matter).

Crucially, it's independent of the Timer event...
Forum: Visual Basic 4 / 5 / 6 Dec 6th, 2007
Replies: 13
Views: 3,477
Posted By Chris147
OK, so I've just spotted another mistake. Where I have Set fldrs = fso.GetFolder("C:\Program Files") it should be Set fldrs = fso.GetFolder(YOUR PARENT FOLDER PATH HERE)

It's been a long day..!
Forum: Visual Basic 4 / 5 / 6 Dec 6th, 2007
Replies: 13
Views: 3,477
Posted By Chris147
Oops! That should be string length = (string length -1)

I was right about the FSO Property though - it's GetParentFolderName - so no need to mess with strings at all!

Chris.
Forum: Visual Basic 4 / 5 / 6 Dec 6th, 2007
Replies: 13
Views: 3,477
Posted By Chris147
Ok, from your post it looks like the Application Folder is in the same folder as the DB Folder.

You can use string manipulation to get the parent folder of your App.Path (use a Do.. ..While Loop...
Forum: Visual Basic 4 / 5 / 6 Dec 5th, 2007
Replies: 6
Views: 2,576
Posted By Chris147
Oops!

Ok:

Declaration in Form Header (after Option Explicit):

Private intCounter As Integer

then -
Forum: Visual Basic 4 / 5 / 6 Dec 5th, 2007
Replies: 2
Views: 1,171
Posted By Chris147
Sadly the App has to be compiled in VB6 but knowing how to do it in .Net would be good for future reference.

If you can post the method I'd really appreciate it.

Thanks,

Chris.
Forum: Visual Basic 4 / 5 / 6 Dec 5th, 2007
Replies: 13
Views: 3,477
Posted By Chris147
Ah.

This appears to be an installation issue.

I had 2005 Express for a while, got fed up with the installer, bought the full version.

Where is the DB being installed to? Is it as a...
Forum: Visual Basic 4 / 5 / 6 Dec 4th, 2007
Replies: 2
Views: 1,171
Posted By Chris147
Hi All.

Does anyone know how to get the ShareName of a Local Drive? Or even if the Local Drive is shared?

I know you can get the ShareName using FileSystemObject, but this only works for...
Forum: Visual Basic 4 / 5 / 6 Dec 4th, 2007
Replies: 6
Views: 2,576
Posted By Chris147
Hi,

Try moving the Image location bit to the timer:

Private Sub Timer4_Timer()
Image1.Left = Image1Left + 200
Image1.Top = Image1.Top - 50
Timer4.Enabled = False
End Sub
Forum: Visual Basic 4 / 5 / 6 Dec 4th, 2007
Replies: 13
Views: 3,477
Posted By Chris147
Hi Mr Wobbles (good name!)

For VB6 use: App.Path to return the application dir (eg: Open App.Path & "\MyFile.txt" For Input as #1)

For VB2005 use My.Application.Info.DirectoryPath

HTH,
...
Forum: VB.NET Nov 11th, 2007
Replies: 1
Views: 505
Posted By Chris147
Hi,

Adding an image to an Access DB is fairly simple -

Add a field to the employee table with a type of 'OLE' (call it picture or something like that).

Open the table, right-click on the...
Forum: VB.NET Nov 8th, 2007
Replies: 1
Views: 1,173
Posted By Chris147
Ok, so it seems it's important to type out (and not Copy/Paste as I did).

I've just rewritten the function in the new project (word for word - it's identical) and now it works - go figure.
...
Forum: VB.NET Nov 8th, 2007
Replies: 1
Views: 1,173
Posted By Chris147
Hi All,
Does anyone know why I'm getting a 'Null Reference' error when I try to use a FolderBrowser?

I have the following code (called from a Toolstrip Menu Item):

<code>
Dim fldBrowser As...
Forum: VB.NET Nov 5th, 2007
Replies: 1
Views: 914
Posted By Chris147
Hi Webbsta,

It depends on how you've linked to the .dlls. I know practically nothing about linking to such files but I do know you can find the installation location of your app (and point to it...
Forum: VB.NET Nov 5th, 2007
Replies: 7
Views: 3,536
Posted By Chris147
Hi, sorry for the late reply.

I'm using VB Express, which I suspect is part of the problem. I saw the Project Installation doodad on the MSDN website whilst looking for solutions but it doesn't...
Forum: VB.NET Nov 3rd, 2007
Replies: 7
Views: 3,536
Posted By Chris147
Yup, exactly the same problem... Installed to the User Account under a folder that's almost impossible to navigate to! (Try adding your App to Scheduled Tasks and you'll see what I mean.)

I...
Forum: VB.NET Nov 2nd, 2007
Replies: 7
Views: 3,536
Posted By Chris147
Update #2

The installer doesn't install to Program Files in XP either - it wants to install the App in the User's profile just like in Vista.

I've looked several times now and there just...
Forum: VB.NET Nov 2nd, 2007
Replies: 7
Views: 3,536
Posted By Chris147
Update:

Ok, I've solved the problem of adding the additional pngs to the installation process by adding them to an ImageList and calling them from there.

I'm still having a headache with where...
Forum: VB.NET Nov 1st, 2007
Replies: 7
Views: 3,536
Posted By Chris147
Hi All.

Does any one know how to add extra files (in my case .png's) to a VB 2005 installation?

This used to be really simple in VB6, you just browsed for the extra stuff you wanted and that...
Forum: VB.NET Oct 23rd, 2007
Replies: 6
Views: 1,919
Posted By Chris147
Are you sure they are in the right order?

According to your last post PRIMARYSSN a Field in OtherAdults and SSN is a Field in FormInformation.

If there are no spaces in the Field Names (and...
Forum: VB.NET Oct 23rd, 2007
Replies: 6
Views: 1,919
Posted By Chris147
Hmn...

About all I can see wrong is (assusming you have pasted your code from Access VBA) you have a typo in the 'Set' event for rstMain (should be: "Set rstMain = dbs.OpenRecordset(sql)" - not...
Forum: VB.NET Oct 23rd, 2007
Replies: 3
Views: 5,125
Posted By Chris147
Like all the best solutions - simple when you know how. It's the knowing how beforehand...

Thank you waynespangler!
Forum: VB.NET Oct 22nd, 2007
Replies: 3
Views: 5,125
Posted By Chris147
Okay, I think I can't scratch this one - it just doesn't seem possible...

Thanks for looking,

Chris.
Forum: VB.NET Oct 22nd, 2007
Replies: 6
Views: 1,919
Posted By Chris147
Hi,

So long as you have a Reference to the DAO Object Library you can do the following:

Dim dbs as DAO.Database, rstMain as DAO.RecordSet, rstLookUp as DAO.Recordset
Dim sql as String
Set...
Forum: VB.NET Oct 22nd, 2007
Replies: 3
Views: 5,125
Posted By Chris147
Hi All,

Does anyone know how to interrupt a Do While Loop?

I have a very simple bit of code that Loops though the items in a ListBox so long as a boolean (blnPaused) = False. There is a...
Forum: VB.NET Oct 21st, 2007
Replies: 5
Views: 6,525
Posted By Chris147
No worries, glad I could help.:)
Forum: VB.NET Oct 20th, 2007
Replies: 5
Views: 6,525
Posted By Chris147
Oops, not sure what happened to the formatting in my post - sorry. (Ignore the <...> bits.)
Chris.
Forum: VB.NET Oct 20th, 2007
Replies: 5
Views: 6,525
Posted By Chris147
Hi, I haven't implemented this but it should work:



While Reader.Read()
Try<LI class=li1> For Columns = 0 To Reader.FieldCount - 1
<LI class=li2> ...
Forum: VB.NET Oct 19th, 2007
Replies: 3
Views: 3,390
Posted By Chris147
Hi,

I did something like this myself. Use two variables (ie: Dim dblVal1 As Double, dblVal2 As Double).

Pass the 1st test entry to dblVal1, clear the text box (when the user presses a...
Forum: VB.NET Oct 19th, 2007
Replies: 3
Views: 3,369
Posted By Chris147
Hi, thanks for the reply.

If I use a timer how will it reflect the progress of files/folders copied? Do I turn the timer on and off from the Do.. ..While Loop?

Apologies if I sound daft but...
Forum: VB.NET Oct 19th, 2007
Replies: 3
Views: 3,369
Posted By Chris147
Hi All.

I've got a small App (VB.Net) that adds Files and Folders to a List and then uses a Do.. ..While Loop to copy each item in the list to a new Directory (not unlike a backup program).

I...
Forum: VB.NET Jun 12th, 2007
Replies: 2
Views: 1,731
Posted By Chris147
Hi.

Sorry for delay in reply - at home now after work.

Line 90 was a call to Debug.Print the Response to the SOAP message so I could see what was coming back (I can't remember the exact code...
Forum: VB.NET Jun 12th, 2007
Replies: 2
Views: 1,731
Posted By Chris147
Hi All,

I'm trying to connect to a Web Service from VB 2005 and keep getting the same error:

System.IO.FileNotFoundException occurred
Message="The download of the specified resource has...
Forum: RSS, Web Services and SOAP Jun 8th, 2007
Replies: 0
Views: 2,194
Posted By Chris147
Hi All,

I'm completely new to XML & SOAP so please bear with me if I sound stupid.

I regularly write code in VBA and VB6 and have been asked to create a function that will link to a...
Showing results 1 to 37 of 37

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC