|
can any body plz send combox selected index changed code
|
|
|
|
|
void comboBox_SelectedIndexChanged(object sender, EventArgs e)
{
}
comboBox.SelectedIndexChanged += comboBox_SelectedIndexChanged;
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier. (Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
'What You Want To Do
End Sub
|
|
|
|
|
thanks for your reply pranav.
i done this in web application it works fine but it is not worinking in windows application
|
|
|
|
|
Try the SelectionChangeCommitted Event or SelectedValueChanged Event
|
|
|
|
|
Don't report the same question. Edit your original if necessary. Delete the previous post
And, do not ask for code.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
mark, thank you very much for your suggetion,
i always wellcome to listen my mistake.
|
|
|
|
|
i worked on web page selected indexchanged in asp.net it works fine
but when it comes to windows app it is not working.
can any body plz explain the code of combobox selected indexchanged.
prashanth
|
|
|
|
|
From my knowledge CLR is a set of DLLs. In which language CLR is Written?
My small attempt...
|
|
|
|
|
|
Jinal Desai - LIVE wrote: It is made from set of DLLs (Assemblies).
Have you even read some of the information you have posted links to?
You claim that CLR is set of assemblies, which is completely wrong.
There's significant difference between assembly and dll.Each dll is not assembly and each assembly is not a dll.One of the links you posted claims that CLR is an equivalent of JVM.Are java frameworks part of JVM?When we are talking about CLR we mean MS runtime for running managed code, we don't mean mscorlib and the other assemblies.
Life is a stage and we are all actors!
|
|
|
|
|
|
|
|
Hi,
1.
my general advice is not to create that much code all at once; in a board application, I always start by filling a huge rectangle with a distinct color (e.g. Aqua), to make sure my events got wired correctly, and something shows. Then I reduce the rectangle to normal sizes, hoping to still see it; and only then I add all the tiny details of the drawing.
2.
Often I also implement a debug mode in which all drawable items get a different color, so one can easily see and identify them, with their boundaries and overlaps.
3.
Having said that, the most suspicious line IMO is here:
Me.boardgame.Width = face(0).X + margin
4.
You described your app as having two pictureboxes, however that does not really show. Your boardgame and menubar Controls could be most anything, in my books they probably would be Panels, as Panle is my preferred canvas provider.
Hope this helps.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
hey,
I want to connect to SQL Server 2005 using the ASPNET account in my application. I have created a password for the ASPNET account through control panel and the account is also configured in the SQL Server login.
The connection string i'm using
DATA SOURCE=xxxxx;User ID=sysname\ASPNET;PASSWORD=winter22;INITIAL CATALOG=databasename.
when i use this code i'm getting "login failed for the user 'sysname\ASPNET'" error.
I'm i using the correct syntax,
Please help
Thanks in advance
D.Vinoth
|
|
|
|
|
By seeing at your error it seems that
for your sysname\ASPNET account you did not
provide sql server authentication.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
thanks for your reply Jinal,
actually when you see the properties for the sysname\ASPNET login in Management studio, the windows authentication and SQL server authentication where disabled.
do you know how to provide SQL Server authentication for the Login.
Thanks,
D.Vinoth
|
|
|
|
|
|
Hi. I need some suggestions about the following code. I think it can be improved, but do not know how. Here's a brief explaning, what the code should do:
Actually it's pretty simple, which reads data from a source, sql server 2005, and fill it to a listview. I'm using .net framework 2.0 and programming language is vb.net.
My problem with code is it takes too much to fill listview. Query execution takes only 1 second, but filling result's into listview takes 40 seconds for a result set of 3600 row.
Here's the code which i add a single row into listview. Most of the processor time passes and memory allocation in this single method.
Any suggestion to improve performance inculuding using another objects will help. Thanks for every responses.
Private Sub AddRow2Lvw(ByVal argCls As clsFoo)
Dim _item As New ListViewItem
Try
_item = lvwMyLvw.Items.Add(clsFoo.UserID.ToString, clsFoo.Name, "")
Call CreateSubItems(_item, lvwMyLvw) 'This method add subitems to listview item, according
to predefined columns
_item .SubItems(lvwMyLvw.Columns("UserID").Index).Text = clsFoo.UserID
_item .SubItems(lvwMyLvw.Columns("UserName").Index).Text = clsFoo.UserName
'..... And lines for other ~15 columns
Catch ex As Exception
'Exception code
End Try
I hope it's clear enough.
|
|
|
|
|
pgyist wrote: Call CreateSubItems(_item, lvwMyLvw)
What's the code within this function?
|
|
|
|
|
For i As Int16 = 0 To lvwMyLvw.Columns.Count - 2
_item.SubItems.Add("")
Next
Using String.Empty instead of "" should help a little bit i guess?
|
|
|
|
|
Add a BeginUpdate [^] construction, that should help a bit.
Does your user actually need to "see" 3600 items, or would he/she be able to work with a subset thereof?
I are Troll
|
|
|
|
|
Yes they want to see all of them. They find it easy scrolling down in thousands of data instead of selecting some criteria before search
|
|
|
|
|
Before you start writing to the listview, try calling lvwMyLvw.BeginUpdate to prevent the control from being drawn. When you have finished filling it, call lvwMyLvw.EndUpdate to allow the control to be drawn.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|