I have panel(100*100) and picture box(300*300) inside. Picture box is bigger than panel so scrollbars r visible at panel. i set picture box location to -100,-100 .Now i want to change scrollbars location at center, how do?
i want to know how C# pass collection type method......wanna to knw C# code for this!
Public Shared Function GetQuestionIDsForSurvey(ByVal id As Integer) As Collection<br />
Dim dsQuestions As DataSet = GetQuestionsForSurvey(id) // this pass Dataset<br />
Dim dtQuestions As DataTable = dsQuestions.Tables(0)<br />
Dim mQuestionCollection As New Collection<br />
For Each dr As DataRow In dtQuestions.Rows<br />
Return mQuestionCollection<br />
Catch ex As Exception<br />
End Try<br />
Thnkz lot for ur effort! but there were errors in ur code also like,
hey actually i want to know which namespace provide Collection class or is it the actual usual way using that something like Collection<t> ,,any Enumarable type..........
the thing is i am not having idea off using these techniques,...
How can I display my combobox display default to blank when I have a bound data source. (I need it that way).
I have tried combobox.selectedIndex = -1 but doesn't work.
Have also added the column of blank manually like this
It shows a column of -1 in my combobox but it is not set to the default though. the user has to select it. If I remove the combobox.selectedIndex = -1 it displays blank which I want, but it's still not the default.
at starting u asked that u wanna have blank in the combox fro default. whaen u remove combobox.selectedIndex=-1 from code u get that then what do u mean by it's not default!
please clear the point
program.cs creates itself after the new program creation.and i created one file named class1.now both are in same project.
I wanted to ask that if In the same project internal members are accessbile in the derived classes and also i can create the instance of the instrnal class , one more thing , internal members are accessible in the instance of the class(eve if the class is declared public).
Love is Friendship and Friendship is Love....