943,571 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 3223
  • VB.NET RSS
Oct 30th, 2008
0

How to define a UserControl

Expand Post »
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)
  1. Namespace myComboBox
  2. Public Class popUpComboBox
  3. Inherits System.Windows.Forms.ComboBox
  4.  
  5. Protected Overrides Sub OnDropDown(ByVal e As System.EventArgs)
  6. Dim grid As New System.Windows.Forms.DataGridView
  7.  
  8. grid.Width = 1000
  9. grid.Height = 1000
  10. grid.Left = Me.Left
  11. grid.Top = Me.Top + Me.Height
  12.  
  13. grid.Show()
  14. End Sub
  15.  
  16. End Class
  17. End Namespace
Similar Threads
Reputation Points: 11
Solved Threads: 49
Posting Whiz
jireh is offline Offline
316 posts
since Jul 2007
Nov 5th, 2008
0

Re: How to define a UserControl

No help?
Reputation Points: 11
Solved Threads: 49
Posting Whiz
jireh is offline Offline
316 posts
since Jul 2007
Nov 11th, 2008
0

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nshriramoju is offline Offline
2 posts
since Nov 2008
Nov 11th, 2008
0

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nshriramoju is offline Offline
2 posts
since Nov 2008
Nov 11th, 2008
0

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
Reputation Points: 48
Solved Threads: 111
Practically a Master Poster
Pgmer is offline Offline
666 posts
since Apr 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Listbox index to 2D index
Next Thread in VB.NET Forum Timeline: Control resize and positioning at run time. VB.Net





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC