Click here to Skip to main content
15,920,602 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is the first thing that I have ever coded in c# so sorry for my little knowledge with the coding language and programs used. I followed a youtube guide for a UI, but the guide seem to not have included how I can change panel for each tab, Like a navigation bar on websites.

Apparently it's not called a navigation bar in c#, since everything I can find when searching for it is html css .net videos. I cant seem to figure this out and have tried some Show / Hide options but became a mess when I couldn't link textboxes and other items to each panel.

video source:
Animated Sliding Menu - Modern Flat - C# , VB.Net programming- Bunifu UI 現代設計
用戶界面 - 강남스타일 - YouTube
[^]

What I have tried:

private void label1_click(object sender, EventArgs e){
   panel1.ShowSync(panel);
   panel2.HideSync(panel);
}

private void label1_click(object sender, EventArgs e){
   panel1.Visisble = true;
   panel2.Visisble = false;
}
Posted
Updated 23-Jan-17 23:38pm
Comments
j snooze 23-Jan-17 17:17pm    
I didn't watch the video but is this for windows forms? You might want to look at the toolstrip control, or maybe a tab control. Once again your question is vague on what tech you are using(yes, the language is c#, but is it web forms, windows forms, mvc etc...)

1 solution

Welcome to CodeProject !

Note: the "Bunifu UI" you refer to is a commercial collection of .NET controls with obviously advanced graphic features; it has many competitors like DotNetBar, Telerik, Lidor Suite, etc. My comments here are about the general aspects of learning C#, and the .NET Framework.

Using any of these powerful collections of controls will require you to learn the syntax for their API's ... which may, or may not, be consistent with the API's of the built-in Microsoft controls (which are also inconsistent in many ways, LOL). I suggest that new learners put their energy into learning the basics of the .NET FrameWork, Platform (Win Forms, WPF, ASP.X), and C# language, first.

Challenging yourself to create a UI like something you've seen, and like, is a very good way to develop your language and framework knowledge and skills.

However, imho, it's very important at the beginning of your journey towards technical competency and mastery, to get a solid understanding of the language you are using, and how it is embedded in the series libraries that make up the .NET Framework.

Of course, CodeProject itself is a wonderful resource for studying every aspect of C# and the .NET framework. There are great tutorials, in-depth articles on programming areas from algorithms to data structures to UI, and, of course, examples of custom controls, and other practical projects that are immediately useful.

There are excellent books on C#: my favorite intro book authors are Jesse Liberty, and Matthew MacDonald ... those are not free. For free, I suggest you get one, or both, these free books:

Charles Petzold : ".NET Book Zero" : [^]

Svetlin Nakov, Veselin Kolev, and others : "Fundamentals of Computer Programming with C#" : [^]

Important choices to make are whether to use Windows Forms, or WPF, or some web-centric flavor of ASP.NET.

WPF provides built-in animation features, and advanced graphics (vector drawing, gradients, etc.). imho, it has a steep initial learning curve.

Windows Forms provides a very stable and consistent foundation, and, imho, is relatively easy to get going in. Simple animation is easy to do.

Now: let's get to work :)
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900