Hi, my project needs certain images to work properly, so far I am only able to get them to work when in an external folder, I want to move them (the images) to the resources file. This is what I currently have in code.
What I have tried isCode:If k > 0 Then Tile.Image = New Bitmap("data/tiles/tile_" & TileState(0, x, k - 1) & ".png") TileState(0, x, k) = TileState(0, x, k - 1) Else Tile.Image = New Bitmap("data/tiles/tile_0.png") TileState(0, x, k) = 0 End If
But that doesn't workCode:While My.Resources.ResourceManager.GetObject("_" + CStr(maxn) + ".png") And scnt <= 31 scnt += 1 img(scnt) = Image.FromFile("_" + CStr(maxn) + ".png") maxn *= 2 End While If maxn <= 2048 Then MsgBox("Missing base map _" + CStr(maxn) + ".png", vbOKOnly + vbExclamation, "hint") Me.Close() End If




Reply With Quote
