|
We don't do homework
Failure is not an option; it's the default selection.
|
|
|
|
|
"We"?
I do, especially after having met a few of the teachers. I'll help someone who is looking to learn ten times sooner that someone who is ordering code like he's at MacDonalds.
He's not asking for codez, he's not asking you to do his homework. We help people continuously, who sometimes bloody obviously didn't make theirs.
--
sorry for rant, my apologies for the tone
Bastard Programmer from Hell
modified 13-Feb-12 16:11pm.
|
|
|
|
|
Yes, helping someone who asks and at least shows some effort to try solving the problem. However, those who simply type (or copy & paste) what was given in the syllabus or textbook are all together different. The OP falls in the latter category, IMO.
Failure is not an option; it's the default selection.
|
|
|
|
|
You provided not only the details of the setup, but also the expected result. That's a plus.
Can you post the code you got upto this point?
--
Yes, we're mostly blunt people who say what they think. It seems to be the primary and most efficient way of dealing with developers.
Bastard Programmer from Hell
|
|
|
|
|
1. Your profile states your from the US. If your language is native English, please write better than this.
2. I would use a Dictionary<string, list<string="">> in your case. The key is the weekday and the value is a List containing the boy names.
You can look up the details of the Dictionary and the List on MSDN.
Most of us don't mind homework questions per se, but always try to proove you tried and searched for yourself. We guide you, we don't provide solutions or give code. You get downvoted if you ask for code or basically if we think one is too lazy to do work himself.
Hope this helps.
V.
|
|
|
|
|
Thanks V, for the suggestions and help to my problem, you see i dont want codes, i want to see what other ways it be used to resolve the task, thats all.
you see am not a native american i came here from bahamas, so my english is not so perfect like you guys, but then again i learnt it, from goog helpfull people, and not from vampares and opportunist who always take the first chance of someones weakness to blow their horns, We are all never perfect in anything. Thanks
|
|
|
|
|
Hi,
I want to draw a bitmap on my form, on top of the other controls, however I try to do it, it always gets drawn before the rest of the form and its controls. Does anyone know how to draw it on top?
Thanks.
“If I had asked people what they wanted, they would have said faster horses.”
― Henry Ford
modified 13-Feb-12 11:26am.
|
|
|
|
|
Put a Panel on the form and call BringToFront on it, then your bitmap image on the Panel.
If you draw a bitmap on the form itself, it's gets drawn on the surface of the form, which sits behind all controls on the form.
|
|
|
|
|
interaction with the Form's Controls may become a bit difficult... He'll be back with more questions!
Luc Pattyn [My Articles] Nil Volentibus Arduum
Fed up by FireFox memory leaks I switched to Opera and now CP doesn't perform its paste magic, so links will not be offered. Sorry.
|
|
|
|
|
Yeah, I was thinking about that, then said to myself, "What do I care if the design sounds fishy? It's not my app!"
|
|
|
|
|
Thanks Dave,
Using a pannel is basicaly the same a using a picture control, either way the bitmap is not shown with a transparent background so the controls cannot be seen. I probably should have mentioned this requirement.
- John
“If I had asked people what they wanted, they would have said faster horses.”
― Henry Ford
|
|
|
|
|
I think you will have to construct a path that corresponds to the opaque parts of the bitmap and use Control.Region[^]. I thought there was a way to specify a mask for controls but I can't find it.
|
|
|
|
|
"Transparent" is not transparent in Windows Forms. You cannot set the Backcolor of a control to Transparent and expect to see through the control. It doesn't work that way.
Transparent tells the control to take on the background properties of the control that contains it. So, if you set the Backcolor of a Form to Black and the the Backcolor of a Button to Transparent, the Button will be Black, but not because you can now see through the Button.
You cannot see controls "through" another control. Why? Because, in Windows Forms, window elements do not waste time painting regions of themselves where another control is obscurring them. Hence, you can't see any controls through the "transparent" regions of an image.
The image may be transparent, but the control painting it is not, no matter what the Backcolor property says.
Now, WPF is very different. It's not Windows Forms and doesn't have the same limitations. WPF can do what you want, but the learning curve for it is very steep.
|
|
|
|
|
Hi Dave,
Thanks for the info. I am not looking for a tranaparent control. I am drawing the image with Graphics.DrawImage(). I just need to draw it after the the forms controls are drawn so that it is on top. The framework is forcing me to draw it before the rest of the form, I was hoping there might be some way around this.
- John
“If I had asked people what they wanted, they would have said faster horses.”
― Henry Ford
|
|
|
|
|
Hello,
I am looking for a way to capture network disconnection without sampling connection status every couple of minutes .
I am trying to do some function when network is back connected.
|
|
|
|
|
Without knowing which version of Windows you are targetting, we can't really give you a definitive answer as network connectivity monitoring was enhanced post XP. A good starter, though, is this[^] article. Pay attention to the comments which link out to the Code Pack - this includes networking samples you can modify as you see fit.
|
|
|
|
|
Hi,
First of all i have Win7
secondly, I found there is an event-
NetworkChange.NetworkAvailabilityChanged
which is in NetworkInformation namespace . This event raised when network connection status is changed . Is it a good way to use this?
|
|
|
|
|
It's one way to do it, but I have found under certain circumstances that it's not 100% reliable (for instance, I know of people who have found it not to work with static IP addresses when detecting reconnects).
|
|
|
|
|
Hi,
It is possible to translate from english to Japanese in windows application?
|
|
|
|
|
Yes. You can subscribe to something like the Google Translate API. However, the question is, will the quality of the translated text be sufficient? Also, do you want to display Anglicised versions of the translated text, or Kanji (in which case, you will need the appropriate fonts installed)?
|
|
|
|
|
Yes, but the problem is having complete dictionaries and syntax analyzers for both languages. I know nothing about Japanese but I doubt if this would be a simple project. It may be possible to use the Google translate feature in your program; take a look at the Google developer pages.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Just to further Pete o'Hanlon's post.
The quality of the translation seems to depend heavily on how close the languages are to eachother. If I put French or German into Google translate the results are pretty reasonable. I regularly need to translate Arabic into English, often the results are impossible even to get the jist of. My guess is Translating Japanese --> English and back will be pretty bad, but Japanese into one of the related East Asian languages less so.
Even then you don't have control over the process of the text comes out. An internal memo in Arabic about a student travelling with text that meant something like "She had two choices an easy way and a difficult way. She went the difficult way" into English "She made a choice between a soft one and a hard one. She took a hard one." I forget the exact wording, but it wasn't far off this. You end up surprisingly often with unintentionally funny or smutty translations, something that you may want to avoid for your clients.
Writing your own translator is hard Google has large teams devoted to the problem, and you see the results. My advice is to use a good [human] translator and swap languages in code.
|
|
|
|
|
Talking about translating the UI? or a translation software ?
Watched code never compiles.
|
|
|
|
|
Hi,
It is possible to get Japanese Language text from reading image file
How will get text as japanese language in ocr
|
|
|
|
|
This question has already been answered here[^].
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|