- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
16 Posted Topics
[code] Private Sub RenameFile(ByRef fileNameFull As String) Dim fileI As FileInfo = New FileInfo(fileNameFull) If fileI.Exists Then Dim binReader As New BinaryReader(File.Open(fileNameFull, FileMode.Open)) Dim fileClosed As Boolean = False Try ' read the first 4 bytes into a buffer to ' determine if the file is empty. Dim testArray As …
I am converting an app I wrote when learning VB (I primarily use C++). In VB it was trivial to minimize a window to the Taskbar: Private Sub GoButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GoButton.Click Me.WindowState = FormWindowState.Minimized Setting the window state in the "Go" button's _Click …
I am working on a WIN32 (not MFC) project. Currently it uses the default XP and earlier file dialogs. In attempting to add the option, under Win7/Vista, to use the new-style file dialogs, I have come to a stumbling block. The only code examples I can find come from here: …
I am a developer on the open source Audacity team and am trying to add some functionality. Currently if you drag the icon of a supported type (fi song.wav) onto an open Audacity project it loads the file. However if you drag song.lnk (like an XP shortcut but different--looks like …
Okay, it's been a long time since I've programmed in C++! Languages change considerably in the last 5 years or so. In reviewing some source code I often see statements like this: [CODE] wxString label; if (name == wxT("Undo")) { label = _("Undo");[/CODE] obviously, I snipped out a lot of …
I've had a similar problem and it ended up a variable scope situation. Try this as a test... Create a global variable (I'm note sure where would be appropriate in your code, if the is a generic Form put it in): [icode]Public Class Form1 Public userName As New StringBuilder[/icode] Then, …
These are both ready for deployment (I think :) !) RenameSongs v0.0.0.2:[URL="http://home.wavecable.com/~edgarmusgrove/RenameSongs4.zip"]RenameSongs4.zip[/URL] tag2file v0.0.0.2: [URL="http://home.wavecable.com/~edgarmusgrove/tag2file3.zip"]tag2file3.zip[/URL] See for details: [URL="http://www.daniweb.com/forums/thread169098.html"]daniweb forum thread[/URL] If I can figure out how to put a download counter on my site, I will know if I should announce updates to the code! Until then, please let …
Each time you enter the sub you [icode]Dim ACWriter = IO.File.CreateText("AccountRecords.txt") [/icode] which (at my best guess) creates a new text file, wiping out the old. I think you need to look into "append" when opening a file and wanting to add data to the end.
You might have to go into the properties of the app when installed on 64 bit and change to "run as 32 bit app" (or some such), look on the Compatibility tab. I run lots of 32 bit compiled apps on my 64-bit Vista machine. Most just work, others need …
I'm starting to get the hang of writing VB.NET code--very simple jobs, but covering some esoteric subject matter. The first two tasks I needed to accomplish came about because I decide to import my (rather large) CD collection onto my new (also rather large) external hard drive; I used Apple’s …
All my (programming) life I’ve been plagued by timing problems! I assumed (haha) that when I changed from a pervasively multitasking OS to Vista I would escape the problem but it seems like I must be missing something. My problem lies in WhichChar. Note the line: 'MsgBox(vbNullString) If I leave …
With this code: [CODE] Imports System.Text Public Class Form1 Public quoteStr As String = Global.Microsoft.VisualBasic.ChrW(34) Public illegalChar As Boolean = False Public asteriskReplacement As New StringBuilder(" ", 4) Public asteriskComboIndex As Integer = 0 Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim keyboardCharacters As String() …
Here is what I want to accomplish--I want a ListBox exactly like everyone else uses (almost always)! When the user mouse-clicks in the box and enters a keypress, the first item in the dropdown list, with that char as a first char, is selected. The values are restricted to those …
I started working with computers in the late ‘60s doing hardware design. I built computers by designing the circuit boards using clock chips, XOR gates and AND gates etc.! I hired out the silkscreen creation, but otherwise did all the other work. After completing my BA requirements at UCSD, I …
All these New Object()s are identical (and in fact, much longer!) How do I declare a single instance then reuse it in each ComboBox .Items.AddRange()? I am using Visual Studio 2008/Visual Basic. [CODE] verticalBarComboBox.Items.AddRange(New Object() {" single space", "- hyphen", " - <single space>hyphen<single space>", "` open single quote", "=", …
Does this leak memory? [CODE]Dim Public strBldr As New StringBuilder("test", 5) ‘alloc a StringBuilder MsgBox(strBldr.ToString()) ‘use the StringBuilder strBldr = New StringBuilder("a", 2) ‘did the destructor of StringBuilder holding “test” 'free up its memory? [/CODE] As StringBuilder does not implement a Clear() method, and I am having timing issues with …
The End.
edgar5