BhuvanRam

_BLL.GetName(_myEntities); i hope this method returns string. Quick watch this..
myLabel.Text = session["getName"].ToString(); needs to return string... Check the is null condition with string and then convert it to string.

BhuvanRam

Do you a need a SQL query or VB.NET CODE?

BhuvanRam

create an object for that xaml.cs class and access it

BhuvanRam

Hi Try this.. But i am not sure about this..
BusyBar.Template.FindName("artistLabel");

BhuvanRam

Hi
This is simple. First check whether you are able to connect Sql Server through SSMS or not.If you are able to connect through SSMS, then there may be a problem in connection string. If you are not able to connect through SSMS, then you had some problem with SQL Environment.

BhuvanRam

I guess, the below link helps you,
[url]http://www.codeproject.com/KB/threads/csharp.aspx[/url]. try it out if you stuck post here, i will help you out

BhuvanRam

Hi,

You had written your entire code in Constructor, Which says that, the code executes before the Form loads completely and your Pause function says that you are pausing the main thread, so that's why its taking 5 seconds time to load the Form and display the result. This looks like a monolithic Program, so you may not achieve your task in this pattern. Better option i suggest is to achieve your task is using threads.

  1. Don't touch the Main Thread. Let the Form Load. After the Form Loads, Create an Another Thread Ans start the thread

  2. Start the thread by calling the method where your methods read the data, and the display the test in Text Box and sleep the thread for every 5 seconds.

BhuvanRam

hai .. well divide the form into two parts by splitter ... and one user interface as heading so that it will be usefull in evry from.. in the first half of your form arrange your chapters.. and in the second half arrange your quiz questins.. when u open first chapter make ur all the chapters invisible.. if u arrange ur controls in group its easy to implement.. hope it may helps without using multiple forms..atlast SETUP and deployment as u know..sorry if anything is wrong