|
no worries, i have done what i wanted by using some API.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi all
i've created a Form (Form1.cs) and Control Array handler (PictureBoxArray.cs) which all works fine but my problem is I want to be able to access the *clicked on* picturebox but it doesn't seem to be working, well I cant make it work is a bit more truthful. I'm sure its fairly simple but I can't work out a way of doing it and now I've been looking so long I'm kind of blinded by it!
I have this in my PictureBoxArray.cs
private void pictureBox_MouseDown(object sender, MouseEventArgs e)
{
System.Windows.Forms.MessageBox.Show("You have clicked button " +
((System.Windows.Forms.PictureBox) sender).Tag.ToString());
}
but but from here I can't do things like change the background colour, if I put a button into the main form (Form1) and do a :
public void button2_Click(object sender, System.EventArgs e)
{
pictureBoxArray[0].BackColor = Color.Red;
}
then it works fine but I want to be able to change the colour of the one I clicked on so I need to know which one it is (does that make sense ?)
I folowed the msdn guide on creating the control array here http://msdn.microsoft.com/en-us/library/aa289500(VS.71).aspx[^]
I sure it is probably fairly simple but like i said I've just lost it now !
thanks in advance for any help
tim
|
|
|
|
|
So you want to change the color on the picture box you clicked on last, is this correct?
If yes, then you could for example store the last selected picture box in a variable:
PictureBox lastSelectedPictureBox = null;
private void pictureBox_MouseDown(object sender, MouseEventArgs e)
{
lastSelectedPictureBox = sender as PictureBox;
}
and in your button click handler:
public void button2_Click(object sender, System.EventArgs e)
{
lastSelectedPictureBox.BackColor = Color.Red;
}
You could also set the "selected" property of the last selected PictureBox into the Tag property, if it's not already used for other purposes. Btu then you'd need to loop over the entire array to get the last selected picture box, so I prefer the method above.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
hi greeg
thanks for that, that worked out just fine, what I actually wanted to do was control from within the PictureBoxArray.cs and not from the button_Click, but I just did a little method in there and it ow swaps the colours depending on which one you click on which is perfect for me.
thank you again
tim
|
|
|
|
|
Hi
How to insert xmlDocument variable data or xml in column of table in sql server 2000.
I have taken xmlInfo varchar(8000) column in table in sql server 2000 and
I am passing string variable that have complete data of xml.InnerXml but I am not getting full data in column in table
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
In SQL Server 2000 you have to use nvarchar data type to store the xml document. There are several stored procedures that help you to use the xml at database side if you need. Fr example have a look at: Retrieving and Writing XML Data[^]
|
|
|
|
|
Mika Wendelius wrote: Fr example have a look at:
Look at documentation! Never, never I say! Next you will want him to inject himself with the bubonic plague.
led mike
|
|
|
|
|
Now I didn't quite get it What's wrong with the doc?
|
|
|
|
|
Mika Wendelius wrote: Now I didn't quite get it
I was having some fun with harry and his apparent aversion to reading documentation, like so many other losers we see here on CodeProject.
Is that what you were confused about?
led mike
|
|
|
|
|
|
Mika Wendelius wrote: Let's not tell to anyone, okay?
Now this can well become a record. "A secret among 5,702,067 people worldwide."
Loading signature. Please wait...
|
|
|
|
|
d@nish wrote: Now this can well become a record. "A secret among 5,702,067 people worldwide."
Well, only 16,155 online... I don't think anyone will notice... Hey but you just did, damn, there goes the plan
|
|
|
|
|
Mika Wendelius wrote: How stupid can I be
Having dense moments is a natural part of the activity of developing software. At least it better be because I have them every day!
led mike
|
|
|
|
|
How many characters is the xml file? My guess is that number of characters in the xml file exceeds 8000 characters.
Prateek
|
|
|
|
|
Not exceeding no. of specified characters but still not taking full data in column
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Hi
How to convert string to xml.
I have saved xml data in string variable and now I want to assign these data in xmlDocument variable.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
trilokharry wrote: I want to assign these data in xmlDocument variable.
They hide that information in the documentation[^]
led mike
|
|
|
|
|
You create an XmlDocument and call LoadXml[^]
|
|
|
|
|
Q: i have file (***.docx) and i want separate it based on title.
how can i do it by using word automation.
thanks...
|
|
|
|
|
What do you mean by "separate it"? Some example would help understand better.
Loading signature. Please wait...
|
|
|
|
|
In my document i have more than one title I'need to extract each title in tO new document by word automation
example:
...........................................
title 1
title 2
title 3
........................................... in one document
in need to extract each title in to new document
..........
title 1
..........doc1
..........
title 2
..........doc2
..........
title 3
..........doc3
thanks
|
|
|
|
|
Isnt it the same thing you have asked few posts down?
Loading signature. Please wait...
|
|
|
|
|
I have an application that needs to retrieve data from a database using a left join query. The left join, of course, may return null values from the "right" database table (call it table2) if a matching record is not found in table2.
This can cause a problem because I have fields on my form bound to the values in the DataTable filled by the SQL query. I handled this problem by running through each line in the resultant DataTable and replacing any null values with an appropriate default, but this operation is relatively time consuming.
Is there a better method to set the default values on the DataTable.
Thanks.
|
|
|
|
|
Yes, in the query use the ISNULL() or COALESCE() SQL Server functions and provide the default values that you want there, then you don't have to do anything with the resultset in code.
Keep It Simple Stupid! (KISS)
|
|
|
|
|
Thanks. The application I'm working with uses Access, so I think I need to use IIF with ISNULL() to make it work with this software, but that's exactly the idea I was looking for. I wanted something that could work quickly, without iterating through the rows of the table or doing anything else in the code. Thanks.
|
|
|
|