473,407 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Setfocus In FlowLayOutPanel Between Controls By Keypress

maheshwag
am using C#, VS-2005

am created runtime controls in flowlayoutpanel my code is below.

Expand|Select|Wrap|Line Numbers
  1.  
  2. First Controls
  3.  
  4. TextBox tbb=new TextBox();
  5. tbb.Name="tbb"+ i.tostring();
  6. tbb.Location=tbpoint; // tbpoint declare in ClassBody
  7. tbpoint.Y+=70;
  8. this.FlowlayoutPanel1.Controls.Add(tbb);
  9. i++;
  10.  
  11. Another Control
  12.  
  13. TextBox bb=new TextBox();
  14. bb.Name="bb"+ i.tostring();
  15. bb.Location=tbbpoint; // tbbpoint declare in ClassBody
  16. tbbpoint.Y+=70;
  17. this.FlowlayoutPanel1.Controls.Add(bb);
  18. i++;
  19.  
  20.  
Both controls are like Row as Below

Expand|Select|Wrap|Line Numbers
  1. tbb                                     bb
  2.  
Works fine in Flowlayout panel.

The problem is when user created above controls don't know how much it maybe two or three or maybe more then that. after create controls the cursor move to above flowlay out panel where textbox1 is there. I wants to setfocus on tbb which is created by user after leave textbox1. and then on tbb keypressevent of enter if user perform enter on tbb then focus should be on bb and on and on.

I don't know how to set focus on created controls in flow layout panel.

Kindly suggest me proper coding please.

thx in advance.
Aug 31 '10 #1
0 1170

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: serge calderara | last post by:
dear all, I manage to handle some code in any form controls keypress or down events place. In an other hand, the form_keypress event is not fired ? Any reason why I cannot get this event fire...
0
by: Sin Jeong-hun | last post by:
If FlowLayoutPanel's AutoScroll is set to true, there appears a scroll bar on the right. Normally, users would expect the contents is scrolled while they are dragging the scroll bar. Well, it does,...
4
by: Tom | last post by:
I have a VB.NET user control that I wrote - this control has three or four other controls on it (textbox, combobox, datetime picker, etc). Now, whenever the control is on a form and the user enters...
1
by: Liam J | last post by:
Is there an upper limit on what FlowLayoutPanel will display? I wrote a test that adds 395 buttons to a flowlayoutpanel and it stopped displaying them after button 310, cutting 310 in half. It...
3
by: ThunderMusic | last post by:
Hi, I want to make a toolbox form (like the one in Adobe Photoshop), so I would like to put many buttons one beside the others (beside, over and under, just like the toolbox in photoshop). I...
1
by: Steve Richter | last post by:
I have a form. In the Form is a MenuStrip and a FlowLayoutPanel. In the FlowLayoutPanel is a ListBox. The FlowLayoutPanel is set to DockStyle.Fill. The ListBox is set to AnchorStyles.Left |...
4
by: Rob | last post by:
I have created a user control that has several buttons on it..... The code below appears to add an instance of this user control to the Flow Layout Panel just fine... Private Sub...
2
by: Rob | last post by:
I am not sure if this can be implemented.... There exists a TabContol (added at design time) to a form.. Tabs for this TabContol get added at run time. Usage of the following 2 properties...
1
by: sklett | last post by:
I've read several articles/blogs/threads about anchoring/docking child controls in a FlowLayoutPanel. It sounds like it *should* work, but I can't get it to work for the life of me. Jon Skeet: ...
6
by: kcddoorman | last post by:
So I want to go to the top of the form without using the mouse to click on the first textbox. I understand the keydown and keypress events a little, but from what I've read they are associated with...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.