Hey folks,
Does anyone know if it's possible for me to determine on a checkbox's
checkedchanged event whether the actual box was clicked or if it's text was
clicked?
I know with DataGrids you can do that whole HitTestInfo stuff and determine
if the rowheader was clicked or a cell...Can you do something similar with
checkbox? And if so, how?
Thx 3 1465
Nevermind. I got it:
Point ptCursor = Cursor.Position ;
ptCursor = PointToClient(p tCursor);
if(ptCursor.X > (checkBox1.Loca tion.X + 22))
:
:
"John Smith" <js@no.com> wrote in message
news:eh******** ******@TK2MSFTN GP14.phx.gbl... Hey folks,
Does anyone know if it's possible for me to determine on a checkbox's checkedchanged event whether the actual box was clicked or if it's text
was clicked?
I know with DataGrids you can do that whole HitTestInfo stuff and
determine if the rowheader was clicked or a cell...Can you do something similar with checkbox? And if so, how?
Thx
this should help. in the event handler....
((CheckBox)(sen der)).Checked
"John Smith" <js@no.com> wrote in message
news:eh******** ******@TK2MSFTN GP14.phx.gbl... Hey folks,
Does anyone know if it's possible for me to determine on a checkbox's checkedchanged event whether the actual box was clicked or if it's text was clicked?
I know with DataGrids you can do that whole HitTestInfo stuff and determine if the rowheader was clicked or a cell...Can you do something similar with checkbox? And if so, how?
Thx
oh, **** sorry mate.
misread your post.
you sorted anyway
sam
"John Smith" <js@no.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. Nevermind. I got it: Point ptCursor = Cursor.Position ;
ptCursor = PointToClient(p tCursor);
if(ptCursor.X > (checkBox1.Loca tion.X + 22))
:
:
"John Smith" <js@no.com> wrote in message news:eh******** ******@TK2MSFTN GP14.phx.gbl... Hey folks,
Does anyone know if it's possible for me to determine on a checkbox's checkedchanged event whether the actual box was clicked or if it's text was clicked?
I know with DataGrids you can do that whole HitTestInfo stuff and determine if the rowheader was clicked or a cell...Can you do something similar with checkbox? And if so, how?
Thx
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Just D |
last post by:
Hi All,
Does anybody know how to write the following code?
I have a database table with a few columns including: ID , "Task"
, ForceRun . I need to show the DataGrid on the ASPX page with
these selected fields and allow user to click one or more CheckBox controls
to activate this bit on the database table for a required ID.
I have already added a template column to the DataGrid and I can get the
|
by: Greg Hurlman |
last post by:
I've got a very simple ASCX page, where once someone finishes a section and
clicks the "Next >" button, the section they just finished is disabled, and
the next section appears below it, and so on. One of the controls is a
checkbox, which, when clicked, displays a hidden panel containing controls
whose input are used for filtering query results.
If someone checks the checkbox in the first section and clicks the first
"Next >" button,...
|
by: mschoup |
last post by:
I have a simple aspx page(WebForm1.aspx) with a HyperLink, LinkButton,
and two CheckBoxes. When I select a CheckBox and then click the
LinkButton, the CheckBox retains state. When I select the CheckBox and
click the HyperLink (NavigateURL set to WebForm1.aspx), the CheckBox
lost it's state.
I would assume that this is by design (now that I read ASP.NET in a
nutshell) where it describes a HyperLink control action as 'navigates
from one...
|
by: Stefan Mueller |
last post by:
To following code/script shows me the row number of the checkbox I've just
clicked:
<form name = "my_form" action = "" method = "post" accept-charset =
"iso-8859-1">
<table name = "my_table" border = "1">
<tr>
<td>
<input type = "checkbox" onClick = "alert('Row 1');">
</td>
|
by: Daz |
last post by:
Hi everyone.
Firstly, I apologise if this i not what you would call a PHP problem. I
get quite confused as to what lives in which realm, so if this
shouldn't be posted here, please suggest where I should post it.
I have created a form, which consists of a list of items, each with a
checkbox. When a checkbox is checked or unchecked, the page should be
refreshed. During the refresh, the data is validated and the MySQL
database is...
| |
by: Sid |
last post by:
I hope someone could help me with this.
I am trying to setup a criteria to decide when to allow/not allow
user
to click on the check box. logically it looks simple but I am not
able
to incorporate in my data access page. I have a numerical field
called
tier status and right next to it I have a checkbox. I would like to
allow user to check and uncheck the checkbox as long as the tier
|
by: cyberdawg999 |
last post by:
Greetings all in ASP land
I have overcome one obstacle that took me 2 weeks to overcome and I
did it!!!!!
I am so elated!! thank you to all who invested their time and energy towards helping me with my problems.
Now for my new little problem,I had a problem posting the values from checkbox fields to a database and thats the obstacle I overcame.
Now the second part is my new problem is that I want that the next time that page loads for...
|
by: mrstrong |
last post by:
Gday,
I have a datagridview that I am creating the columns programatically
which all seems to work fine. I have a couple of dropdown boxes, so I
have set the editMode= EditOnEnter.
Now my checkboxes dont seem to work, and the datagridview throws a
dataerror when I try to leave the cell after trying to check/uncheck
the checkbox?!
|
by: mrstrong |
last post by:
Gday,
Why would all my checkboxes inside a datagridview stop working (ie
checked state not updating when user clicks) when the datagridview's
editmode property is changed to "EditOnEnter"?
It seems to return an error: "Formatted Value of the cell has wrong
type".
It works fine when the datagridview's editmode property is
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |