| | |
How to define a UserControl
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
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.
VB.NET Syntax (Toggle Plain Text)
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
A conclusion is the place where you got tired of thinking. http://www.martin2k.co.uk/forums/index.php?showforum=4
http://www.a1vbcode.com/a1vbcode/vbforums/Forum3-1.aspx
http://www.developerfusion.co.uk/for...orum&ForumID=4
No help?
A conclusion is the place where you got tired of thinking. http://www.martin2k.co.uk/forums/index.php?showforum=4
http://www.a1vbcode.com/a1vbcode/vbforums/Forum3-1.aspx
http://www.developerfusion.co.uk/for...orum&ForumID=4
•
•
Join Date: Apr 2008
Posts: 54
Reputation:
Solved Threads: 5
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
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
![]() |
Similar Threads
Other Threads in the VB.NET Forum
- Previous Thread: Crystal Reports asks for Username and Password while loading
- Next Thread: Control resize and positioning at run time. VB.Net
| Thread Tools | Search this Thread |
"crystal .net .net2005 .net2008 2008 access add advanced application array assignment basic beginner box browser button buttons click code combo convert cpu cuesent data database datagrid datagridview datetimepicker designer dissertation dissertations dissertationthesis dissertationtopic dosconsolevb.net editvb.net employees excel exists firewall forms html image images isnumericfuntioncall listview login map math memory mobile module msaccess mssqlbackend mysql navigate net number opacity open pdf picturebox2 port print printpreview record regex reports" reuse right-to-left save savedialog search serial settings socket sqldatbase sqlserver storedprocedure string temp textbox timer transparency txttoxmlconverter useraccounts usercontol usercontrol vb vb.net vb.nettoolboxvisualbasic2008sidebar vba vbnet vista visual visualbasic.net visualstudio.net web wpf wrapingcode xml





