473,396 Members | 1,706 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,396 software developers and data experts.

help!!I'm stuck here!

I have written this to show table in the database on this datagrid...but when
i implement my click event i had an error msg and i don't know how to correct
it...here's the code..
private void Form1_Load(object sender, System.EventArgs e)
{
this.sqlDataAdapter1.Fill(this.dsCall_Details_Reco rd2);

}

private void button1_Click_3(object sender, System.EventArgs e)
{
Call_Details_Record frmCall_Details_Record = new Call_Details_Record();
frmCall_Details_Record.ShowDialog();

}
the error is..
C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Main_ Page.cs(377):
'CallBillingSystem.Form1.dsCall_Details_Record2' denotes a 'field' where a
'class' was expected

C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Main_ Page.cs(378): The type or
namespace name 'frmCall_Details_Record' could not be found (are you missing a
using directive or an assembly reference?)

can u help me?
Nov 16 '05 #1
5 1136
I've solved it already..:)

"alyssa" wrote:
I have written this to show table in the database on this datagrid...but when
i implement my click event i had an error msg and i don't know how to correct
it...here's the code..
private void Form1_Load(object sender, System.EventArgs e)
{
this.sqlDataAdapter1.Fill(this.dsCall_Details_Reco rd2);

}

private void button1_Click_3(object sender, System.EventArgs e)
{
Call_Details_Record frmCall_Details_Record = new Call_Details_Record();
frmCall_Details_Record.ShowDialog();

}
the error is..
C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Main_ Page.cs(377):
'CallBillingSystem.Form1.dsCall_Details_Record2' denotes a 'field' where a
'class' was expected

C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Main_ Page.cs(378): The type or
namespace name 'frmCall_Details_Record' could not be found (are you missing a
using directive or an assembly reference?)

can u help me?

Nov 16 '05 #2
Could you tell me how you solved this? I am having the same issue.
thanks
maria cruz

"alyssa" wrote:
I've solved it already..:)

"alyssa" wrote:
I have written this to show table in the database on this datagrid...but when
i implement my click event i had an error msg and i don't know how to correct
it...here's the code..
private void Form1_Load(object sender, System.EventArgs e)
{
this.sqlDataAdapter1.Fill(this.dsCall_Details_Reco rd2);

}

private void button1_Click_3(object sender, System.EventArgs e)
{
Call_Details_Record frmCall_Details_Record = new Call_Details_Record();
frmCall_Details_Record.ShowDialog();

}
the error is..
C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Main_ Page.cs(377):
'CallBillingSystem.Form1.dsCall_Details_Record2' denotes a 'field' where a
'class' was expected

C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Main_ Page.cs(378): The type or
namespace name 'frmCall_Details_Record' could not be found (are you missing a
using directive or an assembly reference?)

can u help me?

Nov 17 '05 #3
Could you tell me how you solved this? I am having the same issue.
thanks
maria cruz

"alyssa" wrote:
I've solved it already..:)

"alyssa" wrote:
I have written this to show table in the database on this datagrid...but when
i implement my click event i had an error msg and i don't know how to correct
it...here's the code..
private void Form1_Load(object sender, System.EventArgs e)
{
this.sqlDataAdapter1.Fill(this.dsCall_Details_Reco rd2);

}

private void button1_Click_3(object sender, System.EventArgs e)
{
Call_Details_Record frmCall_Details_Record = new Call_Details_Record();
frmCall_Details_Record.ShowDialog();

}
the error is..
C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Main_ Page.cs(377):
'CallBillingSystem.Form1.dsCall_Details_Record2' denotes a 'field' where a
'class' was expected

C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Main_ Page.cs(378): The type or
namespace name 'frmCall_Details_Record' could not be found (are you missing a
using directive or an assembly reference?)

can u help me?

Nov 17 '05 #4
Maria,

Could you post the code that is giving you the compiler error, along
with any declarations, etc? Maybe the rest of us can help you, in case
alyssa isn't reading any more.

Nov 17 '05 #5
Post the line where you declare dsCall_Details_Record2

Gabriel Lozano-Morán

"mcruz" <mc***@discussions.microsoft.com> wrote in message
news:B1**********************************@microsof t.com...
Could you tell me how you solved this? I am having the same issue.
thanks
maria cruz

"alyssa" wrote:
I've solved it already..:)

"alyssa" wrote:
I have written this to show table in the database on this datagrid...but when i implement my click event i had an error msg and i don't know how to correct it...here's the code..
private void Form1_Load(object sender, System.EventArgs e)
{
this.sqlDataAdapter1.Fill(this.dsCall_Details_Reco rd2);

}

private void button1_Click_3(object sender, System.EventArgs e)
{
Call_Details_Record frmCall_Details_Record = new Call_Details_Record(); frmCall_Details_Record.ShowDialog();

}
the error is..
C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Main_ Page.cs(377):
'CallBillingSystem.Form1.dsCall_Details_Record2' denotes a 'field' where a 'class' was expected

C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Main_ Page.cs(378): The type or namespace name 'frmCall_Details_Record' could not be found (are you missing a using directive or an assembly reference?)

can u help me?

Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Paul Schouten | last post by:
Hey, Currently im working on a project where a dynamic database is created in memory, the database can be of any size both in the amount of rows aswell as in the amount of columns. The database...
8
by: MLH | last post by:
I use a mouse-down procedure to trap right mouse clicks and CTRL-Right mouse clicks. Running the procedure must put honey or some other sticky substance into my keyboard because subsequent...
0
by: Mark Phillips | last post by:
Hello, I am having a problem in which a file can get stuck open when a thread that is attempting to write to it gets aborted (ThreadAbortedException occurs). The log file gets stuck open until...
4
by: Astronomically Confused | last post by:
using System; using System.Collections; using System.IO; using System.Net; using System.Net.Sockets; using System.Threading; class HttpProcessor { private Socket s;
3
by: alyssa | last post by:
Hi guys, May i know how to declare a string of binary data and pass it to the method? For example, int a={10010001120420052314} is it correct? and if i have receive the binary data, may i know...
7
by: alyssa | last post by:
Hi guys, May i know how to match the value in the text box with the table's attribute in SQL Server? For example, when the customer enter their customer id and press the button, I want to display...
3
by: alyssa | last post by:
SqlDataReader rdr = null; SQLConnection con = null; SqlCommand cmd = null; try { // Open connection to the database string ConnectionString = "server=localhost;database = CallBilling System";...
1
by: jessebasketball | last post by:
i am a very beginner programmer and am stuck on a very simple problem. I am trying to make a game where the user is presented with a scenerio and options. ie you are standing in the parking lot...
19
by: amanjsingh | last post by:
Hi, I am completely new to Access. Here is something that I am experiencing... I have this form and I search for candidate. Whatever results I get, I try to navigate from one to another and it...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.