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

Pleas help me shorten this code snippet

I am programing a Playfair Cipher and im trying to shorten this code. PLEASE HELP.

Expand|Select|Wrap|Line Numbers
  1. If tbLetter1.Text = "I" Then tbLetter1.Text = "I/J"
  2.         If tbLetter2.Text = "I" Then tbLetter2.Text = "I/J"
  3.         If tbLetter3.Text = "I" Then tbLetter3.Text = "I/J"
  4.         If tbLetter4.Text = "I" Then tbLetter4.Text = "I/J"
  5.         If tbLetter5.Text = "I" Then tbLetter5.Text = "I/J"
  6.         If tbLetter6.Text = "I" Then tbLetter6.Text = "I/J"
  7.         If tbLetter7.Text = "I" Then tbLetter7.Text = "I/J"
  8.         If tbLetter8.Text = "I" Then tbLetter8.Text = "I/J"
  9.         If tbLetter9.Text = "I" Then tbLetter9.Text = "I/J"
  10.         If tbLetter10.Text = "I" Then tbLetter10.Text = "I/J"
  11.         If tbLetter11.Text = "I" Then tbLetter11.Text = "I/J"
  12.         If tbLetter12.Text = "I" Then tbLetter12.Text = "I/J"
  13.         If tbLetter13.Text = "I" Then tbLetter13.Text = "I/J"
  14.         If tbLetter14.Text = "I" Then tbLetter14.Text = "I/J"
  15.         If tbLetter15.Text = "I" Then tbLetter15.Text = "I/J"
  16.         If tbLetter16.Text = "I" Then tbLetter16.Text = "I/J"
  17.         If tbLetter17.Text = "I" Then tbLetter17.Text = "I/J"
  18.         If tbLetter18.Text = "I" Then tbLetter18.Text = "I/J"
  19.         If tbLetter19.Text = "I" Then tbLetter19.Text = "I/J"
  20.         If tbLetter20.Text = "I" Then tbLetter20.Text = "I/J"
  21.         If tbLetter21.Text = "I" Then tbLetter21.Text = "I/J"
  22.         If tbLetter22.Text = "I" Then tbLetter22.Text = "I/J"
  23.         If tbLetter23.Text = "I" Then tbLetter23.Text = "I/J"
  24.         If tbLetter24.Text = "I" Then tbLetter24.Text = "I/J"
  25.         If tbLetter25.Text = "I" Then tbLetter25.Text = "I/J"
  26.  
Jul 28 '14 #1
0 946

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

Similar topics

4
by: Andy Gayton | last post by:
Hey all, It looks like dynamic changes to a html document are only redrawn when the current code snippet comes to an end. For example the following page changes the text in a span, waits for a...
1
by: Mike Malter | last post by:
I am just starting to work with reflection and I want to create a log that saves relevant information if a method call fails so I can call that method again later using reflection. I am...
0
by: danieljroot | last post by:
I would like to create a code snippet for a property that automatically names the underlying field with standard naming convention: typing propn string MyProp would expand to: private string...
0
by: Seigfried | last post by:
There seems to be at least three competing Intellisense Code Snippet Editors available from Microsoft supported site: 1 - VB Snippet Editor (SnippetEditor.exe) - downloaded from Microsoft page ...
5
by: rodchar | last post by:
hey all, i noticed when i'm in the code-behind and i type, let's just say the word IF, well in the auto-complete list the tool tip show it as a code-snippet. Is there a key-stroke to stub the...
1
by: Gary Brown | last post by:
Hi and Happy Holidays, While typing in a member function an errant finger triggered a bit of code snippet that throws a "not yet implemented" exception if the member is called. It happened...
2
by: daokfella | last post by:
Hi all, I've created a code snippet in VS 2005 and saved it in the proper snippet folder. When I right-click and select Insert Snippet, I navigation to My Code Snippets and it shows my snippet....
3
by: Hardy | last post by:
I created a code snippet which is for displaying file name,Line number and function name in C#.NET project. // <File> sf.GetFileName() // </File> // <Line> sf.GetFileLineNumber().ToString()...
2
by: steve.falzon | last post by:
Hi I've been searching high and low for this info but have been unsuccessful so far. I wonder if anybody knows where I can get a specification for the directives contained within the code...
4
by: tshad | last post by:
I was watching a video that used a code snippet to create a property and when you type "prop" tab tab, it would create the private variable as well as the property definitions with the private...
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
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...
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.