473,397 Members | 2,068 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,397 software developers and data experts.

Can't send data to the textBox control through keypad

I have a Windows Application project which is registered for the COM Interop
and Output type is Class Library. My class is as follows:

namespace WSure
{
//COM events interface
[GuidAttribute("60273D79-A957-4bb0-9FED-04DD2CED811C"),
InterfaceType(ComInterfaceType.InterfaceIsIDispatc h)]
public interface IDXMachEvents
{
// ....
}

//COM methods interface
[GuidAttribute("CFAA1FE3-0FDF-4f6a-8346-7365D21B871C")]
public interface IDXMachMethods
{
[ DispIdAttribute(1)]
bool IsItTrue();
}

//CoClass
[Guid("066F6D2E-05E1-46bf-B1E2-CC753FAEDA2C"),
ClassInterface(ClassInterfaceType.AutoDispatch),
ComSourceInterfaces(typeof(IDXMachEvents))]
public class WDXMach : System.Windows.Forms.Form, IDXMachMethods
{
// ...

public System.Windows.Forms.TextBox textBox1;

// ...
public bool IsItTrue()
{
this.textBox1.ReadOnly = false;
this.Show();
return true;
}
}

I use this class library from the ATL COM object (C++) in which I create
WDXMach:

HRESULT hRes = m_pDXMach.CreateInstance(__uuidof(WDXMach));
if ( FAILED( hRes ) )
{
return E_FAIL;
}

Then I call

VARIANT_BOOL bValue = m_pDXMach->IsItTrue();

This works fine and finally I have on the screen a form with one textbox
control in it. The problem is that I can't edit the textbox with keypad. It
is possible
to copy and paste data in the textbox with mouse, but it just not respond
key strokes. Thanks a lot in advance for any help on the subject.

-Jussi

Nov 16 '05 #1
0 1119

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Dave Hammond | last post by:
You'd think this was an occasionally asked question, but a search for previous related posts only turned up one from 1999, and that one was never anwered. So... When handling a keypress event,...
0
by: Flemming Jensen | last post by:
The idea behind this code is to standardize all my webpages in an application to look the same by inheriting the pages from a userdefined class. But it gives me problems regarding sessionstate... ...
0
by: Syed Aun Ali | last post by:
i am running an asp.net application on a IIs server with some clients connected through local network and Tcp/ip.i want to send data from a textbox control on a aspx page of a client machine to a...
1
by: Kum | last post by:
Hi, I need help in asp.net dynamic textbox controls validation. I am creating textbox controls dynamically on a asp.net webpage. Now after creating the textboxes on the page I want to validate...
1
by: Samuel | last post by:
An example program gave me a demo how to design a keypad (button matrix) and append entered key to a string, but show "*" (star) signs in a text box. The Programmer-designed screen keypad...
3
by: YMPN | last post by:
Hi Everyone, I'm deen from Riyadh. Please do help me with some problem i have. I have this formview control setup to recieved inputs from user (textbox, dropdownlist, others). After...
1
by: sheenaa | last post by:
Hello Members, I m creating my application forms in ASP.Net 2005 C# using the backend SQL Server 2005. What i have used on forms :: ? On my first form i have used some...
3
by: =?Utf-8?B?QmVybmFyZG8gU2FsYXphciBuZXdi?= | last post by:
Hi everybody... i need help with this issue: i have a textbox control with the focus. at side, i have a datagridview control populated with some data. i need to control behavior of dgv control...
1
by: sivakrishna546 | last post by:
using System; using System.Collections; using System.ComponentModel; using System.Security.Permissions; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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
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
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
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.