|
sorry for the trouble.
but as i was requesting help on
how to display the vertical scroll bar of PrintPreviewControl programatically?
can we sense its up/down click events?
I thought of raising old questions too, as I am really facing hard time. I want to do it my self, though I am a new learner.
In case of finding the co-ordinates of the page image , suggest me the possible ways please.
regards
|
|
|
|
|
sachinkalse wrote:
I am really facing hard time. I want to do it my self, though I am a new learner.
If your deadline is that close, try and find a 3rd party component that will expose this functionality because the PrintPreviewControl will not do and writing your own component will be exceedingly difficult for a beginner. To expose this kind of functionality, you would have to write your own print preview control from scratch. Like I said, NONE of the functionality you are looking for is exposed by the PrintPreviewControl.
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
yes, i do have time, need a little bit of guidance.
regards
|
|
|
|
|
That's not what your last post said, but anyway...
Look into using the PreviewPrintController class. There are no examples of how to use this class to build your own PrintPreviewControl, but that what it's used for.
Search the Web for PreviewPrintControl and you'll see what I mean.
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I am using the Webbrowser control's print preview in a C# application to generate report. I am using the EXecWB method to generate it.
Does anybody know how to make that Print Preview control modal.
When the Print preview is opened i am able to go to the application and work on it. If Any body knows the solution send it to me ASAp
|
|
|
|
|
(I THINK!) Since your app didn't actually create the dialog window, a control your app owns did, no, there is no way to open it modal.
As a thought experiment... You might be able to get away with finding the window and getting it's handle (requires calls to Win32API), and then calling the Win32 API functions GetWindowPos and SetWindowPos with the SWP_NOZORDER flag to set that window to maintain its status as the topmost window on the desktop and keep it there. But this will not prevent the user from switching to another task...
(As a side to this little experiment, setting a window modal state can only be done on window creation. You can't create a window, then go back and change it's modal state later.)
RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I am developing an application like MS Spy.
How can i change the mouse pointer of the entire desktop from my c# application.
The mouse pointer should behave like the Finder Tool in the Microsoft Spy.
Kindly give some idea.
Thanks in advance
Shaju Mathew
|
|
|
|
|
chnage the cursor property of form or any control.
Sreejith S S Nair
|
|
|
|
|
Thanks Sreejith..
But that didnot solve my problem Because i want to change the entire desktop's cursor, ie the cursor of all applications. Not just my applications or forms cursor
Thanks Shaju
|
|
|
|
|
give me a clear picture of your requrement.
Sreejith S S Nair
|
|
|
|
|
Hai, Sreejith
As u told if i change the Cursor property of my Form or control, it will only change the cursor of my form. ie if i move the mouse out of my applications area then the cursor will be the cursor of the application below the cursor. But i want to have my cursor for the entire windows opened.
You can see this behaviour of cursor in MS Spy.
Thanks
Shaju
|
|
|
|
|
You can set the cursor to whatever cursor you want (even a custom .cur file) but you should also capture the cursor using the Capture property of a foreground window. This causes the foreground window to receive mouse events while outside your Window.
You can also P/Invoke the SetCursor API, but you should read about this API and related APIs (like how to load a cursor) in the Platform SDK on MSDN Online[^].
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thanks......... Heath Stewart . Let me try.
Regards
Shaju MAthew
|
|
|
|
|
What is the significance of AssemblyInfo.cs file that gets created automatically in .NET environment ? where and how it is used?
|
|
|
|
|
assemblyinfo.cs file is used for configuration of assembly manifest.the compilor reads the assembly attribute to inject the specific information into the manifest.
it is not possible to write a detailed description
you can learn from here
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfmicrosoftvsaivsaengineclassassemblytopic.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemreflectionassemblyclasstopic.asp
Sreejith S S Nair
|
|
|
|
|
|
sure i will do that in future
Sreejith S S Nair
|
|
|
|
|
It contains attributes that apply to your assembly as a whole, such as AssemblyVersion , AssemblyName , and AssemblyKeyFile .
There's no technical reason to have a separate file to contain assembly-level attributes; it's simply a convenient way to group them together. However, if you put them in a file that contains code, they must be declared after any using statements and before the first namespace declaration.
Charlie
if(!curlies){ return; }
|
|
|
|
|
hi,
This file has wide range of use...
1) firstly it contains all the details about the assembly( as the name suggests)...like name,version,description,company copyright,etc,etc.
2) During writing COM+ applications you can use this file to assign strong key to your application
3) You can lock the use of your assembly by any other assembly
regards,
Aryadip
Cheers !! and have a Funky day !!
|
|
|
|
|
Dear All,
Thanks for your valuable reply. If your have any realtime example to understand the concept, please do share.
regards
|
|
|
|
|
hai there,
i developed a product using c# and dotnet IDE. My idea is, i need to distribute all pre-requests like framework,MDAC etc through the product setup.
On intallation point of time if that perticular client machine don't have pre-request for running my application(product) then it has to automatically install all pre requests before installing my product.
Next thing is, if the client machine have requirded pre-request then it need to check for the compatability of my product.
eg: i developed my product in frameword 1.1 but the client machine have a frameword 1.034 some version.
If that framework is not compatable then my product have to install latest framework that is avilable through my setup.
finally if my client machine and product have same pre-request version then my product installation need to ignore the installation of pre-request and it directly need to install my actaul setup(product).
any idea about this ?
Sreejith S S Nair
|
|
|
|
|
hi,
the answer to your query lies in the following URL.
to brief you ...
you need to create an unmanaged bootstrapper i.e Setup.exe which does all these stuff. It should be unmanaged because it needs to run on machines where .NET framework is not available.
And then through Settings.ini file you need to link up this setup.exe file with the .msi file that your setup project has created for your application.
You will find answer regarding the installation of the data access components as well.
Follow the link below for more info
custom bootstrapper -- MSDN article
Cheers !! and have a Funky day !!
|
|
|
|
|
let me check this first and will get back to you later
Sreejith S S Nair
|
|
|
|
|
how to load the data in database into the treeView
thanks
Rock Throught The Night
|
|
|
|
|
you can refer Quick Start tutorial for winforms.
otherwise
please go trough this link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vboritreeviewctltasks.asp
Sreejith S S Nair
|
|
|
|