Questions tagged [my.resources]

20 questions
0
votes
0 answers

Using a variable to retrieve image from My.Resources

Here is my code (everything is pre-declared for use in the entire form's class): Private Sub Pokedex_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load IntPokemonCounter = 0 Dim fileReader As…
0
votes
1 answer

Exposing My.Resources in an Assembly

Is there a way I can expose My.Resources in an assembly such that I can use strongly typed resources in a project that references that assembly? In the assembly I can access the resource file "RunTimeStrings" like…
Matt Wilko
  • 26,994
  • 10
  • 93
  • 143
0
votes
2 answers

How to obtain all the textfile resource names and file contents

I need to do something like this: Private Sub SearchInResources(ByVal PatternSTR As String) For Each ResourceFile In My.Resources ' Obviously this don't works If ResourceFile.EndsWith(".txt") Then Dim fileContent…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
0
votes
3 answers

How to use dynamic vars in VBNET

How I can take the text of the button to use it like a resource name? My try: Public Sub LlamadaButton(ByVal sender As Object, ByVal e As System.EventArgs) Dim ButtonN As Button = CType(sender, Button) Dim ResourceName = ButtonN.Text …
0
votes
1 answer

'Resource is not a member of my' error in Visual Basic 2010

Whilst loading up new resources to Visual Basic 2010 the IDE crashed half way and when I restarted it and tried to execute my program I get Resources is not a member of my Could anyone help me figure out why the suddenly no more exists. Could it…
Dean
  • 1,226
  • 2
  • 20
  • 39
1
2