Don't get me wrong - I'm a fan of .NET; I am enthusiastic about the richness
and elegance of the environment. However, richness and elegance should be
dedicated toward making development easier for developers, not more
difficult. In many ways this goal is achieved. However, I've run up against
one particular area of development, where what should be a trivial excercise
is turning out to be much more difficult than it should be. I'm trying to
devleop a user control which will act as the container for other controls.
Why do I think this should be easy? Well, it used to be very easy. In VB6
all we'd need to do is set the UserControl's ControlContaine r property to
True. Done.
In .NET it doesn't seem that it should be any more difficult. The following
creates a user control onto which I can drop other controls when I'm working
with this control in another project.
[Designer("Syste m.Windows.Forms .Design.ParentC ontrolDesigner, System.Design,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a")]
public partial class SRSPanel : UserControl
{
OK, that works as far as it goes, however, at run time I'm experiencing a
problem which is an absolute show-stopper to my implementation. When focus
is on the last control contained within my control, and the Tab key is
pressed, focus does not move to the next control in the tab order on the
current form. Rather, a beep is issued and the cursor remains where it is.
1. Why does this happen?
2. How do I handle this?
Has anyone created a control container in .NET? Have you seen this problem?
How do you handle this?
Thanks very much for your help!
- Joseph Geretz - 4 4470
Joseph,
You are going to have to provide a complete code sample which shows what
you are experiencing. What you have given isn't nearly enough information
to go on.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Joseph Geretz" <jg*****@nospam .comwrote in message
news:eb******** ******@TK2MSFTN GP02.phx.gbl...
Don't get me wrong - I'm a fan of .NET; I am enthusiastic about the
richness and elegance of the environment. However, richness and elegance
should be dedicated toward making development easier for developers, not
more difficult. In many ways this goal is achieved. However, I've run up
against one particular area of development, where what should be a trivial
excercise is turning out to be much more difficult than it should be. I'm
trying to devleop a user control which will act as the container for other
controls.
Why do I think this should be easy? Well, it used to be very easy. In VB6
all we'd need to do is set the UserControl's ControlContaine r property to
True. Done.
In .NET it doesn't seem that it should be any more difficult. The
following creates a user control onto which I can drop other controls when
I'm working with this control in another project.
[Designer("Syste m.Windows.Forms .Design.ParentC ontrolDesigner,
System.Design, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b03f5f7f11d50a3 a")]
public partial class SRSPanel : UserControl
{
OK, that works as far as it goes, however, at run time I'm experiencing a
problem which is an absolute show-stopper to my implementation. When focus
is on the last control contained within my control, and the Tab key is
pressed, focus does not move to the next control in the tab order on the
current form. Rather, a beep is issued and the cursor remains where it is.
1. Why does this happen?
2. How do I handle this?
Has anyone created a control container in .NET? Have you seen this
problem? How do you handle this?
Thanks very much for your help!
- Joseph Geretz -
Thanks Nicholas for putting me on the right track.
Although I've built other user controls, this one is the first container I'm
building. When I came across this behavior, I thought that this is endemic
to the container aspect of the control. You asked me to put together a code
sample and I thought, OK easy enough. I put together a simple container
control and lo and behold - it works perfectly.
Right now, I'm in the process of tearing down the complexity of my container
control. When I find out what has been causing the problem I will post back
to the group.
(In the meantime, may I remove foot from mouth? ;-)
Thanks!
- Joseph Geretz -
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote in
message news:ev******** ******@TK2MSFTN GP02.phx.gbl...
Joseph,
You are going to have to provide a complete code sample which shows
what you are experiencing. What you have given isn't nearly enough
information to go on.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Joseph Geretz" <jg*****@nospam .comwrote in message
news:eb******** ******@TK2MSFTN GP02.phx.gbl...
>Don't get me wrong - I'm a fan of .NET; I am enthusiastic about the richness and elegance of the environment. However, richness and elegance should be dedicated toward making development easier for developers, not more difficult. In many ways this goal is achieved. However, I've run up against one particular area of development, where what should be a trivial excercise is turning out to be much more difficult than it should be. I'm trying to devleop a user control which will act as the container for other controls.
Why do I think this should be easy? Well, it used to be very easy. In VB6 all we'd need to do is set the UserControl's ControlContaine r property to True. Done.
In .NET it doesn't seem that it should be any more difficult. The following creates a user control onto which I can drop other controls when I'm working with this control in another project.
[Designer("Syste m.Windows.Forms .Design.ParentC ontrolDesigner, System.Desig n, Version=2.0.0.0 , Culture=neutral , PublicKeyToken =b03f5f7f11d50a 3a")] public partial class SRSPanel : UserControl {
OK, that works as far as it goes, however, at run time I'm experiencing a problem which is an absolute show-stopper to my implementation. When focus is on the last control contained within my control, and the Tab key is pressed, focus does not move to the next control in the tab order on the current form. Rather, a beep is issued and the cursor remains where it is.
1. Why does this happen? 2. How do I handle this?
Has anyone created a control container in .NET? Have you seen this problem? How do you handle this?
Thanks very much for your help!
- Joseph Geretz -
Strange. I tore out all functionality and re-added the code step by step.
Tabbing works just fine. I have no idea what the problem was.
Thanks for pointing me in the right direction.
Joseph Geretz
"Joseph Geretz" <jg*****@nospam .comwrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
Thanks Nicholas for putting me on the right track.
Although I've built other user controls, this one is the first container
I'm building. When I came across this behavior, I thought that this is
endemic to the container aspect of the control. You asked me to put
together a code sample and I thought, OK easy enough. I put together a
simple container control and lo and behold - it works perfectly.
Right now, I'm in the process of tearing down the complexity of my
container control. When I find out what has been causing the problem I
will post back to the group.
(In the meantime, may I remove foot from mouth? ;-)
Thanks!
- Joseph Geretz -
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote
in message news:ev******** ******@TK2MSFTN GP02.phx.gbl...
>Joseph,
You are going to have to provide a complete code sample which shows what you are experiencing. What you have given isn't nearly enough information to go on.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"Joseph Geretz" <jg*****@nospam .comwrote in message news:eb******* *******@TK2MSFT NGP02.phx.gbl.. .
>>Don't get me wrong - I'm a fan of .NET; I am enthusiastic about the richness and elegance of the environment. However, richness and elegance should be dedicated toward making development easier for developers, not more difficult. In many ways this goal is achieved. However, I've run up against one particular area of development, where what should be a trivial excercise is turning out to be much more difficult than it should be. I'm trying to devleop a user control which will act as the container for other controls.
Why do I think this should be easy? Well, it used to be very easy. In VB6 all we'd need to do is set the UserControl's ControlContaine r property to True. Done.
In .NET it doesn't seem that it should be any more difficult. The following creates a user control onto which I can drop other controls when I'm working with this control in another project.
[Designer("Syste m.Windows.Forms .Design.ParentC ontrolDesigner, System.Design , Version=2.0.0.0 , Culture=neutral , PublicKeyToke n=b03f5f7f11d50 a3a")] public partial class SRSPanel : UserControl {
OK, that works as far as it goes, however, at run time I'm experiencing a problem which is an absolute show-stopper to my implementation. When focus is on the last control contained within my control, and the Tab key is pressed, focus does not move to the next control in the tab order on the current form. Rather, a beep is issued and the cursor remains where it is.
1. Why does this happen? 2. How do I handle this?
Has anyone created a control container in .NET? Have you seen this problem? How do you handle this?
Thanks very much for your help!
- Joseph Geretz -
Ha! You did all the work, I didn't do anything. I'm glad you fixed the
problem though.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Joseph Geretz" <jg*****@nospam .comwrote in message
news:Ox******** ******@TK2MSFTN GP06.phx.gbl...
Strange. I tore out all functionality and re-added the code step by step.
Tabbing works just fine. I have no idea what the problem was.
Thanks for pointing me in the right direction.
Joseph Geretz
"Joseph Geretz" <jg*****@nospam .comwrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>Thanks Nicholas for putting me on the right track.
Although I've built other user controls, this one is the first container I'm building. When I came across this behavior, I thought that this is endemic to the container aspect of the control. You asked me to put together a code sample and I thought, OK easy enough. I put together a simple container control and lo and behold - it works perfectly.
Right now, I'm in the process of tearing down the complexity of my container control. When I find out what has been causing the problem I will post back to the group.
(In the meantime, may I remove foot from mouth? ;-)
Thanks!
- Joseph Geretz -
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote in message news:ev******** ******@TK2MSFTN GP02.phx.gbl...
>>Joseph,
You are going to have to provide a complete code sample which shows what you are experiencing. What you have given isn't nearly enough information to go on.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"Joseph Geretz" <jg*****@nospam .comwrote in message news:eb****** ********@TK2MSF TNGP02.phx.gbl. .. Don't get me wrong - I'm a fan of .NET; I am enthusiastic about the richness and elegance of the environment. However, richness and elegance should be dedicated toward making development easier for developers , not more difficult. In many ways this goal is achieved. However, I've run up against one particular area of development, where what should be a trivial excercise is turning out to be much more difficult than it should be. I'm trying to devleop a user control which will act as the container for other controls.
Why do I think this should be easy? Well, it used to be very easy. In VB6 all we'd need to do is set the UserControl's ControlContaine r property to True. Done.
In .NET it doesn't seem that it should be any more difficult. The following creates a user control onto which I can drop other controls when I'm working with this control in another project.
[Designer("Syste m.Windows.Forms .Design.ParentC ontrolDesigner, System.Desig n, Version=2.0.0.0 , Culture=neutral , PublicKeyTok en=b03f5f7f11d5 0a3a")] public partial class SRSPanel : UserControl {
OK, that works as far as it goes, however, at run time I'm experiencing a problem which is an absolute show-stopper to my implementation. When focus is on the last control contained within my control, and the Tab key is pressed, focus does not move to the next control in the tab order on the current form. Rather, a beep is issued and the cursor remains where it is.
1. Why does this happen? 2. How do I handle this?
Has anyone created a control container in .NET? Have you seen this problem? How do you handle this?
Thanks very much for your help!
- Joseph Geretz - This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: RCCNH |
last post by:
I am creating a Windows application using C# in .NET.
In one of the windows, I have to show a scrollable list of user objects.
Those user objects contain various controls themselves (textbox, buttons,
etc) and are all of the same type of user object - just showing different
data. In this case, each one is a "question" being presented that needs to be
answered, and the requirement is to be able to show all the questions for a
given...
|
by: Zi |
last post by:
I have a user control within a data grid. I am binding the user
control to one of the values from the data grid. The data grid
implements paging. It is all working ok for the first page but once i
page to the second page of the datagrid, the user contorl stops
working correctly (displaying the correct data).
I have attached the code that is envolved.
Thanks a lot
|
by: Mary Kerrigan |
last post by:
I have a user control (menu) with a data list:
<asp:DataList id="MyList" runat="server">
<ItemTemplate>
<asp:hyperlink
cssclass="MenuUnselected"
id="myLink1"
Text='<%# Container.DataItem("Subject") %>'
NavigateUrl='<%# "../productlist.aspx?SubjectID=" &
Container.DataItem("SubjectID") & "&selection=" & Container.ItemIndex
|
by: Miguel Dias Moura |
last post by:
Hello,
I created a datalist in an ASP.Net / VB page.
I display the image and price of a few products.
When a user clicks an image I want to load the page
"detail.aspx?number=id" and send the value of the "id" field of that
record as a URL parameter.
Can someone tell me how to do this.
|
by: Art |
last post by:
Hi
I'm new at this and need some help. I have a "solution" with 2 projects - the main project and a library. The library is simple, it contains a text box that will appear many times in the form in the main project
My problem is that I would like events (leaving the text box) to be recognized in the main project. Alternatively I would like to be able to access classes in the main project -- I would like to be able to have the class with...
| |
by: CodeLeon |
last post by:
I am designing an enhanced GUI suite, and i need to know how to:
* Make a user control a "helper" control, ie, one that sits at the
bottom (like timer or process)
* Make this control modify the behavior of the painted controls
already on the form. (ie, make my control handle the painting of the
controls on the page)
* Make the TextBox contol have it's background painted by me. This
seems to be a hassle.
Any help would be deeply...
|
by: oozy |
last post by:
Hi,
I'm currently using
Page.Form.DefaultButton = ChangePassword1.FindControl("xx").UniqueID
to set my DefaultButtons in a form that has multiple wizards(each in
it's own panel). I can find the ID of every wizard I am using except
the "Create User" button of the Create User Wizard. I've tried the
ID, the name, parts of either, but I always get an error in my page
|
by: Efi Merdler |
last post by:
Hi,
I created a user control, but instead of handling exception in the
user control level I prefer to handle them in the containing form.
In the load event of the containing form I'm using:
entryWindow.Error += new EventHandler(Page_Error);
when entryWindow is my user control.
Two questions:
|
by: Gugale at Lincoln |
last post by:
Hi,
I am creating a user control which has a radio button and few other
controls. I would like the user control to behave like a radio button, in
the sense when added to a container radio button on only one of the user
controls should be selected at any given point of time. I am going to use
this control in different places. What is the best way of designing such a
user control?
Thanks
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |