| | |
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 30minutes 2005 2008 access account arithmetic array arrays basic binary bing button buttons c# center check code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dropdownlist excel file-dialog folder ftp google hardcopy image images inline insert listview login math memory mobile ms navigate net networking opacity output passingparameters peertopeervideostreaming picturebox picturebox1 plugin port print printing problemwithinstallation project reports" save savedialog searchbox serial server soap sql string table tcp text textbox timer toolbox trim update updown upload usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio web wpf





