DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   VB.NET (http://www.daniweb.com/forums/forum58.html)
-   -   How to define a UserControl (http://www.daniweb.com/forums/thread154419.html)

jireh Oct 30th, 2008 4:49 pm
How to define a UserControl
 
I want to make a usercontrol which is a combobox but the dropdown will be a grid. So far this is my code and my problem is that the grid wont show.

Namespace myComboBox
    Public Class popUpComboBox
        Inherits System.Windows.Forms.ComboBox

        Protected Overrides Sub OnDropDown(ByVal e As System.EventArgs)
            Dim grid As New System.Windows.Forms.DataGridView

            grid.Width = 1000
            grid.Height = 1000
            grid.Left = Me.Left
            grid.Top = Me.Top + Me.Height

            grid.Show()
        End Sub

    End Class
End Namespace

jireh Nov 5th, 2008 8:52 pm
Re: How to define a UserControl
 
No help?

nshriramoju Nov 11th, 2008 3:12 am
Re: How to define a UserControl
 
Is it possible to develop the user control in vb.net window application.If yes how can i do it.

Regards,
Naresh R. shriramoju

nshriramoju Nov 11th, 2008 3:14 am
Re: How to define a UserControl
 
I know how to make the user contorl in web application, But don't know in vb.net window application.

Regards,
Naresh R. shriramoju

Pgmer Nov 11th, 2008 4:01 am
Re: How to define a UserControl
 
In windows application if u want to create user control
develop the application go to properties of the project make it as a class library
and then select start up object as nothing then run the application
it will give u the dll file instead of .exe
you can use this dll as component as user control wherever u want


All times are GMT -4. The time now is 6:07 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC