|
It's "calibrate", not "cal". Yes, it makes a difference when talking to other people who are not involved in your project.
So, what's the problem? You still haven't described the problem you're having.
|
|
|
|
|
I need to get 'Form1' to retain its black back-ground color while the 3 labels with a white BackColor displaying famous quotes are not visible (Form1 totally black) until a mouse pointer hovers over a label and reveals the famous quote(s) during the execution of runtime.
Ronald Richards
|
|
|
|
|
And?
What have you tried?
Where are you stuck?
What help do you need?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I followed the instructions that tells me to put three labels to the form each displaying a famous quote. When the program starts, the BackColor of the form and each of the 3 labels should be black. Now, as the user passes or hovers the mouse pointer over a label it should change the label's BackColor white thus revealing the quote. The results I get is not the same. That is, when the program starts the BackColor of the form is black, but the 3 labels do not have a black back ground at all. Instead, all the labels on the form are visible (showing quotes) with a white BackColor. Now, as I hover my mouse pointer over each label the back ground color of the form turns white and as I release the pointer from the label(s) the back ground color of the form returns to black.// The control settings in the properties window are: On Form1; BackColor = ControlText(black) & ForeColor = ControlText(black)// On Label1,Label2,Label3; BackColor = White & ForeColor = ControlText(black). In the Events window settings are:On Form1; Load = Form1_Load & MouseHover = Form1_Load// On Label1,Label2,Label3; MouseHover = Label1,2,3_MouseHover
Ronald Richards
|
|
|
|
|
Well you answer you own question!
Member 13364520 wrote: When the program starts, the BackColor of the form and each of the 3 labels should be black.
Member 13364520 wrote: On Label1,Label2,Label3; BackColor = White & ForeColor = ControlText(black).
So set the BackColor of the Labels to Black...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Welcome to CodeProject !
Questions here need to have more detail than what you've written. At the least, share the ideas you have for this project: what is required to sense the mouse moving over a Control which is not visible ?
Hint: examine the Rectangle.Contains method.
«While I complain of being able to see only a shadow of the past, I may be insensitive to reality as it is now, since I'm not at a stage of development where I'm capable of seeing it. A few hundred years later another traveler despairing as myself, may mourn the disappearance of what I may have seen, but failed to see.» Claude Levi-Strauss (Tristes Tropiques, 1955)
|
|
|
|
|
Hi,
if a Controls foreground and background colors equal its parents background color, would you call it visible?
|
|
|
|
|
If an application crashes in a forest, does anyone notice the BSoD?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
That is exactly why Win10 "BSoD" got switched to green
|
|
|
|
|
Only if it's black on a black background, a small black light lights up black.
This space for rent
|
|
|
|
|
Pete, you just revealed the first famous quote; can you discover the other two as well? without hovering?
|
|
|
|
|
I attempted to hover once. I managed it for less than half a second.
Okay. It was a jump. I jumped, but let's call it hovering for the sake of avoiding edge cases.
This space for rent
|
|
|
|
|
Pete O'Hanlon wrote: I managed it for less than half a second. The secret is in the time.
David Eddings, Magicians Gambit : “What was that?" Belgarath asked, coming back around the corner.
"Brill," Silk replied blandly, pulling his Murgo robe back on.
"Again?" Belgarath demanded with exasperation. "What was he doing this time?"
"Trying to fly, last time I saw him." Silk smirked.
The old man looked puzzled.
"He wasn't doing it very well," Silk added.
Belgarath shrugged. "Maybe it'll come to him in time."
"He doesn't really have all that much time." Silk glanced out over the edge.
From far below - terribly far below - there came a faint, muffled crash; then, after several seconds, another. "Does bouncing count?" Silk asked.
Belgarath made a wry face. "Not really."
"Then I'd say he didn't learn in time." Silk said blithely.”
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
only in the surrender of the light could the darkness prevail.
|
|
|
|
|
Please explain! I noticed as I set the BackColor of the Labels white, and Form1 having a black BackColor; in runtime when I hover over a label, the whole back ground color of Form1 turns white. Now this is the problem, because the form is always suppose to stay black when the labels should be darkened (black) until the user hovers a mouse pointer over it to lighten it up - revealing the quotes. So, I changed the BackColor setting of the labels to black; now the whole form is Black, but as I Run the program and hover my mouse over a label nothing happens,i.e, the labels stays black as well as the form. How can I tweak this program to get the results required in runtime?
Ronald Richards
|
|
|
|
|
It's a quote from the Hitchhiker's Guide to the Galaxy:
Hitchhiker's Guide Quotes (‘It’s the wild colour scheme that freaks me out,’...)[^]
It's a jokey response to Luc's slightly tounge-in-cheek response to your original question:
if a Controls foreground and background colors equal its parents background color, would you call it visible?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
C# codes is exist below.I am trying to query like in below the codes.I am creating queries via web service using xml.You can see below the codes
karthareket.kk_no colum name when I run this codes visual studio give an error.You can see error below.May you help me?
error picture here
private void KKTahsilat()
{
sql = "SELECT bnisim_ad, kk_adi, cr_adi, DATE_FORMAT(kk_odemetarih,'%d.%m.%Y') AS islemtarih, DATE_FORMAT(bh_tarih,'%d.%m.%Y') AS vadetarih, bh_tutar,bh_tutarbirim, kk_taksitsay, bh_slipdetay as taksit,
bh_tur, kk_belgeno, kk_tutar FROM tbodeme2017,tbkasa2017, (tbbankahareket2017, tbkredikart2017) LEFT JOIN tbbankakredikartiplan ON (kk_planid=bkp_id)
LEFT JOIN tbbankakredikartiplantaksit ON (bkpt_planid=bkp_id AND bkpt_taksit=bh_slipdetay), tbcari,tbbankaisim,tbbanka,tbbankakredikarti
where od_izahat=kk_izahat AND od_satisno=bh_islemno AND ka_islemad=kk_izahat AND ka_stno=bh_islemno AND tbkredikart2017.kk_no=bh_islemno AND cr_no=tbkredikart2017.kk_musno AND bn_bankano = bnisim_id AND bkredikart2017.kk_bankano = bn_id AND tbkredikart2017.kk_posid = tbbankakredikarti.kk_no AND bh_tur LIKE 'Kredi Kartı Tahsilat' ";
response = veri.exportDataXML(login, sql);
XmlDocument xmlcari = new XmlDocument();
xmlcari.LoadXml(response);
XmlNodeList isim = xmlcari.SelectNodes("table/rows/row");
kkTahsilat = 0;
foreach (XmlNode node in isim)
{
kkTahsilat += XmlConvert.ToDouble(node.ChildNodes[5].InnerText);
}
}
namespace Livella_Cek.webservis {
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(Namespace="urn:WebticariService", ConfigurationName="webservis.WebticariServicePortType")]
public interface WebticariServicePortType {
[System.ServiceModel.OperationContractAttribute(Action="urn:WebticariService#exportDataXML", ReplyAction="*")]
[System.ServiceModel.XmlSerializerFormatAttribute(Style=System.ServiceModel.OperationFormatStyle.Rpc, SupportFaults=true, Use=System.ServiceModel.OperationFormatUse.Encoded)]
[return: System.ServiceModel.MessageParameterAttribute(Name="return")]
string exportDataXML(string token, string query);
}
public string exportDataXML(string token, string query) {
return base.Channel.exportDataXML(token, query);
}
}
|
|
|
|
|
The code you have shown above does not match the code in the error message display.
|
|
|
|
|
Can you tell why the error was caused by considering the error picture?
|
|
|
|
|
Sorry, but I have looked again, and checked the documentation and cannot see what is wrong.
|
|
|
|
|
Whenever I get a SQL error like this, I try to run it directly against the server. You really should try this because the exception you are seeing is telling you that your query is wrong. That's what you're going to have to fix - the problem has nothing to do with C#, or the fact you are running over a web service.
This space for rent
|
|
|
|
|
Additional suggestion to that.
Figure out how and where the replacements are done in the SQL and the log the SQL with those replacements.
Then use that for your test.
If you do not do that then you are guessing about what the SQL actually looks like. Which might work, and also might not.
|
|
|
|
|
Hey guys,
To day i want to ask :
" <pre>How to create a virtual disk storage software in c #</pre>
Everyone can help me ???
Help me??
|
|
|
|
|
It starts first with defining in great detail what you mean by "virtual disk storage software" and all of the features you want in it.
|
|
|
|
|
Something like this[^]?
Not the most recent article, but should be enough to get you started.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|