Listbox/listview as folder browser? - vb.net

In VB.net 2013 how do you make a listbox to be a browser of a directory where you can't leave the directory, but only browse inside of it - open folders in it and go back up to the root level? Similar to warcraft 3 where you choose a map and can open folders and go back. Andbasically any game with editor has such option.
Or if it's not possible with lsitbox is it possible with listview?

There are a few things to take into account when building something like this, here are a couple of areas and pointers to help you on your way...
Get Directories This article will help you get a list of directories.
Get Files Once you have folders, you'll need to get the files too!
Put it all together... more tricky! You'll have to use some imagination and a lot of googling to understand how it all looks. Depending on your level, start of with lists, use ListView or simply listboxes to begin. Understand what data is being populated.
If you're up for the challenge...ObjectListView is an amazing custom control. If you can get your head round it, it can be very easy to manage.
Keep googling and asking! Theres always help out there!
Hth Chicken

Related

ssrs_migration.rss file

Does anybody have the ssrs_migration.rss file for RS.EXE (SSRS Reporting Sevices). Can't find it anywhere (Microsoft dropped the ball on this one) and I need to move a bunch of reports. Even if I you can post the VB as text so I can copy it. That'd be great. Thanks!
OR... If you know of a better way that'd be awesome too! I cannot deploy strait out from the project in my scenario.
You have to go to Github to get your file. That's a treat to work with too.
Click the Raw button (why they don't have a "download" button is beyond my comprehension) and then Safe the page.
Hope this helps.

Vb.net project save not opening from anywhere by its original source

I've made a program for my assingment, and code it entirely from home. Obviously I need to submit it and work on it from college, i've got about 13 hours until it's due and I cannot for the life of me figure out what these errors mean, I'm guessing its something to do with the paths of the files. To make it clear, the program does not open and it is not the original copy. I do have other copies and I have tried the same approach with the exact same luck. Thank you in advance.
Okay, an update. As I said, I copied it from home, and pasted it in the folder location that it is calling below, however, it's calling an older version of the game which has no relevence to the game(number guessing game), from a location two files up from the actual vb files. Is there a way i can change what the project opens?
In your second picture just drag 'Form1.vb' to the solution Explorer. That way it can recognize your form. I have encountered this problem before and I just did what I said above.

Save Aptana Studio 3 project explorer state on close

I'm sure there is a simple option for this but I have as yet been unable to find it. Every time I close and reopen Aptana Studio 3 it collapses all the folders in the project explorer and I have to reopen them all, is there a way to get it to leave them open and save the project explorer's state when I close the program?
Thanks.
I cannot find any way to keep the state of the Project Explorer. However, using the App Explorer, the state of your open folder will be preserved. You can also try the "Navigator" which looks just like the Project Explorer, but appears to keep state. I will add the proviso to that: It kept state when I restarted aptana, but it also developed a GUI glitch where it appears to be scrolled to the right so I only see the right half of all of my file names and I cannot fix it, so this may not be a good option if you get the same glitch.
There is also a method which does not do quite what you ask, but may be a good fix for you anyway. If you click "Link with Editor" picture (two yellow arrows) in the Project Editor, it will automatically expand your project hierarchy to match whichever open file you have active. Since your files stay open when you close Aptana, this would keep the Project Explorer expanded to whatever you are looking at even on restart. See this question
You can also set up working sets for various parts of your code that are buried in the hierarchy and use the Project Explorer to show those working sets instead of you projects. This does not save state, but it does give you easy access to common parts of your code that may be deeply buried.
Hope one of these helps you.

Applescript Access Print and Scan

I'm getting my feet wet with AppleScript. It seems pretty neat, but totally different than the kind of scripting I'm used to working with. My problem lies here:
I want to open up System Preferences and then Print&Scan.
I can do it for many other preference panes, but not Print&Scan. For example,
tell application "System Preferences"
activate
set current pane to pane id "com.apple.preference.sound"
end tell
will get me to the preference pane for sound. How would I open Print&Scan?
Also, is there a place that lists all the panes you can use? I looked in the Applescript dictionary, but couldn't seem to find where they might be? Is that something listed in the dictionary?
Thank you in advance,
Ryan
I just find the particular preference pane I want to use, for example in the /System/Library/PreferencePanes folder, and look up the bundle identifier (in the Info.plist file) - in this case it would be com.apple.preference.printfax.

VB.net IO.Directory.CreateDirectory

When I use IO.Directory.CreateDirectory to create a directory it creates a read-only directory no matter where I make the directory. Am I missing something?
You are getting confused by the shell properties dialog:
The Read-only checkbox is a tristate checkbox. When it is filled solid like that, it means the state is "indeterminate'. Click it twice to turn it into a check mark. When you then hit the OK or Apply button, the shell sets the readonly attribute on all the files inside the folder.
Yes, this is not great UI design, you are not the first to be tripped up by this. The (only applies to files in folder) hint looks like a fairly desperate attempt to make it clearer. Without enough room to make it a grammatically correct phrase. Wonder what it looks like in German...