You are not logged in.

Search results

Search results 21-28 of 28.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Saturday, March 27th 2010, 6:06pm

Author: fallon416

button image doesn't show in design mode

When adding an image to a button in design mode the image doesn't show the button is just blank but the image shows when the application is running.

Saturday, March 27th 2010, 3:01pm

Author: fallon416

Common Dialog Problem

The Common Dialog control is not working correctly. When first added it worked fine. Now it has inserted Nothing as the file name that cannot be removed in the IDE. It must be removed in code. I also have 2 sets of filters depending on which button is pushed and the filters are not working at all. CommonDialog1.Filter = "Playlist files (*.plf)|*.plf|" & "All files|*.*" CommonDialog1.ShowOpen CommonDialog1.Filter = "Music Library Files (*.mlf)|*.mlf|" & "All files|*.*" CommonDialog1.ShowOpen They...

Saturday, March 27th 2010, 2:00pm

Author: fallon416

trimming a path to file name from a listbox

Thanks. To many years away from VB programming. This worked: Dim k As Long Dim s As String = lstPlaylist.List(lstPlaylist.ListIndex) k = InStrRev(s,"\") If k > 0 Then s = Mid(s, k + 1) lblTitle.Caption = s

Saturday, March 27th 2010, 5:17am

Author: fallon416

trimming a path to file name from a listbox

Hi, I'm attempting to trim off the path of a file in a listbox so that I just end up with the file name. In vb I can use Dim k As Long k = InStrRev(lstPlaylist.List(lstPlaylist.ListIndex),"\") If k > 0 Then lblTitle.Caption = right$(lstPlaylist.List(lstPlaylist.ListIndex), k) This works but does not return everything to the right of the last \. It chops off some of the filename. Is there a different way to do this in Jabaco? Neil

Saturday, March 27th 2010, 3:34am

Author: fallon416

listbox support

I figured it out. I was being a meat head and put the code in the wrong section. This works: lblTitle.Caption = lstPlaylist.List(lstPlaylist.ListIndex) Neil

Friday, March 26th 2010, 8:48pm

Author: fallon416

listbox support

Hi, I'm having a bit of a problem with the ListBox control. In vb there are number of ways to get the selected item of a listbox: method 1: If lstPlaylist.ListIndex <> -1 Then lblTitle.Caption = lstPlaylist.List(lstPlaylist.ListIndex) End If method 2: lblTitle.Caption = lstPlaylist.Text How is it done in Jabaco?

Friday, March 26th 2010, 8:09pm

Author: fallon416

populate listbox from text file

I found some sample code in one of the forums that worked great. Problem solved. CommonDialog1.Filter = "Playlist files (*.plf)|*.plf|" & "All files|*.*" CommonDialog1.ShowOpen Dim FF As VBFileHandler Dim LineText As String FF = Open(CommonDialog1.FileName) Do Until FF.EOF LineText = ReadLine(FF) lstPlaylist.AddItem New ListCellData(LineText) Loop FF.close()

Friday, March 26th 2010, 7:26pm

Author: fallon416

populate listbox from text file

Hi, I'm trying to populate a ListBox from a text file but I'm having a problem with the while loop. I looked at the Java IO code and am trying to use it with the common dialog. For some reason the Java IO doesn't like the While loop added to it. Here is the code that I'm trying to use. I'm not a Java developer so I really don't have a clue. If I take out the While loop the first item in the text file is loaded. CommonDialog1.Filter = "Playlist files (*.plf)|*.plf|" & "All files|*.*" CommonDialog...

WoltLab Burning Board