TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Celine Ilano
NA
4
4.1k
Main does not contain a constructor that takes 0 arguments
May 27 2014 10:20 AM
namespace Patient_Information_System
{
public partial class Doctors : Form
{
public Doctors()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.Hide();
Main f2 = new Main();
f2.ShowDialog();
}
}
}
I get the error there.
Here is my main code.
namespace Patient_Information_System
{
public partial class Main : Form
{
public Main(string UserName)
{
InitializeComponent();
label11.Text = UserName;
toolStripStatusLabel2.Text = UserName;
timer1.Start();
load_usertbl();
}
I cant seem to fix it :/ Ive tried placing the username string outside the main part.
Reply
Answers (
1
)
how to add values from gridview to data base
I need help in getting the Vapp name and display its details