Search results for query: *

  1. jcardana

    Question Put New Code Block at Cursor

    I have my code broken down into Regions... Form Events, Form Controls(Menus, Buttons, FileLists) and Routines and Functions. When I click on a control or use the pulldown menus, the new code block is placed either in the middle of my Functions block or at the end of the entire file. Isn't...
  2. jcardana

    Resolved Variable Naming Convention

    If you're curious, go HERE to read about the VB6 version. It's what I'm rewriting in .net.
  3. jcardana

    Resolved Variable Naming Convention

    I'm using theses for my Series Type and File type Private Const SeriesALL As Byte = 0 ' ORGAN SERIES FILES Private Const SeriesSU As Byte = 1 Private Const SeriesA As Byte = 2 Private Const SeriesE As Byte = 3 Private Const ftAll As Byte = 0 ' FILE TYPES Private...
  4. jcardana

    Resolved Option Strict vs Option Explicit

    Thank you for the links, knowledge AND solution! CType is still new to me ;)
  5. jcardana

    Resolved Option Strict vs Option Explicit

    I'm watching THIS tutorial about Drag and Drop. I'm using the following... Private Sub tvwCompDir_DragDrop(sender As Object, e As DragEventArgs) Handles tvwCompDir.DragDrop ' GET [SINGLE] FILE PATH FROM DROPPED FILE Dim PathFileNames() As String = e.Data.GetData(DataFormats.FileDrop)()...
  6. jcardana

    Resolved Variable Naming Convention

    A simple swap of True to False makes "isLocalFile" work better. Thanks!
  7. jcardana

    Resolved Variable Naming Convention

    I've been watching videos about cleaning up my code. I'm using a Boolean to determine if another variable represents a file from the Computer or the USB drive. I initially named it "CompOrUSB", with False being Computer and True being USB. My thought process is False is first and True is second...
  8. jcardana

    Question How do I determine which framework I need to target?

    I'm making a simple file manager for the files created by my Lowrey organ. I "think" I know that selecting a newest version, in my case 4.8, would require everyone who uses this to install .NET ver 4.8. but, since this is just using FileStream, StringBuilder, TreeView and Listbox, shall I...
  9. jcardana

    Eject USB disks and CM_Request_Device_Eject

    Interesting... after 10+ years, there's still no solution to this?
  10. jcardana

    Resolved BinaryReader.ReadByte

    I found the FileStream... it seems to be working so far
  11. jcardana

    Resolved BinaryReader.ReadByte

    First of all, is the BinaryReader the way to read a specific section of data in a file? Here's what I'm doing... I'm making a File Manager for the Preset and Music files created by a Lowrey organ. I need to read "Preset" information from a data file. First I'm getting the "Preset Filename"...
  12. jcardana

    Resolved Creating Textbox Array: System.NullReferenceException

    Since you made me go back, THINK (thank you) and resolve... Public Sub New() ' This call is required by the designer. InitializeComponent() For i = 0 To 54 txtPreset(i) = New TextBox Next End Sub I was only creating txtpreset(54) not ALL 55 of...
  13. jcardana

    Resolved Creating Textbox Array: System.NullReferenceException

    I'm trying to assign values to the properties with the With block. I removed line 13. The error tells me, there's no txtPreset(i) to provide values to. My understanding (or lack thereof) tells me line 8 is supposed to be creating the array of 55 textboxes. The For Next loop, is supposed to be...
  14. jcardana

    Resolved Creating Textbox Array: System.NullReferenceException

    I changed line 13 to... Dim txtPreset() As New TextBox I get Error BC30053 Arrays cannot be declared with 'New'
  15. jcardana

    Resolved Creating Textbox Array: System.NullReferenceException

    I'm attempting to create an array of textboxes. I need 55 of them (5 banks of 11). After searching the internet , I came across two examples @ How to create Control Arrays in VB .NET I was able to make it work successfully once but I couldn't figure out how to make the Events work, so I...
  16. jcardana

    Resolved Cross-thread operation not valid

    As I was going to bed I had this thought... If I'm driving and my wife wants to change our destination, she has to INVOKE her directions because she's in the car, but not driving. I'm starting to understand. Thanks.
  17. jcardana

    I need to reboot

    Just in case you're still here. I'm back at it. Slowly, making progress with all thanks to jmcilhinney and a book I received from a gent on FB.
  18. jcardana

    Resolved Cross-thread operation not valid

    I'm thinking it's in the StartDetection subroutine. EDIT: So is it the ARRIVE event? Why would this then prevent me from making changes to the listbox without the invoke command. I'm thinking because it's checking every second??? I'm still learning, thank you for your patience. This is to...
  19. jcardana

    Resolved Cross-thread operation not valid

    So, yes... the initial problem has been resolved. But I'm not understanding why I'm getting the Cross-Thread error. The control I'm trying to populate is a ListBox "lbxUSBFiles" with the filenames of a USB drive in a "G:\Lowrey" folder. What's causing this to run in a new thread which makes me...
  20. jcardana

    Resolved Is there a Class with a Method that provides access to MP3 file data?

    Specifically, I'm hoping to get the length of the file in TIME and a BitRate. I'm still learning how all these frameworks, classes and such are structured and I have no clue about how to find what I'm looking for. I found nothing in the File OI class. Thanks for your time, Joe
Back
Top