VS 2010 - Space Will Disappear When Encrypt

Mar 24, 2012

i'm doing a bifid cipher project now my code is almost finish.. the problem is every i put a space the space will disappear when I encrypt take a look at my code

[Code]...

View 5 Replies


ADVERTISEMENT

VS 2010 - Text In Textbox Disappear After WebBrowser Navigate

Mar 3, 2011

When I Webbrowser1.Navigate with my textbox the text inside of the textbox disappears.
WebBrowser1.Navigate(TextBox1.Text)

View 1 Replies

Get A Certain Text Inside A Textbox To Equal That Text Space To Space Or Null To Space?

Sep 25, 2011

How would i get a certain text inside a textbox to equal that text space to space or null to space?

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Textbox1.Text.StartsWith(Textbox2.Text + " ") And Not String.IsNullOrEmpty(Textbox2.Text) Then
Textbox1.Text = Textbox1.Text.Remove(0, Textbox2.TextLength)
Textbox3.AppendText("a")
End If

Btw: after i finish this step my project will be finished!

View 4 Replies

VS 2010 Encrypt/Decrypt File?

Jan 31, 2012

I am after some code to encrypt/decrypt a file, with a feature to display theencryption/decryption process percentage.The following code works well for strings, but when I tried to use it on byte arrays, I get an out of memory error.

Public Function AESEncrypt(ByVal PlainText As String, ByVal Password As String, ByVal salt As String)
Dim HashAlgorithm As String = "SHA1" 'Can be SHA1 or MD5

[code].....

View 4 Replies

VS 2010 X509 How To Use Public Key To Encrypt

May 7, 2010

I am trying to do some x509 encryption and I am getting lost. I have generated my own self signed cert with OpenSSL, but am confused as to how to use my public key to encrypt.I found a few examples online, but in the first one, I do not see where you provide your cert or key for the encryption. url....The seccond is in C#, and although i can make sense of most of it, the line in particular tha tlooks important, but I can't translate to VB is this one: url....

View 1 Replies

VS 2010 - Encrypt / Decrypt Byte Array

Jan 29, 2012

I have this code which works well:

Public Function AESEncrypt(ByVal PlainText As String, ByVal Password As String, ByVal salt As String)
Dim HashAlgorithm As String = "SHA1" 'Can be SHA1 or MD5
Dim PasswordIterations As String = 2
Dim InitialVector As String = "CanEncryption123" 'This should be a string of 16 ASCII characters.
Dim KeySize As Integer = 256 'Can be 128, 192, or 256.
[Code] .....

What I am after is this: Rather than having a string to encrypt/decrypt, I have a byte array.

View 1 Replies

VS 2010 Encrypt App.config For Windows Form App

Mar 29, 2012

I need some guidence to determine how to use DPAPI to encrypt passwords and server entries in the app.config. All examples I came across seem to refer to 3.5 and earlier, VS 2008, platforms. Does anyone have an example that will work for VS2010 in 4.0?

View 2 Replies

VS 2010 - Creating Library To Encrypt / Decrypt Files With AES

Sep 20, 2011

I'm attempting to create a little library to encrypt and decrypt Files with AES. There are loads of examples of how to do this on the internet so coding is not a problem. There are however a few questions regarding cryptography and AES in general.

#1 Does the IV need to be kept a secret like the key ?
#2 Can I just hash a string with SHA512 to make a key for AES ? or do I need to use PasswordDeriveBytes ?
#3 In the case of me using PasswordDeriveBytes Do I need to keep the salt a secret ?(or do I need to keep it at all)
#4 Can I generate the IV from the same password that the Key is derived from ?(if so How ?)

View 1 Replies

VS 2010 Space Invaders Queries?

Oct 15, 2011

I've got everything working except this one problem which I can't seem to get my head around.I've made a function that returns a random number between 1 and 11 (how many invaders there are on a row).I've managed to get this to work, however the invaders will keep firing even if they are visible, so I made a do until loop which says to keep running the random number until it finds an invader which is visible... The problem is that if the whole row of invaders aren't visible, it will get stuck in the loop.

View 13 Replies

VS 2010 Trying To Auto-space Some Text

Oct 18, 2011

I'm just now starting to work on something that works 'like' an ide, where it will auto space my text as I type. I really JUST started and I'm not sure if I'm even doing it remotely like I should. anyways, what I'm doing is on TextChanged (eventually I'll just do it on newline but that can wait) it gets the contents of the text box, puts each line into a string array, trims the excess whitespace, see's if it has a keyword in it, and then adds some whitespace to it if it does.I know I'm doing something wrong with either my declarations or my error handling. Mostly because i'm not sure how to work with string arrays, can you help me with my syntax?[code]

View 2 Replies

VS 2010 Strings.Space VS String.Empty?

Jan 5, 2011

To create a string of space characters to a given length using the MS VB namespace I used,

Strings.Space(Length)But without the VB namesapce, how do I do the same thing, is it like this?...

String.Empty.PadLeft(Length, " "c)

View 2 Replies

VS 2010 : Space Invaders Alien Loops/arrays?

Oct 2, 2011

Been given an assignment to create a space invaders game. Although there's a long way around, is there a way to make my code smarter.Here's the section to make a row of invaders so far:

Public Class Form1
'number of invaders in a row (horizontal)
Dim numberofinvaders As Integer = 11
'set of invaders (vertical)

[code]....

So what I want to do more precisely is have the value of setofinvaders to change how many rows of invaders vertically in a loop.

View 13 Replies

VS 2010 Tell What The Size Of My Program Is And How Much Disk Space Is Needed To Install?

May 16, 2012

How can I tell what the size of my program is and how much disk space is needed to install. When I publish the program and install it on another machine it will show up in the control panel but does not show what size the program is?Also when I publish updates with it says something like installing 10mb. Is this an additional 10 mb everytime, I guess not, but can someone explain what it all means?

View 10 Replies

VS 2010 - Labels - Picture - Blank Item, Or Empty Space, A Control Has Failed To Draw Of Something

Nov 2, 2011

Everywhere in this picture you see a blank item, or empty space, a control has failed to draw of something. In this case they are all textboxes.

picture:

View 24 Replies

Visual Studio 2010 - .net Application Works With Files Dragged Onto The Exe But Crashes If There's A Space In The File's Path?

Jun 15, 2011

I'm developing an application in vb.net. You drag any type of file onto the exe, and a window pops up with some options for the file, then it saves the file to a different location, works some SQL magic, etc. It works great for the most part. The only issue I've found is that if the path of the file contains any spaces, the application will crash immediately with the error window:[URl]..I'm using: Private filename as String = Command$ This is located right inside my form's class declaration, not within a sub/function.Without this line, my program runs fine (although useless, without accessing the file).I've also tried (I think this was it, I don't have the code with me at the moment): Private filename as String = Environment.CommandLine So, in vb.net, is there a way to drag a file onto an exe and use that path name, even if there are spaces in the path name?

View 2 Replies

Keydown Space/Enter - Use The Space Or Enter Key To Change The Image In It?

Sep 8, 2011

I am using a picture box. I want to be able to use the Space or Enter key to change the image in it. For that, I try to use the keydown function as follow:

Private Sub ChestWindow_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
Select Case e.KeyCode
Case Keys.NumPad1[code]....

is the function which changes the image. It works well when I press '1' on my numeric part of the keyboard as a test.The issue is that when I press Space or Enter, the form containing the picturebox closes. (I've already put the keyPreview property to True)

View 13 Replies

IDE :: Navigation Bar Does Not Disappear

Jun 6, 2010

I am using visual basic and when I try to hide Navigation bar, I am not able to, it is disabled. Ok I tried to turned it off going to "all languages", althought I unchecked the setting. It didn't disappear. I restarted visual studio, closed all open classes. It is just visual basic, when I try with c# I can hide and show it.

View 1 Replies

Labels Do Not Disappear

Feb 14, 2011

I am storing labels in a collection array called mylabels.now I want to not only remove a label from the array but also from the picturebox it is drawn on.I am trying the following

mylabels.RemoveAt(x)

but although the labels are removed from the array, even on picturebox refresh they donot disappear from picturebox.

View 7 Replies

My Progress Bar Disappear

Aug 30, 2011

I have seen this problem before but I haven't seen an answer to the question that applied to my particular case. I have a BackgroundWorker running in my VB form, as well as a progress bar and some labels. I also (if it's important) have a WebBrowser on my form, but it isn't affected by the thread.

View 1 Replies

IDE :: Asterisk Character Does Not Disappear From Tab

Jun 4, 2009

When I open "My Project" in VB WPF Project, then make changes and save, then character "*" doesn't disappear from tab.

View 1 Replies

IDE :: Windows Disappear At Run Time

Sep 3, 2009

I use VB 2008 Professional. Initially, when I'm in debug mode all the windows are visible: The Solution explorer, Server explorer, Auto window, the tool box, etc. Suddenly, whenever I'm in debug mode only the code editor is visible. I have tried opening them from the View and Window Menu but they don't show up until I exit the debug mode.

View 2 Replies

Make A Control Appear And Disappear?

Mar 27, 2010

I have 4 different panels, which I want to appear in the SAME spot on the form at different times. Currently, I've just got all four stacked on top of each other in the designer, and I'm toggling their visible properties to show each. This is becoming extremely difficult though, as now I have different buttons in each panel, and the panels keep getting accidentally put inside each other when I move them.

View 7 Replies

Make A Screen Disappear A Bit?

Apr 6, 2012

I am making a calendar, if I click on a day I want to make a screen disappear a bit like this:

________________________________
|12:00 |
| Mister One, Footmassage |

[Code].....

View 3 Replies

Splash Screen Disappear?

Jan 25, 2010

I have splash screen with three buttons.When i run My application after sometime splash screen disappear. Actually what i wanna do when user click button then splash screen will close otherwise not.I don't wanna use timer.

View 4 Replies

Add Controls To A Form Fails Because They Disappear

Jun 10, 2010

I have an add-in that creates a form, adds controls to it, then tries to add some more. But on the second attempt to add controls, they disappear. If I have an error in my code that gets displayed in a message box I can see the new controls behind it. When I click OK they disappear. If I have no error and step through the code, they are there according to properties, although I can't see them because the form will not display while in debug mode. When the program finishes, th controls that were created are gone. Perhaps I am selecting the form to edit wrong.Too bad there isn't any documentation (or any than can be found) that describes how to do this.[code]...

View 5 Replies

Asp.net - Textbox Values Disappear On Postback?

May 11, 2012

I have an asp.net page with a button that adds an additional row to a gridview for input to the database. The gridview consists of 3 textboxes(template fields), when I add a row the information already entered somehow disappears on the postback. I want the button to add additional rows without disspelling the data in the other rows, until I hit the submit button. Here's my code

Private Sub AddNewRowToGrid()
Dim rowIndex As Integer = 0
If ViewState("CurrentTable") IsNot Nothing Then

[Code].....

View 1 Replies

Controls Disappear On Form Restore?

Aug 22, 2010

I experience very strange behaviour of a windows form written in VB.NET 2005.
The form contais DataGridView with data.

I minimize the form to Windows task bar, then I restore it. The form appears, but the DataGridView and other controls are not displayed. In order recover from this situation, I need to resize the form or maximize it.

View 3 Replies

DataGridView Row Headings Disappear On Tabpage2?

Feb 16, 2010

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[Code].....

View 4 Replies

Entered Text Disappear At Combobox?

Aug 11, 2010

I have an application that uses the editable dropdown combobox (comboboxstyle.dropdown)

But when I run the application, whenever I entered a new value that is not in the list, it disapears when i focus to other cells.

View 1 Replies

Icon To Disappear After Application Is Closed

Jul 31, 2009

My winforms app puts a little icon in the taskbar next to the clock while it's running. how do i make it disappear when i close the program in vb.net?

after the application is closed and i put my mouse over it, it disappears.

View 3 Replies







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