VS 2008 Storing Custom ToolStripMenuItem Data

Mar 16, 2010

I'm trying to add functionality to my application to let user define "custom actions" in one of the context menus.Essentially, these would be command lines that can be executed against remote machines.I've got the code to add the menu items working but I'm not sure of the best of storing the data related to the menu items. At the moment I'm using a Specialized.StringCollection in the project settings but this only allows me to store a single line (i.e. the command line).This means that the text of the menu items is whatever command line the user has defined (not ideal).What I would like is to have a "friendly" name for the menu item (e.g. Start Notepad) and have that associated to notepad.exe.What's a good way to store this data so that I best dynamically build the menu items every time?

View 3 Replies


ADVERTISEMENT

VS 2008 Storing Data?

Jan 12, 2012

is there any way to keep data stored in an application retrieved from web references like we get data [items] invoked in a listbox from web references and then after publishing it when once exe. is run the data is invoked or retrieved from web references. so that when next time once again exe. is run the retrieved data will be there instead of waiting services to get data.

View 13 Replies

VS 2008 - Storing / Using Numeric Data

Oct 20, 2009

I have the book "Visual Basic 2008 Step by Step", I am in the final chapters and have completed all of the walk through and demo programs thus far. I am a beginner but I also have a basic understanding of quite a few program statements and objects. My Goal: For the sake of simplicity I will use an example. I have a Tetris game, the player loses in the first level earns 25 points they click the save score button. , they play again tomorrow and do 1,000 levels and earn 25,000, now their score is 25,025.

Then they play my blackjack game, they gain 25,025 points when they start automatically from their Tetris game, they earn 25 points in blackjack click a save score button, now they have 25,050. [Thus far I have 2 games, and they both share a score that will need to be added to in the future]

[Code]...

View 4 Replies

VS 2008 : Storing And Calculating Data Into Hashtable?

Dec 11, 2010

I am making a small tool that require some calculation. I am using hashtable to store values that I need to calculate. This tool continuously extract data on specific time interval(30 seconds) from webpage and add those data into the hashtable. Now the problem is I need to store the previous extraction data and when new extraction occurs, I need to deduct the previous data from new data.Here is the process I am currently following:

HTML
Dim MyTable as New Hashtable
MyTable.Add("Data1","200")
MyTable.Add("Data2","100")

[code]....

On first run it shows the result of Data3 = 100 which is currect. But on second run I need to redefine the value of Data2 = Data1 . So I need a result of Data3 = 0 on second run. This may not be the proper way to do this sort of operation. I have also tried using listbox, listview and even textfile to store the Data2 and recall that on second run.

View 2 Replies

VS 2008 Include Inside .exe Some Data Storing?

Nov 5, 2009

My application check a valid license key using Select...Case,for each user I have a Case statement.This way I can easily remove a user from next versions of my app.If I use a external data file, my app can be easily hacked,exe can be replaced etc,but using all inside exe seems to be more secure,but Select...Case statement will grow so I'm looking for a way to store white list - keys inside my exe.

View 7 Replies

VS 2008 Storing Data In Arrays In Xml File?

Sep 3, 2009

My xml files were looking a bit clumsy when i read them, what i have done now is to save them in the xml in this format:

vb.net <field>{value1|its partner value2}</field>

i noticed {|} this is the format that vb.net uses for arrays, i was wondering if that's an ok way to store things, on retrieval once i get the node value, what would be the best way to break up the {value1|it's partner value2} variables to use, explode the | and get parts (0) and (1)?

View 1 Replies

VS 2008 Which Method Would Be Faster For Gathering And Storing Data

Nov 16, 2009

I have a simple multithread application that stores updated data from a list of websites. After each thread gathers data, it then store the data into the same text file. I am now thinking of having each thread store the data directly into a arrayList, and after a certain amount of time past, store from the arrayList to the text file. Which situation would enable the application to complete its task faster?

View 1 Replies

Loop Through Toolstripmenuitem Child Of Toolstripmenuitem?

May 26, 2009

i want to loop through toolstripmenuitem child of toolstripmenuitem but i dont fine yet :

For Each mnu As ToolStripMenuItem In Trangchu.MenuStrip1.Items
For Each mnu2 As ToolStripMenuItem In mnu ( red word is error ) Please show me)
MsgBox(mnu.Text)
Next
Next

View 15 Replies

VS 2008 : Storing Multiple Pieces Of Data In A Resource String?

Oct 24, 2009

In a resource string, not one that you declare in the code, but rather in the resources itself, how do I store multiple pieces of data in it?

View 7 Replies

Asp.net - Storing A Custom Object In A Web Application

Jun 14, 2012

I am at a new company and I am building a wizard for a web app, (.Net/4.0). The user goes to a few separate screens during the wizard process and must return to the original screen before completion of the wizard. This is different from how they normally do this. But this is how it is TO BE DONE.

One option is to store the result of each panel in the main screen in the DB. So then, when the user leaves & redirects back. I could check for a querystring then call a datareader and populate original values appropriately.

[Code]...

View 2 Replies

Storing Parameters From File Into Custom Class

Oct 4, 2010

I'm trying to create a program that will read in a custom file similar to a config/INI file and parse the data and store them into variables of a custom class. Essentially I want to be able to read in line by line, split the line by the space and then store the value into a class object's variable with the same name.

For example, I have a class called body.
Public Class body
Dim height As Double
Dim weight As Double
End Class

View 9 Replies

VS 2008 ToolStripTextBox And ToolStripMenuItem

May 15, 2010

I have in a menu a ToolStripTextBox where the user can enter a CASE NUMBER to FIND. And I have a ToolStripMenuItem below that says QUICK FIND - clicking this will find the case you put in the textbox. Tabbing out of the textbox puts you at this TOOLSTRIPMENUITEM so that ENTER on the keyboard will trigger the FIND. I want to make it so that pressing ENTER while still in the textbox will trigger that same TOOLSTRIPMENUITEM action. Do I have to trap keypresses or is there a more natural way to accomplish this?

View 6 Replies

VS 2008 Find Parent Of Toolstripmenuitem

Jul 18, 2010

I'm developing an application which is having Menustips with few elements. My structure is as follows;

Add-on Modules
|_ Data Export
| |_ Back Office export

[Code]....

I set the visibility in each leaf element as per the permission given in DB. But I want to set visibility=false in case all the leaf elements are set to false.

e.g If POS interface and Backoffice Interface are set to False, Then I need to hide the Parent (Interfaces) too.

View 5 Replies

VS 2008 How To Make ToolStripMenuItem Persistent

Feb 23, 2010

here is what i want to do have a ToolStripMenuItem in a ToolStripDropDownButton menu what i want to do is have an option to not hide the menu when the ToolStripMenuItem is clicked so i wrote the following:

[Code]...

View 3 Replies

VS 2008 Weird Error With A ToolStripMenuItem?

Jul 5, 2011

I had a lengthy subroutine with handler routines, like this, before:

Private Sub CompMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _
ToolStripMenuItem3.Click, ToolStripMenuItem4.Click, ToolStripMenuItem5.Click,

[code].....

View 3 Replies

VS 2008 Adding ToolStripMenuItem Array To MenuStrip?

Apr 28, 2010

I have this

Dim oLanguages As SortedList = Languages() 'Languages() is my custom Function
Dim oLanguageMenu(oLanguages.Count) As ToolStripMenuItem
For n As Integer = 0 To oLanguages.Count - 1

[Code]....

The last line produces an error: "value cannot be null. Parameter name: value".

View 3 Replies

VS 2008 Way To Specify Index Of A ToolSTripMenuItem In MenuStrip When Adding It

Sep 1, 2010

Is there a way to specify the index of a ToolSTripMenuItem in a MenuStrip when adding it so that it does not get added to the end of the list?[code]

View 2 Replies

Reading Data From A Socket (as Bytes) And Storing Data In A String?

Nov 29, 2009

I am reading data from a socket (as bytes) and storing this data in a string. Then later i need to access specific bytes within the string and do some math with them. However the bytes that I read back from the string are not what I am expecting.

[Code]...

View 2 Replies

VS 2008 Accessing Outlook Custom Task Form Data?

Nov 13, 2009

I'm using Outlook 2000 and I'm trying to access data held on a customised Outlook task form held in a public folder.I'm using the following code to get at what I need, and can see certain values via objTask, but I can't see where I get at other 'fields' used on the form.One of the fields, for example, is called "CC Ref", but I can't find where I can get at it.

View 13 Replies

.net - Grid For Storing Data?

Jun 2, 2011

I need to store data in a grid like this:

{0,1,2,3}
{4,5,6,7}
{8,9,10,11}
{12,13,14,15}

I know I can use multi dimensional arrays, but Is there any easier way to do it? Also I need to get values from it like myData.Item(0,1) would return 1.

View 1 Replies

Storing Access 07 Data On VB 08?

May 2, 2011

I've linked the two using the standard data sourcing method and I now need to use the data that is read in to it on another form. The idea of this is that I'm creating a wage calculator and the employees are stored in a database and can be viewed on a vb form, however, I now need to use the data of their pay/hr to be used on another form to calculate the wage.I have tried to declare a public variable across the two separate forms, and on the button that takes you to the other to set this variable as the contents of the text box which is displaying the pay/hr using the following

Public Class ManageUsers
Public HrlyRate As Decimal 'Declaring global variable to use between forms

'Some other code in between relating to rest of the stuff on the form

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
RatePerHourTextBox.Text = HrlyRate 'Saving private variable to global variable
Calculation.Show()
End Sub
End Class

Then on the other form I have used this code to do the calculation:

Public Class Calculation
Private Sub calculation_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub

[code]....

View 2 Replies

Storing Data In An Array

May 15, 2009

I'm having trouble trying to put together some code for an array. What I'm trying to do is get data entered from a text box and store it in an array.What I then need to do is take the entered data and make it appear in reverse order to what it's been entered and show this.

View 6 Replies

Storing Data In Arrays?

Apr 22, 2011

storing data into an array. I understand how to place information in one record eg in index 0, but how do i place data into several records(indexes).

View 4 Replies

Storing Data In Classes?

Apr 25, 2012

I have propetie get set classes, and a constructor to quickly set them all.The only concern I have is that the byval in the constructor class and the byval in the set() properties, might be inefficient because the parameter is copied twice? Should I use ByRef? Or is that too dangerous?

'Config data for an Environment.
Public Class Environment
Private msEnvName As String

[code].....

View 6 Replies

Storing Data In Listview?

Jun 23, 2011

I'm trying to learn visual basic and i've made my application all work and now I just need to make the listview save data.As far as I know, I can create a database with all the relavent tables in it for each column in the listview. For example in a database, I will have a table that will have four columns because I have a four column listview. Each row must be tied together though.

The other option is to create a text file and use some xml or seperate them with commas. which one should I go with? I'd rather do the database one, but I really have no idea how to go about it.

View 4 Replies

Storing Data Into Microsoft SQL?

Jul 5, 2010

How can i store data accquired from an Ip address within the LAN into my database?

View 3 Replies

Temp. Storing Data In ASP?

Mar 23, 2011

I have a question. I have a asp site that keeps track of inventory. I currently have it as to where any updates to the inventory, an email is sent with the new changes. How can I get it to send the old changes and the new changes. I know I will need to somehow temp store the old values to use them in the email, but I can't figure out how to do it. I don't want to store them in an actual database table.

View 1 Replies

.net - Storing And Calculating Data Into Hashtable?

Dec 13, 2010

I am making a small tool that require some calculation. I am using hashtable to store values that I need to calculate. This tool continuously extract data on specific time interval(30 seconds) from webpage and add those data into the hashtable. Now the problem is I need to store the previous extraction data and when new extraction occurs, I need to deduct the previous data from new data.

[Code]...

On first run it shows the result of Data3 = 100 which is currect. But on second run I need to redefine the value of Data2 = Data1 . So I need a result of Data3 = 0 on second run. This may not be the proper way to do this sort of operation. I have also tried using listbox, listview and even textfile to store the Data2 and recall that on second run. But could not make it possible.

This is the last phase of my tool and I am stuck with it.

View 1 Replies

DB/Reporting :: Storing RichTextBox Data In SQL?

Jan 22, 2011

What SQL Server data type should be used to store RichTextBox text? The reason I ask is because the BOL indicates not to use text or ntext anymore because these data types will be excluded from future versions of SQL Server.

View 4 Replies

FIle IO - Storing Data Into An Array?

Jan 15, 2012

I've been searching around these forums for quite a while now, and can't seem to either understand or find what I'm looking for.I have a text file, that my program is always adding to it, it's format is like so:

Line 1: UserName (For User 1)
Line 2: FilePath (For User 1)
Line 3: UserName (For User 2)

[code].....

View 8 Replies







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