Why Won't This Code Work

Feb 27, 2010

Why Wont This Code Work?

I Have a password safe program that allows you to enter various passwords from different websites and adds them to a password protected list which then saves them to a file and then the file gets encrypted then when the program starts it decrypts the file and loads the list into the password protected listbox

Overall a very hard program to hack but there is a problem but i dont know what it is.
I Am Using the DES Cryptography module and no problems show up on the normal panel
I Will Post all my code below:[code...]

View 2 Replies


ADVERTISEMENT

Getting SQL & VB Code To Work Together?

Sep 20, 2010

I need to pass the values that I generate from SQL queries back to my VB code-behind window so I can apply a bunch of program functions to them. The queries work like a charm, and look something like:

SELECT Max(Number) FROM .dbo[00Masterlist] WHERE (County) = @County

and then in the next screen of the "Configure Data Source" tool I set up the WHERE and all is well.However, this information is only the beginning of my obligation to the project.It will display just fine in any data view I choose, but that's not what I want it for.I want to code with it from there. I've tried setting up the SQL as a string variable in the VB, but it reads the string as a literal set of characters instead of as SQL.I've tried stealing it from the form it prints to in a querystring, but that got really really messy.

View 1 Replies

AutoNumber Code Does Not Work?

Nov 30, 2010

I am trying to do a user defined autonumber when I click on a button. The code worked fine when the recordset is empty, it give me a 1 on my first record, however, after I click on the button again, it give me 1 again. Here's my code.

Private Sub BtnNew_Click()
Dim rsClone As Recordset
Dim pVal As Integer[code]......

View 1 Replies

IDE :: F8 Key Does Not Work To Step Through Code

Jun 7, 2007

I have just re-installed VS 2005 on my machine. Now when I want to step through my source in Debug My F8 key doesn't work. I did manage to get an icon on the toolbar that I can click to do it but How do I associate the F8 Function key back to that process?

View 4 Replies

VS 2008 Can't Seem To Get This Code To Work

Nov 26, 2009

Ive been trying to search the registry for all keys called test and return their value, but im not sure how to do it using this example

Imports System
Imports Microsoft.Win32
Imports System.Threading
Public Class Form1

[code]....

View 13 Replies

Get Code For A Datagrid With Owntemplates To Work

Mar 8, 2009

Been trying to get my code for a datagrid with my owntemplates to work but I'm about fed up with it now butI still want the control over what I can do with the data.I'll give you all the code I've been working with.I would like to keep the concept of what I have been doingthe same if that makes any sense, I like just using classesand code behind.If I turn AutoGenerateColumns to false I do fill the grid with the data.Otherwise I'm not filling it with the data, just the text from the labels.Also the TextBox doesn't show either. [code]

View 2 Replies

Button Code Does Not Work In 2010

Jan 13, 2011

I have a form in visual basic 2010 in design view. And when i debug the form. the button i have put on the form does nothing. i want the button that i added, to do what the add new item does on the toolbar at the top of the form the code i have now is

Public
Class
Form1
Private

[code]....

View 6 Replies

Can't Get Loop To Work - ASP.NET | Dream.In.Code

Feb 21, 2010

I created this ASP.NET Web application and I can't get the amoritization table(MonthlyPaymentBox) to loop correctly. I think the problem is somehow in my code I am setting the TotalLoan = 0, but I just can't locate where that is happening. I assume this because instead of of starting the current balance at the users input, it starts at 0.

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http:www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

[code].....

View 4 Replies

Code Don't Work On One Server Anymore

Jun 30, 2010

For a month now I cannot see one of my servers disk info anymore. I have tryd with both of this codes.On the first code I get this error "Failed to optasin Server Information".[code]On my second code to just give disk space on c: I get this error "Drive already mapped" and "Drive not available or forlder not accesabile".[code]

View 1 Replies

Converting Code To Work With The Listview Also

Jun 25, 2011

i have recently found a code that works great with serializing the treeview and saving it to XML then you can load the XML and all settings are restored. Problem is I am trying to convert this to work with the listview aswell.

[Code]...

View 1 Replies

Converting This Code To Work With Listview?

Jun 25, 2011

I have recently found a code that works great with serializing the treeview and saving it to XML then you can load the XML and all settings are restored. Problem is I am trying to convert this to work with the listview aswell. I have tried replacing the treeview data with listview data, the original code is:

Option Strict On
''' <summary>
''' The TreeViewDataAccess class allows the nodes within a TreeView to be

[code]......

View 2 Replies

Does Code From 2005 Work In 2008

Nov 12, 2009

I am a kid who just wants to learn coding with my friend. We bought the book "Microsoft Visual Basic Game Programming FOR TEENS second edition". We realized we were using VB .NET 2008 and the book was programmed in VB. NET 2005. Will the code work. If not, what do I have to change?2) For those familiar with the book, how would I make a Save/Load feature. Where would I add the code?

View 12 Replies

Email Code Wont Work

Nov 21, 2009

I'm making a survey section for my app and it's supposed to email me what the user said when they click finished, however it says it cant connect to the server when I debug it. I entered my password and email right, it just doesnt work. [code]

View 1 Replies

IDE :: Code Of Opening Powerpoint Won't Work

May 23, 2010

how to use access to automate the process of opening the power point from the VBA code. So what it does is if the user clicks on the open button, the power point will open...The path and file of the power point have been set correctly.Here is the code for the button click, private sub:

Private Sub cmdAutomatePowerPoint_Click()
Dim strFileName As String
strFileName = "C:PracticeAccessVBA_Programming5Ws.ppt"

[code]....

But whenever I click on the button I got the error message, saying power point could not open the file.

View 4 Replies

IDE :: Cursor Position Code Does Not Work

Nov 12, 2010

Would someone advise as to why the cursor position code does not work in the downloaded code snippet this code is from the second tutorial located within VB 2010. The debugger moves through the method but the cursor is not affected in any manner i.e does not move to position 10,10 when called to do so.I am using XP windows 2003 as a virtual machine through Macintosh OS X 10.5.8 -maybe this has an effect somehow? [code]

View 5 Replies

Redefining Array - Would This Code Work?

Nov 1, 2011

Redefining array - would this code work? I attempt to redefine the dimensions of a one-dimensional array every time i need to add a value to it. Would the following code accomplish that?

' Add account to array
If accounts.Length > 0 Then
ReDim accounts(accounts.Length +1)[code]......

View 1 Replies

Tabs And Code Program Does Not Work

Mar 23, 2012

im doing a program where you type a teams name into a text box and it displays each player on the team and there batting average. but i also have another program within the form on a different tab and the program on the first tab works fine but when i swith to the second tab my program does not work. I know the code is right becasue i made it on its own seperate form first and it works correctly but when i put it on the second tab page of my other form it doesn't run.

[Code]...

View 1 Replies

VS 2010 Why Does Code Doesnt Work

Mar 2, 2011

So i made 3 forms in the first i made a simple textbox on form2_load i have this code [code] It SHOULD show in form 3 the input of form 2 but that simply doesnt work while it works with the same code on Form 2 . that when Form2 loads it actually has the Input of form1 but not in form 3..As i said there is NO error message and i dont know what i did wrong . Can anyoone help me out

View 20 Replies

.net - Code To Install Files To The GAC Doesn't Seem To Work

Mar 22, 2011

Basically we ran into where, for whatever reason, we had to put some 3rd party dll in the GAC for it to work correctly. (The assemblies loaded, but had weird behavior and trouble finding types in the loaded assemblies. The app itself is a add in to another 3rd party program, so it must be something about how its being loaded.) So I tried to write some quick code to handle this without having to manually do this on each machine it was needed on. This is basically what the code boils down to:

Dim X As New System.EnterpriseServices.Internal.Publish
X.GacInstall(name)

Where name is the filename of the dll. This runs without error. It even add the assembly to the GAC. However, the application still experiences the same issue until you manually add the assembly in .Net Configuration window.

View 1 Replies

C# Code Online Converter Doesnt Work?

Jan 9, 2010

I got this code from a c# post on how to get the location of an open process. What I want to do is beable to snap applications to running processes by finding their location using winapi user32.dll and searching window name then parse the location and set my application on a time to constantly move to what ever location that program is in. I tried the C# to vb.net converter doesnt work.

View 1 Replies

Change Code To Work A Certain Number Of Times?

Dec 23, 2011

My code gets a list of words from a txt file and chooses the words randomly. However, the same word can appear more than once and i need to know how to stop this from happeningHere is the code:

Dim aryName As String() = Nothing
aryName = File.ReadAllLines(Application.StartupPath & "Randomfnames.txt")
Dim randomWords As New List(Of String)

[code].....

View 3 Replies

Code For The DisplayAverage Button Doesn't Work?

Jun 23, 2010

Assume an application uses the Dim SalesArray(1 to 10) As Integer instruction to declare an array named SalesArray. The array contains 10 sales amounts. When the user clicks the DisplayAverage button on the form, he or she should calculate and display the average sales in currency format. The code for the DisplayAverage button doesn't work. Fix it.

[code]...

View 2 Replies

Code In C# To Work With Scanner Hp Scanjet N9129

Jan 13, 2010

I need code in c# to work with Scanner Hp scanjet n9129 but please make it with c#

View 2 Replies

Convert From C# To VB But Converted Code Doesn't Work?

Jul 6, 2011

I used site to convert from C# to VB but converted code doesn't work. Can some one to convert that code to VB 2008.

private void TreeViewItem_Selected(object sender, RoutedEventArgs e)
{
ExpandToItem(sender as TreeViewItem);
}
void ExpandToItem(TreeViewItem i)

[Code]...

View 8 Replies

Equivalent Of Excel's CODE Function To Work

Jan 23, 2010

In cell A1 of Sheet2 I have the following text [code]how to I get VB to recognize that the 4<sup>th</sup> character of the string has character code 63?

View 3 Replies

Get Code To Work To Populate Textboxes And Datagrids?

Feb 15, 2012

I am creating a form application that should display information from one dataset into individual textboxes (ie. system name, system id, location name, location id). The textboxes populate upon the selection of a pair of cascading combo boxes. So, the user first selects a system name from the first combobox, then that selection will populate the second combo box for the locations of that system. (This means that each system may have more than one location.) Once the location is selected, each of the 4 textbox should populate with the corresponding data but I'm not quite sure how to write the code..

[Code]...

View 5 Replies

Simple Code To Get Images That Doesn't Work

Nov 8, 2010

Can anyone tell me what is wrong with this code? It looks OK to me but the GetImage function returns the same image irrespective of the filename passed to it (the one corresponding with Id=2 which is the second one found) [code]

View 3 Replies

The Code For The DisplayAverage Button Doesn't Work

Jun 23, 2010

Assume an application uses the Dim SalesArray(1 to 10) As Integer instruction to declare anarray named SalesArray. The array contains 10 sales amounts. When the user clicks the DisplayAverage button on the form, he or she should calculate and display the average sales in currency format. The code for the DisplayAverage button doesn't work. Fix it.

Sub DisplayAverage_Click( )
Dim X As Integer, Total As Integer, Average As Single
If X = 0 to 10

[code].....

View 1 Replies

Tutorial Code For Crystal Report Does Not Work

Jun 8, 2010

[code]It says tht can not load the Report it says For Each myTableLogOnInfo As TableLogOnInfo In myTableLogOnInfos it does not controlled Null ReferenceException Why this tutorial code does not work?

View 1 Replies

VS 2008 Beginner Unable To Get Code To Work?

Nov 27, 2009

I am having an issue getting my code to work. It is not showing my Look-Up Button for me to calculate the rate based on the weight and zone and it continues to constantly show that I have an error that I cannot seem to correct.

[Code]...

View 4 Replies







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