473,326 Members | 2,110 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,326 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 942

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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.