Search:

Type: Posts; User: rkeslar

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    687

    VS 2005 Re: Deleting file on FormClosed

    I'll have to look for it. It's not too big of a deal if it doesn't get deleted I guess because since I'm looping through all *.enc files in the folder, the next time the program is opened and closed...
  2. Replies
    8
    Views
    687

    VS 2005 Re: Deleting file on FormClosed

    Well I had that line already

    fs2_write.Close()
  3. Replies
    8
    Views
    687

    VS 2005 Re: Deleting file on FormClosed

    First I create the file like this:

    File.WriteAllText(encryptedFile, verStr)

    Then I after it's acreated I append to it like this:

    fs2_write = New FileStream(encryptedFile, FileMode.Append,...
  4. Replies
    8
    Views
    687

    VS 2005 Deleting file on FormClosed

    I'm trying to delete a file in the FormClosed method, but I get an error saying it's in use by another process. At this point in my program it's not needed anymore. Is there any way to take control...
  5. Replies
    5
    Views
    590

    VS 2005 Re: boolean checking

    Thanks for the info!
  6. Replies
    5
    Views
    590

    VS 2005 [RESOLVED] boolean checking

    Is there any better performance by checking for a true value like this:

    If (debugFlag) Then

    ' Do something

    End If

    than like this:
  7. Replies
    1
    Views
    476

    VS 2008 Folder Permissions with Windows 7

    If I don't grant write permissions to the folder containing my exe file, I get an 'Access to the path bin\Release\program.exe' is denied. But if I grant it write permission I don't get the error. Why...
  8. Replies
    2
    Views
    456

    Re: Console Application

    Thanks. I found this link that looks like it might be helpful

    http://www.powervb.com/consoleapp.htm


    That's pretty cool. I got it to work with the little gui app I wrote. I guess VB6 was...
  9. Replies
    2
    Views
    456

    [RESOLVED] Console Application

    How do you write a console application in vb6? I don't see an option for creating one like I do in vb.net. Is it not possible to create an app like this in vb6?

    Thanks
  10. VS 2005 Re: Time() and TimeOfDay() problems in Windows 7

    I got the problem fixed thanks to this post:

    http://stackoverflow.com/questions/64469/vb-net-on-vista-trying-to-get-date-today-causes-security-exception
  11. VS 2005 [RESOLVED] Time() and TimeOfDay() problems in Windows 7

    I'm calling a method and passing Time and TimeOfDay to it, then in my method, I'm populating a datagrid of entries. I'm not actually trying to set the System time, just record read it but I'm getting...
  12. VS 2005 Re: Insufficient security permissions to set the system time

    Oh...how do you run it as a restricted user?
  13. VS 2005 Re: Insufficient security permissions to set the system time

    Thanks a lot for the informatino
  14. VS 2005 Re: Insufficient security permissions to set the system time

    Do you know where the app.manifest is usually located?
  15. VS 2005 Insufficient security permissions to set the system time

    I'm working with a vb.net 2005 project that i converted from vb 6.0 last year. It's working fine in windows xp, but on vista and windows 7 i get an error saying 'Insufficient security permissions to...
  16. Replies
    2
    Views
    972

    VS 2005 Winforms life cycle

    What events are hit before form_load in a winforms app?

    Somewhere before the form_load a file called .ini is created and I can't figure out where it's being created. It's just .ini with no name...
  17. Replies
    14
    Views
    1,119

    VB6 Keybindings

    Is it possible to change the keybindings in VB6? Right now,

    Step Over is Shift + F8
    Step Into is F8

    I'd like to make them the say as I have in VB.NET where

    Step Over is F10
    Step Into is...
  18. Replies
    2
    Views
    523

    VS 2005 Re: DateTime DataColumn

    Actually it was pretty easy. If there's an empty string, just set it to Nothing:

    If (LineItems(3).ToString().Length = 0) Then
    LineItems(3) = Nothing
    End If
  19. Replies
    2
    Views
    523

    VS 2005 [RESOLVED] DateTime DataColumn

    I'm adding a DateTime DataColumn to a DataTable like this:




    Dim colDate As DataColumn = New DataColumn("Date")
    colDate.DataType = System.Type.GetType("System.DateTime")
    ...
  20. VS 2005 Re: Loop through FileNames and store them in an Array

    I needed another counter like this:



    Dim i As Int32
    Dim z As Int32
    Dim fileCount As Int32 = 0

    If (fileOpenDialogOpen.FileNames.Length > 0) Then
    ...
  21. VS 2005 Loop through FileNames and store them in an Array

    I'm selecting multiple files from a FileOpenDialog box. Now I want to store the names in an array. This is what I'm trying to do:




    For i = 1 To fileOpenDialogOpen.FileNames.Length

    ReDim...
  22. Replies
    5
    Views
    1,239

    VS 2005 Adding DropDown items conditionally

    In my VB.NET (desktop) application I'm adding items to a dropdown box like this:


    Me.mnuSetup.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.mnuAddUser, Me.mnuDeleteUser,...
  23. VS 2005 Re: Console.WriteLine((My.Application.CommandLineArgs(4)))

    Thanks!
  24. VS 2005 Re: Console.WriteLine((My.Application.CommandLineArgs(4)))

    Why do you have to escape it with 2 extra sets of double quotes instead of just one?

    Why is it """C:\My Folder\My File.txt""" and not ""C:\My Folder\My File.txt"" ?

    One more question

    If I...
  25. VS 2005 Console.WriteLine((My.Application.CommandLineArgs(4)))

    If I try to display a command line argument that has double quotes around, the double quotes are always stripped off. How can I avoid this?


    for example, the argument is "c:\xx.txt"

    and this...
  26. Replies
    4
    Views
    2,221

    VS 2005 Re: print to screen in console app

    Cool. thanks for yoru help
  27. Replies
    4
    Views
    2,221

    VS 2005 [RESOLVED] print to screen in console app

    In my console app, I'm currently printing to a log file with File.AppendAllText. How would you print to the screen instead. Also, is there an echo command so that I could echo to the screen...
  28. Replies
    1
    Views
    310

    VS 2005 [RESOLVED] a string array with no values

    I wrote a console application where arguments are passed from the command line to a string array called args()

    If someone runs the program without supplying any of the arguments, I want to catch...
  29. Replies
    0
    Views
    326

    VS 2005 [RESOLVED] using wildcards to find files

    deleted. nevermind.
  30. Replies
    6
    Views
    800

    VS 2005 Re: System.Net.Sockets - FTP

    Oh Ok. Thanks for the help. It shouldn't be too hard to emulate what that's doing. I have a feeling it isn't being used much though anyway. This program offers either ftp or https uploads. We wanted...
  31. Replies
    6
    Views
    800

    VS 2005 Re: System.Net.Sockets - FTP

    The VB6 version used a 3rd party component by Xceed, which I replaced with .NET methods from the System.Net.Sockets namespace. The VB6 code looked like this:


    ' if we need authentication, log in...
  32. Replies
    6
    Views
    800

    VS 2005 Re: System.Net.Sockets - FTP

    Well, I'm rewriting an old vb6 app. From reading the documentation for it, it states that users may provide firewall login and password if necessary but this may not work. i actually couldn't even...
  33. Replies
    6
    Views
    800

    VS 2005 System.Net.Sockets - FTP

    I'm using System.Net.Sockets namespace for connecting to an ftp server. If a user has to login to a firewall first though, I'm not too sure what to do. The following is what I have working for...
  34. Replies
    0
    Views
    296

    VS 2005 Setup Project - Custom Action Question

    In my setup project, I have a couple console apps that run as Install Custom Actions. They work fine, but since they exist in the file system on the target machine, they are present on the users...
  35. Replies
    3
    Views
    1,352

    VS 2005 Re: [RESOLVED] [TARGETDIR] Custom Action

    My solution:

    Pass "C:\Program Files" in as a command line argument



    Imports System.IO

    Module Module1
  36. Replies
    3
    Views
    1,352

    VS 2005 Re: [TARGETDIR] Custom Action

    That worked, although for some reason it wrote out a trailing " but not one before the string. Even so I guess after writing the string, I'll want to replace all " with a blank space. Before reading...
  37. Replies
    3
    Views
    1,352

    VS 2005 [RESOLVED] [TARGETDIR] Custom Action

    I have a small console application that writes the [TARGETDIR] from my msi installer to a text file.

    If I choose C:\Program Files\ as the installation folder, it only writes out

    C:\Program

    ...
  38. VS 2005 Re: [RESOLVED] Close my program but still appears in Task Manager

    Thanks for all your help.
  39. Replies
    0
    Views
    280

    VS 2005 [RESOLVED] msi installation question

    When a user chooses a folder to install my program to such as

    C:\programA\

    in this folder 5 subfolders are automatically created by the installer.


    After the user chooses where the program...
  40. VS 2005 Re: Close my program but still appears in Task Manager

    I will check on that. Would this take care of the vshost.exe closing also?

    I'm not seeing the program in the task list right now but the program name_vshost.exe still runs after the program is...
Results 1 to 40 of 145
Page 1 of 4 1 2 3 4



Click Here to Expand Forum to Full Width