473,385 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

A Bug Related To Form Constructor

maheshwag
Passing a reference to the Form Constructor is it a Bug?

e.g.

Expand|Select|Wrap|Line Numbers
  1. Form4 form4
  2. Public Form1(Form4 form4)
  3. {
  4.  this.form4=form4;
  5.  InitializeComponent();
  6.  
  7. }
  8.  
it's cause a "Overload Method Error".
Jun 19 '11 #1
2 1542
code green
1,726 Expert 1GB
The Form class constructor does not take parameters, so to the compiler you are using an overload method.
Jun 20 '11 #2
Curtis Rutland
3,256 Expert 2GB
You need to show more of your code. That by itself is not an error.
Jun 20 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: VM | last post by:
I have a Windows form that may be called with two parameters or three parameters (depending on who's invoking the form). The form was programmed so it received three parameters. How can I create an...
2
by: Rich | last post by:
Greetings, I observed that in VB2005 the designer generated code is hidden. The initialize code appears to be stored in a different module than the Form's class module. But the form's class...
4
by: Morgan Cheng | last post by:
I am writing a very simple Win Form app. One PictureBox (named ViewPicBox) in the main form (named ViewForm). In the constructor of ViewForm, I set the Image property of ViewPicBox. ViewForm()...
8
by: garyusenet | last post by:
I was originally taught to double click the form, to get to the load event handler and in there put anything I want to happen when my form is opened. However, today whilst reorganising some code...
7
by: Nikola Skoric | last post by:
I noticed that System.Windows.Forms.Form constructor treats his parameters as though they are passed by reference even if I omit the "ref" keyword. Why's (and how does he do) that? Shouldn't...
1
by: kief12 | last post by:
I have a windows form called myForm. Its constructor is public: myForm(User u) { myUser = u; InitializeComponent(); // //TODO: Add the constructor...
2
by: HowHow | last post by:
Access 2000. In a form, I have a subform showing simply names and contact numbers. I need a pop up contact form (related contact detail like job title, address, email..ect) when double click on a...
0
by: Lextendo | last post by:
Hi, This is what I want to achieve: I hav a lookup-form used by different parent forms to present a database table. So form X uses the lookup to search table tblA, form Y uses the lookup to...
3
by: raylopez99 | last post by:
Oh, I know, I should have provided complete code in console mode form. But for the rest of you (sorry Jon, just kidding) I have an example of why, once again, you must pick the correct entry point...
11
by: SalimZaabi | last post by:
Hi everybody, Can anyone help me ? How do I move to the next Form and go back without having to open new Form in window application. I tried to use in Form1 Form2 f2...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.