|
-
Jan 13th, 2008, 07:25 AM
#1
Thread Starter
Frenzied Member
-
Jan 14th, 2008, 01:57 AM
#2
Thread Starter
Frenzied Member
-
Jan 14th, 2008, 11:03 AM
#3
Re: Browser New Window Problems
Please do not bump threads. I have deleted your last post.
-
Jan 14th, 2008, 12:32 PM
#4
Thread Starter
Frenzied Member
-
Jan 14th, 2008, 01:26 PM
#5
Re: Browser New Window Problems
No, but we don't like that either!
Bumping threads is replying with something like "somebody answer" or similar (like you did in post #2).. which is not actually giving us any new information, and so it seems that you are not making any effort to solve it yourself.
We are here to help, not do all of the work for you - and bumping makes it look as if you are expecting us to do everything. It is much better to try to solve it yourself, and tell us what you have achieved, along with an updated question if appropriate.
-
Jan 14th, 2008, 01:57 PM
#6
Thread Starter
Frenzied Member
-
Jan 14th, 2008, 02:42 PM
#7
Re: Browser New Window Problems
When the user clicks the Properties menu item, which I am assuming Loads/Shows the Properties Form, you know exactly which Node the clicked upon. Why not just pass that Node object to the Properties Form, basically telling it to "show the data from this node"?
Or better yet, create Title and URL properties on the Properties Form whose values can be set by any process wishing to show the form.
Or even just set the textbox values on the form directly.
Pretty basic stuff.
-
Jan 14th, 2008, 03:06 PM
#8
Thread Starter
Frenzied Member
Re: Browser New Window Problems
Pretty basic stuff.....even I thought so.....
Why not just pass that Node object to the Properties Form, basically telling it to "show the data from this node"?
That's what I am doing. If a node is selected, I am retrieving that node's Text & Tag properties using
Code:
strTitle = frm.tvwHistory.Nodes(i).Text
strURL = frm.tvwHistory.Nodes(i).Tag
but it's not working. If the TreeView of the 1st browser window is closed, then the Properties Form in the 2nd browser window shows the correct title & URL of the node that is selected in the TreeView of the 2nd browser window but if the TreeView in the 1st browser window is visible, then the Properties Form shows the incorrect title & URL of the node that is selected in the TreeView of the 2nd browser window. Under such circumstances, the Properties Form in the 2nd browser window shows the title & URL of the node that is selected in the TreeView of the 1st browser window.
ARPAN
IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!
NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!
PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?
-
Jan 14th, 2008, 04:26 PM
#9
Re: Browser New Window Problems
You are not "passing" the node object to the Properties Form. The code is trying to "Find" a node but it assumes only one treeview is open at a time (as you know).
Code:
'in the Properties Form
Public Sub ReadPageDetails(Node As MSComctlLib.Node)
txtTitle.Text = Node.Text
txtURL.Text = Node.Tag
Show
End Sub
' in the form with the treeview
'call the method from the popupmenu's click event
Private Sub mnuProperties_Click()
If Not tvwHistory.SelectedItem Is Nothing Then
Call frmProperties.ReadPageDetails(tvwHistory.SelectedItem)
End If
End Sub
-
Jan 15th, 2008, 02:30 AM
#10
Thread Starter
Frenzied Member
Re: Browser New Window Problems
But what code do I add in mnuProperties_Click() to display the Properties Form?
Earlier I was doing it like this:
Code:
'Form with TreeView
Private Sub mnuProperties_Click()
Dim frm As frmPageProperties
Set frm = New frmPageProperties
Call frm.ShowMe(Me)
End Sub
'Properties Form
Public Sub ShowMe(OwnerForm As Form)
Set frmOwner = OwnerForm
Me.Show vbModeless, frmOwner
frmOwner.Enabled = False
End Sub
ARPAN
IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!
NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!
PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|