You are not logged in.

Search results

Search results 1-10 of 10.

Tuesday, September 9th 2014, 11:46am

Author: indyglassman

Another Option (Yes, I know it's an old thread)

This was the only hit I found when searching for how to do this and subsequently found a different way with out using BareBones. Import java.awt.Desktop and java.net.uri Then simply use the following line when you want to open a URL: Desktop.getDesktop().browse(New URI("http://www.example.com"))

Tuesday, May 13th 2014, 11:26pm

Author: indyglassman

Call public function from Form_load - Not working

Dani, You posted: Source code 1 2 3 Public Sub Form_Load() SetLabel() End Sub This does nothing because the SetLabel() is a function that returns a value. But the code doesn't tell it where to put that value However, after looking over the differences again I found the one difference that makes this work. You have "Public Form1 as New Form1" inside the sub Main to "Dim Form1 as New Form1" I didn't notice that change because I saw that Jabaco automatically created the sub main and the reference t...

Tuesday, May 13th 2014, 10:53pm

Author: indyglassman

Call public function from Form_load - Not working

Dani, I appreciate your suggestions. But, it does not work. Here is my code to demonstrate exactly what does not work. Form 1 just has a label1 control, and module1 has a single function I created to return a string for setting label1.caption. Doing this does not work on my system. The java icon shows in my task bar, but the java window for form1 never displays and I can not switch too it. No matter what I try, I can not call a function that is in a module from form_load. The reason the code MUS...

Monday, May 12th 2014, 7:48pm

Author: indyglassman

Call public function from Form_load - Not working

I've tried and tried and still believe it must not be possible to call a user created function from an included module inside of your form_load() event. To accomplish what I am trying to do I went a different route. I used the timer control. Upon form_load() I set the timer to 500ms. Then enable the timer and do what I want inside of the timer event. Then turn off the timer. If there is a better way to accomplish this, let me know. Otherwise I will go with that for now.

Monday, May 12th 2014, 2:43pm

Author: indyglassman

Call public function from Form_load - Not working

Dani, Your first suggestion does work, however, I put the code to read the file in a module because it needs to be accessible to multiple forms. In your second suggestion I don't see where you suggest I call Setlabel() from. This is exactly what I'm trying to do but calling SetLabel() from form_load causes the main window to not display. From what I can tell, it is not possible to call a user created function/sub that exists in a module from form_load.

Monday, May 12th 2014, 2:23am

Author: indyglassman

Call public function from Form_load - Not working

Here is the code. When I run this, the form will never display on my screen. If move the line from form_load to something like command_click() then it works fine. So it appears that calling a user created function from with in form_load does not work for me. Quoted (This is in form1) Public Sub Form_Load() label1 = setlabel End Sub (This is in Module1) Public Function Setlabel() As String Setlabel = "Label set" End Function What I am trying to do is to have a function that reads data from a file...

Saturday, May 10th 2014, 12:39pm

Author: indyglassman

Jbgrid Issue

Thank you, Dani. Updating from 127 to 135 did fix the problem. I have saved the correct link to the latest binaries so I can keep up-to-date. I appreciate your help.

Saturday, May 10th 2014, 4:24am

Author: indyglassman

Jbgrid Issue

Dani Thank you for looking into this. I've tried this on a couple different systems to ensure it wasn't something just on my laptop. So far I've tested it with the same result on: Windows 7 Enterprise Windows 7 Professional, SP1 Yes, I ran the sample exactly as the ZIP file that I mentioned with one exception. The following line: JBGrid1.CellEditor.JBComboBox.Style = jbDropdownList which is in JBGrid1_BeforeCellEdit (In your sample program) Doesn't like the Style and says "Function or variable n...

Friday, May 9th 2014, 6:39pm

Author: indyglassman

Jbgrid Issue

I thought I had figured a work around but I was wrong. Adding the code to set column widths in the LostFocus() event helps some, but not 100%

Friday, May 9th 2014, 5:06pm

Author: indyglassman

Jbgrid Issue

I'm working with the Jbgrid. I populate the grid, set the column headers and column widths. I'm also using the Jbgrid.celleditor.component feature for both the checkbox and combolist. The problem is: If I select a field in column 3, Beforecelledit and sets the celleditor.component to a jbcombobox. If I click to edit a cell in column 3 and do not change the value, then click on another cell, the column widths all change. If I change the value in the column and then select another cell, the column...

WoltLab Burning Board