Hello Guys,
We ve been developing windows application in .Net 2005 using infragistics components vol 3. We ve created own style, i want to apply those style programmatically to my application.Is that possible to apply via programmatically.
Thanks in Adavance
Maguesh
That should work fine. Maybe youshould try putting Trendy.isl directly on c drive then Infragistics.Win.AppStyling.StyleManager.Load("C:\Trendy.isl") for troubleshooting?
hello guys,i am using the component of the ApplicationStyling of Infragistics... and i am willing to use this component in in my project.. so i was testing it using the One line code provided by the tutorial which is: Infragistics.Win.AppStyling.StyleManager.Load("Trendy.isl")
this code was placed in the form_load event of my form.. but nothing happened !!!here is my code:(i am using VB.NET)
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Infragistics.Win.AppStyling.StyleManager.Load("Trendy.isl") End Sub
taking into considiration that the file named "Trendy.isl" is placed in the same directory as the .EXE file... but nothing has changed when loading the formalso i tried to drag and drop the component AppStylistRuntime and giving it the file name "Trendy.isl" in the FileLibraryName property.. also nothing changed !!please any help.. it's urgent i need to know where to place exactly that code.. or if i have to add something else to my form.thanks in advanced
AppStylist isreally designed to allow you to style your whole application (hence the name).
But if you want only certain controls to be affected, what you would do is set the StyleSetName property on those controls. Then when you create your ApplicationStyleLibrary in AppStylist, you would create a StyleSet with that name. When you load that StyleLibrary at run-time, the StyleSet will only affect those controls whose StyleSetName matches up.
Windows forms. I guess the request seems webby because that's what I usually work w/.
Hi Amie,
are you taling about AppStylist for Windows Forms or for Web Forms?