By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,640 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,640 IT Pros & Developers. It's quick & easy.

How to get the object's value passed in the dictionary object?

P: 1
How can I get the value of fo.filestatus and update it

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  2.         Dim fo As New fileDataType
  3.         fo.filename = "File1"
  4.         fo.filestatus = "processing"
  5.         Try
  6.             Dim fileStatus As New Dictionary(Of Integer, Object)
  7.             fileStatus.Add(1, fo)
  8.             MessageBox.Show(fileStatus.Item(1))
  9.         Catch ex As Exception
  10.         End Try
  11.     End Sub
  12.     Public Class fileDataType
  13.         Public filename As String
  14.         Public filestatus As String
  15.     End Class 
May 3 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.