VS 2008 How Do Messegebox Sub Items Lets Say Row2 Col 2

Nov 23, 2009

I have just a few questions about the listview control,how do messegebox sub items lets say row2 col 2 and why cant (at run time) I select items in col 2 but only col 1.

View 2 Replies


ADVERTISEMENT

VS 2008 Possible To Declare A Variable Using Text Of Lets Say A String As Name?

May 1, 2010

Is it possible to declare a variable using the text of, lets say a string, as the name?If u dont get it im looking for something like;Dim Var + string1 As PictureBox..In the code "Var" is the start of the name and "string1" is the end of it so if string1 was "Hello", the picturebox would have been named VarHello.

View 2 Replies

VS 2008 - Minigame - Game That Lets The User Move A Picturebox Around With Arrowkeys

Nov 21, 2009

I've made a small game that lets the user move a picturebox around with arrowkeys. The monster picturebox is moved towards the player and keeps growing while you are "alive". If it touches you, you lose.

How to improve my code. Im the worst ever at OOP programming. The main reason is i dont understand how i can pass variables between subs/functions e.t.c. I've read up on overloading operators but i dont feel that i can grasp it. If someone has any comments or any simple examples on improving my ability i wouldnt mind hearing them ^^

This is what i have now. Attached project (with "graphics") without .exe files and all code is also below. Also an image of what it looks like below.

CODE:

View 3 Replies

VS 2008 : Export A Listbox (lets Call It Listbox1) To Excel 2007?

Mar 2, 2011

I'm trying to export a listbox (lets call it Listbox1) to excel 2007 and I'm having some trouble with it. Listbox1 contains just one column of items but the list itself is able to contain more 30 items.I have this script and it does something but, the most important thing doesn't show up: The list as in listbox1...

'Dim oExcel As Object
'Dim oBook As Object
'Dim oSheet As Object

[code]....

View 17 Replies

Read All Cells From Row2 From Excel Worksheet1?

Apr 27, 2010

Need to get code to read all cells from row2 from excel worksheet1 and move into 2 dimensional array (rownum, colnum). I looked at forum for hours and its SOOO more complex that I need that I'm sure my confidence as a vbs person thinking this .net vba is simple

View 3 Replies

Sql - Joining Row1 With Row2 - Row3 With Row4

Feb 14, 2011

I have a little issue. I need to be able to concatonate the Row1 with Row2 to another/row/table, and the start again on the 3rd row, Join Row3 on Row4 .. and so forth. The issue i have is that there is no relationship between Row1 and Row2. The only common thing is that Row2 is part of Row1. Can this be done? (Can be done with either by SQL SERVER, SSIS or ASP.NET VB) Below is a sample output of the data in column1 (single column)

[Code]...

View 3 Replies

Got A Textbox With Lets Say 3 Rows Of Text

May 25, 2010

I got a textbox with lets say 3 rows of text

1.Hello

2.My name is

3.Simon

And i got a listview that is on detailed...When i press a button: for each row listview item add.So the listview items will be 3 items, 1 item per row in the textbox thats on multiline.

View 6 Replies

Lets A User Browse And Choose A Folder?

Nov 8, 2011

Basically I need to make a program that lets a user browse and choose a folder, then I need a box that the user can then select the files to work with, then with the selected files I need to put them into a zip file. I'm trying to use a list view box but having all kinds of problems using the data in it.

View 2 Replies

When Modal Form Goes Bad And Lets Its Owner Be Activated

Feb 24, 2012

I am currently converting a 90s VB6 application to VB.NET. While testing I came across something curious.A Modal form by definition will prevent users accessing any other form in the application.This I discovered is not always true as I have a Modal form displayed which allowed me to access its owner form's Menu.Searching MSDN I could find no mention of this feature. So I thought I would share it:Click Button 1 on Form2 and Form1 comes back to life!

View 12 Replies

.net - Having A File Encrypted To Lets Know The Client Software Got Activated?

Aug 26, 2011

I am facing a rather odd problem right now. If you fellow this : Best place to put key or password used for encryption? i was looking at a way to encrypt data. Using RSA seemed to be a good choice. However we have a problem since my requirements are thoses fellowing...Client must have a file encrypted in order to determine if the software is activated.

That actually mean that the client must read the encrypted file.. but the problem is that we actually need the private key to be there which isnt a good idea since some poeple could start making their license file using that key. The activation server encrypt the data file which are sent back to the client and then the client save that file.

Client must have a file encrypted in order to determine if the software is activated.Client sent user data to the activation server in unencrypted/encrypted form. That doesnt matter. Sure it would be better encrypted at this point.The activation server check that data and then determine if the client can be activated.If the client can be activated then the server send the encrypted form of the license file.. but the problem appear now.. there is no way to deencrypt the file on the client if the private key isnt on the client which would be pretty insecure!

View 1 Replies

Convert A Long String (Lets Say 550 Chars) Into Something Lower?

Mar 3, 2011

I'm trying to make a hash calculator (For testing now)

I know that MD5 is a 1 way(Meaning that there is no decryption for it, yet)

now I was wondering if SHA-1 is a two way. Also, is there any other hashing method that are 2way?

reason is that I want to convert a long string (Lets say 550 chars) into something lower (From 550chars to something lower then 550chars)

I can use a Key, but every possibility will give me bigger length then the actual string.

View 6 Replies

Create A Web Browser That Lets You Surf Internet Anonymously?

Mar 11, 2011

Is there any way to create a web browser that hides your IP address and pretty much lets you surf the internet anonymously?

View 2 Replies

Write A Loop That Only Lets The User Only Click A Button 10x?

Jun 7, 2012

So basically i need to make a loop that only lets the user click it ten times then gives the answer to them.i was gonna use a DO loop that looks like this so far.

Dim counter as integer
counter = 0
Do until counter = 10
loop

and after that i'm kinda lost on what to do, i know that its needs to be if you click btnenter 10 times give the right answer and then your done.

View 3 Replies

VS 2008 - Linq Statement To Go Through A Dropdown Menu's Sub Items And Get What Items Are Checked

Apr 8, 2010

I have the following linq statement to go through a dropdown menu's sub items and get what items are checked: vb Dim UnselectedItems = From xItem As ToolStripMenuItem In tsiSelectObjects.DropDownItems Where TypeOf xItem Is ToolStripMenuItem AndAlso CType(xItem, ToolStripMenuItem).Checked = False

I get this error tho: Unable to cast object of type 'System.Windows.Forms.ToolStripSeparator' to type 'System.Windows.Forms.ToolStripMenuItem'. As you can probably guess i have ToolStripMenuItems and separators in there

However the AndAlso should short circuit in the case where the item is not a ToolStripMenuItem and it doesn't seem to be doing so (as TypeOf xItem Is ToolStripMenuItem=false in this case)?

View 2 Replies

VS 2008 Count How Many Items Contain A Word In A Listview Box & Remove Items?

Sep 27, 2011

i have a listview box full of items, image below:

when i click a button i would like a msgbox to pop up displaying how many are alive.

How would i do this ?

Also how would i remove all items that status is "Dead"

View 9 Replies

Create A Program That Lets The User Open A Text Document?

Apr 9, 2009

Ok i need to create a program that lets the user open a text document and lets him do the following. This is with Visual Basics 2008.

Count Characters
Count Lines
Count Words
Count All

I don't know how to get my program to count just individual words and i have no idea how to get it to do all 3.

[Code]...

View 5 Replies

VS 2010 Create An Application That Lets A User Enter As Much Grades He Wants?

Oct 5, 2011

I have to create an application that lets a user enter as much grades he wants. The grades are between 0 and 100 and they can't be negative. Whenever the user type -1, the application is done and it shows the average of the grades, the lowest and the highest grades.I absolutly have no idea where to start but i must be using loop/do/while.

View 4 Replies

VS 2010 Looping And Input - Lets The User Select A Folder

Sep 23, 2010

I have a little situation and i am not sure of the best way to do it.

- My program lets the user select a folder

- From that folder i need to select all .png files

- One by one i need to load them into a picture box, await a button press and then go to the next image.

The above that i have typed in red is where im not sure what to do. The other steps i can do.

View 7 Replies

VS 2008 Add Items Then Change Properties Of Those Items?

Sep 12, 2009

I know how to do what is in the subject already, but I want to do it a different way than what is stated in the subject. What I want to do is be able to create multiple items with different names and then load the names into a listbox. When I select the item in the listbox with the name, such as Item1, it will put the text from the control named Item1 into a textbox.

I am clueless as to how I could accomplish this. What I am doing is adding Items to a menustrip's dropdown Item, then adding items to the dropdown items. So I would have the item collection such as:

One
Two
Three

So I could choose the item in the listbox with the text "Three" and I could load several properties of the item Three. Such as Three.text, Three.Tag, and Three.Name. And I could also edit these. And then when Three is chosen in the listbox, I could add sub items to it.

So it would look like this in my perspective(Although the code would not work)

Dim tsmBookmarks_SubItem As New ToolStripMenuItem
(Listbox1.selecteditem).DropDownItems.Add(tsmBookmarks_SubItem)

how to convert string to a control name?

View 14 Replies

Build A Project That Lets Users Click An Item From A List Of Products (tabbed Form)?

Feb 10, 2010

Trying to build a project that lets users click an item from a list of products (tabbed form). Once an item is selected (check box) find a way to store that item.Then when the user has finished selecting items they can click a button showing what they have selected in a new form that will open.Whats the best way to store what items they select? An Array?

View 2 Replies

Create A Console Application That Lets A User Enter 20 Names And Then It Sorts Them Out Alphabetically In Order?

Mar 25, 2012

I need to create a console application that lets a user enter 20 names and then it sorts them out alphabetically in order and then displays them.

Module Module1
Sub Main()
Const names As Integer = 20
Dim index As Integer

[code]....

View 2 Replies

VS 2008 - Change The Hover Color Of Menu Items And Dropdown Menu Items?

Feb 18, 2011

I have currently changed the color of background Menustrip using this code

[Code]...

How do i change the Hover color of menu items and dropdown menu items to orange including the background color which holds icons in menustrip dropdown.....

View 5 Replies

Game Programming :: Transparant Images - Make A Game Which Basiclly Lets You Shoot Ducks

Feb 1, 2010

I am trying to make a game which basiclly lets you shoot ducks. i have a picture as a background (set as form image) i then have picturebox's with ducks flying flying around you shoot them the disapear etc.

My problem is the image. i have a picture of a duck and a blue square round it. and i would liketo make it transparant because birds dont fly with blue squares.

Below is an image to illistrate my problem

I have tried adding transparent background, transparant key etc

View 2 Replies

Make A Program That Lets You Type "A" In A Text Box?

Apr 6, 2011

I'm trying to make a program that lets you type "A" in a text box then it plays an audio file.

My code is: If MaskedTextBox1.Text = ("A") Then

View 14 Replies

Making A Game In Which The File Stream Gets A Certain File(lets Say A.txt)?

May 29, 2011

i am making a game in which the file stream gets a certain file(lets say a.txt) and it reads it, if it has certain values stored in the file it returns boolean(this is a function), then a sub procedure writes to the file using a streamwriter and a filestream using the same file. I am having problems, sometimes visual basic says that another process is using the file, this is before i closed the filestreams and the streamwriter or streamreader, then it gives me errors when i close the files, it tells me that it can't access a file that is already closed, i thought the filestream gets the file and lets the streamreader or streamwriter read or write to the filefound out the problem?

View 2 Replies

Add Items On The Combo Box Of .net 2008?

Apr 8, 2009

i want to add items on the combo box by coding it and if you click the dropdown arrow it would show the items i want to select?

View 4 Replies

Can't Add Items To Program 2008

Oct 5, 2009

I just reinstalled vb.net 2008 express edition, I registrate it and tried to add FreeTextBox.dll to the toolbox. I right-clicked in the toolbox, choose items and browse. I found the dll and Choosed it. In the choose items window it shows, it is checked, but when i click OK, it don't shows in the toolbox. I tried with the Ajax Control Toolkit to, but none of the items shows in the toolbox.

View 10 Replies

VB 2008 Combobox1.items.add?

Aug 29, 2010

I am really baffled and can't work out why this is happening. I have this code with transfers text from a textbox and adds it to combox items. My problem is that after the combox has got 2 items init, anymore you add there will be muliple of them and not just one for example:

[Code]...

View 3 Replies

VS 2008 : Get All Items In A Listbox?

Apr 2, 2010

How would i get all the items in a listbox and split them each of them with a "|"?

View 8 Replies

VS 2008 Add .txt Items To Combobox1?

Nov 4, 2009

WebClient.DownloadString("URL/File.txt")

How to add each from file to comboboxe's item?

View 2 Replies







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