Click here to Skip to main content
15,900,461 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionUrgently required Pin
Osama12317-Jan-06 21:10
Osama12317-Jan-06 21:10 
AnswerRe: Urgently required Pin
Dave Kreskowiak18-Jan-06 4:13
mveDave Kreskowiak18-Jan-06 4:13 
QuestionHow do I add a custom icon to a WinForms DataGrid header row? Pin
nzmike17-Jan-06 21:09
nzmike17-Jan-06 21:09 
AnswerRe: How do I add a custom icon to a WinForms DataGrid header row? Pin
Dave Kreskowiak18-Jan-06 4:11
mveDave Kreskowiak18-Jan-06 4:11 
GeneralRe: How do I add a custom icon to a WinForms DataGrid header row? Pin
nzmike18-Jan-06 14:50
nzmike18-Jan-06 14:50 
GeneralRe: How do I add a custom icon to a WinForms DataGrid header row? Pin
Dave Kreskowiak18-Jan-06 15:46
mveDave Kreskowiak18-Jan-06 15:46 
GeneralRe: How do I add a custom icon to a WinForms DataGrid header row? Pin
nzmike18-Jan-06 17:54
nzmike18-Jan-06 17:54 
GeneralRe: How do I add a custom icon to a WinForms DataGrid header row? Pin
Dave Kreskowiak19-Jan-06 9:18
mveDave Kreskowiak19-Jan-06 9:18 
OK, I think I got you confused a bit. If you're just going to create a control using existing components, then you'll want to create a User Control, inheriting from UserControl, NOT Control, or any other control.

You'll drop a DataGrid and your Button onto the designer. I think it's pretty intuitive from there. You'll initialize your instance of your control in the New method, not in any event. It's kind of the quick and dirty method to slap a control together. Really what you putting together is a wrapper around your datagrid and button to manage what they look like when the button is clicked. Your control code will just be handling the normal events and properties of the button and datagrid. About the only UserControl related event you'll have to deal with is the Resize.

I can think of a few pitfalls in putting this together.

The first is tracking what the height of your control would be expanded and colapsed. You'll have to track the current state of the control and modify you constituent controls to match the look your after.

To get rid of the scroll bars on the datagrid, you'll just have to set it's scrollbars property to None. Remember to restore this when you expand the control back to normal size.



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: How do I add a custom icon to a WinForms DataGrid header row? Pin
nzmike19-Jan-06 9:56
nzmike19-Jan-06 9:56 
QuestionCan we have Style Sheet in VB.net Pin
wEb GuRu...17-Jan-06 21:07
wEb GuRu...17-Jan-06 21:07 
AnswerRe: Can we have Style Sheet in VB.net Pin
Colin Angus Mackay17-Jan-06 23:20
Colin Angus Mackay17-Jan-06 23:20 
AnswerRe: Can we have Style Sheet in VB.net Pin
Dave Kreskowiak18-Jan-06 4:06
mveDave Kreskowiak18-Jan-06 4:06 
QuestionTextWidth Method Pin
Joy Anne17-Jan-06 20:43
Joy Anne17-Jan-06 20:43 
AnswerRe: TextWidth Method Pin
Joshua Quick17-Jan-06 21:06
Joshua Quick17-Jan-06 21:06 
GeneralRe: TextWidth Method Pin
Joshua Quick17-Jan-06 21:18
Joshua Quick17-Jan-06 21:18 
Questionmail prgram using VB Pin
Paritos17-Jan-06 19:02
Paritos17-Jan-06 19:02 
AnswerRe: mail prgram using VB Pin
Dave Kreskowiak18-Jan-06 4:03
mveDave Kreskowiak18-Jan-06 4:03 
QuestionSelecting Data From Datagrid On Mouse Click Pin
mayhem_rules17-Jan-06 18:41
mayhem_rules17-Jan-06 18:41 
AnswerRe: Selecting Data From Datagrid On Mouse Click Pin
mayhem_rules18-Jan-06 0:58
mayhem_rules18-Jan-06 0:58 
Questiongram..MAPI control Pin
Paritos17-Jan-06 18:40
Paritos17-Jan-06 18:40 
AnswerRe: gram..MAPI control Pin
Dave Kreskowiak18-Jan-06 3:53
mveDave Kreskowiak18-Jan-06 3:53 
QuestionmciSendString Pin
hmklakmal17-Jan-06 18:26
hmklakmal17-Jan-06 18:26 
QuestionRC4 Pin
Aldi_n417-Jan-06 18:00
Aldi_n417-Jan-06 18:00 
QuestionPublic Variable Pin
shiroamachi17-Jan-06 16:36
shiroamachi17-Jan-06 16:36 
AnswerRe: Public Variable Pin
Joshua Quick17-Jan-06 16:51
Joshua Quick17-Jan-06 16:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.