|
I Have Created a Simple form in which i have added Adobe Reader from toolbox using steps
1. right click in toolbox - Choose Items
2. choose COM Components tab and there "Adobe PDF Reader"
3. Now Drag&Drop the Adobe PDF Reader Control into an UserControl
I have successfully added this, opened up a pdf file also. Now it automatically provides with vertical scrollbars for scrolling through the pdf document.
What i want to achieve is instead of using the given scrollbars or mouse to scroll, i want to use a button to scroll scroll the pdf, So there will be two buttons, One for Scroll Up And the other for scroll down.
I have gone through many forums, pages, etc. Havnt found anythn that i could use.
I have Tried Simulating key presses with
SendKeys.Send("{DOWN}");
But as i press the button, the focus is lost on the adobe reader so it doesnt work
Pls help me... I have spent almost half a day searchin for a solution
|
|
|
|
|
You might try using this with SendKeys: "+^H" ... see what happens. [^].
“I'm an artist: it's self evident that word implies looking for something all the time without ever finding it in full. It is the opposite of saying : 'I know all about it. I've already found it.'
As far as I'm concerned, the word means: 'I am looking. I am hunting for it. I am deeply involved.'”
Vincent Van Gogh
|
|
|
|
|
I tried it, but it did nothing, What was it supposed to do???
|
|
|
|
|
Hi All.
public enum tipologie_oggetti { moda,modb,modc}
i would like to add "modd" using a combobox or a textbox or any other controls so to have as a result :
public enum tipologie_oggetti { moda,modb,modc,modd}
I don t know if it is possible.thanks
|
|
|
|
|
What is the context of this question?
Controls usually don't change the source code.
|
|
|
|
|
It is exactly what i nedeed.Controls can not change code.So my next question is: what if i wanted to enable the user to add a new item to my enumerator?
|
|
|
|
|
Well, you kind of can't. (and you kind of can, but let's not go there yet)
It sounds like you need something else, perhaps a Dictionary<TKey,TValue> of some sort? What are you doing with it?
|
|
|
|
|
I'll try to explain it better. I put some serialized data in a 3d object(guid). one of them is my enumerator.Therefore my objet "obj1" contains tipologie_oggetti.moda and
"obj2" has tipologie_oggetti.modc. i would like to enable the user to create a new enumerator(tipologie_oggetti) item and add it to his 3Dobject as a serialized data.
|
|
|
|
|
Yeah, we know what you're doing. You're just using the wrong construct to do it.
Enums are a collection of constant values used in your source code to improve readability, consistency and supportability of the code.
That are NOT used as variable length lists of user data, which is what you're trying to do. Use an appropriate construct, such as a List<t> or Dictionary<t> if you're going to left users modify this list of names and values.
|
|
|
|
|
I think you're right.'ll use a dictionary. thank you all for your cooperation.
|
|
|
|
|
In that case, this should be considered data edited by the program and not an enumerator. You cannot use an enum in the way you want.
|
|
|
|
|
Enums are a structured (ordinal) collection of integral, value-type, Constants. You might say they are "tightly bound" at compile-time.
Two days ago I responded to a question about Enums here on the C# QA Forum: [^].
I hope you might find the content of that response, the comparison of an Enum with its (static) Class equivalent, and the links included in it, helpful.
It is possible to modify an Enum at run-time, but you have to use Reflection to do it, and I'd highly recommend you not do that for performance reasons, as well as reasons of unnecessary code complexity.
“I'm an artist: it's self evident that word implies looking for something all the time without ever finding it in full. It is the opposite of saying : 'I know all about it. I've already found it.'
As far as I'm concerned, the word means: 'I am looking. I am hunting for it. I am deeply involved.'”
Vincent Van Gogh
|
|
|
|
|
thank to everibody.i have to go now .my wife and my daughter are calling me.i will read you link billwooddruff as soon as it is possible .
|
|
|
|
|
You mean "enumerations" and, as said, you want something else.
|
|
|
|
|
you're right. your help and that of those who have patiently helped me a lot to understand. through the effort of those who know the more you grow faster
|
|
|
|
|
microsoft translator api doesn't translate text with proper meaning it only takes word to word mean in c# \
means when i want to translate this sentence
"I WANT YOU TO WRITE THESE"
it does translate this sentence as
मैं इस पढ़ने के लिए आप चाहते हैं in hindi which is not proper .also it doesn't take phrases into consideration
pls give me a solution on this i am tearing my head on this.
|
|
|
|
|
You will never get perfect translation when doing it through software, since a phrase in one language may be interpreted in different ways, and sometimes will not make sense in another language. Consider the English phrases: Time flies like an arrow, fruit flies like a banana.
Veni, vidi, abiit domum
|
|
|
|
|
There is no solution.
That is, unless someone comes up with artificial intelligence that can comprehend human conversion context. That hasn't happened yet, but you're free to try all you want!
|
|
|
|
|
Hello sir,
i want to store invoice number of a document, while scanning or capturing the document. Is there any possible way..?
Please help me sir.. i'm waiting for your valuable feedback
|
|
|
|
|
Unless you enter the number through your own software, you will not be able to capture this data directly.
You could, of course, scan data on the image and with image recognition and maybe read invoice value out. That approach won't be an easy one though.
|
|
|
|
|
i have seen on ADP careers website... when i upload a resume, it screens my resume and automatically stores in textboxes. How it has been done sir.. hope this example gives me the solution.
waiting for your valuable feedback sir...
|
|
|
|
|
i want to insert a image into codeproject question, because of clearly express my question !!
Thanks & Regards
AR
|
|
|
|
|
You can't. The best you can do is upload your picture to an image hosting site, like Flickr, and paste the link to it in your post.
And if you rely on nothing but a picture to "ask" your question, you're going to be flamed, not helped. A picture is definitely NOT worth a 1,000 words.
|
|
|
|
|
Thank you..
Thanks & Regards
AR
|
|
|
|
|
Sorry. You can't insert images into a question.
Upload the image elsewhere and post a link to it here.
|
|
|
|