|
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?? ![Confused | :confused:](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_confused.gif)
|
|
|
|
|
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[^]
|
|
|
|
|
Hi good day to all, I'am using a panel that have scrollbar in vertical. I want to display a new value of scroll bar when i end scrolling and I use this code
private void panel1_Scroll(object sender, ScrollEventArgs e)
{
if (e.Type == ScrollEventType.EndScroll)
{
MessageBox.Show(e.NewValue.ToString());
}
}
but it does not work, but when i use a single vertical scroll bar and use it this code :
private void hScrollBar1_Scroll(object sender, ScrollEventArgs e)
{
if (e.Type == ScrollEventType.EndScroll)
{
MessageBox.Show(e.NewValue.ToString());
}
}
it will work, I thought i can use the same code but it fails, Is their any way to do that?
Thank you in advance
|
|
|
|
|
Lawliet0727 wrote: I'when i use a single vertical scroll bar But, your code that follows this is an EventHandler for a Horizontal ScrollBar ?
In the 'panel1_Scroll EventHandler, try writing the value to the Console, or to a TextBox on the Form: the use of MessageBox sometimes has side-effects since it's a thread-blocking call.
«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)
|
|
|
|
|
When designing a form dragging objects (forms) into an edit and delete form, somehow the object on the form is deleted but the code in the form (Form.Designer.cs) does not delete the form. Is there a way to quickly find code not deleted in the above file ?
|
|
|
|
|
A simple possible explanation could be that you delete a dropped Control from a design-time WinForm surface, but, you have not re-built the project/solution ... in that case, what's in the designer.cs file could be out of synch with the Form. However: if that is not what's happening here:Quote: When designing a form dragging objects (forms) into an edit and delete form, Hi, what you describe I find difficult to understand. Could you clarify;
1. is this WinForms ?
2. you are talking about design time drag-drop, or run-time ?
3. "dragging objects (forms) into an edit and delete form" this suggests you are dragging/dropping a Form ? that's not WinForms.
4. "edit and delete form" what, exactly, is this ?
cheers, Bill
«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)
modified 11-Aug-17 3:31am.
|
|
|
|
|
I am using winforms, my english is not good so the expression makes you confuse. This means that when I am in form design mode when dragging control into a form, adding, editing, and deleting controls on the form, for some reason the code control on the form is not removed in the Form.Designer file.cs. but Form.cs (UI) has deleted very well. Do you understand me ?
|
|
|
|
|