Decrypt By Increasing/decreasing ASCII Values?

Sep 4, 2009

My Encrypted code is :Asdos!Obqlds,Knodt+404620Y+20-05+24 Now, how can i manipulate the characters by decreasing each odd character's ASCII value by one and increasing each even character's ASCII value by one?

i.e. in the above code..
A becomes B
S becomes R

[code].....

View 11 Replies


ADVERTISEMENT

Macro In Excel - Increasing Values By 10 Percent

Apr 25, 2010

I'm guessing the reason this macro isn't doing what I want it to is because of an error on my part in the code. Basically, I want the values in the cells pointed out in the code to be increased by 10% each time the button is pushed.

Here is the code:
Sub Add10percent()
IncreaseColumnValuesBy10Percent 2, 0.1
IncreaseColumnValuesBy10Percent 4, 0.1
IncreaseColumnValuesBy10Percent 6, 0.1
IncreaseColumnValuesBy10Percent 8, 0.1
[Code] .....

View 2 Replies

Getting ASCII Values Into An Array?

Oct 12, 2009

I need to get ASCII Values into an array that I have setup. The code is written as follows:

Dim aStr As String = TextBox1.Text
Dim aStrBytes() As Byte = New Byte() {}
aStrBytes = System.Text.Encoding.ASCII.GetBytes(aStr)
ReDim IntialValue(0 To 1000)

View 7 Replies

Assign Ascii Values To Letters?

Mar 23, 2010

How do i assign the ascii values to letters??

i have to do a rot13 encryption program and have got this so far[code]...

View 1 Replies

How To Take String Of HEX Values And Convert Them To ASCII

Aug 2, 2011

I need some thought input on how I can take my string of HEX values and convert them to ASCII according to the specifications below: A function would be ideal since I need to quickly decode about 250 records all having 20 thresholds to record.[code]

View 14 Replies

Convert Characters To ASCII Values Using Visual Basic?

Sep 25, 2009

I'm an undergraduate student from Singapore University, would like to enquire you on how to convert character codes to ASCII codes using visual basic. regarding the codes on how to build it as I need it for my semestral project

View 3 Replies

Read An Ascii String Of Hex Values In To A Byte Array?

Jul 21, 2010

How would I copy/convert a string containing an ascii representation of hex values in to a byte array containing the actual hex values? For example, I have a variable containing the hex values delimited by spaces (I can change the delimiter):

[Code]...

View 1 Replies

Decreasing Value In C# Or .NET Enum?

Apr 23, 2012

More for interest than actual need.is it possible to have an automatically decreasing enum in C# or VB.NET?

public enum testEnum
{
this = -1,
that,
other,
}

So that that = -2 and other = -3.I'm pretty sure the only way to do it is to specifically assign "that" and "other", but I wondered if there was an automatic way of doing it.

Edit To be clear, I'm simply talking about the automatic assignment of the value, not the actual value of the enum decreasing.

View 1 Replies

.net - Microsoft.VisualBasic.FileIO.TextFieldParser Changes ± Ascii 241 To ? Ascii 63?

Dec 11, 2010

I am using Microsoft.VisualBasic.Fileio.TextFieldParser to parse a CSV file that was created with Excel 2003. The parser is working great with the exception that it is converting extended ascii values to question marks! So if the file content was:

± 3
The TextFieldParser is returning
? 3

I have tried all of the encodings in the System.Text.Encoding package with no luck. I thought I had it with UTF7 but it was dropping other characters like replacing the + sign with a space.

View 2 Replies

VS 2005 - Form Resizing - Size Of Text Boxes Starts Decreasing

Mar 7, 2010

i have a button in my form which increases the font size of the form by 1. [Code] now when i increase the font size, after increasing by 3 the size of text boxes starts decreasing. this is how the form looks after size+5, when i open the form, the tabpage resize event is called 3 times.

View 1 Replies

Converting An ASCII 6-bit String To 8-Bit ASCII Characters?

May 9, 2011

I'm working on decoding a NMEA sentence that is a compressed 8-bit string. I'm having a very hard time of wrapping my head around the bit manipulation needed to convert this string. If someone could get me started with this it would be great.

Here is the incomming string:

!AIVDM,1,1,,A,14eG;o@034o8sd<L9i:a;WF>062D,0*7D

and here is the expected output:

[code]...

View 10 Replies

What Is The 'whitespace' ASCII Or Unicode Character In System.Text.Encoding.ASCII.GetBytes (whitespace)

Nov 4, 2009

I would like to pass a whitespace character by using the System.Text.Encoding.ASCII.GetBytes(" "), and System.Text.Encoding.Unicode.GetBytes(" ") , where " " is the whitespace Character required. What do I need to type (" ") to get a whitespace character passed.?

View 6 Replies

Asp.net - Character Support - Translate Higher ASCII Characters To Lower ASCII Characters?

Aug 7, 2009

So I have an ASP.Net (vb.net) application. It has a textbox and the user is pasting text from Microsoft Word into it. So things like the long dash (charcode 150) are coming through as input. Other examples would be the smart quotes or accented characters. In my app I'm encoding them in xml and passing that to the database as an xml parameter to a sql stored procedure. It gets inserted in the database just as the user entered it.

The problem is the app that reads this data doesn't like these characters. So I need to translate them into the lower ascii (7bit I think) character set. How do I do that? How do I determine what encoding they are in so I can do something like the following. And would just requesting the ASCII equivalent translate them intelligently or do I have to write some code for that?

Also maybe it might be easier to solve this problem in the web page to begin with. When you copy the selection of characters from Word it puts several formats in the clipboard. The straight text one is the one I want. Is there a way to have the html textbox get that text when the user pastes into it? Do I have to set the encoding of the web page somehow?

[Code]...

View 4 Replies

Copy The Char Array To An Int Array With The ASCII Values Of Each Char?

Mar 22, 2012

I have split a string into a char array, now i need to copy the char array to an int array with the ASCII values of each char.Don´t know how to do it without looping each value.

This is my code:

origen = RichTextBox1.Text.ToString
Dim valor As Char() = origen.ToCharArray
Dim numeros As Integer() = (How can i convert "valor" to an int array?????)

View 10 Replies

Increasing A Number By A %

Apr 27, 2010

Another question for you... I have a program which lists the population from 1998 to 2002. The pop in 1998 was 300,000 but I need it to increase by three percent every year. My code works but for each year it has 300,000 as the pop. lic Class Population

[Code]...

View 9 Replies

Code For Increasing Number?

Nov 19, 2009

I would like to know how to write the code for increasing number.For example. When I type a number in a textbox, after I pressed a button, it will increase from the number I've typed in the textbox with 1.For example : if i type 100 in the textbox,the number will go on.

101
102
103... to infinity

I am using sendkey..

Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Dim n As Integer
For n = 1 To loop

[code]....

View 5 Replies

Increasing The Size Of An Array?

Jun 8, 2011

increasing the size of my array. i have this code but i don't know which of these code does not increase the size of my array even though i increment it.

This is the declarations:
Dim movieArray(0) As String
Dim ratingArray(0) As String

[code].....

View 5 Replies

Auto Increasing A Field In A Table

Feb 24, 2012

I have a small page, with a button on it. When I click the button I'd like the code to look at a a field (call the field "InvoiceNumber") in a table (call it "InvoiceTable"), take the last number stored, increment it by "1" then store it back in the "InvoiceTable" and display the new invoice number on the page.Currently the button is called "New Invoice", so clicking this button is going to create a new invoice, with a number one newer than the latest one in the table.

View 2 Replies

Increasing The Number Of Keywords Unnecessarily?

Jun 22, 2010

Why did they choose to add a new keyword AndAlso, instead of just changing the functionality of the existing And keyword?

Why would one want to use And, instead of AndAlso anyway?

Is it not just increasing the number of keywords unnecessarily?

View 3 Replies

Numbers Arranged In Increasing Order?

Oct 18, 2010

I'm using Visual Studio 2005. I want the output of these ten numbers arranged in increasing order... 22, 15, 10, 12, 12, 13, 21, 21, 20 and 9.

View 3 Replies

VS 2008 CPU Usage Increasing Over Time?

Jun 19, 2009

I am currently running through a loop with 20 threads. These loops contain a series of 3 HTTPWebRequests (relatively CPU intensive). At the beginning, CPU usage never spiked above 10%. After about 7 hours of run time, CPU is spiking up to over 40%. I believe that this will eventually lead to the program crashing (it has before in less time, I modified some things and it seems to be running longer). What kind of intense CPU spikes are associated with threading? More importantly, how can the duration of runtime affect CPU usage by so much?

View 11 Replies

Controls Increasing In Size When Form Is MDIChild

Jan 27, 2012

I placed a button on my form that measured 59mm in width (approx 2.25 inches for any Americans).When you run the project as you'd expect it still measures 59mm.However when I set the form as a child to my MDIParent and run the project the button now measures 67mm (well over 2.5 inches) an increase of 13.5%.Is this a bug or do I need to just change some setting somewhere?

View 6 Replies

How To Make Class / Increasing Object Scope

Jul 9, 2011

I am struggling to do what i want with classes at the moment as they are killed off at the end of a method, can somebody let me know how to make the classes live until i tell them to die? so that i can create one and refer to it from another method at another time? For example On form load i create a class Dog.Then later on i want to get info from the Class Dog. But it is no longer instantiated

View 6 Replies

Increasing CPU Usage To Simulate Heavy Computer Use

May 19, 2011

I'm building a VB.NET 2010 app that tracks battery usage. Run the app, start logging, then let the battery go flat. At the end, you get a nice graph that shows you how long the battery took to run down. Compare it to previous results and you can see how battery life is doing.

But this is supposed to be an unattended app, so it's not feasible for me to sit down and use word, browse the Internet, listen to music, play games etc. for four hours (especially at work!), so I'm looking for a way to artificially increase CPU usage to chew through the battery faster, and simulate how a battery would probably be used throughout a work day.

I've managed to inflate the memory usage using:

Dim a as long
Dim ptr(0 To 20000) As IntPtr
For a = 1 To 20000

[Code]....

I increase CPU usage in VB.NET? I've tried creating new threads with constant loops, but I get the funny feeling that VB.NET optimizes these kind of things to prevent memory and CPU hogging apps from taking over

View 3 Replies

Increasing Number After Next Combobox Item Selected?

Feb 13, 2012

What I want to do here is to increase the number on a label for next combobox item selected

eg.

Items Label
Tom 1
Jane 2
Mary 3
John 4
etc.. etc..
etc.. etc..
etc.. etc..

View 2 Replies

Notify Icon Increasing In System Tray?

Apr 20, 2011

I have a application which is written in background worker. Inside the background worker i am creating the multiple threads . The application has one notify icon. When i creating threads the notify icon gets duplicated for each thread. Suppose if i am running three threads means , there are 4 icons in the system tray.

View 3 Replies

Raising Events Between Forms And Memory Increasing?

Feb 8, 2012

My application has 1 main form and three other forms which raise events to my main form. I noticed that the memory starts at 77,000 K and increases substationally over a few hours maby be to 250,000k and ever increases.The main form has a dataset and a bound datagridview which gets refreshed with data. Basically it's a taxi booking application. The booking form raises an event to the main form and the main form refreshes the jobs and displays them on the dgv.

View 8 Replies

ScrollToTop And AJAX - Increasing The Length Of The Timeout?

Sep 10, 2010

I'm attempting to have my page automatically scroll to the top when there is an error message to present to the user. Following a tip I found searching, I've enclosed the Javascript scrollTo function in a setTimeout function to avoid a conflict with AJAX remembering the scroll position. Here is the relevant [code]....

This is working fine for me locally, but when I move the code up to our test server, it does not seem to take effect.I have tried increasing the length of the timeout, but no dice.

View 2 Replies

VS 2008 Increasing Stack Size On Ui Thread?

Jul 30, 2010

how can i increase the stack size on my ui thread from within my app?my app recursively draws onto a bitmap which is then displayed in a picturebox + only causes an error when i increase the size of the bitmap. i.e. the same drawing operation on a smaller bitmap works ok.

View 23 Replies

VS 2010 Increasing A Number In MS Access Database?

Apr 24, 2011

How do i make the number in a particular column of an MS Access database to add up by 1(one) each time a button is clicked? I have tried the following code but everytime its clicked, it just seems to "replace" the 1 which is already in the database.

If CheckedListBox1.GetItemChecked(i) = True Then
ds.Tables(0).Rows(i).Item(10) = +1
da.Update(ds, "Students")
End If

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved