I have been trying to do the Glide examples and I have been running in to this
// Load the window
window = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.Window));
I am getting this
‘GadgeteerApp7.Resources’ does not contain a definition for ‘GetString’
I know I am missing some thing stupid
Welcome to the forums!
I’ve only got one Gadgeteer project where I’ve worked with Glide, and I think my loading logic is essentially the same as yours:
window = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.Screen1));
Is the name of your resource “Window”? I’m wondering whether you might be running into an issue with either an incorrect resource name, or perhaps Window is ambiguous in that context, since both Glide and .NET MF have Window classes defined.
The GetString method itself is implemented in Resources.Designer.cs, so you could check there to ensure that the class didn’t somehow get corrupted.
I may be asking the obvious, but you did add the Glide XML as a string resource, correct?
Look like I have more reading to do on loading resources I thought I had everything I was trying the http://www.ghielectronics.com/glide/example/6/
thanks for the pointer
The very link you just gave explains this … “Next, open Resources.resx, select Add Resource and click Add New Text File. In the prompt, name the new resource “Window” and click Add.”
Yes I was dumb I was adding them the wrong way
Mistakes make it more fun
YES and Now I totally understand how to do this Very cool I hope to have something new in the Code section tomorrow
Thanks for the help