Click here to Skip to main content
16,004,529 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: a record delete problem Pin
Sebastien Lachance17-Mar-05 6:57
Sebastien Lachance17-Mar-05 6:57 
GeneralWindows 2000 Server Pin
ga051016-Mar-05 4:38
sussga051016-Mar-05 4:38 
Generalreading a .txt file for data in VB .NET Pin
bizjosh16-Mar-05 2:17
bizjosh16-Mar-05 2:17 
GeneralRe: reading a .txt file for data in VB .NET Pin
Christian Graus16-Mar-05 15:38
protectorChristian Graus16-Mar-05 15:38 
GeneralRe: reading a .txt file for data in VB .NET Pin
Dr_Lomax18-Mar-05 4:59
Dr_Lomax18-Mar-05 4:59 
GeneralRe: reading a .txt file for data in VB .NET Pin
j1webb18-Mar-05 12:13
j1webb18-Mar-05 12:13 
QuestionDo you know why its happened? Pin
Mohamed Ishak15-Mar-05 23:59
professionalMohamed Ishak15-Mar-05 23:59 
GeneralPropertyGrid - Internet Explorer hosting problem Pin
Member 88279715-Mar-05 19:11
Member 88279715-Mar-05 19:11 
Hi,

I have created a Windows UserControl. This Control hosts a PropertyGrid and a Button control. The UserControl
project also includes a class called "TestClass" and a custom TypeConvertor class called "DDConv".

When the user clicks on the Button control, the application assigns an instance of "TestClass" to the PropertyGrid.

The "TestClass" has a property called "CustProp" and it has an TypeConverter attribute assigned to
the "CustProp" property. The TypeConvertor points to the "DDConv" class.

The PropertyGrid in the UserControl displays a DropDown against the "CustProp" property when the UserControl is
hosted in a windows application.

When the UserControl is hosted in Internet Explorer, the PropertyGrid does NOT SHOW any DropDown for the "CustProp"
property.

NOTE: I test the UserControl in Internet Explorer from a virtual directory on my machine. I have set "FullTrust" for
the "LocalIntranet_Zone" on my machine.

I want the PropertyGrid to display the DropDown in Internet Explorer - can someone help me in figuring out how to
acheive the same?

<br />
'TestClass.vb<br />
Public Class TestClass<br />
    Dim _name As String<br />
    Dim _ddProp As String<br />
<br />
    Public Property Name() As String<br />
        Get<br />
            Return _name<br />
        End Get<br />
        Set(ByVal Value As String)<br />
            _name = Value<br />
        End Set<br />
    End Property<br />
<br />
    <System.ComponentModel.TypeConverter(GetType(DDConv))> _<br />
    Public Property CustProp() As String<br />
        Get<br />
            Return _ddProp<br />
        End Get<br />
        Set(ByVal Value As String)<br />
            _ddProp = Value<br />
        End Set<br />
    End Property<br />
<br />
End Class<br />
<br />
'DDConv.vb<br />
Public Class DDConv<br />
    Inherits System.ComponentModel.StringConverter<br />
<br />
    Dim _values As String()<br />
    Dim _restrictToList As Boolean<br />
<br />
    Public Sub New()<br />
        _values = New String() {"Yes", "No"}<br />
    End Sub<br />
<br />
    Public Overloads Overrides Function GetStandardValuesSupported(ByVal context As _<br />
		System.ComponentModel.ITypeDescriptorContext) As Boolean<br />
<br />
        Return True<br />
    End Function<br />
<br />
    Public Overloads Overrides Function GetStandardValues(ByVal context As System.ComponentModel.ITypeDescriptorContext) _<br />
		As System.ComponentModel.TypeConverter.StandardValuesCollection<br />
<br />
        Return New StandardValuesCollection(_values)<br />
<br />
    End Function<br />
<br />
    Public Overloads Overrides Function GetStandardValuesExclusive(ByVal context As _ <br />
		System.ComponentModel.ITypeDescriptorContext) As Boolean<br />
<br />
        Return _restrictToList<br />
    End Function<br />
End Class<br />


Thanks & Regards,
Dhwanil Shah
dhwanil.shah@patni.com
GeneralRe: PropertyGrid - Internet Explorer hosting problem Pin
Member 88279717-Mar-05 20:21
Member 88279717-Mar-05 20:21 
GeneralCrossWord puzzle alogrithm Pin
Mohsen Saad15-Mar-05 18:06
Mohsen Saad15-Mar-05 18:06 
GeneralRe: CrossWord puzzle alogrithm Pin
Colin Angus Mackay16-Mar-05 0:14
Colin Angus Mackay16-Mar-05 0:14 
GeneralCrystal Report:The LoadSaveReportException: Load Report Error Pin
Bing Chen15-Mar-05 10:41
Bing Chen15-Mar-05 10:41 
QuestionHow to send info out the lpt port????? Pin
mjvone15-Mar-05 10:09
mjvone15-Mar-05 10:09 
AnswerRe: How to send info out the lpt port????? Pin
Christian Graus15-Mar-05 10:47
protectorChristian Graus15-Mar-05 10:47 
QuestionHow can I make Control Array in VB.net Pin
Suman Singh15-Mar-05 10:07
professionalSuman Singh15-Mar-05 10:07 
AnswerRe: How can I make Control Array in VB.net Pin
Ray Cassick15-Mar-05 10:50
Ray Cassick15-Mar-05 10:50 
AnswerRe: How can I make Control Array in VB.net Pin
pfsoft16-Mar-05 20:17
pfsoft16-Mar-05 20:17 
Generalcolor in a combobox items Pin
wgalafassijr15-Mar-05 9:28
wgalafassijr15-Mar-05 9:28 
GeneralRe: color in a combobox items Pin
Tom John15-Mar-05 9:41
Tom John15-Mar-05 9:41 
GeneralRe: color in a combobox items Pin
wgalafassijr15-Mar-05 9:53
wgalafassijr15-Mar-05 9:53 
QuestionHow to change Column name in Datagrid Pin
Suman Singh15-Mar-05 9:06
professionalSuman Singh15-Mar-05 9:06 
AnswerRe: How to change Column name in Datagrid Pin
eshban28416-Mar-05 3:01
eshban28416-Mar-05 3:01 
Questionhow to set date mask Pin
eshban28415-Mar-05 8:28
eshban28415-Mar-05 8:28 
AnswerRe: how to set date mask Pin
Dave Kreskowiak15-Mar-05 9:16
mveDave Kreskowiak15-Mar-05 9:16 
AnswerRe: how to set date mask Pin
numbrel16-Mar-05 12:57
numbrel16-Mar-05 12:57 

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.