Results 1 to 7 of 7

Thread: Class Variable Issue

Threaded View

  1. #1

    Thread Starter
    Fanatic Member jcavard's Avatar
    Join Date
    Jul 2005
    Location
    Quebec, CANADA
    Posts
    534

    Class Variable Issue

    Question 1:
    Hi! I have an application that loads tons of picture into a listview. While it'S loading, the images loaded in the listview tend to appears and disappears. I would like to know if there is anyway I can "Freeze" the window while the images load, then refresh it... so the user wouldn't see that "bug". It would also allow the user to do anything until it's loaded, to avoid memory crashes... Thank You!
    _________________________________________________________________

    Question 2:
    My Application has to be French and English. So I thought I was going to load the table corresponding to the language selected and store the language string into String variable, like:
    VB Code:
    1. Public MENU_ABOUT As String = CStr(datarow(0)) ' which is "About..."
    2.     Public MENU_ALWAYS_ON_TOP As String = CStr(datarow(1)) ' which is "Always on Top"
    3.     ...
    And I assign the Vakue to the component at runtime...
    VB Code:
    1. '
    2.         'mnuFile
    3.         '
    4.         Me.mnuFile.Enabled = CType(resources.GetObject("mnuFile.Enabled"), Boolean)
    5.         Me.mnuFile.Index = 0
    6.         Me.mnuFile.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mnuNewCollection, Me.mnuProperties, Me.mnuPrint, Me.mnuPrintSetup, Me.MenuItem13, Me.mnuImportFiles, Me.MenuItem14, Me.mnuMainExit})
    7.         Me.mnuFile.Shortcut = CType(resources.GetObject("mnuFile.Shortcut"), System.Windows.Forms.Shortcut)
    8.         Me.mnuFile.ShowShortcut = CType(resources.GetObject("mnuFile.ShowShortcut"), Boolean)
    9.         Me.mnuFile.Text = [B]MENU_FILE[/B]  
    10.         Me.mnuFile.Visible = CType(resources.GetObject("mnuFile.Visible"), Boolean)
    But I get Warning (it's not error because I still can run the application). I atached a screenshot. Why do I have all this saying "The variable is either undeclared or was never assigned" when THEY ACTUALLY ARE DECLARED AND ASSIGNED in module called LANG.

    Thank You!
    Attached Images Attached Images  
    Last edited by jcavard; Oct 3rd, 2005 at 01:48 PM.
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

    accoustic emo-rock band: a tailormade fable

    Visual Studio 2003 / Framework 1.1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width