How to define a UserControl

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2007
Posts: 300
Reputation: jireh is an unknown quantity at this point 
Solved Threads: 42
jireh's Avatar
jireh jireh is offline Offline
Posting Whiz

How to define a UserControl

 
0
  #1
Oct 30th, 2008
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.

  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
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 300
Reputation: jireh is an unknown quantity at this point 
Solved Threads: 42
jireh's Avatar
jireh jireh is offline Offline
Posting Whiz

Re: How to define a UserControl

 
0
  #2
Nov 5th, 2008
No help?
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 2
Reputation: nshriramoju is an unknown quantity at this point 
Solved Threads: 0
nshriramoju nshriramoju is offline Offline
Newbie Poster

Re: How to define a UserControl

 
0
  #3
Nov 11th, 2008
Is it possible to develop the user control in vb.net window application.If yes how can i do it.

Regards,
Naresh R. shriramoju
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 2
Reputation: nshriramoju is an unknown quantity at this point 
Solved Threads: 0
nshriramoju nshriramoju is offline Offline
Newbie Poster

Re: How to define a UserControl

 
0
  #4
Nov 11th, 2008
I know how to make the user contorl in web application, But don't know in vb.net window application.

Regards,
Naresh R. shriramoju
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 54
Reputation: Pgmer is an unknown quantity at this point 
Solved Threads: 5
Pgmer Pgmer is offline Offline
Junior Poster in Training

Re: How to define a UserControl

 
0
  #5
Nov 11th, 2008
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC