Click here to Skip to main content
15,921,351 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How do I get the currently running form or dialog in my application using VB.Net? Pin
Dave Kreskowiak10-Aug-07 10:40
mveDave Kreskowiak10-Aug-07 10:40 
GeneralRe: How do I get the currently running form or dialog in my application using VB.Net? Pin
Polymorpher10-Aug-07 10:47
Polymorpher10-Aug-07 10:47 
GeneralRe: How do I get the currently running form or dialog in my application using VB.Net? Pin
Dave Kreskowiak10-Aug-07 12:32
mveDave Kreskowiak10-Aug-07 12:32 
AnswerRe: How do I get the currently running form or dialog in my application using VB.Net? Pin
nlarson1110-Aug-07 10:49
nlarson1110-Aug-07 10:49 
AnswerRe: How do I get the currently running form or dialog in my application using VB.Net? Pin
nlarson1110-Aug-07 11:26
nlarson1110-Aug-07 11:26 
GeneralRe: How do I get the currently running form or dialog in my application using VB.Net? Pin
Polymorpher10-Aug-07 12:09
Polymorpher10-Aug-07 12:09 
QuestionCompact and Repair Access Database. Pin
NANCO10-Aug-07 7:37
NANCO10-Aug-07 7:37 
AnswerRe: Compact and Repair Access Database. Pin
Kschuler10-Aug-07 8:14
Kschuler10-Aug-07 8:14 
I found this article which may interest you:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q303528[^]

I wrote a utility to compact an access database using some code that I had found somewhere. I referenced Microsoft DAO 3.6 Object Library Com object and then used the following code:
Private Sub CompactFile(ByVal strFileIn As String, ByVal strFileOut As String)
        Try
            'First check the file u want to compact exists or not
            If My.Computer.FileSystem.FileExists(strFileIn) Then
                Dim objDAO As New DAO.DBEngine()
                'CompactDatabase has two parameters, creates a copy of compact DB at the Destination path
                objDAO.CompactDatabase(strFileIn, strFileOut)
            End If

        Catch ex As Exception
            MsgBox("Compact File Error: " & ex.Message)
        End Try
    End Sub


Note: This method will save the compacted database under a new name. If you want it to appear that the file itself was compacted you will have to add code to delete the exising db and replace it with the compacted one after you perform this method.

Hope this helps.
QuestionChart In VB.Net 2003 Pin
ejaz_pk10-Aug-07 6:45
ejaz_pk10-Aug-07 6:45 
AnswerRe: Chart In VB.Net 2003 Pin
ohart10-Aug-07 7:43
ohart10-Aug-07 7:43 
QuestionRe: Chart In VB.Net 2003 Pin
ejaz_pk11-Aug-07 0:49
ejaz_pk11-Aug-07 0:49 
AnswerRe: Chart In VB.Net 2003 Pin
ohart13-Aug-07 5:26
ohart13-Aug-07 5:26 
QuestionInserting Data In SQL Database Pin
dreamerboy10-Aug-07 6:45
dreamerboy10-Aug-07 6:45 
AnswerRe: Inserting Data In SQL Database Pin
Kschuler10-Aug-07 8:04
Kschuler10-Aug-07 8:04 
AnswerRe: Inserting Data In SQL Database Pin
Vimalsoft(Pty) Ltd16-Aug-07 23:43
professionalVimalsoft(Pty) Ltd16-Aug-07 23:43 
QuestionCharacters other than english Pin
ejaz_pk10-Aug-07 6:40
ejaz_pk10-Aug-07 6:40 
AnswerRe: Characters other than english Pin
i gr810-Aug-07 20:19
i gr810-Aug-07 20:19 
QuestionVisual Basic Code Highlighting in Visual Studio 2003 Pin
Michaeljd10-Aug-07 6:37
Michaeljd10-Aug-07 6:37 
AnswerRe: Visual Basic Code Highlighting in Visual Studio 2003 Pin
Dave Kreskowiak10-Aug-07 6:58
mveDave Kreskowiak10-Aug-07 6:58 
GeneralRe: Visual Basic Code Highlighting in Visual Studio 2003 Pin
Michaeljd10-Aug-07 7:03
Michaeljd10-Aug-07 7:03 
QuestionAdding Textboxes at Run Time Pin
ejaz_pk10-Aug-07 6:28
ejaz_pk10-Aug-07 6:28 
AnswerRe: Adding Textboxes at Run Time Pin
Luc Pattyn10-Aug-07 6:47
sitebuilderLuc Pattyn10-Aug-07 6:47 
AnswerRe: Adding Textboxes at Run Time Pin
Dave Kreskowiak10-Aug-07 6:47
mveDave Kreskowiak10-Aug-07 6:47 
QuestionMonth week Number and dates Pin
ejaz_pk10-Aug-07 5:19
ejaz_pk10-Aug-07 5:19 
AnswerRe: Month week Number and dates Pin
Guffa10-Aug-07 5:40
Guffa10-Aug-07 5:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.