473,396 Members | 1,938 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,396 software developers and data experts.

Different computers - different bugs ?

Hello all,
I'm stuck here (nothing new in this world).
I have a program, that runs fine on my computer (where I actually
developing C# Windows app), but appears to be buggy on another
computer.
Same Windows versions, same .NET Framework...
Is there something I am overlooking ?
Below I have a function code, which works on my computer, but does not
on another:

// Autocomplete the combobox
private void cbMake_KeyPress(object sender,
System.Windows.Forms.KeyPressEventArgs e)
{

int position = 0;
if (e.KeyChar > 31)
{
position = cbMake.Text.Length;
this.cbMake.SelectedIndex = this.cbMake.FindString(this.cbMake.Text);
this.cbMake.Select(position, this.cbMake.Text.Length - position);
}
}

Any ideas ?
Nov 16 '05 #1
2 1196
Eugene wrote:
Hello all,
I'm stuck here (nothing new in this world).
I have a program, that runs fine on my computer (where I actually
developing C# Windows app), but appears to be buggy on another
computer.
Same Windows versions, same .NET Framework...
Is there something I am overlooking ?
Below I have a function code, which works on my computer, but does not
on another:

// Autocomplete the combobox
private void cbMake_KeyPress(object sender,
System.Windows.Forms.KeyPressEventArgs e)
{

int position = 0;
if (e.KeyChar > 31)
{
position = cbMake.Text.Length;
this.cbMake.SelectedIndex = this.cbMake.FindString(this.cbMake.Text);
this.cbMake.Select(position, this.cbMake.Text.Length - position);
}
}

Any ideas ?


A different keyboard?

FB

--
Get LLBLGen Pro, the new O/R mapper for .NET: http://www.llblgen.com
My .NET Blog: http://weblogs.asp.net/fbouma
Microsoft C# MVP
Nov 16 '05 #2
Hello Eugene,

I'd suggest you use the KeyChar event if you need to capture character input
and react accordingly.
The KeyPress event is better for capturing keystorkes which don't produce
printable characters.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Eugene" <et@tourclub.ca> wrote in message
news:b9**************************@posting.google.c om...
Hello all,
I'm stuck here (nothing new in this world).
I have a program, that runs fine on my computer (where I actually
developing C# Windows app), but appears to be buggy on another
computer.
Same Windows versions, same .NET Framework...
Is there something I am overlooking ?
Below I have a function code, which works on my computer, but does not
on another:

// Autocomplete the combobox
private void cbMake_KeyPress(object sender,
System.Windows.Forms.KeyPressEventArgs e)
{

int position = 0;
if (e.KeyChar > 31)
{
position = cbMake.Text.Length;
this.cbMake.SelectedIndex = this.cbMake.FindString(this.cbMake.Text);
this.cbMake.Select(position, this.cbMake.Text.Length - position);
}
}

Any ideas ?


Nov 16 '05 #3

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

Similar topics

137
by: Philippe C. Martin | last post by:
I apologize in advance for launching this post but I might get enlightment somehow (PS: I am _very_ agnostic ;-). - 1) I do not consider my intelligence/education above average - 2) I am very...
5
by: | last post by:
I have ASP code displaying currency datatype data from Access database. I have copies of this asp code and tha database on two w2k/IIS5 computers, bothg having the decimal symbol set to "." in...
4
by: Burghew | last post by:
Hi all, I am trying to design a database in access 2002. I have multiple category of items such as computers which may include laptop, server, pc...all of these items have different attributes,...
6
by: david epsom dot com dot au | last post by:
I have a report with an OLE bound frame. A bitmap has been pasted into the bound field. The bitmap displays and prints differently on different computers. In particular, the alignment is...
4
by: Ram Baruch | last post by:
Hi, I'm looking for a simple directory picker. I need both local drives directories and directories in the computers in the network neighborhood. Does anyone know if there is something ready in...
7
by: Atara | last post by:
Did you know that in Turkish strupper("i") <> "I" ?! They have dotted i and un-dotted I, both in upper case and in lower case... We found it only after a complain from a Turkish client. ...
17
by: aamircheema | last post by:
Hi, When I compile my program adding -O option, the running time of my program is much smaller. For example if i compile my program like this g++ -Wall -g prog2.cc avltree.cc cells_list.cc...
43
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
6
by: kimiraikkonen | last post by:
Hello, I've been working on a project and i wonder how to get list of the LAN computer names in a tree list which are involved under the same workgroup name? What can be the code be? Very...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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...

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.