1.

Solve : How to disable optimization?

Answer»

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 .Quote from: Bgs 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 .
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
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

smeezekitty , he did not bump he added to his topic


Discussion

No Comment Found