c# db project-problem with name spacenamespace

csharp Palau
  • 14 years ago

    hi,
    I'v problem in my database project (visual C#.net, sql server 2000)
    problem 1:
    how to remove two namespaces from a single project.
    because it is creating a lot of problem.when i want to access forms in other forms having different namespace ,it gives error.



    2nd problem

    how to open first form in the second one
    coding for form1:
    {
    Form1 frm=new Form1();
    frm.Show();
    }
     now in coding of form2,to open form1
    {
    Form1 frm;
    frm.show:
    }









    this code is giving error.
    plz help me .
    waiting for reply

  • 14 years ago

    what is objective here in your project u can try in this manner if u unable then u can chat with me on MSN if really want some help in c# i m  solution for the 2 problem is

    coding for form1:
    {
    Form1 frm=new Form1();
    frm.Show();
    }
     now in coding of form2,to open form1
    {
    this.Close();        \\this will close your form 2 and will show form 1.Am i roght
     }







    one solution of this problem is this.And want to know about C# u can chat with me at

    [email protected]

    [email protected]


     

  • 14 years ago

    Hi,

    But what would you do if you want to open the form1 in form 10 .

    I mean to say that if the form you want to open is not the consecutive one and there

    are many other forms between form 1 and form 10.

    Thanks for your reply

  • 14 years ago

    Hi

    if u want to open the form1 in form 10 u have to write just like this

    u have to write the folloeing in Form 10

    Form1 form1=new Form1();  \\ creation of the object of class Form

    form.ShowDialog();  \\ it will show u the form 1

    nomatter in which form u are going to open the form u  have to make a object of that Form class

    and just call the "showDialog function();"

    if u still have any problem i  m available at 9:00 pm of Pakistan Standard Time u can chat with me about your project onm MSN

     

  • 14 years ago

    Hi,

    Thank you so much for your help.

     

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“PHP is a minor evil perpetrated and created by incompetent amateurs, whereas Perl is a great and insidious evil perpetrated by skilled but perverted professionals.” - Jon Ribbens