Click here to Skip to main content
15,905,566 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: data between grids??? Pin
mittalpa27-Aug-04 9:11
mittalpa27-Aug-04 9:11 
GeneralRe: data between grids??? Pin
Jim Matthews27-Aug-04 9:14
Jim Matthews27-Aug-04 9:14 
GeneralParse sql query without executing Pin
tocheng00525-Aug-04 11:39
susstocheng00525-Aug-04 11:39 
GeneralRe: Parse sql query without executing Pin
Anonymous25-Aug-04 17:19
Anonymous25-Aug-04 17:19 
GeneralRe: Parse sql query without executing Pin
tocheng00525-Aug-04 19:44
susstocheng00525-Aug-04 19:44 
GeneralRe: Parse sql query without executing Pin
Anonymous26-Aug-04 6:36
Anonymous26-Aug-04 6:36 
GeneralRe: Parse sql query without executing Pin
tocheng00526-Aug-04 11:52
susstocheng00526-Aug-04 11:52 
GeneralPropertygrid and dropdownlist from Database Pin
David M J25-Aug-04 11:32
David M J25-Aug-04 11:32 
Hi,
I am trying to write an app where the users would have to define for
instance company departments where employer would work. These departments are
store in my database. In the user interface, where the user has to enter the
employers, I am trying to use the propertygrid. For the department I want to
use a dropdownlist filled with the options from the database. I have got a
typeconverter that converts a sting into a dropdownlist, but this is only
hardcoded. I am not able to pass a string created from my database into the
typeconverte. The converter looks like this
Public Class DropDownConv
Inherits StringConverter
'Override the GetStandardValuesSupported method to indicate that this
object supports a standard set of values.


'Override the GetStandardValues method and return a
StandardValuesCollection filled with our custom list.

Dim _States As String() = New String() {"Alabama", "Alaska", _
"Arizona", "Arkansas", _
"California", "Colorado", "Connecticut", "Delaware", _
"Florida", "Georgia", _
"Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", _
"Kentucky", "Louisiana", "Maine", "Maryland",
"Massachusetts", _
"Michigan", "Minnesota", "Mississippi", "Missouri",
"Montana", _
"Nebraska", "Nevada", "New Hampshire", _
"New Jersey", "New Mexico", _
"New York", "North Carolina", "North Dakota", _
"Ohio", "Oklahoma", _
"Oregon", "Pennsylvania", "Rhode Island", "South Carolina", _
"South Dakota", "Tennessee", "Texas", "Utah", _
"Vermont", "Virginia", _
"Washington", "West Virginia", "Wisconsin", "Wyoming"}

Public Overloads Overrides Function GetStandardValuesSupported( _
ByVal context As ITypeDescriptorContext) As Boolean
Return True
End Function



Public Overloads Overrides Function _
GetStandardValues(ByVal context As _
System.ComponentModel.ITypeDescriptorContext) _
As System.ComponentModel.TypeConverter.StandardValuesCollection

Return New StandardValuesCollection(_States)
End Function
'Finally override the GetStandardValuesExclusive method. When set to
false, it changes the dropdown list to Combo box (editable). If set to true,
then its a simple list box (Read only).

Public Overloads Overrides Function _
GetStandardValuesExclusive(ByVal context _
As System.ComponentModel.ITypeDescriptorContext) _
As Boolean

Return True
End Function
End Class

Can you give me some ideas on how to continue?

Thanks
David J



General.MAT files from Visual Basic (Again) Pin
murphypa25-Aug-04 10:34
murphypa25-Aug-04 10:34 
GeneralRe: .MAT files from Visual Basic (Again) Pin
Anonymous25-Aug-04 12:00
Anonymous25-Aug-04 12:00 
GeneralRe: .MAT files from Visual Basic (Again) Pin
murphypa26-Aug-04 3:51
murphypa26-Aug-04 3:51 
GeneralRe: .MAT files from Visual Basic (Again) Pin
Anonymous26-Aug-04 9:24
Anonymous26-Aug-04 9:24 
GeneralRe: .MAT files from Visual Basic (Again) Pin
Colin Angus Mackay25-Aug-04 23:03
Colin Angus Mackay25-Aug-04 23:03 
GeneralRe: .MAT files from Visual Basic (Again) Pin
murphypa26-Aug-04 3:47
murphypa26-Aug-04 3:47 
GeneralRe: .MAT files from Visual Basic (Again) Pin
Colin Angus Mackay26-Aug-04 12:15
Colin Angus Mackay26-Aug-04 12:15 
GeneralCreate XL sheet or CSV from vb.net Pin
partt25-Aug-04 9:49
partt25-Aug-04 9:49 
GeneralRe: Create XL sheet or CSV from vb.net Pin
Anonymous25-Aug-04 18:35
Anonymous25-Aug-04 18:35 
GeneralRe: Create XL sheet or CSV from vb.net Pin
partt26-Aug-04 3:28
partt26-Aug-04 3:28 
GeneralRe: Create XL sheet or CSV from vb.net Pin
Anonymous26-Aug-04 18:36
Anonymous26-Aug-04 18:36 
GeneralRe: Create XL sheet or CSV from vb.net Pin
partt27-Aug-04 6:19
partt27-Aug-04 6:19 
GeneralPlaying .wav in VB .NET, with notification Pin
ckoverman25-Aug-04 8:40
ckoverman25-Aug-04 8:40 
GeneralRe: Playing .wav in VB .NET, with notification Pin
Anonymous25-Aug-04 16:27
Anonymous25-Aug-04 16:27 
GeneralRe: Playing .wav in VB .NET, with notification Pin
Aaron Eldreth26-Aug-04 13:25
Aaron Eldreth26-Aug-04 13:25 
QuestionBest method for pulling and displaying multiple count queries as an aspx page?? Pin
cavall25-Aug-04 6:57
cavall25-Aug-04 6:57 
AnswerRe: Best method for pulling and displaying multiple count queries as an aspx page?? Pin
Dave Kreskowiak25-Aug-04 8:01
mveDave Kreskowiak25-Aug-04 8:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.