Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How to disable optimization  (Read 3032 times)

0 Members and 1 Guest are viewing this topic.

Bgs

    Topic Starter


    Beginner

    Thanked: 1
    How to disable optimization
    « on: August 31, 2009, 04:30:45 AM »
    Hello everione i have a problem i am keep getting this error System.NullReferenceException when i debug my browser to test some codes at microsoft site it said that if optimization is turned off this exception will never show but it  is not telling how to do that  :'(  ??? i use microsoft  visual basic please if anione know tell me .

    Bgs

      Topic Starter


      Beginner

      Thanked: 1
      Re: How to disable optimization
      « Reply #1 on: August 31, 2009, 10:25:32 AM »
      Hello everione i have a problem i am keep getting this error System.NullReferenceException when i debug my browser to test some codes at microsoft site it said that if optimization is turned off this exception will never show but it  is not telling how to do that  :'(  ??? i use microsoft  visual basic please if anione know tell me .
      This is the line i have problems with!
      Code: [Select]
      Private Sub ComboBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ComboBox1.KeyPress
              e.KeyChar = vbCr
             [color=red][u] CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(ComboBox1.Text)[/u][/color]
              My.Settings.History.Add(ComboBox1.Text)
              ComboBox1.Items.Add(ToolStripComboBox2.Text)
          End Sub

      smeezekitty

      • Guest
      Re: How to disable optimization
      « Reply #2 on: September 01, 2009, 05:21:21 PM »
      why are you using vb?
      and stop there is no need to bump in less then 1 day
      http://stackoverflow.com/questions/205454/examples-of-optimization-in-vb-vba-vb-net


      harry 48



        Egghead

      • lay back , relax and chill out
      • Thanked: 129
        • Yes
        • Yes
        • Yes
        • Dribbling Pensioner
      • Certifications: List
      • Experience: Familiar
      • OS: Windows 7
      Re: How to disable optimization
      « Reply #3 on: September 02, 2009, 04:11:14 PM »
      smeezekitty , he did not bump he added to his topic  ::) ::) ::)