Search results for query: *

  1. S

    .NET Install Package Option To Run After Install

    Yes, Thanks John, I guess I will need to add a dialog with checkboxes to accomplish what I need here, in conjunction with that code project code.
  2. S

    .NET Install Package Option To Run After Install

    Is there an option to run the application after installing from a .NET msi install? Is there a key to turn this on that I am missing? Most install packages you see have a check box asking if you would like to run after installation.
  3. S

    .NET Install Package Removal Of Previous Version

    Thanks JM, yeah I tried to sneak that one in there. :anonymous: I can post that separately.
  4. S

    .NET Install Package Removal Of Previous Version

    I have a .NET install package in my solution (msi). I see there is a key to Remove Previous Versions (RemovePreviousVersions). However, it seems if I make code changes then rebuild the package it no longer is able to uninstall the previous version with the package but it tells you to go to the...
  5. S

    exception not caught by try block?

    Does your catch block look like this ? Catch Ex as Exception
  6. S

    Error with Access: The database has been placed in a state by user 'Admin'....

    Do you think that ODBC may help with this instead of connecting directly through JET? I realize that would require decent amount of code changes and setting up each local workstation to connect to the database. Also, I am not sure this would be any different.
  7. S

    Error with Access: The database has been placed in a state by user 'Admin'....

    You may find this post helpful from the stack overflow forum: Is MS Access (JET) suitable for multiuser access? - Stack Overflow
  8. S

    deleting columns which are not necessary using datetime pickers.

    Each column has a name property and you could convert that column to a date and based on that value hide or leave that column. Dim dc As DataGridViewColumn For Each dc In DataGridView1.Columns Dim dtVal As Date = CDate(dc.Name) If dtVal < pickedDate...
  9. S

    Question How do I manipulate Website address to remove subdomain if there is one?

    I have not personally used this object before, but you could look into the .NET URI object: Uri Class (System)
  10. S

    Simple question about moving files

    The IO.File.Copy method has an optional third parameter to overwrite. You could copy (and overwrite) the file and delete the original.
  11. S

    ADODB.Connection Question

    The state method is probably nothing because the object to which that property belongs is nothing. You must re-instantiate your connection object (= new Connection) and attempt to reconnect again.
  12. S

    Question How do I pause my for loop until variable "Ready" = True ?

    You should use a while loop because this is not possible (to my knowledge) in a for loop: Dim i as integer = 0 While i < StudentList.Items.Count - 1 If Ready = True Then i += 1 Else 'do nothing End If End While Be careful because you could get stuck in an infinite loop...
  13. S

    Question what i can do to enhance that code

    The main hold up here is probably Excel, I have run 100's of programs like this one. But one main difference in mine is that I always used DataReader to iterate through the data you may see some sort of speed increase from doing things that way. Also I have done a neat trick where you place the...
  14. S

    Access 2007 search between two dates

    I would use the Format function to get the dates into the proper format. Format(SchDateFrom.Value.Date, "MM/dd/yyyy") I am not quite sure what your problem is exactly.
  15. S

    Using the While loop

    Module Module1 Sub Main() ReadValuesAndSumNumbers() End Sub Private Sub ReadValuesAndSumNumbers() Dim done As Boolean = False Dim numbersDbl As Integer = 0 Dim ReadDblValue As Double = 0.0 Dim srtInput As String Dim summation As Double...
  16. S

    Question Catching errors on database connection

    .Fill method of the DataAdapter should be where your exception occurs. Put a try block around that method and catch the SQLException and you should have all of the information you need in the SQLException object: Try DataAdapter.Fill(DataSet) Catch Ex as SqlClient.SqlException 'There are...
  17. S

    connect to oracle 11g

    What connection string are you using to connect? Should look something like this: DSN=myDsn;Uid=myUsername;Pwd=myPwd; I receive this error when the Data Source Specified in my connection string does not exist.
  18. S

    Question clear history in open file dialog

    The filenames property refers to the files that were selected by the dialog. I am not sure where this history comes from but I do know to what you are referring. I do not think there is a way to do this through code but there may be some way to do this through the OS or some other way.
  19. S

    A network-related or instance-specific error occurred

    You are correct this is because the connection you are attempting to open cannot find the data source, which in this case is looking for a local instance of sql express.
  20. S

    Question Form to retrieve data from a stored procedure and then update from another one

    'exec YourSpName' is the sql code that will return the data you would like to use. You either fill a dataset with this command or use a datareader to perform the operations you want. You could then use executenonquery on the command object to update the database or call another stored proc as...
Back
Top