i have a problem in combobox
i try to insert a value in bounded combobox.
when i write command
ComboBox1.DataSource = ds.Tables("test1")
ComboBox1.DisplayMember = "stor_id"
it does not display abc at top row.
and when i write that command after that
i display err message
Items collection cannot be modified when the DataSource property is set.
can i do it.
i have a problem with the AxMozillaBrowser NewWindow2 Event.
Now that's my Code:
Private Sub AxMozillaBrowser1_NewWindow2(ByVal sender As System.Object, ByVal e As AxMOZILLACONTROLLib.DWebBrowserEvents2_NewWindow2Event) Handles AxMozillaBrowser1.NewWindow2
Dim a As New Form
Dim ax As New AxMOZILLACONTROLLib.AxMozillaBrowser
ax.Dock = DockStyle.Fill
e.ppDisp = ax
The problem is, that it doesn't load the page. The window opened but then nothing else happened. What's wrong there or from where do i get the to opened url???
I Have Created a COM+ Serviced Based Application Dot Net
I have installed The Application Proxy In my Client machine when I access the COM+ Service in the Server I Get a error “ Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))”
Visual Studio provides different build scenarios. There are two build scenarios that are created when for a solution, Debug and Release. As the names suggest, the Debug configuration contains extra information inside the EXE or DLL to allow you to debug the application. The Release is stripped of all of the extra debugging information and is ready to be shipped or released.
i have a bounded combobox control on form in windows application, i tay to retrive selected value from it and try to show in a label control
but in label it not shows value,it shows system.datarow......
how i do it.
i write label1.text=combobox1.selectedItem
try to solve my problem.
The SelectedItem will return the DataRow object in the datasource that your box is bound to. Cast SelectedItem to a DataRow object, then you can use the DataRow's properties and methods to get the data you want out of that row.
Dim dr As DataRow = DirectCast(ComboBox1.SelectedItem, DataRow)
Dim id As Integer = dr("SomeIdColumnName")