|
-
Oct 29th, 2006, 08:50 AM
#1
Thread Starter
Fanatic Member
[2005] DataSets and UserControls
I am getting strange behavior and do not know why.
I can set up a dataset (MDB) perfectly fine on the main form. I can drag (from Data Source Toolwindow) the fields onto the controls no problem.
But I have a usercontrol that I load as a form. But, I can not drag any of my table/fields onto any controls on the UserControl (aka form).
Why???
Thanks
-
Oct 29th, 2006, 01:04 PM
#2
Thread Starter
Fanatic Member
Re: [2005] DataSets and UserControls
Does anybody know why I can not drag "data source" fields from the "Data Source" toolwindow onto controls that are in a UserControl??
Thanks
-
Oct 29th, 2006, 03:37 PM
#3
Re: [2005] DataSets and UserControls
Your UserControl may not support databinding.
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 
-
Oct 29th, 2006, 09:15 PM
#4
Thread Starter
Fanatic Member
Re: [2005] DataSets and UserControls
Why not and if it can, how do I make it accept data binding??
-
Oct 29th, 2006, 09:19 PM
#5
Re: [2005] DataSets and UserControls
It would depend if the author of the user control programmed in support for databinding.
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 
-
Oct 29th, 2006, 09:22 PM
#6
Thread Starter
Fanatic Member
Re: [2005] DataSets and UserControls
???
It is a "usercontrol1.vb" that is native to VB.NET.
It is not a control from somebody else.
I created the usercontrol using the "add Items" of VB.NET
All I am doing is...
Dim frm1 As usercontrol1
frm1.Show()
-
Oct 29th, 2006, 09:23 PM
#7
Re: [2005] DataSets and UserControls
Ok, then if your writting the user control then what controls are in it?
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 
-
Oct 29th, 2006, 09:24 PM
#8
Thread Starter
Fanatic Member
Re: [2005] DataSets and UserControls
-
Oct 29th, 2006, 09:37 PM
#9
Thread Starter
Fanatic Member
Re: [2005] DataSets and UserControls
RobDogg,
I found out what it is. You were close. You made me check this out!! Thanks
It isn't a thrird party control, but I do inherit a thrird party docking control in my usercontrol1.vb. It adds a toolwindow titlbar/border to the "form" (aka my userc control)
So, I might not be able to bind it.
I will have to email QIOS to see how I can bind data to controls on my usercontrol1.
Thanks
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
|