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

Button in User Control does not click in main form

Hi,

I'm fairly new to C#. I have a user control as part of another project and I'm loading it in a form in my current project. There is a Data Grid with some values in it. There is also a button on the user control which has an on_click event associated with it.

I am able to load the values into the data grid in the user control on the form using an on_load event of the user control. I have to use these values and do something on the click of the button, but the button click does not do anything. It does not call the on_click function of button. Why would this happen? I have been trying to get information on this online but haven't been able to.

Please help!
Mar 25 '11 #1
0 1068

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

Similar topics

0
by: Amir Eshterayeh | last post by:
Dear Friends Hope things goes well to you. I have this problem. Would you please give me your solution? I want to change a property that I define on my user control in my web form that contains...
3
by: Celine | last post by:
Hi, I am just starting developping in ASP.Net and I have some trouble using a user control in a web form. In my user control I have a datagrid with hyperlink and in my web page I want to...
2
by: vineetbatta | last post by:
Hi all, i have a user control which allows the user to enter Name& Address in text boxes. I use the same user control in the main page... Is there a simple way of accessing the Name &...
1
by: Richard | last post by:
I think I'm going brain dead on this one. Can someone give me an idea on how to do this? Some sample code would be helpful.
0
by: Sharat Koya | last post by:
Hi, I have a user control that pops up much like intelisense in visual studio to display a range of navigable options when a key combo is pressed within a textbox. I have called the user control...
2
by: lotus | last post by:
HI All.. I'm realtively new to C#. I have MainForm which includes Parent usercontol, and this parent usercontrol also contains child usercontrol. MainForm --> Parent usercontrol --> child...
0
by: Mike TI | last post by:
Jan 31, 2006 Dear all I am new to VB Net 2005 and am learning by building a small project. I have created an MDI form. I placed a SplitContainer1 on the form. On Panel 2 I placed another...
2
by: Italian Pete | last post by:
Hi, I have a search bar as a User Control sitting on a Page. The asp web control search button has its OnClick event set to a method "Search" which sets a bool isSearch to true. When I try to...
2
by: \(O\)enone | last post by:
I'm trying to create a usercontrol that is transparent, both visibly and to mouse clicks. I can make the usercontrol visibly transparent by setting the SupportsTransparentBackColor style and...
4
by: Mrozu | last post by:
Hi, i've got an inherited usercontrol with added DataGridView. I plant my control on form and I want to hide datagridview when user click on that form. I've tried to use LostFocus and...
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...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.