Please convert to VB.NET
protected override bool ProcessKeyEvent Args(ref Message m)
{
if((char)m.WPar am == '.')
m.WParam = (IntPtr)',';
return false;
}
Thanks!
Buzz
Aug 19 '05
10 2507
Thanks Cor - we've modified Instant VB to include this correction (and the
VB-ish style of using AscW and ChrW) for casts of InPtr's to characters and
characters to IntPtr's. (Download the demo at www.instantvb.com if you're
interested in trying it out).
--
David Anton www.tangiblesoftwaresolutions.com
Home of:
Clear VB: Cleans up outdated VB.NET code
Instant C#: Converts from VB.NET to C#
Instant VB: Converts from C# to VB.NET
Instant J#: Converts from VB.NET to J#
"Cor Ligthert [MVP]" wrote: Buzz,
Thanks for showing it.
It would be in the shortest code
ChrW(m.WParam.T oInt32) and New IntPtr(Asc(",") )
Before you misunderstand me, there is nothing wrong with the code from Kevin. I have now learned again from this.
Thanks
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: JoseTA |
last post by:
Anybody Could please help this...
MDIParent Form:
-------------------
Event ButtonClick(strKey As String)
Private Sub tbrMain_ButtonClick(ByVal Button _
As MSComctlLib.Button)
RaiseEvent ButtonClick(Button.Key)
End Sub
|
by: Karunakararao |
last post by:
Hi all
Please Convert the VB.Net to C# .NET
Sub CustomPager(ByVal STCPagerGrid As Object)
Dim intCtr As Integer
Static intLastItem As Integer
Static intCount As Integer
Static intTotalPage, lintCurrentPage As Integer
|
by: Buzz |
last post by:
Please convert to VB.NET
protected override bool ProcessKeyEventArgs(ref Message m)
{
if((char)m.WParam == '.')
m.WParam = (IntPtr)',';
return false;
|
by: Todd_Goselin |
last post by:
Hello,
I've got a problem that I can't fix by myself, I'm fairly new to
programming in C and in Unix and so I'm having a tough time doing a
simple task of converting a binary number to a string. Can anyone help
me with that?
Here is the problem:
vals2 = ldap_get_values(ld,e,b);
|
by: shovan mohanty |
last post by:
Hi ,
Can anybody convert below access query into equivalent stored procedure.
Also please advice in the below query,user defined function of VBA i.e anneeSelection41510() has been used in the .MDB file(access project).Now how this can be implemented in the equivalent .ADP(client/server architechture)project because obviously anneeSelection41510() function will not be recognised by the sql server." (t_activity_month.fy)=anneeSelection41510())...
| |
by: rahuldev999 |
last post by:
Hi
Can anyone please convert the below access query to the equivalent stored procedure.No problem with the IIF() function but the condition in the "where" clause making problem.so please put some light on the that part.
Also how to implement it in the VBA code.
SELECT t_activity.no_activity, IIf(="GP","Plan",
IIf(="Prov","Appr.",IIf(="Fix","Fix",
))) AS act_steps
FROM t_activity_brand, t_customer INNER JOIN t_activity ON ...
|
by: royjm18 |
last post by:
Dim MyMoney As Single
Dim DRolls As Integer
Dim NRolls As Integer
Dim PRolls As Integer
Dim QRolls As Integer
Dim RemainingChange As Single
MyMoney = 28.24
QRolls = Int(MyMoney / 10)
MyMoney = MyMoney - QRolls * 10
|
by: phani kumar NSR |
last post by:
i have a query which is in oracle pls convert and give me in postgresql format.
SELECT MST.TW_TRAN_NO ,NVL(DEPT_RCPT_NO,'--'),CONSUMER_NO,NVL(CONSUMER_NAME,'---'),
UPPER( DECODE (PAY_MODE,'C','Cash','D','DD','CD','CASH/DD','Q','Chq','R','Card')),
TOT_AMT,DEPT_SHORT_DESC,TRAN_STATUS,NVL(USER_CHARGES,0),shift_code,
NVL(DECODE(PAY_MODE,'R',(NVL(CHQDD_CARD_AMT,0)-NVL(TOT_AMT,0)-
NVL(USER_CHARGES,0))),0)
...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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: 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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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: 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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |