Advertisement

06.04.2008 at 07:12PM PDT, ID: 23458974
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

Webbrowser Control Issues

Asked by KerryS1 in Visual Studio, Microsoft Visual Basic.Net, Internet Explorer Web Browser

Tags:

I originally posted the following question but received no responses.

"I have a VS 2005 VB windows application that uses the WebBrowser control to display text, graphics and hyperlinks. The hyperlinks are used to open a modal windows form for displaying the definition of the hyperlinked word displayed in the control. In the Navigating event I test the url.absolutepath property in order to determine the correct definition to display. This application is deployed through one-click deployment. The problem lies in that the hyperlinks work on some machines but not all. I'm not sure if this is an IE related issue, a security issue with IE or exactly what the problem could be. Any help would be greatly appreciated. Thanks"

Since then I have discovered that when running this application on machines running IE7 the absolutepath property is as it should be. However, when running the application on machines using IE6 the absolutepath property contains my expected value plus the word "blank" concatenated to the front of it.
Ex: IE7 - e.url.absolutepath = "Alleles"   IE6 - e.url.absolutepath = "blankAlleles"

I have placed a workaround in the code that tests for and ultimately strips off the word "blank" but it shouldn't have to be done this way. Does anyone have any ideas why this happens and if I'm going to have problems with other versions of IE. This is a CBT application that is being distributed through hospitals so it is imperative that it works correctly.

Thanks in advance
 Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
'Sample code from main form
      Private Sub WebBrowser1_Navigating(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserNavigatingEventArgs) Handles WebBrowser1.Navigating
      If e.Url.AbsolutePath = "blank" Then Exit Sub
 
      Dim frmDef As New frmDefinitions
      frmDef.GlossaryWord = e.Url.AbsolutePath
      frmDef.ShowDialog()
      e.Cancel = True
   End Sub
 
'Sample code from Definitions form
   Public GlossaryWord As String
   Private Sub frmDefinitions_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
      'TODO: This line of code loads data into the 'AntitrypsinDeficiencyDataSet.tblGlossary' table. You can move, or remove it, as needed.
      Me.TblGlossaryTableAdapter.Fill(Me.AntitrypsinDeficiencyDataSet.tblGlossary)
 
      Dim dvGlossary As New DataView
      Dim findWord As Int16
 
      dvGlossary.Table = Me.AntitrypsinDeficiencyDataSet.tblGlossary
      dvGlossary.Sort = "hyperlink"
 
      MsgBox("Hyperlink = " & GlossaryWord)
      findWord = dvGlossary.Find(GlossaryWord)
      If findWord = -1 Then
         MsgBox("Dataset damaged - definition could not be located.")
         Exit Sub
      End If
      lblWord.Text = dvGlossary.Item(findWord).Item("Term")
      lblDefinition.Text = dvGlossary.Item(findWord).Item("Definition")
 
      Me.FormBorderStyle = Windows.Forms.FormBorderStyle.FixedToolWindow
   End Sub
[+][-]06.07.2008 at 06:48AM PDT, ID: 21735442

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.21.2008 at 03:07PM PDT, ID: 22054756

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio, Microsoft Visual Basic.Net, Internet Explorer Web Browser
Tags: VS 2005 VB.NET
Sign Up Now!
Solution Provided By: KerryS1
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628