TreeView does not show nodes images

0
0

Hi,

TreeView does not show nodes images.

 

.OImageList.ImageSize = New Drawing.Size(24, 24)
.OImageList.Images.Add(Wisej.Base.ApplicationBase.StartupPath & “…/Resources/Images/01Base_Valuti24.png”)
.OImageList.Images.Add(Wisej.Base.ApplicationBase.StartupPath & “…/Resources/Images/01Base_Banki24.png”)
.OTV.ImageList = .OImageList

OTVNode = .OTV.Nodes.Add(“01”, CLib.CUtils.CLocalization.FStrings(“{C7ACFA63-7F3B-490F-9924-683645E47A01}”, CType(Wisej.Web.Application.OpenPages(0), Page1).COEnumLanguagesUI)) ‘ WALUTI
OTVNode.ImageIndex = 0
OTVNode = .OTV.Nodes.Add(“02”, CLib.CUtils.CLocalization.FStrings(“{C7ACFA63-7F3B-490F-9924-683645E47A02}”, CType(Wisej.Web.Application.OpenPages(0), Page1).COEnumLanguagesUI)) ‘ BANKI
OTVNode.ImageIndex = 1

Attachment
  • You must to post comments
0
0

.OImageList.Images.Add(System.Drawing.Image.FromFile(Wisej.Base.ApplicationBase.StartupPath & “…/Resources/Images/01Base_Valuti24.png”))

This code works. It is a platform problem.

Best regards!

Mario

  • Tiago (ITG)
    Hi Mario. Am I correct to understand the problem is solved?
  • mgmst
    • mgmst
    • Aug 18, 2018 - 2:42 pm
    Hi, Tiago. Yes the problem is solved some how. Thank you!
  • You must to post comments
0
0

Hi,

can you please verify that your image paths are correct ? We could not reproduce here.
Also there is no need to use the Startuppath here.

Best regards
Frank

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.