473,473 Members | 1,768 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Tabbing - VC++.NET - Managed

5 New Member
Hi Guys,



I have created by own Texbox class and i have the following override:

Expand|Select|Wrap|Line Numbers
  1.  
  2. virtual bool IsInputKey(Keys keyData) //override
  3.  
  4. {
  5.  
  6. if (Keys::Tab == keyData)
  7.  
  8. {
  9.  
  10. return true;
  11.  
  12. }
  13.  
  14. else
  15.  
  16. {
  17.  
  18. return false;
  19.  
  20. }
  21.  
  22. //check keyData is key value and return true or false
  23.  
  24. //return false;
  25.  
  26. }
  27.  
  28.  
I have this because i want to test for the TAB key BEFORE the control is lost and change the first character of the text property to a captial. Now the reason i want to override the IsInputKey to test the TAB keydata, is because i do not want the user to move from one control to the next, if the Text property is NULL - i.e. the the user has to input some text.



The problem is, i dont know how to handle the LostFocus/GetFocus events. How do i handle this and pass focus to the next control. Remembering that this is done within my Textbox class, but i could have other types of controls instantiated on the form (comboboxes etc).


At present my control remanins on in the textbox and i have to manually click out of the controls to the next one.

IM USING VISUAL STUDIO 2005 on Vista Ulitmate
Mar 21 '08 #1
3 917
Garfbradaz
5 New Member
Any thoughts on the above? Im depserate. No-one at any Forum has answered my question. HELP!
Mar 21 '08 #2
Garfbradaz
5 New Member
Any thoughts please??????
Mar 21 '08 #3
Garfbradaz
5 New Member
Any thoughts. Im new to this, and i tried lookin on othersites like MSDN but to no avail!
Mar 21 '08 #4

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

Similar topics

23
by: Bredal Jensen | last post by:
I want to port my MFC (VC++6) application to manageg VC ++. 7. I want to do this because some things are much better done with C#. So i could write a C# class and use in my VC++ code as Languague...
3
by: Francis Urquhart | last post by:
I am trying to find the simplest possible way of writing a GUI to run on top of a standard C++ library written in VC++. I would like to avoid MFCs, COM, and if possible .Net wrappers. The goal...
8
by: Paul | last post by:
Hi all may I know how to use C# DLL inside my VC++ Project ? Thanks in advance.
6
by: Ben Terry | last post by:
Hello, I have a VS 2003.NET solution which consists of four c++ unmanaged legacy projects. I am adding a new project to the solution which will be in c#. What do I need to do to my c++ projects...
1
by: Steve | last post by:
We are considering the ways to migrate our VC++ 6.0 applications to .NET platform. It would be nice to rewrite them completely in C#, but due to the time constraints this option is out of...
8
by: The unProfessional | last post by:
To the VC .Net'ers out there... I noticed alot of strange behavior in the way VC .Net apps behave in the IDE. It's a bit odd, so maybe people have workarounds. I'm worried to devote my project...
12
by: Maansi Sanghi | last post by:
Hi, Is there a way to use the System.Xml.Schema classes in VC++ 6.0? Regards, Maansi
1
by: vemulakiran | last post by:
Hi all, I have doubt regarding .NET. I have a tool which was developed on VC++ 6.0(Win32 Application ). The application communicates with library (API) which was developed on VC++ 6.0 called core...
6
by: Doug Bell | last post by:
Hi I have a DataGrid with some hidden columns and also some read Only and some ComboBox Columns. Sandard Tabbing through the Datagrid sees the focus go to the hidden columns requiring further...
6
by: =?Utf-8?B?RGlwZXNoX1NoYXJtYQ==?= | last post by:
Hi all, I am porting an code written in VC++ to VC.Net to make it manage. But in Managed VC we dont use "const" keyboard at all. but my code is using it very frequently, so is their any...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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
tracyyun
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...
0
agi2029
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,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.