|
-
May 8th, 2006, 03:03 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] How to create a nonvisual user control?
Hello all,
I trying to create a hidden user control. So that it is displayed in the component tray (lower area of design window, not on form) and not shown in the final application. Just like the ImageList-control, for example.
I don't seem to be able to find any information on doing this.
Last edited by arsmakman; May 8th, 2006 at 03:08 AM.
No matter how fool-proof your program is, there will always be a better fool.
Was a post helpful to you? Rate it!
-
May 8th, 2006, 03:07 AM
#2
Re: How to create a nonvisual user control?
There's no such thing as a non-visual control. A control is by definition a UI element. The component tray is called that because it contains components, so you need to inherit the Component class.
http://search.msdn.microsoft.com/sea...nent+authoring
-
May 8th, 2006, 03:10 AM
#3
Thread Starter
Fanatic Member
Re: [RESOLVED] How to create a nonvisual user control?
So, that why I couldn't find anything about nonvisual or hidden controls...
I'm still used to VB6's controls that could just be hidden.
Thank you.
No matter how fool-proof your program is, there will always be a better fool.
Was a post helpful to you? Rate it!
-
May 8th, 2006, 03:16 AM
#4
Re: [RESOLVED] How to create a nonvisual user control?
So then what would you do John if you wanted to make a control that was non-visual?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 8th, 2006, 03:44 AM
#5
Re: [RESOLVED] How to create a nonvisual user control?
 Originally Posted by RobDog888
So then what would you do John if you wanted to make a control that was non-visual?
Like I said, there is no such thing as a non-visual control in the .NET environment. A control is something that inherits the Control class. If you want to create something that you can add to a form in the design window that doesn't have a visual aspect then you would inherit the Component class. Note that Control itself inherits Component. The Control class adds the UI aspect to the functionality of the Component class.
-
May 8th, 2006, 03:48 AM
#6
Re: [RESOLVED] How to create a nonvisual user control?
Well I mean more of how the Open/SaveDialog control, for ex., would be.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 8th, 2006, 03:58 AM
#7
Re: [RESOLVED] How to create a nonvisual user control?
The OpenFileDialog and SaveFileDialog classes both inherit the FileDialog class, which inherits CommonDialog, which inherits Component. Just like the MessageBox class, OpenFileDialog and SaveFileDialog are just classes that wrap the creation and display of a Form object. I'm not sure whether the Form object is created when you create the OpenFileDialog or when you call ShowDialogue, but either way it just uses the properties that you set to create a Form to spec and then displays it. It's the functionality of the Component class that allows you to add an instance of those dialogues to a form at design time.
-
May 8th, 2006, 04:48 AM
#8
Re: [RESOLVED] How to create a nonvisual user control?
Oh, ok. Thanks John. Just needed to know for future use.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|