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

Need to clear a form using a button control

I have this form that acts like Paint - i want to be able to clear the form with the click of a button.

I tried
Expand|Select|Wrap|Line Numbers
  1.  
  2. form1->Clear();
  3.  
  4.  

but am being told:
1>c:\users\sophia\documents\visual studio 2010\projects\mouse draw 2\mouse draw 2\Form1.h(341): error C3861: 'Clear': identifier not found

I have used this in the past to clear a text box - and i don't recall creating an actual definition for Clear - I thought it was a built in sequence.

Can anyone help?

Thanks,
Sophie
Dec 10 '11 #1
2 2983
johny10151981
1,059 1GB
you cannot expect text box object and form object to have all the same class.

you need to implement it.
Dec 10 '11 #2
Sorry this is only my 3rd form and I don't know how to implement a form - isn't it already implemented? that being the whole visual part of visual c++?

I am looking for the code at this point - I found nothing online that would clear a form. Maybe I am asking the wrong questions - but I don't know how more basic to get in my searches than How to clear a form in C++.

Thanks in advance for anyone's help.


@johny10151981
Dec 10 '11 #3

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

Similar topics

0
by: gg77 | last post by:
Hi, I don't have much knowledge of the table control. I am basically trying to use a table thats populated with data rows from a dataSet but currently things aren't working for me. below is...
5
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access...
18
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead....
0
by: ganesh_laksar | last post by:
hello all, my self ganesh kumar . i m new in that field. i have a problem . i make a project in c# for pocket pc in that i have many form .. so i use buttons in that .i want to know that how can i...
0
by: David | last post by:
Hello all. I am trying to implement my first server control and have run into two problems that I cannot solve. I need the assistance of someone with more experience. My goal was to create an...
5
by: gregarican | last post by:
There is a C# CTI app I'm working on using Visual Studio 2005 at revision level 8.0.50727-7600. I need a couple of Windows Form Button controls to emulate line buttons on a telephone. So I went to...
5
by: plumba | last post by:
Ok, another query.... I have a checkbox at the bottom of my form which when checked unhides a <div> block which displays the submit button. The problem I have is when the clear form button is...
1
by: joshapalooza | last post by:
I am using a form to sort a report, but I can't seem to get the "clear form" button to work. I used the wizard when I installed the button, using the clear form option under the form option list....
1
by: krishnaneeraja | last post by:
Hi, Iam developing c#.net windows application.In that iam using one form(form1) and using two user defined control forms in that form1.If i want to close form1 but it closes the entire application.I...
1
by: dipalipatel | last post by:
Hi, I need help to show Image on MS Access form using image control. i am using Memo field to store my image bytes, Data E.g. order# Number 1001 ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.