Hi guys long time no see, I'm trying to get the system.windows.form libary up on the mainmenuscreen so I can play around with the browser control and richtext boxes for my news system however of course both of the libarys use the word panel so the ide throws a hissy fit.
I recall somewhere that in .net you can stop this by iden tifying which 1 you're using with the using command. I tried to google this but my google skills are crap
and I couldn't find what I'm looking for so I turned to the forum for help.
If you don't get what I mean I'll show you the hack and slash trail and error code I've been trying
var menuButtons = GameScreenHelper.CreateMenuButtons(new Panel(GUIManager, Vector2.Zero, ScreenManager.ScreenSize) using NetGore.Graphics.GUI, "Login", "New Account", "Options", "Quit");
any help on the matter would be great
thanks
Zidsal
I Don't think you understand what I'm trying to say, doesn't help that I got the title mixed up
using System.Linq; using NetGore.Graphics.GUI; using SFML.Graphics; using System.Windows.Forms;
is at the top of the code however Panel is both an ambiguous name for system.windows.forms and netgore.graphics.gui
var menuButtons = GameScreenHelper.CreateMenuButtons(new Panel(GUIManager, Vector2.Zero, ScreenManager.ScreenSize), "Login", "New Account", "Options", "Quit");
is there anyway to tell the compiler that when I'm using the parameters down here the Panel I am refereing to is netgore.graphics.gui?
EDIT
Nevermind I just changed net.grapics.gui name from Panel to Panels thought I'd still like to know what to do for future reference
Just use the fully qualified name, like I mentioned above. Don't type Panel, type NetGore.Graphics.GUI.Panel.
Or use an alias ![]()
oh my bad, I miss read you spodi thanks guys <3
Just check how its done in the rest of the code. You specify a using directive usually at the top of the file. Using directives are only needed when you do not use a fully qualified name. So just add the "using NetGore.Graphics.GUI" at the top of the file.